?? list.html.tmpl
字號:
$output .= "\n <tr>\n <td> </td>\n <td>\n <label title=\""; #line 152 "template\en\default\flag\list.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['type', 0, 'description', 0]); &$_tt_filter($output); }; $output .= "\"\n for=\"flag_type-"; #line 153 "template\en\default\flag\list.html.tmpl" $output .= $stash->get(['type', 0, 'id', 0]); $output .= "\">"; #line 154 "template\en\default\flag\list.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('no_break') || $context->throw($context->error); # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['type', 0, 'name', 0]); &$_tt_filter($output); }; &$_tt_filter($output); }; $output .= "</label>\n </td>\n <td>\n <select id=\"flag_type-"; #line 157 "template\en\default\flag\list.html.tmpl" $output .= $stash->get(['type', 0, 'id', 0]); $output .= "\" name=\"flag_type-"; #line 157 "template\en\default\flag\list.html.tmpl" $output .= $stash->get(['type', 0, 'id', 0]); $output .= "\" \n title=\""; #line 158 "template\en\default\flag\list.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['type', 0, 'description', 0]); &$_tt_filter($output); }; $output .= "\""; #line 159 "template\en\default\flag\list.html.tmpl" if (!(($stash->get(['type', 0, 'is_requestable', 0]) && $stash->get(['user', 0, 'can_request_flag', [ $stash->get('type') ]])) || $stash->get(['user', 0, 'can_set_flag', [ $stash->get('type') ]]))) { $output .= ('' . " disabled=\"disabled\""); } $output .= "\n onchange=\"toggleRequesteeField(this);\"\n class=\"flag_select\">\n <option value=\"X\"></option>"; #line 165 "template\en\default\flag\list.html.tmpl" if ($stash->get(['type', 0, 'is_requestable', 0]) && $stash->get(['user', 0, 'can_request_flag', [ $stash->get('type') ]])) { $output .= "\n <option value=\"?\">?</option>"; } #line 169 "template\en\default\flag\list.html.tmpl" if ($stash->get(['user', 0, 'can_set_flag', [ $stash->get('type') ]])) { $output .= "\n <option value=\"+\">+</option>\n <option value=\"-\">-</option>"; } $output .= "\n </select>\n </td>"; #line 182 "template\en\default\flag\list.html.tmpl" if ($stash->get('any_flags_requesteeble')) { $output .= "\n <td>"; #line 180 "template\en\default\flag\list.html.tmpl" if ($stash->get(['type', 0, 'is_requestable', 0]) && $stash->get(['type', 0, 'is_requesteeble', 0])) { $output .= "\n <span style=\"white-space: nowrap;\">\n (<input type=\"text\" size=\"30\" maxlength=\"255\"\n id=\"requestee_type-"; #line 177 "template\en\default\flag\list.html.tmpl" $output .= $stash->get(['type', 0, 'id', 0]); $output .= "\" \n name=\"requestee_type-"; #line 178 "template\en\default\flag\list.html.tmpl" $output .= $stash->get(['type', 0, 'id', 0]); $output .= "\">)\n </span>"; } $output .= "\n </td>"; } $output .= "\n </tr>"; } ; ($_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 "; #line 228 "template\en\default\flag\list.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get('flag_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; #line 189 "template\en\default\flag\list.html.tmpl" if (!($stash->get(['type', 0, 'flags', 0]) && $stash->get(['type', 0, 'flags', 0, 'size', 0]) > 0 && $stash->get(['type', 0, 'is_multiplicable', 0]) && $stash->get(['type', 0, 'is_active', 0]))) { ($_tt_value, $_tt_error) = $_tt_list->get_next(); next LOOP; } #line 193 "template\en\default\flag\list.html.tmpl" if (! $stash->get('separator_displayed')) { $output .= "\n <tr><td colspan=\"3\"><hr></td></tr>"; #line 192 "template\en\default\flag\list.html.tmpl" $stash->set('separator_displayed', 1); } $output .= "\n <tr>\n <td colspan=\"2\">\n addl. <label title=\""; #line 196 "template\en\default\flag\list.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['type', 0, 'description', 0]); &$_tt_filter($output); }; $output .= "\"\n for=\"flag_type-"; #line 197 "template\en\default\flag\list.html.tmpl" $output .= $stash->get(['type', 0, 'id', 0]); $output .= "\">"; #line 198 "template\en\default\flag\list.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('no_break') || $context->throw($context->error); # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['type', 0, 'name', 0]); &$_tt_filter($output); }; &$_tt_filter($output); }; $output .= "</label>\n </td>\n <td>\n <select id=\"flag_type-"; #line 201 "template\en\default\flag\list.html.tmpl" $output .= $stash->get(['type', 0, 'id', 0]); $output .= "\" name=\"flag_type-"; #line 201 "template\en\default\flag\list.html.tmpl" $output .= $stash->get(['type', 0, 'id', 0]); $output .= "\" \n title=\""; #line 202 "template\en\default\flag\list.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['type', 0, 'description', 0]); &$_tt_filter($output); }; $output .= "\""; #line 203 "template\en\default\flag\list.html.tmpl" if (!(($stash->get(['type', 0, 'is_requestable', 0]) && $stash->get(['user', 0, 'can_request_flag', [ $stash->get('type') ]])) || $stash->get(['user', 0, 'can_set_flag', [ $stash->get('type') ]]))) { $output .= ('' . " disabled=\"disabled\""); } $output .= "\n onchange=\"toggleRequesteeField(this);\"\n class=\"flag_select\">\n <option value=\"X\"></option>"; #line 209 "template\en\default\flag\list.html.tmpl" if ($stash->get(['type', 0, 'is_requestable', 0]) && $stash->get(['user', 0, 'can_request_flag', [ $stash->get('type') ]])) { $output .= "\n <option value=\"?\">?</option>"; } #line 213 "template\en\default\flag\list.html.tmpl" if ($stash->get(['user', 0, 'can_set_flag', [ $stash->get('type') ]])) { $output .= "\n <option value=\"+\">+</option>\n <option value=\"-\">-</option>"; } $output .= "\n </select>\n </td>"; #line 226 "template\en\default\flag\list.html.tmpl" if ($stash->get('any_flags_requesteeble')) { $output .= "\n <td>"; #line 224 "template\en\default\flag\list.html.tmpl" if ($stash->get(['type', 0, 'is_requestable', 0]) && $stash->get(['type', 0, 'is_requesteeble', 0])) { $output .= "\n <span style=\"white-space: nowrap;\">\n (<input type=\"text\" size=\"30\" maxlength=\"255\"\n id=\"requestee_type-"; #line 221 "template\en\default\flag\list.html.tmpl" $output .= $stash->get(['type', 0, 'id', 0]); $output .= "\" \n name=\"requestee_type-"; #line 222 "template\en\default\flag\list.html.tmpl" $output .= $stash->get(['type', 0, 'id', 0]); $output .= "\">)\n </span>"; } $output .= "\n </td>"; } $output .= "\n </tr>";; ($_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</table>\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
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -