📄 prefs.html.tmpl
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.13#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1084464266', '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 $error; eval { BLOCK: { $output .= "\n"; $output .= "\n\n"; $output .= "\n"; #line 38 "template\en\default\account\prefs\prefs.html.tmpl" # CAPTURE $stash->set('filtered_login', do { my $output = ''; # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['user', 0, 'login', 0]); &$filter($output); }; $output; }); #line 38 "template\en\default\account\prefs\prefs.html.tmpl" $output .= $context->process('global/header.html.tmpl', { 'title' => 'User Preferences', 'h2' => $stash->get('filtered_login'), 'style' => 'td.selected_tab { border-width: 2px 2px 0px; border-style: solid; } td.unselected_tab, td.spacer { border-width: 0px 0px 2px 0px; border-style: solid; }' }); $output .= "\n"; #line 52 "template\en\default\account\prefs\prefs.html.tmpl" $stash->set('tabs', [ { 'name' => 'account', 'description' => 'Account settings', 'saveable' => '1' }, { 'name' => 'email', 'description' => 'Email settings', 'saveable' => '1' }, { 'name' => 'saved-searches', 'description' => 'Saved searches', 'saveable' => '1' }, { 'name' => 'permissions', 'description' => 'Permissions', 'saveable' => '0' } ]); $output .= "\n\n<center>\n <table cellspacing=\"0\" cellpadding=\"10\" border=\"0\" width=\"100%\">\n <tr>\n <td class=\"spacer\"> </td>\n "; #line 78 "template\en\default\account\prefs\prefs.html.tmpl" # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get('tabs'); unless (UNIVERSAL::isa($list, 'Template::Iterator')) { $list = Template::Config->iterator($list) || die $Template::Config::ERROR, "\n"; } ($value, $error) = $list->get_first(); eval { $oldloop = $stash->get('loop') }; $stash->set('loop', $list); eval { LOOP: while (! $error) { $stash->{'tab'} = $value; #line 78 "template\en\default\account\prefs\prefs.html.tmpl" if ($stash->get(['tab', 0, 'name', 0]) eq $stash->get('current_tab_name')) { #line 67 "template\en\default\account\prefs\prefs.html.tmpl" $stash->set('current_tab', $stash->get('tab')); $output .= "\n <td align=\"center\" bgcolor=\"lightblue\" class=\"selected_tab\">"; #line 70 "template\en\default\account\prefs\prefs.html.tmpl" $output .= $stash->get(['tab', 0, 'description', 0]); $output .= "\n </td>"; } else { $output .= "\n <td align=\"center\" bgcolor=\"#BBBBEE\" class=\"unselected_tab\">\n <a href=\"userprefs.cgi?tab="; #line 75 "template\en\default\account\prefs\prefs.html.tmpl" $output .= $stash->get(['tab', 0, 'name', 0]); $output .= "\">"; #line 75 "template\en\default\account\prefs\prefs.html.tmpl" $output .= $stash->get(['tab', 0, 'description', 0]); $output .= "</a>\n </td>"; } ; ($value, $error) = $list->get_next(); } }; $stash->set('loop', $oldloop); die $@ if $@; $error = 0 if $error && $error eq Template::Constants::STATUS_DONE; die $error if $error; }; $output .= "\n \n <td class=\"spacer\"> </td>\n </tr>\n </table>\n</center>\n"; #line 101 "template\en\default\account\prefs\prefs.html.tmpl" if ($stash->get('changes_saved')) { $output .= "\n <p>\n <font color=\"red\">\n The changes to your "; #line 91 "template\en\default\account\prefs\prefs.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('lower') || $context->throw($context->error); $output .= $stash->get(['current_tab', 0, 'description', 0]); &$filter($output); }; $output .= " have been saved.\n </font>\n </p>"; #line 101 "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\n<h3>"; #line 103 "template\en\default\account\prefs\prefs.html.tmpl" $output .= $stash->get(['current_tab', 0, 'description', 0]); $output .= "</h3>\n\n<form name=\"userprefsform\" method=\"post\" action=\"userprefs.cgi\">\n <input type=\"hidden\" name=\"tab\" value=\""; #line 106 "template\en\default\account\prefs\prefs.html.tmpl" $output .= $stash->get(['current_tab', 0, 'name', 0]); $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 125 "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\n <table>\n <tr>\n <td width=\"150\"></td>\n <td>\n <input type=\"submit\" value=\"Submit Changes\">\n </td>\n </tr>\n </table>"; } $output .= "\n \n</form>\n"; #line 130 "template\en\default\account\prefs\prefs.html.tmpl" $output .= $context->process('global/footer.html.tmpl'); $output .= "\n\n \n \n"; } }; if ($@) { $error = $context->catch($@, \$output); die $error unless $error->type eq 'return'; } return $output; }, DEFBLOCKS => { },});
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -