📄 edit.html.tmpl
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1161115116', 'name' => 'admin/settings/edit.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 28 "template\en\default\admin\settings\edit.html.tmpl" $output .= $context->process('global/header.html.tmpl', { 'title' => 'Default Preferences' }); $output .= "\n"; #line 32 "template\en\default\admin\settings\edit.html.tmpl" $output .= $context->process('global/setting-descs.none.tmpl'); $output .= "\n\n<p>\nThis lets you edit the default preferences values.\n</p>\n<p>\nThe Default Value displayed for each preference will apply to all users who\ndo not choose their own value, and to anyone who is not logged in.\n</p>\n<p>\nThe 'Enabled' checkbox controls whether or not this preference is available\nto users.<br>\nIf it is checked, users will see this preference on their User Preferences page,\nand will be allowed to choose their own value if they desire.<br>\nIf it is not checked, this preference will not appear on the User Preference\npage, and the Default Value will automatically apply to everyone.\n</p>\n<hr>\n"; #line 101 "template\en\default\admin\settings\edit.html.tmpl" if ($stash->get(['settings', 0, 'size', 0])) { $output .= "\n <form name=\"adminsettingform\" method=\"post\" action=\"editsettings.cgi\">\n <table border=\"1\" cellpadding=\"4\">\n <tr>\n <th>Preference Text</th>\n <th>Default Value</th>\n <th>Enabled</th>\n </tr>\n"; #line 84 "template\en\default\admin\settings\edit.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get('setting_names'); 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->{'name'} = $_tt_value; #line 61 "template\en\default\admin\settings\edit.html.tmpl" $stash->set('checkbox_name', $stash->get('name') . '-enabled'); $output .= "\n <tr>\n <td align=\"right\">"; #line 64 "template\en\default\admin\settings\edit.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['setting_descs', 0, $stash->get('name'), 0]) || $stash->get('name'); &$_tt_filter($output); }; $output .= "\n </td>\n <td>\n <select name=\""; #line 67 "template\en\default\admin\settings\edit.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('name'); &$_tt_filter($output); }; $output .= "\" id=\""; #line 67 "template\en\default\admin\settings\edit.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('name'); &$_tt_filter($output); }; $output .= "\">"; #line 73 "template\en\default\admin\settings\edit.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get(['settings', 0, $stash->get('name'), 0, 'legal_values', 0]); 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->{'x'} = $_tt_value; $output .= "\n <option value=\""; #line 69 "template\en\default\admin\settings\edit.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('x'); &$_tt_filter($output); }; $output .= "\""; #line 70 "template\en\default\admin\settings\edit.html.tmpl" if ($stash->get('x') eq $stash->get(['settings', 0, $stash->get('name'), 0, 'default_value', 0])) { $output .= ('' . " selected=\"selected\""); } $output .= ">"; #line 71 "template\en\default\admin\settings\edit.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['setting_descs', 0, $stash->get('x'), 0]) || $stash->get('x'); &$_tt_filter($output); }; $output .= "\n </option>";; ($_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 </select>\n </td>\n <td align=\"center\">\n <input type=\"checkbox\"\n name=\""; #line 78 "template\en\default\admin\settings\edit.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('checkbox_name'); &$_tt_filter($output); }; $output .= "\"\n id=\""; #line 79 "template\en\default\admin\settings\edit.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('checkbox_name'); &$_tt_filter($output); }; $output .= "\""; #line 80 "template\en\default\admin\settings\edit.html.tmpl" if ($stash->get(['settings', 0, $stash->get('name'), 0, 'is_enabled', 0])) { $output .= ('' . " checked=\"checked\""); } $output .= ">\n <br>\n </td>\n </tr>";; ($_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 </table>\n\n <input type=\"hidden\" name=\"action\" value=\"update\">\n <input type=\"hidden\" name=\"token\" value=\""; #line 88 "template\en\default\admin\settings\edit.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('token'); &$_tt_filter($output); }; $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>\n \n </form>"; } else { $output .= "\n There are no preferences to edit."; } $output .= "\n"; #line 103 "template\en\default\admin\settings\edit.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 + -