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

📄 create-chart.html.tmpl

📁 bugzilla的安装文件
💻 TMPL
📖 第 1 页 / 共 2 页
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.13#------------------------------------------------------------------------Template::Document->new({    METADATA => {        'modtime' => '1095204622',        'name' => 'reports/create-chart.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 30 "template\en\default\reports\create-chart.html.tmpl"    $output .=  $context->process('global/header.html.tmpl', { 'title' => 'Create Chart' });    $output .=  "\n";    #line 35 "template\en\default\reports\create-chart.html.tmpl"    $output .=  $context->process('reports/series-common.html.tmpl', { 'donames' => 1 });    $output .=  "\n\n<script language=\"JavaScript\" type=\"text/javascript\">\n";    $output .=  "\nfunction subcatSelected() {\n  var cat = document.chartform.category.value;\n  var subcat = document.chartform.subcategory.value;\n  var names = series[cat][subcat];\n  \n  var namewidget = document.chartform.name;\n\n  namewidget.options.length = 0;\n  var i = 0;\n\n  for (x in names) {\n    namewidget.options[i] = new Option(x, names[x]);\n    i++;\n  }\n\n  namewidget.options[0].selected = true;\n  \n  checkNewState();\n}\n</script>\n";    #line 63 "template\en\default\reports\create-chart.html.tmpl"    $stash->set('gttext', 'Grand Total');        $output .=  "\n\n<form method=\"get\" action=\"chart.cgi\" name=\"chartform\">  \n  \n  <table cellpadding=\"2\" cellspacing=\"2\" border=\"0\">";    #line 135 "template\en\default\reports\create-chart.html.tmpl"    if (! $stash->get('category') || $stash->get(['category', 0, 'size', 0]) eq 0) {    $output .=  "\n      <tr>\n        <td>\n          <i>No data sets exist, or none are visible to you.</i>\n        </td>\n      </tr>";    }    else {    $output .=  "\n      <tr>\n        <th>Category:</th>\n        <th></th>\n        <th>Sub-category:</th>\n        <th></th>\n        <th>Name:</th>\n        <th><br>\n        </th>\n      </tr>\n      <tr>\n      ";    #line 89 "template\en\default\reports\create-chart.html.tmpl"    $output .=  $context->process('series_select', { 'sel' => { 'name' => 'category', 'size' => 5, 'onchange' => 'catSelected();                                                         subcatSelected();'  } });    $output .=  "\n                                   \n        <td>\n          <noscript>\n            <input type=\"submit\" name=\"action-assemble\" value=\"Update --&gt;\">\n          </noscript>\n        </td>\n        ";    #line 101 "template\en\default\reports\create-chart.html.tmpl"    $output .=  $context->process('series_select', { 'sel' => { 'name' => 'subcategory', 'size' => 5, 'onchange' => 'subcatSelected()'  } });    $output .=  "\n                                   \n        <td>\n          <noscript>\n            <input type=\"submit\" name=\"action-assemble\" value=\"Update --&gt;\">\n          </noscript>\n        </td>\n        \n        <td align=\"left\">\n          <label for=\"name\" accesskey=\"N\">\n            <select name=\"name\" id=\"name\" style=\"width: 15em\"\n                    size=\"5\" multiple=\"multiple\"\n                    ";    #line 115 "template\en\default\reports\create-chart.html.tmpl"    if (!($stash->get(['name', 0, 'keys', 0, 'size', 0]))) {    $output .=  ('' . "disabled=\"disabled\"");    }        $output .=  ">";    #line 122 "template\en\default\reports\create-chart.html.tmpl"        # FOREACH     do {        my ($value, $error, $oldloop);        my $list = $stash->get(['name', 0, 'keys', 0, 'sort', 0]);                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->{'x'} = $value;    $output .=  "\n                <option value=\"";    #line 118 "template\en\default\reports\create-chart.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['name', 0, $stash->get('x'), 0]);                &$filter($output);    };        $output .=  "\">";    #line 120 "template\en\default\reports\create-chart.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('x');                &$filter($output);    };        $output .=  "</option>";;                ($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;    };        #line 125 "template\en\default\reports\create-chart.html.tmpl"    if (!($stash->get(['name', 0, 'keys', 0, 'size', 0]))) {    $output .=  "\n                <option value=\"\" disabled=\"disabled\"></option>";    }        $output .=  "\n            </select>\n          </label>\n        </td>\n\n        <td align=\"center\" valign=\"middle\"> \n          <input type=\"submit\" name=\"action-add\" value=\"Add To List\"><br>\n        </td>\n      </tr>";    }        $output .=  "\n  </table>\n\n  <script language=\"JavaScript\" type=\"text/javascript\">\n    document.chartform.category[0].selected = true;\n    document.chartform.subcategory.disabled = '';\n    document.chartform.name.disabled = '';\n    catSelected();\n    subcatSelected();\n  </script>\n\n  <h3>List Of Data Sets To Plot</h3>\n";    #line 280 "template\en\default\reports\create-chart.html.tmpl"    if ($stash->get(['chart', 0, 'lines', 0, 'size', 0]) > 0) {    $output .=  "\n    <table cellspacing=\"2\" cellpadding=\"2\">\n      <tr>\n        <th style=\"width: 5em;\">Select</th>\n        <th>Label</th>\n        <th></th>\n        <th>Data Set</th>\n        <th></th>\n      </tr>\n      \n      ";    #line 163 "template\en\default\reports\create-chart.html.tmpl"    $stash->set('labelidx', 0);        #line 163 "template\en\default\reports\create-chart.html.tmpl"    $stash->set('newidx', 0);        $output .=  "\n      ";    #line 221 "template\en\default\reports\create-chart.html.tmpl"        # FOREACH     do {        my ($value, $error, $oldloop);        my $list = $stash->get(['chart', 0, 'lines', 0]);                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->{'line'} = $value;    #line 169 "template\en\default\reports\create-chart.html.tmpl"    if (! $stash->get('line')) {    $output .=  "\n          ";    #line 169 "template\en\default\reports\create-chart.html.tmpl"    $stash->set('labelidx', $stash->get('labelidx') + 1);        #line 169 "template\en\default\reports\create-chart.html.tmpl"    ($value, $error) = $list->get_next();    next LOOP;        }        $output .=  "\n        ";    #line 221 "template\en\default\reports\create-chart.html.tmpl"        # FOREACH     do {        my ($value, $error, $oldloop);        my $list = $stash->get('line');                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->{'series'} = $value;    $output .=  "\n          <tr>";    #line 185 "template\en\default\reports\create-chart.html.tmpl"    if ($stash->get(['loop', 0, 'first', 0])) {    $output .=  "\n              <td align=\"center\" rowspan=\"";    #line 176 "template\en\default\reports\create-chart.html.tmpl"    $output .=  $stash->get(['line', 0, 'size', 0]);    $output .=  "\">\n                <input type=\"checkbox\" value=\"1\" name=\"select";    #line 177 "template\en\default\reports\create-chart.html.tmpl"    $output .=  $stash->get('newidx');    $output .=  "\">\n              </td>\n              <td rowspan=\"";    #line 179 "template\en\default\reports\create-chart.html.tmpl"    $output .=  $stash->get(['line', 0, 'size', 0]);    $output .=  "\">\n                <input type=\"text\" size=\"20\" name=\"label";    #line 180 "template\en\default\reports\create-chart.html.tmpl"    $output .=  $stash->get('newidx');    $output .=  "\"\n                       value=\"";    #line 181 "template\en\default\reports\create-chart.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  ($stash->get(['chart', 0, 'labels', 0, $stash->get('labelidx'), 0]) || $stash->get(['series', 0, 'name', 0]));                &$filter($output);    };        $output .=  "\">\n              </td>";    }        $output .=  "\n\n            <td>";    #line 189 "template\en\default\reports\create-chart.html.tmpl"    if ($stash->get(['line', 0, 'size', 0]) > 1) {    $output .=  '{';    }

⌨️ 快捷键说明

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