[calc] $CGI->{no_dbmenu} = 1; $CGI->{access_menu} = 1; return; [/calc] @_UI_STD_INIT_@ [if !cgi user_id] [error set="[L]Please select an user.[/L]" name=username] [bounce page="__UI_BASE__/access"] [/if] [seti page_title][L]Administrator Edit[/L]: [cgi user_id][/seti] [seti page_banner][L]Administrator Edit[/L]: [cgi user_id][/seti] [set ui_class]Admin[/set] [set page_perm]access=v[/set] [set help_name]admin.edit[/set] [set icon_name]icon_config.gif[/set] [calc] $CGI->{mv_data_table} = $Values->{mv_data_table} = '__UI_ACCESS_TABLE__'; return; [/calc] @_UI_STD_HEAD_@ [if scratch ui_message]

> [scratch ui_message][set ui_message][/set]

[/if] [loop list="[cgi user_id]"] [form-session-id]

[L]Real name[/L] |
[L]User name[/L] | [if cgi ui_hide_key] [loop-code] [else] [if-mm !advanced access=c] [set ui_error][L]No permission to create user.[/L][/set] [bounce page="__UI_BASE__/error"] [/set] [/if-mm] [/else] [/if]
[L]Super-user[/L] |
[L]Groups[/L] | [calc] $Values->{groups} = q{[loop-data __UI_ACCESS_TABLE__ groups]}; $Values->{groups} =~ s/(\w+)/:$1/g; $Values->{groups} =~ s/\s+/\0/g; return; [/calc]

[if-mm advanced access=e] [button text=[L]Ok[/L]] [calc]$CGI->{groups} =~ s/://g; return[/calc] mv_todo=set [/button] [if cgi user_id ne 'NEW'] [button text=[L]Permissions[/L]] mv_todo=set mv_nextpage=__UI_BASE__/access_permissions [/button] [/if] [else] [button text=[L]Back[/L]] mv_todo=back [/button] [/else] [/if-mm] [/loop] @_UI_STD_FOOTER_@