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

📄 form.html.tmpl

📁 buzilla软件
💻 TMPL
📖 第 1 页 / 共 4 页
字号:
    $output .=  "\n      </select>\n    </td>\n  </tr>\n  <tr>\n    <td>\n      <input name=\"email";    #line 528 "template\en\default\search\form.html.tmpl"    $output .=  $stash->get('n');    $output .=  "\" size=\"25\" value=\"";    #line 528 "template\en\default\search\form.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['default', 0, 'email', 0, $stash->get('n'), 0]);                &$_tt_filter($output);    };        $output .=  "\">\n    </td>\n  </tr>\n</table>\n\n\n    </td>";;                ($_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</table>\n<hr>\n<table>\n  <tr>\n    <td>\n      <select name=\"bugidtype\">\n        <option value=\"include\"";    #line 543 "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 544 "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>\n      <label for=\"bug_id\">";    #line 546 "template\en\default\search\form.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bugs', 0]);    $output .=  " numbered</label>:\n    </td>\n    <td>\n      <input type=\"text\" name=\"bug_id\" id=\"bug_id\"\n             value=\"";    #line 550 "template\en\default\search\form.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['default', 0, 'bug_id', 0, 0, 0]);                &$_tt_filter($output);    };        $output .=  "\" size=\"20\">\n    </td>\n  </tr>\n  <tr>\n    <td></td>\n    <td>(comma-separated list)</td>\n  </tr>";    #line 568 "template\en\default\search\form.html.tmpl"    if ($stash->get(['Param', [ 'usevotes' ]])) {    $output .=  "\n    <tr>\n      <td align=\"right\">\n        <label for=\"votes\">Only ";    #line 560 "template\en\default\search\form.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bugs', 0]);    $output .=  " with at least</label>:\n      </td>\n      <td>\n        <input name=\"votes\" id=\"votes\" size=\"3\"\n               value=\"";    #line 564 "template\en\default\search\form.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['default', 0, 'votes', 0, 0, 0]);                &$_tt_filter($output);    };        $output .=  "\">\n        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 579 "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>\n    <label for=\"chfieldfrom\">Only ";    #line 584 "template\en\default\search\form.html.tmpl"    $output .=  $stash->get(['terms', 0, 'bugs', 0]);    $output .=  " changed between</label>:\n  </dt>\n  <dd>\n    <input name=\"chfieldfrom\" id=\"chfieldfrom\"\n           size=\"10\" value=\"";    #line 588 "template\en\default\search\form.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['default', 0, 'chfieldfrom', 0, 0, 0]);                &$_tt_filter($output);    };        $output .=  "\">\n    and <input name=\"chfieldto\" size=\"10\" value=\"";    #line 589 "template\en\default\search\form.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['default', 0, 'chfieldto', 0, 0, 0]);                &$_tt_filter($output);    };        $output .=  "\">\n    <br>(YYYY-MM-DD or relative dates)\n  </dd>\n  <dt>\n    <label for=\"chfield\">where one or more of the following changed</label>:\n  </dt>\n  <dd>\n    ";    #line 597 "template\en\default\search\form.html.tmpl"    $stash->set('chfields', [ ]);        #line 600 "template\en\default\search\form.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get('chfield');                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;    #line 599 "template\en\default\search\form.html.tmpl"    $output .=  $stash->get(['chfields', 0, 'push', [ { 'value' => $stash->get('field'), 'desc' => ($stash->get(['field_descs', 0, $stash->get('field'), 0]) || $stash->get('field'))  } ]]);;                ($_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\n    <select name=\"chfield\" id=\"chfield\" multiple=\"multiple\" size=\"4\">";    #line 607 "template\en\default\search\form.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get(['chfields', 0, 'sort', [ 'desc' ]]);                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 604 "template\en\default\search\form.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['field', 0, 'value', 0]);                &$_tt_filter($output);    };        $output .=  "\"";    #line 605 "template\en\default\search\form.html.tmpl"    if ($stash->get(['lsearch', [ $stash->get(['default', 0, 'chfield', 0]), $stash->get(['field', 0, 'value', 0]) ]]) ne -1) {    $output .=  ' selected';    }        $output .=  ">";    #line 606 "template\en\default\search\form.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['field', 0, 'desc', 0]);                &$_tt_filter($output);    };        $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  </dd>\n  <dt>and <label for=\"chfieldvalue\">the new value was</label>:</dt>\n  <dd>\n    <input name=\"chfieldvalue\" id=\"chfieldvalue\"\n           size=\"20\" value=\"";    #line 613 "template\en\default\search\form.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['default', 0, 'chfieldvalue', 0, 0, 0]);                &$_tt_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 ($@) {            $_tt_error = $context->catch($@, \$output);            die $_tt_error unless $_tt_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 $_tt_error;                        eval { BLOCK: {        $output .=  "\n  <td align=\"left\">\n    <select name=\"";        #line 628 "template\en\default\search\form.html.tmpl"        $output .=  $stash->get(['sel', 0, 'name', 0]);        $output .=  "\" id=\"";        #line 628 "template\en\default\search\form.html.tmpl"        $output .=  $stash->get(['sel', 0, 'name', 0]);        $output .=  "\"\n            multiple=\"multiple\" size=\"";        #line 629 "template\en\default\search\form.html.tmpl"        $output .=  $stash->get(['sel', 0, 'size', 0]);        $output .=  "\">";        #line 641 "template\en\default\search\form.html.tmpl"                # FOREACH         do {            my ($_tt_value, $_tt_error, $_tt_oldloop);            my $_tt_list = $stash->get($stash->get(['sel', 0, 'name', 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->{'name'} = $_tt_value;        $output .=  "\n        <option value=\"";        #line 631 "template\en\default\search\form.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $_tt_filter = $context->filter('html')                      || $context->throw($context->error);                $output .=  $stash->get('name');                        &$_tt_filter($output);        };                $output .=  "\"";        #line 632 "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 639 "template\en\default\search\form.html.tmpl"        if ($stash->get(['sel', 0, 'name', 0]) eq 'bug_status') {        #line 634 "template\en\default\search\form.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $_tt_filter = $context->filter('html')                      || $context->throw($context->error);                $output .=  $stash->get(['status_descs', 0, $stash->get('name'), 0]);                        &$_tt_filter($output);        };                }        elsif ($stash->get(['sel', 0, 'name', 0]) eq 'resolution') {        #line 636 "template\en\default\search\form.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $_tt_filter = $context->filter('html')                      || $context->throw($context->error);                $output .=  $stash->get(['get_resolution', [ $stash->get('name') ]]);                        &$_tt_filter($output);        };                }        else {        #line 638 "template\en\default\search\form.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $_tt_filter = $context->filter('html')                      || $context->throw($context->error);                $output .=  $stash->get('name');                        &$_tt_filter($output);        };                }                $output .=  "\n        </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  </td>";            } };            if ($@) {                $_tt_error = $context->catch($@, \$output);                die $_tt_error unless $_tt_error->type eq 'return';            }                    return $output;        },    },});

⌨️ 快捷键说明

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