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

📄 boolean-charts.html.tmpl

📁 bugzilla的安装文件
💻 TMPL
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.13#------------------------------------------------------------------------Template::Document->new({    METADATA => {        'modtime' => '1102724902',        'name' => 'search/boolean-charts.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";    #line 23 "template\en\default\search\boolean-charts.html.tmpl"    $stash->set('types', [ { 'name' => 'noop', 'description' => '---'  }, { 'name' => 'equals', 'description' => 'is equal to'  }, { 'name' => 'notequals', 'description' => 'is not equal to'  }, { 'name' => 'anyexact', 'description' => 'is equal to any of the strings'  }, { 'name' => 'substring', 'description' => 'contains the string'  }, { 'name' => 'casesubstring', 'description' => 'contains the string (exact case)'  }, { 'name' => 'notsubstring', 'description' => 'does not contain the string'  }, { 'name' => 'allwordssubstr', 'description' => 'contains all of the strings'  }, { 'name' => 'anywordssubstr', 'description' => 'contains any of the strings'  }, { 'name' => 'regexp', 'description' => 'contains regexp'  }, { 'name' => 'notregexp', 'description' => 'does not contain regexp'  }, { 'name' => 'lessthan', 'description' => 'is less than'  }, { 'name' => 'greaterthan', 'description' => 'is greater than'  }, { 'name' => 'anywords', 'description' => 'contains any of the words'  }, { 'name' => 'allwords', 'description' => 'contains all of the words'  }, { 'name' => 'nowords', 'description' => 'contains none of the words'  }, { 'name' => 'changedbefore', 'description' => 'changed before'  }, { 'name' => 'changedafter', 'description' => 'changed after'  }, { 'name' => 'changedfrom', 'description' => 'changed from'  }, { 'name' => 'changedto', 'description' => 'changed to'  }, { 'name' => 'changedby', 'description' => 'changed by'  }, { 'name' => 'matches', 'description' => 'matches'  } ]);        $output .=  "\n\n  <p>\n    <strong>\n      Advanced Searching Using Boolean Charts:\n    </strong>\n  </p>\n\n";    $output .=  "\n";    #line 56 "template\en\default\search\boolean-charts.html.tmpl"    $stash->set('jsmagic', ('' . "onclick=\"document.forms[0].action='query.cgi#chart'; document.forms[0].method='POST'; return 1;\""));        $output .=  "\n";    #line 140 "template\en\default\search\boolean-charts.html.tmpl"        # FOREACH     do {        my ($value, $error, $oldloop);        my $list = $stash->get(['default', 0, 'charts', 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->{'chart'} = $value;    #line 59 "template\en\default\search\boolean-charts.html.tmpl"    $stash->set('chartnum', $stash->get(['loop', 0, 'count', 0]) - 1);        $output .=  "\n  <table>";    #line 136 "template\en\default\search\boolean-charts.html.tmpl"        # FOREACH     do {        my ($value, $error, $oldloop);        my $list = $stash->get('chart');                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->{'row'} = $value;    #line 62 "template\en\default\search\boolean-charts.html.tmpl"    $stash->set('rownum', $stash->get(['loop', 0, 'count', 0]) - 1);        $output .=  "\n    <tr>";    #line 110 "template\en\default\search\boolean-charts.html.tmpl"        # FOREACH     do {        my ($value, $error, $oldloop);        my $list = $stash->get('row');                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 65 "template\en\default\search\boolean-charts.html.tmpl"    $stash->set('colnum', $stash->get(['loop', 0, 'count', 0]) - 1);        $output .=  "\n      <td>\n        <select name=\"";    #line 0 "template\en\default\search\boolean-charts.html.tmpl"    $output .=  ("field" . $stash->get('chartnum') . "-" . $stash->get('rownum') . "-" . $stash->get('colnum'));    $output .=  "\">";    #line 74 "template\en\default\search\boolean-charts.html.tmpl"        # FOREACH     do {        my ($value, $error, $oldloop);        my $list = $stash->get('fields');                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->{'field'} = $value;    $output .=  "\n            <option value=\"";    #line 70 "template\en\default\search\boolean-charts.html.tmpl"    $output .=  $stash->get(['field', 0, 'name', 0]);    $output .=  "\"";    #line 72 "template\en\default\search\boolean-charts.html.tmpl"    if ($stash->get(['field', 0, 'name', 0]) eq $stash->get(['col', 0, 'field', 0])) {    $output .=  ' selected';    }        $output .=  ">";    #line 72 "template\en\default\search\boolean-charts.html.tmpl"    $output .=  $stash->get(['field', 0, 'description', 0]);    $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;    };        $output .=  "\n        </select>\n\n        <select name=\"";    #line 0 "template\en\default\search\boolean-charts.html.tmpl"    $output .=  ("type" . $stash->get('chartnum') . "-" . $stash->get('rownum') . "-" . $stash->get('colnum'));    $output .=  "\">";    #line 84 "template\en\default\search\boolean-charts.html.tmpl"        # FOREACH     do {        my ($value, $error, $oldloop);        my $list = $stash->get('types');                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->{'type'} = $value;    $output .=  "\n            <option value=\"";    #line 80 "template\en\default\search\boolean-charts.html.tmpl"    $output .=  $stash->get(['type', 0, 'name', 0]);    $output .=  "\"";    #line 82 "template\en\default\search\boolean-charts.html.tmpl"    if ($stash->get(['type', 0, 'name', 0]) eq $stash->get(['col', 0, 'type', 0])) {    $output .=  ' selected';    }        $output .=  ">";    #line 82 "template\en\default\search\boolean-charts.html.tmpl"    $output .=  $stash->get(['type', 0, 'description', 0]);    $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;    };        $output .=  "\n        </select>\n\n        <input name=\"";    #line 0 "template\en\default\search\boolean-charts.html.tmpl"    $output .=  ("value" . $stash->get('chartnum') . "-" . $stash->get('rownum') . "-" . $stash->get('colnum'));    $output .=  "\" \n               value=\"";    #line 88 "template\en\default\search\boolean-charts.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['col', 0, 'value', 0]);                &$filter($output);    };        $output .=  "\"> \n      </td>\n      ";    #line 107 "template\en\default\search\boolean-charts.html.tmpl"    if (!($stash->get(['loop', 0, 'last', 0]))) {    $output .=  "\n        <td align=\"center\"> \n          Or \n        </td>    \n      </tr>\n      <tr>";    }    else {    $output .=  "\n        <td>";    #line 102 "template\en\default\search\boolean-charts.html.tmpl"    $stash->set('newor', $stash->get('colnum') + 1);        $output .=  "\n          <input type=\"submit\" value=\"Or\" \n                 name=\"cmd-add";    #line 0 "template\en\default\search\boolean-charts.html.tmpl"    $output .=  ($stash->get('chartnum') . "-" . $stash->get('rownum') . "-" . $stash->get('newor'));    $output .=  "\" ";    #line 104 "template\en\default\search\boolean-charts.html.tmpl"    $output .=  $stash->get('jsmagic');    $output .=  ">\n        </td>";    }        $output .=  "\n      ";;                ($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    </tr>\n    ";    #line 133 "template\en\default\search\boolean-charts.html.tmpl"    if (!($stash->get(['loop', 0, 'last', 0]))) {    $output .=  "\n    <tr>\n      <td>And</td>\n    </tr>    ";    }    else {    $output .=  "\n    <tr>\n      <td>";    #line 123 "template\en\default\search\boolean-charts.html.tmpl"    $stash->set('newand', $stash->get('rownum') + 1);        #line 123 "template\en\default\search\boolean-charts.html.tmpl"    $stash->set('newchart', $stash->get('chartnum') + 1);        $output .=  "\n        <input type=\"submit\" value=\"And\" \n               name=\"cmd-add";    #line 0 "template\en\default\search\boolean-charts.html.tmpl"    $output .=  ($stash->get('chartnum') . "-" . $stash->get('newand') . "-0");    $output .=  "\" ";    #line 125 "template\en\default\search\boolean-charts.html.tmpl"    $output .=  $stash->get('jsmagic');    $output .=  "> \n        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n        <input type=\"submit\" value=\"Add another boolean chart\" \n               name=\"cmd-add";    #line 128 "template\en\default\search\boolean-charts.html.tmpl"    $output .=  $stash->get('newchart');    $output .=  "-0-0\" ";    #line 128 "template\en\default\search\boolean-charts.html.tmpl"    $output .=  $stash->get('jsmagic');    $output .=  ">\n        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n      </td>\n    </tr>   ";    }        $output .=  "\n    ";;                ($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  </table>\n  <hr>";;                ($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";        } };        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 + -