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

📄 search-report-graph.html.tmpl

📁 bugzilla的安装文件
💻 TMPL
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.13#------------------------------------------------------------------------Template::Document->new({    METADATA => {        'modtime' => '1074451180',        'name' => 'search/search-report-graph.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 28 "template\en\default\search\search-report-graph.html.tmpl"    $output .=  $context->process('global/variables.none.tmpl');    $output .=  "\n";    #line 31 "template\en\default\search\search-report-graph.html.tmpl"    $output .=  $context->process('global/header.html.tmpl', { 'title' => 'Generate Graphical Report', 'onload' => 'selectProduct(document.forms[\'reportform\']);chartTypeChanged()' });    $output .=  "\n";    #line 37 "template\en\default\search\search-report-graph.html.tmpl"    $output .=  $context->process('search/search-report-select.html.tmpl');    $output .=  "\n\n<p>\n  Choose one or more fields as your axes, and then refine your set of ";    #line 42 "template\en\default\search\search-report-graph.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bugs', 0]);    $output .=  " using the rest of the form.\n</p>\n\n<script type=\"text/javascript\"><!--\n  ";    $output .=  "\n  function chartTypeChanged() {\n    // format[2] is the pie chart radio button\n    if (document.reportform.format[2].checked == true) {\n      document.reportform.y_axis_field.disabled = true;\n      document.reportform.cumulate[0].disabled = true;\n      document.reportform.cumulate[1].disabled = true;\n    } else {\n      document.reportform.y_axis_field.disabled = false;\n      document.reportform.cumulate[0].disabled = false;\n      document.reportform.cumulate[1].disabled = false;\n    }\n  }\n// -->\n</script>\n";    #line 63 "template\en\default\search\search-report-graph.html.tmpl"    $stash->set('button_name', 'Generate Report');        $output .=  "\n\n<form method=\"get\" action=\"report.cgi\" name=\"reportform\">\n\n<table align=\"center\">\n  <tr>\n    <td valign=\"middle\">\n      <b>Vertical Axis:</b><br>\n      <noscript><small>(not for pie charts)</small><br></noscript>";    #line 73 "template\en\default\search\search-report-graph.html.tmpl"    $output .=  $context->process('select', { 'name' => 'y_axis_field' });    $output .=  "<br>\n      <br>\n        <b>Plot Data Sets:</b><br>\n        <input type=\"radio\" name=\"cumulate\" value=\"0\"";    #line 78 "template\en\default\search\search-report-graph.html.tmpl"    if ($stash->get(['default', 0, 'cumulate', 0, 0, 0]) ne '1') {    $output .=  ' checked';    }        $output .=  ">\n        Individually<br>\n        <input type=\"radio\" name=\"cumulate\" value=\"1\"";    #line 82 "template\en\default\search\search-report-graph.html.tmpl"    if ($stash->get(['default', 0, 'cumulate', 0, 0, 0]) eq '1') {    $output .=  ' checked';    }        $output .=  ">\n        Summed\n    </td>\n    <td width=\"150\" height=\"150\">\n      <table border=\"1\" width=\"100%\" height=\"100%\">\n        <tr>\n          <td align=\"center\" valign=\"middle\">\n            <b>Multiple Images:</b><br>";    #line 91 "template\en\default\search\search-report-graph.html.tmpl"    $output .=  $context->process('select', { 'name' => 'z_axis_field' });    $output .=  "\n          </td>\n        </tr>\n      </table>\n    </td>\n    <td rowspan=\"2\">\n      <b>Format:</b><br>";    #line 99 "template\en\default\search\search-report-graph.html.tmpl"    $stash->set('chart_formats', [ { 'name' => 'line', 'description' => 'Line Graph'  }, { 'name' => 'bar', 'description' => 'Bar Chart'  }, { 'name' => 'pie', 'description' => 'Pie Chart'  } ]);        #line 102 "template\en\default\search\search-report-graph.html.tmpl"    $stash->set(['default', 0, 'chart_format', 0, 0, 0], $stash->get(['default', 0, 'chart_format', 0, 0, 0]) || 'bar');        $output .=  "\n";    #line 114 "template\en\default\search\search-report-graph.html.tmpl"        # FOREACH     do {        my ($value, $error, $oldloop);        my $list = $stash->get('chart_formats');                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->{'chart_format'} = $value;    $output .=  "\n        <input type=\"radio\" name=\"format\"\n               value=\"";    #line 107 "template\en\default\search\search-report-graph.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['chart_format', 0, 'name', 0]);                &$filter($output);    };        $output .=  "\"\n               onchange=\"chartTypeChanged()\"";    #line 110 "template\en\default\search\search-report-graph.html.tmpl"    if ($stash->get(['default', 0, 'chart_format', 0, 0, 0]) eq $stash->get(['chart_format', 0, 'name', 0])) {    $output .=  ' checked';    }        $output .=  ">";    #line 112 "template\en\default\search\search-report-graph.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['chart_format', 0, 'description', 0]);                &$filter($output);    };        $output .=  "<br>";;                ($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>\n  </tr>\n\n  <tr>\n    <td>\n    </td>\n    <td align=\"left\">\n      <b>Horizontal Axis:</b>";    #line 124 "template\en\default\search\search-report-graph.html.tmpl"    $output .=  $context->process('select', { 'name' => 'x_axis_field' });    $output .=  "<br>\n      <label for=\"x_labels_vertical\"><b>Vertical labels:</b></label>\n      <input type=\"checkbox\" name=\"x_labels_vertical\" id=\"x_labels_vertical\"\n             value=\"1\"";    #line 129 "template\en\default\search\search-report-graph.html.tmpl"    if ($stash->get(['default', 0, 'x_labels_vertical', 0, 0, 0]) eq '1') {    $output .=  ' checked';    }        $output .=  ">\n     </td>\n    <td>\n    </td>\n  </tr>\n</table>\n\n<hr>\n";    #line 139 "template\en\default\search\search-report-graph.html.tmpl"    $output .=  $context->process('search/form.html.tmpl');    $output .=  "\n\n<br>\n<input type=\"submit\" value=\"";    #line 142 "template\en\default\search\search-report-graph.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('button_name');                &$filter($output);    };        $output .=  "\">\n<input type=\"hidden\" name=\"action\" value=\"wrap\">\n<hr>\n";    #line 147 "template\en\default\search\search-report-graph.html.tmpl"    $output .=  $context->process('search/boolean-charts.html.tmpl');    $output .=  "\n\n</form>\n";    #line 152 "template\en\default\search\search-report-graph.html.tmpl"    $output .=  $context->process('global/footer.html.tmpl');    $output .=  "\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 + -