📄 edit.html.tmpl
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1161337986', 'name' => 'admin/users/edit.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 28 "template\en\default\admin\users\edit.html.tmpl" # CAPTURE $stash->set('title', do { my $output = ''; $output .= "Edit user "; #line 28 "template\en\default\admin\users\edit.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['otheruser', 0, 'identity', 0]); &$_tt_filter($output); }; $output; }); $output .= "\n"; #line 30 "template\en\default\admin\users\edit.html.tmpl" $output .= $context->process('global/header.html.tmpl', { 'title' => $stash->get('title'), 'message' => $stash->get('message'), 'style_urls' => [ 'skins/standard/editusers.css' ] }); $output .= "\n"; #line 36 "template\en\default\admin\users\edit.html.tmpl" $output .= $context->process('admin/users/listselectvars.html.tmpl', { 'listselectionvalues' => $stash->get('listselectionvalues') }); $output .= "\n\n<form method=\"post\" action=\"editusers.cgi\">\n<table class=\"main\">"; #line 42 "template\en\default\admin\users\edit.html.tmpl" $output .= $context->process('admin/users/userdata.html.tmpl', { 'editform' => 1, 'editusers' => $stash->get('editusers'), 'otheruser' => $stash->get('otheruser') }); #line 102 "template\en\default\admin\users\edit.html.tmpl" if ($stash->get(['groups', 0, 'size', 0])) { $output .= "\n <tr>\n <th>Group access:</th>\n <td>\n <table class=\"groups\">\n <tr>"; #line 57 "template\en\default\admin\users\edit.html.tmpl" if ($stash->get('editusers')) { $output .= "\n <th colspan=\"3\">\n Can turn these "; #line 55 "template\en\default\admin\users\edit.html.tmpl" $output .= $stash->get(['terms', 0, 'bits', 0]); $output .= " on for other users\n </th>"; } $output .= "\n </tr>\n <tr>"; #line 62 "template\en\default\admin\users\edit.html.tmpl" if ($stash->get('editusers')) { $output .= "\n <td style=\"text-align: center; font-weight: bold\">|</td>"; } $output .= "\n <th colspan=\"2\">User is a member of these groups</th>\n </tr>"; #line 98 "template\en\default\admin\users\edit.html.tmpl" # FOREACH do { my ($_tt_value, $_tt_error, $_tt_oldloop); my $_tt_list = $stash->get('groups'); 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->{'group'} = $_tt_value; #line 66 "template\en\default\admin\users\edit.html.tmpl" $stash->set('perms', $stash->get(['permissions', 0, $stash->get(['group', 0, 'id', 0]), 0])); $output .= "\n <tr class=\""; #line 67 "template\en\default\admin\users\edit.html.tmpl" if ($stash->get(['perms', 0, 'regexpmember', 0]) || $stash->get(['perms', 0, 'derivedmember', 0])) { $output .= 'in'; } $output .= "direct\">"; #line 78 "template\en\default\admin\users\edit.html.tmpl" if ($stash->get('editusers')) { $output .= "\n <td class=\"checkbox\">"; #line 70 "template\en\default\admin\users\edit.html.tmpl" if ($stash->get(['perms', 0, 'indirectbless', 0])) { $output .= '['; } $output .= "<input type=\"checkbox\"\n name=\"bless_"; #line 72 "template\en\default\admin\users\edit.html.tmpl" $output .= $stash->get(['group', 0, 'id', 0]); $output .= "\"\n value=\"1\""; #line 74 "template\en\default\admin\users\edit.html.tmpl" if ($stash->get(['perms', 0, 'directbless', 0])) { $output .= ' checked="checked"'; } $output .= " />"; #line 75 "template\en\default\admin\users\edit.html.tmpl" if ($stash->get(['perms', 0, 'indirectbless', 0])) { $output .= ']'; } $output .= "<input type=\"hidden\" name=\"oldbless_"; #line 76 "template\en\default\admin\users\edit.html.tmpl" $output .= $stash->get(['group', 0, 'id', 0]); $output .= "\"\n value=\""; #line 77 "template\en\default\admin\users\edit.html.tmpl" $output .= $stash->get(['perms', 0, 'directbless', 0]); $output .= "\" /></td>"; } $output .= "\n <td class=\"checkbox\">"; #line 80 "template\en\default\admin\users\edit.html.tmpl" if ($stash->get(['perms', 0, 'derivedmember', 0])) { $output .= '['; } #line 81 "template\en\default\admin\users\edit.html.tmpl" if ($stash->get(['perms', 0, 'regexpmember', 0])) { $output .= '*'; } $output .= "<input type=\"checkbox\"\n id=\"group_"; #line 83 "template\en\default\admin\users\edit.html.tmpl" $output .= $stash->get(['group', 0, 'id', 0]); $output .= "\"\n name=\"group_"; #line 84 "template\en\default\admin\users\edit.html.tmpl" $output .= $stash->get(['group', 0, 'id', 0]); $output .= "\"\n value=\"1\""; #line 86 "template\en\default\admin\users\edit.html.tmpl" if ($stash->get(['perms', 0, 'directmember', 0])) { $output .= ' checked="checked"'; } $output .= " />"; #line 87 "template\en\default\admin\users\edit.html.tmpl" if ($stash->get(['perms', 0, 'regexpmember', 0])) { $output .= '*'; } #line 88 "template\en\default\admin\users\edit.html.tmpl" if ($stash->get(['perms', 0, 'derivedmember', 0])) { $output .= ']'; } $output .= "<input type=\"hidden\" name=\"oldgroup_"; #line 89 "template\en\default\admin\users\edit.html.tmpl" $output .= $stash->get(['group', 0, 'id', 0]); $output .= "\"\n value=\""; #line 90 "template\en\default\admin\users\edit.html.tmpl" $output .= $stash->get(['perms', 0, 'directmember', 0]); $output .= "\" /></td>\n <td class=\"groupname\">\n <label for=\"group_"; #line 92 "template\en\default\admin\users\edit.html.tmpl" $output .= $stash->get(['group', 0, 'id', 0]); $output .= "\">\n <strong>"; #line 93 "template\en\default\admin\users\edit.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['group', 0, 'name', 0]); &$_tt_filter($output); }; $output .= ":</strong>\n "; #line 94 "template\en\default\admin\users\edit.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html_light') || $context->throw($context->error); $output .= $stash->get(['group', 0, 'description', 0]); &$_tt_filter($output); }; $output .= "\n </label>\n </td>\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 </table>\n </td>\n </tr>"; } $output .= "\n</table>\n\n<p>\n <input type=\"submit\" id=\"update\" value=\"Update\" />\n <input type=\"hidden\" name=\"userid\" value=\""; #line 107 "template\en\default\admin\users\edit.html.tmpl" $output .= $stash->get(['otheruser', 0, 'id', 0]); $output .= "\" />\n <input type=\"hidden\" name=\"action\" value=\"update\" />\n <input type=\"hidden\" name=\"token\" value=\""; #line 109 "template\en\default\admin\users\edit.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('token'); &$_tt_filter($output); }; $output .= "\">"; #line 110 "template\en\default\admin\users\edit.html.tmpl" $output .= $context->include('listselectionhiddenfields'); $output .= "\n\n or <a href=\"editusers.cgi?action=activity&userid="; #line 112 "template\en\default\admin\users\edit.html.tmpl" $output .= $stash->get(['otheruser', 0, 'id', 0]); $output .= "\"\n title=\"View the account log for user '"; #line 114 "template\en\default\admin\users\edit.html.tmpl" # FILTER $output .= do { my $output = ''; my $_tt_filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get(['otheruser', 0, 'login', 0]); &$_tt_filter($output); }; $output .= "'\">View this user's account log</a>\n</p>\n</form>\n<p>\n User is a member of any groups shown with a check or grey bar.\n A grey bar indicates indirect membership, either derived from other\n groups (marked with square brackets) or via regular expression\n (marked with '*').\n</p>"; #line 129 "template\en\default\admin\users\edit.html.tmpl" if ($stash->get('editusers')) { $output .= "\n <p>\n Square brackets around the bless checkbox indicate the ability\n to bless users (grant them membership in the group) as a result\n of membership in another group.\n </p>"; } $output .= "\n"; #line 140 "template\en\default\admin\users\edit.html.tmpl" if ($stash->get(['Param', [ 'allowuserdeletion' ]]) && $stash->get('editusers')) { $output .= "\n <form method=\"post\" action=\"editusers.cgi\">\n <p>\n <input type=\"submit\" id=\"delete\" value=\"Delete User\" />\n <input type=\"hidden\" name=\"action\" value=\"del\" />\n <input type=\"hidden\" name=\"userid\" value=\""; #line 136 "template\en\default\admin\users\edit.html.tmpl" $output .= $stash->get(['otheruser', 0, 'id', 0]); $output .= "\" />"; #line 137 "template\en\default\admin\users\edit.html.tmpl" $output .= $context->include('listselectionhiddenfields'); $output .= "\n </p>\n </form>"; } $output .= "\n\n<p>\n You can also"; #line 149 "template\en\default\admin\users\edit.html.tmpl" if ($stash->get('editusers')) { $output .= "\n <a href=\"editusers.cgi?action=add"; #line 145 "template\en\default\admin\users\edit.html.tmpl" $output .= $context->include('listselectionurlparams'); $output .= "\">add\n a new user</a>"; #line 148 "template\en\default\admin\users\edit.html.tmpl" if ($stash->get('listselectionvalues')) { $output .= ","; } } #line 154 "template\en\default\admin\users\edit.html.tmpl" if ($stash->get(['listselectionvalues', 0, 'matchtype', 0]) ne 'exact') { $output .= "\n go\n <a href=\"editusers.cgi?action=list"; #line 152 "template\en\default\admin\users\edit.html.tmpl" $output .= $context->include('listselectionurlparams'); $output .= "\">back\n to the user list</a>,"; } #line 157 "template\en\default\admin\users\edit.html.tmpl" if ($stash->get('editusers') || $stash->get('listselectionvalues')) { $output .= "\n or"; } $output .= "\n <a href=\"editusers.cgi\">find other users</a>.\n</p>\n"; #line 161 "template\en\default\admin\users\edit.html.tmpl" $output .= $context->process('global/footer.html.tmpl'); $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 + -