?? form.html.tmpl
字號:
} }; $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/*\n * doOnSelectProduct determines which selection should get updated \n *\n * - selectmode = 0 - init\n * selectmode = 1 - classification selected\n * selectmode = 2 - product selected\n *\n * globals:\n * queryform - string holding the name of the selection form\n */\nfunction doOnSelectProduct(selectmode) {\n var f = document.forms[queryform];\n var milestone = (typeof(f.target_milestone) == \"undefined\" ? \n null : f.target_milestone);\n if (selectmode == 0) {\n // If there is no classification selected, give us a chance to fill\n // the select fields with values from the possibly selected product.\n if (useclassification && f.classification.selectedIndex > -1) {\n selectClassification(f.classification, f.product, f.component, f.version, milestone);\n } else {\n selectProduct(f.product, f.component, f.version, milestone);\n }\n } else if (selectmode == 1) {\n selectClassification(f.classification, f.product, f.component, f.version, milestone);\n } else {\n selectProduct(f.product, f.component, f.version, milestone);\n }\n}\n\n</script>\n\n"; #line 108 "template\en\default\search\form.html.tmpl" $output .= $context->process('global/variables.none.tmpl'); $output .= "\n"; #line 110 "template\en\default\search\form.html.tmpl" $stash->set('query_variants', [ { 'value' => 'allwordssubstr', 'description' => 'contains all of the words/strings' }, { 'value' => 'anywordssubstr', 'description' => 'contains any of the words/strings' }, { 'value' => 'substring', 'description' => 'contains the string' }, { 'value' => 'casesubstring', 'description' => 'contains the string (exact case)' }, { 'value' => 'allwords', 'description' => 'contains all of the words' }, { 'value' => 'anywords', 'description' => 'contains any of the words' }, { 'value' => 'regexp', 'description' => 'matches the regexp' }, { 'value' => 'notregexp', 'description' => 'doesn\'t match the regexp' } ]); $output .= "\n"; #line 120 "template\en\default\search\form.html.tmpl" $output .= $context->process('global/field-descs.none.tmpl'); $output .= "\n\n"; #line 123 "template\en\default\search\form.html.tmpl" $stash->set('thisformat', $stash->get('query_format') ne '' ? $stash->get('query_format') : $stash->get('format')); $output .= "\n<input type=\"hidden\" name=\"query_format\" value=\""; #line 124 "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('thisformat'); &$_tt_filter($output); }; $output .= "\">\n\n"; $output .= "\n\n<table>\n <tr>\n <th align=\"right\">\n <label for=\"short_desc\" accesskey=\"s\"><u>S</u>ummary</label>:\n </th>\n <td>\n <select name=\"short_desc_type\">"; #line 138 "template\en\default\search\form.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get('query_variants'); 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->{'qv'} = $_tt_value; $output .= "\n <option value=\""; #line 136 "template\en\default\search\form.html.tmpl" $output .= $stash->get(['qv', 0, 'value', 0]); $output .= "\""; #line 137 "template\en\default\search\form.html.tmpl" if ($stash->get(['default', 0, 'short_desc_type', 0, 0, 0]) eq $stash->get(['qv', 0, 'value', 0])) { $output .= ' selected'; } $output .= ">"; #line 137 "template\en\default\search\form.html.tmpl" $output .= $stash->get(['qv', 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 </td>\n <td>\n <input name=\"short_desc\" id=\"short_desc\" size=\"40\"\n value=\""; #line 143 "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, 'short_desc', 0, 0, 0]); &$_tt_filter($output); }; $output .= "\">\n <script type=\"text/javascript\"> <!--\n document.forms[queryform].short_desc.focus(); \n // -->\n </script>\n </td>\n <td>"; #line 153 "template\en\default\search\form.html.tmpl" if ($stash->get('button_name')) { $output .= "\n <input type=\"submit\" id=\""; #line 151 "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(['button_name', 0, 'replace', [ ' ', '_' ]]); &$_tt_filter($output); }; $output .= "\"\n value=\""; #line 152 "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('button_name'); &$_tt_filter($output); }; $output .= "\">"; } $output .= "\n </td>\n </tr>\n\n"; $output .= "\n <tr>\n <td colspan=\"4\">\n <table>\n <tr>"; #line 185 "template\en\default\search\form.html.tmpl" if ($stash->get(['Param', [ 'useclassification' ]])) { $output .= "\n <td valign=\"top\">\n <table>\n <tr valign=\"bottom\">\n <th align=\"left\">\n <label for=\"classification\">Classification</label>:\n </th>\n </tr>\n <tr valign=\"top\">\n <td align=\"left\">\n <select name=\"classification\" multiple=\"multiple\" size=\"5\" id=\"classification\"\n onchange=\"doOnSelectProduct(1);\">"; #line 179 "template\en\default\search\form.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get('classification'); 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->{'cat'} = $_tt_value; $output .= "\n <option value=\""; #line 175 "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(['cat', 0, 'name', 0]); &$_tt_filter($output); }; $output .= "\""; #line 176 "template\en\default\search\form.html.tmpl" if ($stash->get(['lsearch', [ $stash->get(['default', 0, 'classification', 0]), $stash->get(['cat', 0, 'name', 0]) ]]) ne -1) { $output .= ' selected'; } $output .= ">"; #line 177 "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(['cat', 0, 'name', 0]); &$_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>\n </tr>\n </table>\n </td>"; } $output .= "\n <td valign=\"top\">\n <table>\n <tr valign=\"bottom\">\n <th align=\"left\">\n <label for=\"product\" accesskey=\"p\"><u>P</u>roduct</label>:\n </th>\n </tr>\n <tr valign=\"top\">\n "; $output .= "\n <td align=\"left\">\n <select name=\"product\" multiple=\"multiple\" size=\"5\" id=\"product\"\n onchange=\"doOnSelectProduct(2);\">"; #line 204 "template\en\default\search\form.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get('product'); 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->{'p'} = $_tt_value; #line 203 "template\en\default\search\form.html.tmpl" if ($stash->get(['p', 0, 'components', 0, 'size', 0])) { $output .= "\n <option value=\""; #line 200 "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(['p', 0, 'name', 0]); &$_tt_filter($output); }; $output .= "\""; #line 201 "template\en\default\search\form.html.tmpl" if ($stash->get(['lsearch', [ $stash->get(['default', 0, 'product', 0]), $stash->get(['p', 0, 'name', 0]) ]]) ne -1) { $output .= ' selected'; } $output .= ">"; #line 202 "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(['p', 0, 'name', 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 </td>\n </tr>\n </table>\n </td>\n <td valign=\"top\">\n <table>\n <tr valign=\"bottom\">\n <th align=\"left\">\n <label for=\"component\" accesskey=\"m\"><a href=\"describecomponents.cgi\">Co<u>m</u>ponent</a></label>:\n </th>\n </tr>\n <tr valign=\"top\">\n "; $output .= "\n <td align=\"left\">\n <select name=\"component\" id=\"component\"\n multiple=\"multiple\" size=\"5\">"; #line 227 "template\en\default\search\form.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get('component_'); 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->{'c'} = $_tt_value; $output .= "\n <option value=\""; #line 224 "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('c'); &$_tt_filter($output); }; $output .= "\""; #line 225 "template\en\default\search\form.html.tmpl" if ($stash->get(['lsearch', [ $stash->get(['default', 0, 'component', 0]), $stash->get('c') ]]) ne -1) { $output .= ' selected'; } $output .= ">"; #line 226 "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('c'); &$_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 </td>\n </tr>\n </table>\n </td>\n <td valign=\"top\">\n <table>\n <tr valign=\"bottom\">\n <th align=\"left\">\n <label for=\"version\">Version</label>:\n </th>\n </tr>\n <tr valign=\"top\">"; #line 241 "template\en\default\search\form.html.tmpl" $output .= $context->process('select', { 'sel' => { 'name' => 'version', 'size' => 5 } }); $output .= "\n </tr>\n </table>\n </td>"; #line 260 "template\en\default\search\form.html.tmpl" if ($stash->get(['Param', [ 'usetargetmilestone' ]])) { $output .= "\n <td valign=\"top\">\n <table>\n <tr valign=\"bottom\">\n <th align=\"left\">\n <label for=\"target_milestone\">Target</label>:\n </th>\n </tr>\n <tr valign=\"top\">"; #line 255 "template\en\default\search\form.html.tmpl" $output .= $context->process('select', { 'sel' => { 'name' => 'target_milestone', 'size' => 5 } }); $output .= "\n </tr>\n </table>\n </td>"; } $output .= "\n </tr>\n </table>\n </td>\n </tr>\n\n"; $output .= "\n"; #line 296 "template\en\default\search\form.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = [ { 'name' => 'long_desc', 'description' => 'A <u>C</u>omment', 'accesskey' => 'c' }, { 'name' => 'bug_file_loc', 'description' => 'The <u>U</u>RL', 'accesskey' => 'u' }, { 'name' => 'status_whiteboard', 'description' => '<u>W</u>hiteboard', 'accesskey' => 'w' } ]; 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"; #line 295 "template\en\default\search\form.html.tmpl" if (!($stash->get(['field', 0, 'name', 0]) eq 'status_whiteboard' && ! $stash->get(['Param', [ 'usestatuswhiteboard' ]]))) { $output .= "\n <tr>\n <th align=\"right\">\n <label for=\"";
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -