⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 report-table.html.tmpl

📁 buzilla软件
💻 TMPL
📖 第 1 页 / 共 2 页
字号:
    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['status_descs', 0, $stash->get('row'), 0]);                &$_tt_filter($output);    };                    &$_tt_filter($output);    };        }    elsif ($stash->get('row_field') eq 'resolution') {    #line 107 "template\en\default\reports\report-table.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('replace', [ '^ $', '&nbsp;' ])                  || $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('row') ]]);                &$_tt_filter($output);    };                    &$_tt_filter($output);    };        }    else {    #line 109 "template\en\default\reports\report-table.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('replace', [ '^ $', '&nbsp;' ])                  || $context->throw($context->error);            # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('row');                &$_tt_filter($output);    };                    &$_tt_filter($output);    };        }        $output .=  "\n      </td>";    #line 128 "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 113 "template\en\default\reports\report-table.html.tmpl"    $stash->set('row_total', $stash->get('row_total') + $stash->get(['data', 0, $stash->get('tbl'), 0, $stash->get('col'), 0, $stash->get('row'), 0]));        #line 114 "template\en\default\reports\report-table.html.tmpl"    if ($stash->get('col') eq '') {    ($_tt_value, $_tt_error) = $_tt_list->get_next();    next LOOP;        }        #line 115 "template\en\default\reports\report-table.html.tmpl"    $stash->set(['col_totals', 0, $stash->get('col'), 0], $stash->get(['col_totals', 0, $stash->get('col'), 0]) + $stash->get(['data', 0, $stash->get('tbl'), 0, $stash->get('col'), 0, $stash->get('row'), 0]));        $output .=  "\n        ";    #line 117 "template\en\default\reports\report-table.html.tmpl"    $stash->set('col_idx', 1 - $stash->get('col_idx'));        $output .=  "\n        <td class=\"";    #line 118 "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=\"center\">";    #line 126 "template\en\default\reports\report-table.html.tmpl"    if ($stash->get(['data', 0, $stash->get('tbl'), 0, $stash->get('col'), 0, $stash->get('row'), 0]) && $stash->get(['data', 0, $stash->get('tbl'), 0, $stash->get('col'), 0, $stash->get('row'), 0]) > 0) {    $output .=  "\n            <a href=\"";    #line 120 "template\en\default\reports\report-table.html.tmpl"    $output .=  $stash->get('urlbase');    $output .=  "&amp;";    #line 121 "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('row_field');                &$_tt_filter($output);    };        $output .=  "=";    #line 121 "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('row');                &$_tt_filter($output);    };        $output .=  "&amp;";    #line 122 "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('col_field');                &$_tt_filter($output);    };        $output .=  "=";    #line 122 "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('col');                &$_tt_filter($output);    };        $output .=  "\">";    #line 123 "template\en\default\reports\report-table.html.tmpl"    $output .=  $stash->get(['data', 0, $stash->get('tbl'), 0, $stash->get('col'), 0, $stash->get('row'), 0]);    $output .=  "</a>";    }    else {    $output .=  "\n            .";    }        $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\" align=\"right\">\n        <a href=\"";    #line 130 "template\en\default\reports\report-table.html.tmpl"    $output .=  $stash->get('urlbase');    $output .=  "&amp;";    #line 131 "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('row_field');                &$_tt_filter($output);    };        $output .=  "=";    #line 131 "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('row');                &$_tt_filter($output);    };        #line 0 "template\en\default\reports\report-table.html.tmpl"    if ($stash->get('col_vals')) {    $output .=  ("&amp;" . $stash->get('col_vals'));    }        $output .=  "\">";    #line 133 "template\en\default\reports\report-table.html.tmpl"    $output .=  $stash->get('row_total');    $output .=  "</a>";    #line 134 "template\en\default\reports\report-table.html.tmpl"    $stash->set('grand_total', $stash->get('grand_total') + $stash->get('row_total'));        $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  \n  <tr>";    #line 140 "template\en\default\reports\report-table.html.tmpl"    $stash->set('row_idx', 1 - $stash->get('row_idx'));        $output .=  "\n    <td class=\"ttotal\">\n      Total\n    </td>";    #line 153 "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 145 "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      \n      <td class=\"ttotal\" align=\"center\">\n        <a href=\"";    #line 148 "template\en\default\reports\report-table.html.tmpl"    $output .=  $stash->get('urlbase');    $output .=  "&amp;";    #line 149 "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('col_field');                &$_tt_filter($output);    };        $output .=  "=";    #line 149 "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('col');                &$_tt_filter($output);    };        #line 0 "template\en\default\reports\report-table.html.tmpl"    if ($stash->get('row_vals')) {    $output .=  ("&amp;" . $stash->get('row_vals'));    }        $output .=  "\">";    #line 151 "template\en\default\reports\report-table.html.tmpl"    $output .=  $stash->get(['col_totals', 0, $stash->get('col'), 0]);    $output .=  "</a>\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\" align=\"right\">\n      <strong>\n        <a href=\"";    #line 156 "template\en\default\reports\report-table.html.tmpl"    $output .=  $stash->get('urlbase');    #line 0 "template\en\default\reports\report-table.html.tmpl"    if ($stash->get('row_vals')) {    $output .=  ("&amp;" . $stash->get('row_vals'));    }        #line 0 "template\en\default\reports\report-table.html.tmpl"    if ($stash->get('col_vals')) {    $output .=  ("&amp;" . $stash->get('col_vals'));    }        $output .=  "\">";    #line 158 "template\en\default\reports\report-table.html.tmpl"    $output .=  $stash->get('grand_total');    $output .=  "</a>\n      </strong>\n    </td>\n  </tr>\n</table>\n\n      \n    </td>\n  </tr>\n</table>    \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 + -