📄 report-table.html.tmpl
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.13#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1110596304', 'name' => 'reports/report-table.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 35 "template\en\default\reports\report-table.html.tmpl" $output .= $context->process('global/field-descs.none.tmpl'); $output .= "\n"; #line 38 "template\en\default\reports\report-table.html.tmpl" $stash->set('col_field_disp', $stash->get(['field_descs', 0, $stash->get('col_field'), 0]) || $stash->get('col_field')); #line 38 "template\en\default\reports\report-table.html.tmpl" $stash->set('row_field_disp', $stash->get(['field_descs', 0, $stash->get('row_field'), 0]) || $stash->get('row_field')); $output .= "\n"; #line 43 "template\en\default\reports\report-table.html.tmpl" if ($stash->get('tbl') eq '-total-') { #line 41 "template\en\default\reports\report-table.html.tmpl" # CAPTURE $stash->set('urlbase', do { my $output = ''; $output .= "buglist.cgi?"; #line 41 "template\en\default\reports\report-table.html.tmpl" $output .= $stash->get('buglistbase'); #line 0 "template\en\default\reports\report-table.html.tmpl" if ($stash->get('tbl_vals')) { $output .= ("&" . $stash->get('tbl_vals')); } $output; }); } else { #line 43 "template\en\default\reports\report-table.html.tmpl" # CAPTURE $stash->set('urlbase', do { my $output = ''; $output .= "buglist.cgi?"; #line 41 "template\en\default\reports\report-table.html.tmpl" $output .= $stash->get('buglistbase'); $output .= "&"; #line 43 "template\en\default\reports\report-table.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('url_quote') || $context->throw($context->error); $output .= $stash->get('tbl_field'); &$filter($output); }; $output .= "="; #line 43 "template\en\default\reports\report-table.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('url_quote') || $context->throw($context->error); $output .= $stash->get('tbl'); &$filter($output); }; $output; }); } $output .= "\n\n<table>"; #line 56 "template\en\default\reports\report-table.html.tmpl" if ($stash->get('tbl_field')) { $output .= "\n <tr>\n <td>\n </td>\n <td align=\"center\"> \n <h2>"; #line 52 "template\en\default\reports\report-table.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('tbl_disp'); &$filter($output); }; $output .= "</h2>\n </td>\n </tr>"; } $output .= " \n <tr>\n <td>\n </td>\n <td align=\"center\">\n <strong>"; #line 61 "template\en\default\reports\report-table.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('col_field_disp'); &$filter($output); }; $output .= "</strong>\n </td>\n </tr>\n\n <tr>\n <td valign=\"middle\">\n <strong>"; #line 67 "template\en\default\reports\report-table.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('row_field_disp'); &$filter($output); }; $output .= "</strong>\n </td>\n <td>\n\n"; #line 73 "template\en\default\reports\report-table.html.tmpl" $stash->set('classes', [ [ 't1', 't2' ], [ 't3', 't4' ] ]); #line 73 "template\en\default\reports\report-table.html.tmpl" $stash->set('col_idx', 0); #line 73 "template\en\default\reports\report-table.html.tmpl" $stash->set('row_idx', 0); #line 73 "template\en\default\reports\report-table.html.tmpl" $stash->set('grand_total', 0); $output .= "\n\n<table border=\"1\">"; #line 97 "template\en\default\reports\report-table.html.tmpl" if ($stash->get('col_field')) { $output .= "\n <tr>\n <td class=\""; #line 79 "template\en\default\reports\report-table.html.tmpl" $output .= $stash->get(['classes', 0, $stash->get('row_idx'), 0, $stash->get('col_idx'), 0]); $output .= "\">\n </td>"; #line 91 "template\en\default\reports\report-table.html.tmpl" # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get('col_names'); 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->{'col'} = $value; #line 82 "template\en\default\reports\report-table.html.tmpl" $stash->set(['col_totals', 0, $stash->get('col'), 0], 0); #line 82 "template\en\default\reports\report-table.html.tmpl" if ($stash->get('col') eq '') { ($value, $error) = $list->get_next(); next LOOP; } $output .= "\n "; #line 85 "template\en\default\reports\report-table.html.tmpl" $stash->set('col_idx', 1 - $stash->get('col_idx')); $output .= "\n <td class=\""; #line 86 "template\en\default\reports\report-table.html.tmpl" $output .= $stash->get(['classes', 0, $stash->get('row_idx'), 0, $stash->get('col_idx'), 0]); $output .= "\">"; #line 88 "template\en\default\reports\report-table.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('replace', [ '^ $', ' ' ]) || $context->throw($context->error); # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('col'); &$filter($output); }; &$filter($output); }; $output .= "\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 <td class=\"ttotal\">\n Total\n </td>\n </tr>"; } $output .= "\n "; #line 143 "template\en\default\reports\report-table.html.tmpl" # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get('row_names'); 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->{'row'} = $value; #line 100 "template\en\default\reports\report-table.html.tmpl" $stash->set('row_total', 0); $output .= "\n "; #line 103 "template\en\default\reports\report-table.html.tmpl" $stash->set('row_idx', 1 - $stash->get('row_idx')); $output .= "\n <tr>\n <td class=\""; #line 105 "template\en\default\reports\report-table.html.tmpl" $output .= $stash->get(['classes', 0, $stash->get('row_idx'), 0, $stash->get('col_idx'), 0]); $output .= "\" align=\"right\">"; #line 107 "template\en\default\reports\report-table.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('replace', [ '^ $', ' ' ]) || $context->throw($context->error); # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('row'); &$filter($output); }; &$filter($output); };
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -