📄 form.html.tmpl
字号:
$output .= "\">\n </td>\n </tr>\n</table>\n\n\n </td>";; ($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</table>\n<hr>\n<table>\n <tr>\n <td>\n <select name=\"bugidtype\">\n <option value=\"include\""; #line 758 "template\en\default\search\form.html.tmpl" if ($stash->get(['default', 0, 'bugidtype', 0, 0, 0]) eq 'include') { $output .= ' selected'; } $output .= ">Only include</option>\n <option value=\"exclude\""; #line 759 "template\en\default\search\form.html.tmpl" if ($stash->get(['default', 0, 'bugidtype', 0, 0, 0]) eq 'exclude') { $output .= ' selected'; } $output .= ">Exclude</option>\n </select>"; #line 762 "template\en\default\search\form.html.tmpl" $output .= $stash->get(['terms', 0, 'bugs', 0]); $output .= " numbered:\n </td>\n <td>\n <input type=\"text\" name=\"bug_id\" value=\""; #line 765 "template\en\default\search\form.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['default', 0, 'bug_id', 0, 0, 0]); &$filter($output); }; $output .= "\" size=\"20\">\n </td>\n </tr>\n <tr>\n <td></td>\n <td>(comma-separated list)</td>\n </tr>"; #line 783 "template\en\default\search\form.html.tmpl" if ($stash->get(['Param', [ 'usevotes' ]])) { $output .= "\n <tr>\n <td align=\"right\">\n Only "; #line 776 "template\en\default\search\form.html.tmpl" $output .= $stash->get(['terms', 0, 'bugs', 0]); $output .= " with at least:\n </td>\n <td>\n <input name=\"votes\" size=\"3\" value=\""; #line 779 "template\en\default\search\form.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['default', 0, 'votes', 0, 0, 0]); &$filter($output); }; $output .= "\"> votes\n </td>\n </tr>"; } $output .= "\n</table>\n\n\n </fieldset>\n </td>\n \n"; $output .= "\n\n <td valign=\"top\">\n <fieldset>\n <legend><strong>"; #line 794 "template\en\default\search\form.html.tmpl" $output .= $stash->get(['terms', 0, 'Bug', 0]); $output .= " Changes</strong></legend>\n\n\n<dl class=\"bug_changes\">\n <dt>Only "; #line 798 "template\en\default\search\form.html.tmpl" $output .= $stash->get(['terms', 0, 'bugs', 0]); $output .= " changed between:</dt>\n <dd>\n <input name=\"chfieldfrom\" size=\"10\" value=\""; #line 800 "template\en\default\search\form.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['default', 0, 'chfieldfrom', 0, 0, 0]); &$filter($output); }; $output .= "\">\n and <input name=\"chfieldto\" size=\"10\" value=\""; #line 801 "template\en\default\search\form.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['default', 0, 'chfieldto', 0, 0, 0]); &$filter($output); }; $output .= "\">\n <br>(YYYY-MM-DD or relative dates)\n </dd>\n <dt>where one or more of the following changed:</dt>\n <dd>\n <select name=\"chfield\" multiple=\"multiple\" size=\"4\">"; #line 815 "template\en\default\search\form.html.tmpl" # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get('chfield'); 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 809 "template\en\default\search\form.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('field'); &$filter($output); }; $output .= "\""; #line 811 "template\en\default\search\form.html.tmpl" if ($stash->get(['lsearch', [ $stash->get(['default', 0, 'chfield', 0]), $stash->get('field') ]]) ne -1) { $output .= ' selected'; } $output .= ">"; #line 813 "template\en\default\search\form.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= ($stash->get(['field_descs', 0, $stash->get('field'), 0]) || $stash->get('field')); &$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; }; $output .= "\n </select>\n </dd>\n <dt>and the new value was:</dt>\n <dd>\n <input name=\"chfieldvalue\" size=\"20\" value=\""; #line 820 "template\en\default\search\form.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['default', 0, 'chfieldvalue', 0, 0, 0]); &$filter($output); }; $output .= "\">\n </dd>\n</dl>\n\n </fieldset>\n </td>\n </tr>\n</table>\n\n"; $output .= "\n"; $output .= "\n"; $output .= "\n"; $output .= "\n"; } }; if ($@) { $error = $context->catch($@, \$output); die $error unless $error->type eq 'return'; } return $output; }, DEFBLOCKS => { 'select' => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $error; eval { BLOCK: { $output .= "\n <td align=\"left\">\n <label for=\""; #line 836 "template\en\default\search\form.html.tmpl" $output .= $stash->get(['sel', 0, 'name', 0]); $output .= "\" accesskey=\""; #line 836 "template\en\default\search\form.html.tmpl" $output .= $stash->get(['sel', 0, 'accesskey', 0]); $output .= "\">\n <select name=\""; #line 837 "template\en\default\search\form.html.tmpl" $output .= $stash->get(['sel', 0, 'name', 0]); $output .= "\" id=\""; #line 837 "template\en\default\search\form.html.tmpl" $output .= $stash->get(['sel', 0, 'name', 0]); $output .= "\"\n multiple=\"multiple\" size=\""; #line 838 "template\en\default\search\form.html.tmpl" $output .= $stash->get(['sel', 0, 'size', 0]); $output .= "\">"; #line 847 "template\en\default\search\form.html.tmpl" # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get($stash->get(['sel', 0, 'name', 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->{'name'} = $value; $output .= "\n <option value=\""; #line 841 "template\en\default\search\form.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('name'); &$filter($output); }; $output .= "\""; #line 843 "template\en\default\search\form.html.tmpl" if ($stash->get(['lsearch', [ $stash->get(['default', 0, $stash->get(['sel', 0, 'name', 0]), 0]), $stash->get('name') ]]) ne -1) { $output .= ' selected'; } $output .= ">"; #line 845 "template\en\default\search\form.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('name'); &$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; }; $output .= "\n </select>\n </label>\n </td>"; } }; if ($@) { $error = $context->catch($@, \$output); die $error unless $error->type eq 'return'; } return $output; }, },});
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -