?? boolean-charts.html.tmpl
字號(hào):
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1167439508', '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 $_tt_error; eval { BLOCK: { $output .= "\n"; $output .= "\n "; #line 22 "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' => 'anywordssubstr', 'description' => 'contains any of the strings' }, { 'name' => 'allwordssubstr', 'description' => 'contains all of the strings' }, { 'name' => 'nowordssubstr', 'description' => 'contains none 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 <a name=\"chart\">Advanced Searching Using Boolean Charts</a>:\n </strong>\n </p>\n\n"; $output .= "\n"; #line 55 "template\en\default\search\boolean-charts.html.tmpl" $stash->set('jsmagic', ('' . "onclick=\"this.form.action='query.cgi#chart'; this.form.method='POST'; return 1;\"")); $output .= "\n"; #line 135 "template\en\default\search\boolean-charts.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get(['default', 0, 'charts', 0]); 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'} = $_tt_value; #line 58 "template\en\default\search\boolean-charts.html.tmpl" $stash->set('chartnum', $stash->get(['loop', 0, 'count', 0]) - 1); $output .= "\n <table>\n <tr>\n <td>\n <input type=\"checkbox\" id=\"negate"; #line 62 "template\en\default\search\boolean-charts.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('chartnum'); &$_tt_filter($output); }; $output .= "\"\n name=\"negate"; #line 63 "template\en\default\search\boolean-charts.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('chartnum'); &$_tt_filter($output); }; $output .= "\" value=\"1\""; #line 64 "template\en\default\search\boolean-charts.html.tmpl" if ($stash->get(['chart', 0, 'negate', 0])) { $output .= 'checked'; } $output .= ">\n <label for=\"negate"; #line 65 "template\en\default\search\boolean-charts.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('chartnum'); &$_tt_filter($output); }; $output .= "\">\n Not (negate this whole chart)\n </label>\n </td>\n </tr>"; #line 132 "template\en\default\search\boolean-charts.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get(['chart', 0, 'rows', 0]); 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->{'row'} = $_tt_value; #line 71 "template\en\default\search\boolean-charts.html.tmpl" $stash->set('rownum', $stash->get(['loop', 0, 'count', 0]) - 1); $output .= "\n <tr>"; #line 109 "template\en\default\search\boolean-charts.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get('row'); 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->{'col'} = $_tt_value; #line 74 "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 80 "template\en\default\search\boolean-charts.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get('fields'); 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->{'field'} = $_tt_value; $output .= "\n <option value=\""; #line 78 "template\en\default\search\boolean-charts.html.tmpl" $output .= $stash->get(['field', 0, 'name', 0]); $output .= "\""; #line 79 "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 79 "template\en\default\search\boolean-charts.html.tmpl" $output .= $stash->get(['field', 0, 'description', 0]); $output .= "</option>";; ($_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 </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 87 "template\en\default\search\boolean-charts.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get('types'); 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->{'type'} = $_tt_value; $output .= "\n <option value=\""; #line 85 "template\en\default\search\boolean-charts.html.tmpl" $output .= $stash->get(['type', 0, 'name', 0]); $output .= "\""; #line 86 "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 86 "template\en\default\search\boolean-charts.html.tmpl" $output .= $stash->get(['type', 0, 'description', 0]); $output .= "</option>";; ($_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 </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 91 "template\en\default\search\boolean-charts.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['col', 0, 'value', 0]); &$_tt_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\" "; #line 103 "template\en\default\search\boolean-charts.html.tmpl" $output .= $stash->get('jsmagic'); $output .= "\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 .= "\"\n id=\"cmd-add"; #line 0 "template\en\default\search\boolean-charts.html.tmpl" $output .= ($stash->get('chartnum') . "-" . $stash->get('rownum') . "-" . $stash->get('newor')); $output .= "\">\n </td>"; } $output .= "\n ";; ($_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 </tr>\n "; #line 130 "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 119 "template\en\default\search\boolean-charts.html.tmpl" $stash->set('newand', $stash->get('rownum') + 1); #line 119 "template\en\default\search\boolean-charts.html.tmpl" $stash->set('newchart', $stash->get('chartnum') + 1); $output .= "\n <input type=\"submit\" value=\"And\" "; #line 120 "template\en\default\search\boolean-charts.html.tmpl" $output .= $stash->get('jsmagic'); $output .= "\n name=\"cmd-add"; #line 0 "template\en\default\search\boolean-charts.html.tmpl" $output .= ($stash->get('chartnum') . "-" . $stash->get('newand') . "-0"); $output .= "\"\n id=\"cmd-add"; #line 0 "template\en\default\search\boolean-charts.html.tmpl" $output .= ($stash->get('chartnum') . "-" . $stash->get('newand') . "-0"); $output .= "\">\n \n <input type=\"submit\" value=\"Add another boolean chart\" "; #line 124 "template\en\default\search\boolean-charts.html.tmpl" $output .= $stash->get('jsmagic'); $output .= "\n name=\"cmd-add"; #line 125 "template\en\default\search\boolean-charts.html.tmpl" $output .= $stash->get('newchart'); $output .= "-0-0\"\n id=\"cmd-add"; #line 126 "template\en\default\search\boolean-charts.html.tmpl" $output .= $stash->get('newchart'); $output .= "-0-0\">\n \n </td>\n </tr> "; } $output .= "\n ";; ($_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 </table>\n <hr>";; ($_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"; } }; if ($@) { $_tt_error = $context->catch($@, \$output); die $_tt_error unless $_tt_error->type eq 'return'; } return $output; }, DEFBLOCKS => { },});
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -