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

📄 search-report-graph.html.tmpl

📁 buzilla软件
💻 TMPL
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({    METADATA => {        'modtime' => '1184051116',        '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 $_tt_error;                eval { BLOCK: {    $output .=  "\n";    $output .=  "\n\n";    $output .=  "\n";    #line 27 "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"        # CAPTURE    $stash->set('js_data', do {        my $output = '';    $output .=  "\nvar queryform = \"reportform\"";        $output;    });        $output .=  "\n";    #line 33 "template\en\default\search\search-report-graph.html.tmpl"    $output .=  $context->process('global/header.html.tmpl', { 'title' => 'Generate Graphical Report', 'onload' => 'doOnSelectProduct(0); chartTypeChanged()', 'javascript' => $stash->get('js_data'), 'javascript_urls' => [ 'js/productform.js' ] });    $output .=  "\n";    #line 40 "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 44 "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 64 "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 77 "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 80 "template\en\default\search\search-report-graph.html.tmpl"    if ($stash->get(['default', 0, 'cumulate', 0, 0, 0]) eq '1') {    $output .=  ' checked';    }        $output .=  ">\n        Stacked\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 88 "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 95 "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 99 "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 107 "template\en\default\search\search-report-graph.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get('chart_formats');                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->{'chart_format'} = $_tt_value;    $output .=  "\n        <input type=\"radio\" name=\"format\"\n               value=\"";    #line 103 "template\en\default\search\search-report-graph.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['chart_format', 0, 'name', 0]);                &$_tt_filter($output);    };        $output .=  "\"\n               onchange=\"chartTypeChanged()\"";    #line 105 "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 106 "template\en\default\search\search-report-graph.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['chart_format', 0, 'description', 0]);                &$_tt_filter($output);    };        $output .=  "<br>";;                ($_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>\n  </tr>\n\n  <tr>\n    <td>\n    </td>\n    <td align=\"left\">\n      <b>Horizontal Axis:</b>";    #line 116 "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 120 "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 129 "template\en\default\search\search-report-graph.html.tmpl"    $output .=  $context->process('search/form.html.tmpl');    $output .=  "\n\n<br>\n<input type=\"submit\" id=\"";    #line 132 "template\en\default\search\search-report-graph.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('button_name');                &$_tt_filter($output);    };        $output .=  "\"\n       value=\"";    #line 133 "template\en\default\search\search-report-graph.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('button_name');                &$_tt_filter($output);    };        $output .=  "\">\n<input type=\"hidden\" name=\"action\" value=\"wrap\">\n<hr>\n";    #line 137 "template\en\default\search\search-report-graph.html.tmpl"    $output .=  $context->process('search/boolean-charts.html.tmpl');    $output .=  "\n\n</form>\n";    #line 141 "template\en\default\search\search-report-graph.html.tmpl"    $output .=  $context->process('global/footer.html.tmpl');    $output .=  "\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 + -