📄 footer.html.tmpl
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1173554440', 'name' => 'admin/products/footer.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 42 "template\en\default\admin\products\footer.html.tmpl" if ($stash->get(['Param', [ 'useclassification' ]]) && $stash->get('classification')) { #line 35 "template\en\default\admin\products\footer.html.tmpl" # CAPTURE $stash->set('classification_url_part', do { my $output = ''; $output .= "&classification="; #line 34 "template\en\default\admin\products\footer.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; }); #line 38 "template\en\default\admin\products\footer.html.tmpl" # CAPTURE $stash->set('classification_url_part_start', do { my $output = ''; $output .= "classification="; #line 37 "template\en\default\admin\products\footer.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; }); #line 41 "template\en\default\admin\products\footer.html.tmpl" # CAPTURE $stash->set('classification_text', do { my $output = ''; $output .= " \n of classification '"; #line 40 "template\en\default\admin\products\footer.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 .= "'"; $output; }); } $output .= "\n\n<hr>\n\n<p>"; #line 59 "template\en\default\admin\products\footer.html.tmpl" if (!($stash->get('no_add_product_link') || ! $stash->get(['user', 0, 'in_group', [ 'editcomponents' ]]))) { $output .= "\n <a title=\"Add a product\"\n href=\"editproducts.cgi?action=add\">Add</a> a product"; #line 58 "template\en\default\admin\products\footer.html.tmpl" if ($stash->get(['Param', [ 'useclassification' ]]) && $stash->get('classification')) { $output .= "\n (<a title=\"Add a product to classification '"; #line 54 "template\en\default\admin\products\footer.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 href=\"editproducts.cgi?action=add"; #line 56 "template\en\default\admin\products\footer.html.tmpl" $output .= $stash->get('classification_url_part'); $output .= "\">to\n classification '"; #line 57 "template\en\default\admin\products\footer.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 .= "'</a>)"; } $output .= "."; } $output .= "\n"; #line 69 "template\en\default\admin\products\footer.html.tmpl" if ($stash->get('product') && ! $stash->get('no_edit_product_link')) { $output .= "\n Edit product <a \n title=\"Edit Product '"; #line 63 "template\en\default\admin\products\footer.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 .= "' "; #line 64 "template\en\default\admin\products\footer.html.tmpl" $output .= $stash->get('classification_text'); $output .= "\"\n href=\"editproducts.cgi?action=edit&product="; #line 66 "template\en\default\admin\products\footer.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('url_quote') || $context->throw($context->error); $output .= $stash->get(['product', 0, 'name', 0]); &$_tt_filter($output); }; #line 67 "template\en\default\admin\products\footer.html.tmpl" $output .= $stash->get('classification_url_part'); $output .= "\">\n '"; #line 68 "template\en\default\admin\products\footer.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 .= "'</a>."; } $output .= "\n\n\n"; #line 79 "template\en\default\admin\products\footer.html.tmpl" if (!($stash->get('no_edit_other_products_link'))) { $output .= "\n Edit <a \n href=\"editproducts.cgi?"; #line 76 "template\en\default\admin\products\footer.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('none') || $context->throw($context->error); $output .= $stash->get('classification_url_part_start'); &$_tt_filter($output); }; $output .= "\">other products"; #line 77 "template\en\default\admin\products\footer.html.tmpl" $output .= $stash->get('classification_text'); $output .= "</a>.\n"; } $output .= "\n"; #line 86 "template\en\default\admin\products\footer.html.tmpl" if ($stash->get(['Param', [ 'useclassification' ]]) && $stash->get('classification')) { $output .= "\n Edit classification <a href=\"editclassifications.cgi?action=edit"; #line 83 "template\en\default\admin\products\footer.html.tmpl" $output .= $stash->get('classification_url_part'); $output .= "\">'"; #line 84 "template\en\default\admin\products\footer.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 .= "'</a>.\n"; } $output .= "\n\n</p>\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 + -