📄 report-table.html.tmpl
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1186530632', '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 $_tt_error; eval { BLOCK: { $output .= "\n"; $output .= "\n\n"; $output .= "\n"; #line 34 "template\en\default\reports\report-table.html.tmpl" $output .= $context->process('global/field-descs.none.tmpl'); $output .= "\n"; #line 36 "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 37 "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 45 "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 40 "template\en\default\reports\report-table.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('buglistbase'); &$_tt_filter($output); }; #line 0 "template\en\default\reports\report-table.html.tmpl" if ($stash->get('tbl_vals')) { $output .= ("&" . $stash->get('tbl_vals')); } $output; }); } else { #line 44 "template\en\default\reports\report-table.html.tmpl" # CAPTURE $stash->set('urlbase', do { my $output = ''; $output .= "buglist.cgi?"; #line 43 "template\en\default\reports\report-table.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('buglistbase'); &$_tt_filter($output); }; $output .= "&"; #line 44 "template\en\default\reports\report-table.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('url_quote') || $context->throw($context->error); $output .= $stash->get('tbl_field'); &$_tt_filter($output); }; $output .= "="; #line 44 "template\en\default\reports\report-table.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('url_quote') || $context->throw($context->error); $output .= $stash->get('tbl'); &$_tt_filter($output); }; $output; }); } $output .= "\n"; #line 49 "template\en\default\reports\report-table.html.tmpl" if ($stash->get('tbl_field')) { $output .= "\n <h2>"; #line 48 "template\en\default\reports\report-table.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('tbl_disp'); &$_tt_filter($output); }; $output .= "</h2>"; } $output .= "\n\n<table>\n <tr>\n <td>\n </td>\n <td align=\"center\">\n <strong>"; #line 56 "template\en\default\reports\report-table.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('col_field_disp'); &$_tt_filter($output); }; $output .= "</strong>\n </td>\n </tr>\n\n <tr>\n <td valign=\"middle\">\n <strong>"; #line 62 "template\en\default\reports\report-table.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('row_field_disp'); &$_tt_filter($output); }; $output .= "</strong>\n </td>\n <td>\n\n"; #line 67 "template\en\default\reports\report-table.html.tmpl" $stash->set('classes', [ [ 't1', 't2' ], [ 't3', 't4' ] ]); #line 68 "template\en\default\reports\report-table.html.tmpl" $stash->set('col_idx', 0); #line 69 "template\en\default\reports\report-table.html.tmpl" $stash->set('row_idx', 0); #line 70 "template\en\default\reports\report-table.html.tmpl" $stash->set('grand_total', 0); $output .= "\n\n<table border=\"1\">"; #line 96 "template\en\default\reports\report-table.html.tmpl" if ($stash->get('col_field')) { $output .= "\n <tr>\n <td class=\""; #line 75 "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 ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get('col_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->{'col'} = $_tt_value; #line 78 "template\en\default\reports\report-table.html.tmpl" $stash->set(['col_totals', 0, $stash->get('col'), 0], 0); #line 79 "template\en\default\reports\report-table.html.tmpl" if ($stash->get('col') eq '') { ($_tt_value, $_tt_error) = $_tt_list->get_next(); next LOOP; } $output .= "\n "; #line 81 "template\en\default\reports\report-table.html.tmpl" $stash->set('col_idx', 1 - $stash->get('col_idx')); $output .= "\n <td class=\""; #line 82 "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 89 "template\en\default\reports\report-table.html.tmpl" if ($stash->get('col_field') eq 'bug_status') { #line 84 "template\en\default\reports\report-table.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('replace', [ '^ $', ' ' ]) || $context->throw($context->error); # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['status_descs', 0, $stash->get('col'), 0]); &$_tt_filter($output); }; &$_tt_filter($output); }; } elsif ($stash->get('col_field') eq 'resolution') { #line 86 "template\en\default\reports\report-table.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('replace', [ '^ $', ' ' ]) || $context->throw($context->error); # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['get_resolution', [ $stash->get('col') ]]); &$_tt_filter($output); }; &$_tt_filter($output); }; } else { #line 88 "template\en\default\reports\report-table.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('replace', [ '^ $', ' ' ]) || $context->throw($context->error); # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('col'); &$_tt_filter($output); }; &$_tt_filter($output); }; } $output .= "\n </td>";; ($_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 <td class=\"ttotal\">\n Total\n </td>\n </tr>"; } $output .= "\n "; #line 137 "template\en\default\reports\report-table.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get('row_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->{'row'} = $_tt_value; #line 99 "template\en\default\reports\report-table.html.tmpl" $stash->set('row_total', 0); $output .= "\n "; #line 101 "template\en\default\reports\report-table.html.tmpl" $stash->set('row_idx', 1 - $stash->get('row_idx')); $output .= "\n <tr>\n <td class=\""; #line 103 "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 110 "template\en\default\reports\report-table.html.tmpl" if ($stash->get('row_field') eq 'bug_status') { #line 105 "template\en\default\reports\report-table.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('replace', [ '^ $', ' ' ]) || $context->throw($context->error); # FILTER
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -