32 require_once(
"../class/config.php");
33 include_once(
"head.php");
35 if (!$admin->enabled) {
36 __(
"This page is restricted to authorized staff");
41 "uid" => array (
"request",
"integer", 0),
48 __(
"This page is restricted to authorized staff");
52 if (!
$r=$admin->get(
$uid)) {
57 <h3><?php
__(
"Member Edition"); ?></h3>
62 echo
"<p class=\"alert alert-danger\">$error</p>";
65 <form method=
"post" action=
"adm_doedit.php" name=
"main" id=
"main">
68 <th><input type=
"hidden" name=
"uid" value=
"<?php echo $uid ?>" />
69 <?php
__(
"Username"); ?></th>
70 <td><?php echo
$r[
"login"]; ?></td>
73 <th><label><?php
__(
"Account Enabled?"); ?></label></th>
75 <?php
if ($r[
"uid"]==
$mem->user[
"uid"]) { ?>
76 <?php
__(
"You cannot disable your own account."); ?>
78 <input type=
"radio" class=
"inc" id=
"enabled0" name=
"enabled" value=
"0"<?php
cbox($r[
"enabled"]==0); ?> /><label
for=
"enabled0"><?php
__(
"No"); ?></label><br />
79 <input type=
"radio" class=
"inc" id=
"enabled1" name=
"enabled" value=
"1"<?php
cbox($r[
"enabled"]==1); ?> /><label
for=
"enabled1"><?php
__(
"Yes"); ?></label><br />
85 <th><label
for=
"pass"><?php
__(
"Password"); ?></label></th>
89 <th><label
for=
"passconf"><?php
__(
"Confirm password"); ?></label></th>
90 <td><input type=
"password" class=
"int" id=
"passconf" name=
"passconf" value=
"" size=
"20" maxlength=
"64" /></td>
93 <th><label><?php
__(
"Password change allowed?"); ?></label></th>
95 <input type=
"radio" class=
"inc" id=
"canpass0" name=
"canpass" value=
"0"<?php
cbox($r[
"canpass"]==0); ?>/><label
for=
"canpass0"><?php
__(
"No"); ?></label><br />
96 <input type=
"radio" class=
"inc" id=
"canpass1" name=
"canpass" value=
"1"<?php
cbox($r[
"canpass"]==1); ?>/><label
for=
"canpass1"><?php
__(
"Yes"); ?></label><br />
100 <th><label
for=
"notes"><?php
__(
"Notes"); ?></label></th>
101 <td><textarea name=
"notes" id=
"notes" class=
"int" cols=
"32" rows=
"5"><?php
ehe($r[
'notes']); ?></textarea></td>
104 <th><label
for=
"nom"><?php echo _(
"Surname").
"</label> / <label for=\"prenom\">"._(
"First Name"); ?></label></th>
105 <td><input type=
"text" class=
"int" name=
"nom" id=
"nom" value=
"<?php ehe($r["nom
"]); ?>" size=
"20" maxlength=
"128" /> / <input type=
"text" class=
"int" name=
"prenom" id=
"prenom" value=
"<?php ehe($r["prenom
"]); ?>" size=
"20" maxlength=
"128" /></td>
108 <th><label
for=
"nmail"><?php
__(
"Email address"); ?></label></th>
109 <td><input type=
"text" class=
"int" name=
"nmail" id=
"nmail" value=
"<?php ehe($r["mail
"]); ?>" size=
"30" maxlength=
"128" /></td>
112 <th><label
for=
"type"><?php
__(
"Account type"); ?></label></th>
113 <td><select name=
"type" id=
"type" class=
"inl">
115 eoption($quota->listtype(), $r[
'type'],
true);
116 ?></select> <input type=
"checkbox" name=
"reset_quotas" id=
"reset_quotas" class=
"inc" /><label
for=
"reset_quotas"><?php
__(
"Reset quotas to default?") ?></label></td>
119 <th><label
for=
"duration"><?php
__(
"Period"); ?></label></th>
120 <td><?php echo
duration_list(
'duration', $r[
'duration']) ?></td>
122 <tr
class=
"trbtn"><td colspan=
"2">
123 <input type=
"submit" class=
"inb" name=
"submit" value=
"<?php __("Edit
this account
"); ?>" />
124 <input type=
"button" class=
"inb" name=
"cancel" value=
"<?php __("Cancel
"); ?>" onclick=
"document.location='adm_list.php'" />
132 <?php
if($r[
'duration']) { ?>
133 <form method=
"post" action=
"adm_dorenew.php">
134 <input type=
"hidden" name=
"uid" value=
"<?php echo $uid ?>" />
135 <table border=
"1" cellspacing=
"0" cellpadding=
"4" class=
"tedit">
137 <th><label
for=
"periods"><?php
__(
"Renew for") ?></label></th>
138 <td><input name=
"periods" id=
"periods" type=
"text" size=
"2" value=
"1"/><?php echo
' ' . _(
'period(s)') ?></td>
141 <td colspan=
"2" align=
"center"><input type=
"submit" class=
"inb" name=
"submit" value=
"<?php __("Renew
"); ?>" />
150 if (
$mem->user[
"uid"]==2000 && $r[
"uid"]!=2000) {
153 <b><?php
__(
"This account is a super-admin account"); ?></b>
156 <?php
if ($admin->onesu()) {
157 __(
"There is only one administrator account, you cannot turn this account back to normal");
160 <span
class=
"ina"><a href=
"adm_donosu.php?uid=<?php echo $r["uid
"]; ?>"><?php
__(
"Turn this account back to normal"); ?></a></span>
163 <span
class=
"ina"><a href=
"adm_dosu.php?uid=<?php echo $r["uid
"]; ?>"><?php
__(
"Make this account a super admin one"); ?></a></span>
169 if (
$c=$admin->get($r[
"creator"])) {
170 printf(_(
"Account created by %s"),
$c[
"login"]);
174 <script type=
"text/javascript">
175 document.forms[
'main'].pass.focus();
176 document.forms[
'main'].setAttribute(
'autocomplete',
'off');
178 <?php include_once(
"foot.php"); ?>