📄 userselect.html.tmpl
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1209501776', 'name' => 'global/userselect.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"; #line 65 "template\en\default\global\userselect.html.tmpl" if ($stash->get(['Param', [ 'usemenuforusers' ]])) { $output .= "\n<select name=\""; #line 33 "template\en\default\global\userselect.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 34 "template\en\default\global\userselect.html.tmpl" if ($stash->get('id')) { $output .= " id=\""; #line 34 "template\en\default\global\userselect.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('id'); &$_tt_filter($output); }; $output .= "\" "; } #line 35 "template\en\default\global\userselect.html.tmpl" if ($stash->get('onchange')) { $output .= " onchange=\""; #line 35 "template\en\default\global\userselect.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('onchange'); &$_tt_filter($output); }; $output .= "\" "; } #line 36 "template\en\default\global\userselect.html.tmpl" if ($stash->get('disabled')) { $output .= " disabled=\""; #line 36 "template\en\default\global\userselect.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('disabled'); &$_tt_filter($output); }; $output .= "\" "; } #line 37 "template\en\default\global\userselect.html.tmpl" if ($stash->get('accesskey')) { $output .= " accesskey=\""; #line 37 "template\en\default\global\userselect.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('accesskey'); &$_tt_filter($output); }; $output .= "\" "; } #line 38 "template\en\default\global\userselect.html.tmpl" if ($stash->get('multiple')) { $output .= " multiple=\"multiple\" size=\""; #line 38 "template\en\default\global\userselect.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('multiple'); &$_tt_filter($output); }; $output .= "\" "; } $output .= "\n>"; #line 42 "template\en\default\global\userselect.html.tmpl" if ($stash->get('emptyok')) { $output .= "\n <option value=\"\"></option>"; } #line 43 "template\en\default\global\userselect.html.tmpl" $stash->set('selected', { }); #line 46 "template\en\default\global\userselect.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get(['value', 0, 'split', [ ', ' ]]); 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->{'selected_value'} = $_tt_value; #line 45 "template\en\default\global\userselect.html.tmpl" $stash->set(['selected', 0, $stash->get('selected_value'), 0], 1); ; ($_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; }; #line 53 "template\en\default\global\userselect.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get(['user', 0, 'get_userlist', 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->{'tmpuser'} = $_tt_value; #line 52 "template\en\default\global\userselect.html.tmpl" if ($stash->get(['tmpuser', 0, 'visible', 0]) || $stash->get(['selected', 0, $stash->get(['tmpuser', 0, 'login', 0]), 0]) eq 1) { $output .= "\n <option value=\""; #line 49 "template\en\default\global\userselect.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['tmpuser', 0, 'login', 0]); &$_tt_filter($output); }; $output .= "\""; #line 50 "template\en\default\global\userselect.html.tmpl" if ($stash->get(['selected', 0, $stash->get(['tmpuser', 0, 'login', 0]), 0]) eq 1) { $output .= ('' . " selected=\"selected\""); } $output .= "\n >"; #line 51 "template\en\default\global\userselect.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['tmpuser', 0, 'identity', 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>"; } else { $output .= "\n<input\n name=\""; #line 57 "template\en\default\global\userselect.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 value=\""; #line 58 "template\en\default\global\userselect.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('value'); &$_tt_filter($output); }; $output .= "\""; #line 59 "template\en\default\global\userselect.html.tmpl" if ($stash->get('onchange')) { $output .= " onchange=\""; #line 59 "template\en\default\global\userselect.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('onchange'); &$_tt_filter($output); }; $output .= "\" "; } #line 60 "template\en\default\global\userselect.html.tmpl" if ($stash->get('disabled')) { $output .= " disabled=\""; #line 60 "template\en\default\global\userselect.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('disabled'); &$_tt_filter($output); }; $output .= "\" "; } #line 61 "template\en\default\global\userselect.html.tmpl" if ($stash->get('accesskey')) { $output .= " accesskey=\""; #line 61 "template\en\default\global\userselect.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('accesskey'); &$_tt_filter($output); }; $output .= "\" "; } #line 62 "template\en\default\global\userselect.html.tmpl" if ($stash->get('size')) { $output .= " size=\""; #line 62 "template\en\default\global\userselect.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('size'); &$_tt_filter($output); }; $output .= "\" "; } #line 63 "template\en\default\global\userselect.html.tmpl" if ($stash->get('id')) { $output .= " id=\""; #line 63 "template\en\default\global\userselect.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('id'); &$_tt_filter($output); }; $output .= "\" "; } $output .= "\n>"; } $output .= "\n\n\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 + -