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

📄 report-table.html.tmpl

📁 bugzilla的安装文件
💻 TMPL
📖 第 1 页 / 共 2 页
字号:
        $output .=  "\n      </td>";    #line 131 "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 110 "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 110 "template\en\default\reports\report-table.html.tmpl"    if ($stash->get('col') eq '') {    ($value, $error) = $list->get_next();    next LOOP;        }        #line 110 "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 113 "template\en\default\reports\report-table.html.tmpl"    $stash->set('col_idx', 1 - $stash->get('col_idx'));        $output .=  "\n        <td class=\"";    #line 114 "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 128 "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 117 "template\en\default\reports\report-table.html.tmpl"    $output .=  $stash->get('urlbase');    $output .=  "&amp;";    #line 119 "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('row_field');                &$filter($output);    };        $output .=  "=";    #line 119 "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('row');                &$filter($output);    };        $output .=  "&amp;";    #line 121 "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('col_field');                &$filter($output);    };        $output .=  "=";    #line 121 "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('col');                &$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>";;                ($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\" align=\"right\">\n        <a href=\"";    #line 133 "template\en\default\reports\report-table.html.tmpl"    $output .=  $stash->get('urlbase');    $output .=  "&amp;";    #line 135 "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('row_field');                &$filter($output);    };        $output .=  "=";    #line 135 "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('row');                &$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 137 "template\en\default\reports\report-table.html.tmpl"    $output .=  $stash->get('row_total');    $output .=  "</a>";    #line 139 "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>";;                ($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  \n  <tr>";    #line 147 "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 163 "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 152 "template\en\default\reports\report-table.html.tmpl"    if ($stash->get('col') eq '') {    ($value, $error) = $list->get_next();    next LOOP;        }        $output .=  "\n      \n      <td class=\"ttotal\" align=\"center\">\n        <a href=\"";    #line 155 "template\en\default\reports\report-table.html.tmpl"    $output .=  $stash->get('urlbase');    $output .=  "&amp;";    #line 157 "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('col_field');                &$filter($output);    };        $output .=  "=";    #line 157 "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('col');                &$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 159 "template\en\default\reports\report-table.html.tmpl"    $output .=  $stash->get(['col_totals', 0, $stash->get('col'), 0]);    $output .=  "</a>\n      <strong>\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\" align=\"right\">\n      <strong>\n        <a href=\"";    #line 166 "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 166 "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 ($@) {            $error = $context->catch($@, \$output);            die $error unless $error->type eq 'return';        }            return $output;    },    DEFBLOCKS => {    },});

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -