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

📄 knob.html.tmpl

📁 buzilla软件
💻 TMPL
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({    METADATA => {        'modtime' => '1185143120',        'name' => 'search/knob.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\n";    $output .=  "\n        \n        ";    #line 33 "template\en\default\search\knob.html.tmpl"    $output .=  $context->process('global/variables.none.tmpl');    $output .=  "\n\n";    #line 0 "template\en\default\search\knob.html.tmpl"    $stash->set('ordersdesc', { 'Reuse same sort as last time' => 'Reuse same sort as last time', 'Bug Number' => ($stash->get(['terms', 0, 'Bug', 0]) . " Number"), 'Importance' => 'Importance', 'Assignee' => 'Assignee', 'Last Changed' => 'Last Changed'  });        $output .=  "\n\n<input type=\"hidden\" name=\"cmdtype\" value=\"doit\">\n\n<p>\n  <label for=\"order\">Sort results by</label>:\n  <select name=\"order\" id=\"order\">";    #line 52 "template\en\default\search\knob.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get('orders');                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->{'order'} = $_tt_value;    $output .=  "\n    <option value=\"";    #line 49 "template\en\default\search\knob.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('order');                &$_tt_filter($output);    };        $output .=  "\"";    #line 50 "template\en\default\search\knob.html.tmpl"    if ($stash->get(['default', 0, 'order', 0, 0, 0]) eq $stash->get('order')) {    $output .=  ' selected';    }        $output .=  ">";    #line 51 "template\en\default\search\knob.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['ordersdesc', 0, $stash->get('order'), 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</p>\n\n<p>  \n  <input type=\"submit\" id=\"";    #line 57 "template\en\default\search\knob.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('button_name');                &$_tt_filter($output);    };        $output .=  "\"\n         value=\"";    #line 58 "template\en\default\search\knob.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('button_name');                &$_tt_filter($output);    };        $output .=  "\">";    #line 65 "template\en\default\search\knob.html.tmpl"    if ($stash->get('known_name')) {    $output .=  "\n    ";    $output .=  "\n    <input type=\"hidden\" name=\"known_name\" value=\"";    #line 61 "template\en\default\search\knob.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('known_name');                &$_tt_filter($output);    };        $output .=  "\">\n\n    ";    $output .=  "\n    <input type=\"hidden\" name=\"query_based_on\" value=\"";    #line 64 "template\en\default\search\knob.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('known_name');                &$_tt_filter($output);    };        $output .=  "\">";    }        $output .=  "\n</p>\n\n<p>\n  &nbsp;&nbsp;&nbsp;\n  <input type=\"checkbox\" id=\"remasdefault\"\n         name=\"remtype\" value=\"asdefault\">\n  <label for=\"remasdefault\">\n    and remember these as my default search options\n  </label>\n</p>\n        ";    #line 82 "template\en\default\search\knob.html.tmpl"    if ($stash->get('userdefaultquery')) {    $output .=  "\n  <p>\n    <a href=\"query.cgi?nukedefaultquery=1\">\n      Set my default search back to the system default</a>.\n  </p>";    }        $output .=  "\n";        } };        if ($@) {            $_tt_error = $context->catch($@, \$output);            die $_tt_error unless $_tt_error->type eq 'return';        }            return $output;    },    DEFBLOCKS => {    },});

⌨️ 快捷键说明

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