📄 edit.html.tmpl
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1187931824', 'name' => 'admin/classifications/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"; #line 22 "template\en\default\admin\classifications\edit.html.tmpl" $output .= $context->process('global/header.html.tmpl', { 'title' => 'Edit classification' }); $output .= "\n\n<form method=post action=\"editclassifications.cgi\">\n <table border=0 cellpadding=4 cellspacing=0>\n <tr>\n <th align=\"right\">Classification:</th>\n <td><input size=64 maxlength=64 name=\"classification\" \n value=\""; #line 31 "template\en\default\admin\classifications\edit.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['classification', 0, 'name', 0]); &$_tt_filter($output); }; $output .= "\"></td>\n </tr>\n <tr>\n <th align=\"right\">Description:</th>\n <td>"; #line 36 "template\en\default\admin\classifications\edit.html.tmpl" $output .= $context->include('global/textarea.html.tmpl', { 'name' => 'description', 'minrows' => 4, 'cols' => 64, 'defaultcontent' => $stash->get(['classification', 0, 'description', 0]) }); $output .= "\n </td>\n </tr>\n <tr>\n <th align=\"right\"><label for=\"sortkey\">Sortkey:</label></th>\n <td><input id=\"sortkey\" size=\"20\" maxlength=\"20\" name=\"sortkey\" value=\""; #line 47 "template\en\default\admin\classifications\edit.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['classification', 0, 'sortkey', 0]); &$_tt_filter($output); }; $output .= "\"></td>\n </tr>\n <tr valign=top>\n <th align=\"right\">\n <a href=\"editproducts.cgi?classification="; #line 51 "template\en\default\admin\classifications\edit.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('url_quote') || $context->throw($context->error); $output .= $stash->get(['classification', 0, 'name', 0]); &$_tt_filter($output); }; $output .= "\">\n Edit Products</a>:\n </th>\n <td>"; #line 72 "template\en\default\admin\classifications\edit.html.tmpl" if ($stash->get(['classification', 0, 'products', 0, 'size', 0]) > 0) { $output .= "\n <table>"; #line 68 "template\en\default\admin\classifications\edit.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get(['classification', 0, 'products', 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->{'product'} = $_tt_value; $output .= "\n <tr>\n <th align=right valign=top>"; #line 59 "template\en\default\admin\classifications\edit.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['product', 0, 'name', 0]); &$_tt_filter($output); }; $output .= "</th>\n <td valign=top>"; #line 65 "template\en\default\admin\classifications\edit.html.tmpl" if ($stash->get(['product', 0, 'description', 0])) { #line 62 "template\en\default\admin\classifications\edit.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html_light') || $context->throw($context->error); $output .= $stash->get(['product', 0, 'description', 0]); &$_tt_filter($output); }; } else { $output .= "\n <font color=\"red\">description missing</font>"; } $output .= "\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>"; } else { $output .= "\n <font color=\"red\">none</font>"; } $output .= "\n </td>\n </tr>\n </table>\n\n <input type=hidden name=\"classificationold\" \n value=\""; #line 78 "template\en\default\admin\classifications\edit.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['classification', 0, 'name', 0]); &$_tt_filter($output); }; $output .= "\">\n <input type=hidden name=\"action\" value=\"update\">\n <input type=\"hidden\" name=\"token\" value=\""; #line 80 "template\en\default\admin\classifications\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 <input type=submit value=\"Update\">\n</form>\n\n<p>Back to the <a href=\"./\">main "; #line 84 "template\en\default\admin\classifications\edit.html.tmpl" $output .= $stash->get(['terms', 0, 'bugs', 0]); $output .= " page</a>\nor <a href=\"editclassifications.cgi\"> edit</a> more classifications.\n"; #line 87 "template\en\default\admin\classifications\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 + -