?? prefs.html.tmpl
字號:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1168214302', 'name' => 'account/prefs/prefs.html.tmpl', }, BLOCK => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $_tt_error; eval { BLOCK: { $output .= "\n"; $output .= "\n\n"; $output .= "\n"; #line 39 "template\en\default\account\prefs\prefs.html.tmpl" # CAPTURE $stash->set('filtered_login', do { my $output = ''; # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['user', 0, 'login', 0]); &$_tt_filter($output); }; $output; }); #line 40 "template\en\default\account\prefs\prefs.html.tmpl" $output .= $context->process('global/header.html.tmpl', { 'title' => 'User Preferences', 'subheader' => $stash->get('filtered_login'), 'style_urls' => [ 'skins/standard/admin.css' ] }); $output .= "\n"; #line 46 "template\en\default\account\prefs\prefs.html.tmpl" $stash->set('tabs', [ { 'name' => 'settings', 'label' => 'General Preferences', 'link' => 'userprefs.cgi?tab=settings', 'saveable' => '1' }, { 'name' => 'email', 'label' => 'Email Preferences', 'link' => 'userprefs.cgi?tab=email', 'saveable' => '1' }, { 'name' => 'saved-searches', 'label' => 'Saved Searches', 'link' => 'userprefs.cgi?tab=saved-searches', 'saveable' => '1' }, { 'name' => 'account', 'label' => 'Name and Password', 'link' => 'userprefs.cgi?tab=account', 'saveable' => '1' }, { 'name' => 'permissions', 'label' => 'Permissions', 'link' => 'userprefs.cgi?tab=permissions', 'saveable' => '0' } ]); $output .= "\n"; #line 62 "template\en\default\account\prefs\prefs.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get('tabs'); unless (UNIVERSAL::isa($_tt_list, 'Template::Iterator')) { $_tt_list = Template::Config->iterator($_tt_list) || die $Template::Config::ERROR, "\n"; } ($_tt_value, $_tt_error) = $_tt_list->get_first(); eval { $_tt_oldloop = $stash->get('loop') }; $stash->set('loop', $_tt_list); eval { LOOP: while (! $_tt_error) { $stash->{'tab'} = $_tt_value; #line 61 "template\en\default\account\prefs\prefs.html.tmpl" if ($stash->get(['tab', 0, 'name', 0]) eq $stash->get('current_tab_name')) { #line 59 "template\en\default\account\prefs\prefs.html.tmpl" $stash->set('current_tab', $stash->get('tab')); #line 60 "template\en\default\account\prefs\prefs.html.tmpl" last LOOP; } ; ($_tt_value, $_tt_error) = $_tt_list->get_next(); } }; $stash->set('loop', $_tt_oldloop); die $@ if $@; $_tt_error = 0 if $_tt_error && $_tt_error eq Template::Constants::STATUS_DONE; die $_tt_error if $_tt_error; }; $output .= "\n"; #line 108 "template\en\default\account\prefs\prefs.html.tmpl" # WRAPPER $output .= do { my $output = ''; $output .= "\n"; #line 80 "template\en\default\account\prefs\prefs.html.tmpl" if ($stash->get('changes_saved')) { $output .= "\n <div id=\"message\">\n The changes to your "; #line 71 "template\en\default\account\prefs\prefs.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('lower') || $context->throw($context->error); $output .= $stash->get(['current_tab', 0, 'label', 0]); &$_tt_filter($output); }; $output .= " have been saved.\n"; #line 78 "template\en\default\account\prefs\prefs.html.tmpl" if ($stash->get('email_changes_saved')) { $output .= "\n <p>\n An email has been sent to both old and new email\n addresses to confirm the change of email address.\n </p>"; } $output .= "\n </div>"; } $output .= "\n\n<h3>"; #line 82 "template\en\default\account\prefs\prefs.html.tmpl" $output .= $stash->get(['current_tab', 0, 'label', 0]); $output .= "</h3>\n"; #line 87 "template\en\default\account\prefs\prefs.html.tmpl" if ($stash->get(['current_tab', 0, 'saveable', 0])) { $output .= "\n <form name=\"userprefsform\" method=\"post\" action=\"userprefs.cgi\">\n <input type=\"hidden\" name=\"tab\" value=\""; #line 86 "template\en\default\account\prefs\prefs.html.tmpl" $output .= $stash->get(['current_tab', 0, 'name', 0]); $output .= "\">"; } $output .= "\n"; #line 0 "template\en\default\account\prefs\prefs.html.tmpl" if ($stash->get(['current_tab', 0, 'name', 0, 'defined', 0])) { $output .= $context->process(("account/prefs/" . $stash->get(['current_tab', 0, 'name', 0]) . ".html.tmpl")); } $output .= "\n"; #line 106 "template\en\default\account\prefs\prefs.html.tmpl" if ($stash->get(['current_tab', 0, 'saveable', 0])) { $output .= "\n <input type=\"hidden\" name=\"dosave\" value=\"1\">\n"; #line 104 "template\en\default\account\prefs\prefs.html.tmpl" if (!($stash->get('dont_show_button'))) { $output .= "\n <table>\n <tr>\n <td width=\"150\"> </td>\n <td>\n <input type=\"submit\" id=\"update\" value=\"Submit Changes\">\n </td>\n </tr>\n </table>"; } $output .= "\n </form>"; } $output .= "\n"; $context->include('global/tabs.html.tmpl', { 'tabs' => $stash->get('tabs'), 'current_tab' => $stash->get('current_tab'), 'content', $output }); }; $output .= "\n"; #line 110 "template\en\default\account\prefs\prefs.html.tmpl" $output .= $context->process('global/footer.html.tmpl'); $output .= "\n"; } }; if ($@) { $_tt_error = $context->catch($@, \$output); die $_tt_error unless $_tt_error->type eq 'return'; } return $output; }, DEFBLOCKS => { },});
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -