32 require_once(
"../class/config.php");
33 include_once(
"head.php");
35 if (!$admin->enabled) {
36 __(
"This page is restricted to authorized staff");
41 "canpass" => array (
"request",
"integer", 1),
42 "login" => array (
"request",
"string", null),
43 "pass" => array (
"request",
"string", null),
44 "passconf" => array (
"request",
"string", null),
45 "notes" => array (
"request",
"string", null),
46 "nom" => array (
"request",
"string", null),
47 "prenom" => array (
"request",
"string", null),
48 "nmail" => array (
"request",
"string", null),
49 "create_dom" => array (
"request",
"integer", 0),
54 <h3><?php
__(
"New AlternC account"); ?></h3>
59 echo
"<p class=\"alert alert-danger\">$error</p>";
62 <form method=
"post" action=
"adm_doadd.php" id=
"main" name=
"main">
64 <tr><th><label
for=
"login"><?php
__(
"Username"); ?></label></th><td>
65 <input type=
"text" class=
"int" name=
"login" id=
"login" value=
"<?php ehe($login); ?>" size=
"20" maxlength=
"16" />
68 <th><label
for=
"pass"><?php
__(
"Initial password"); ?></label></th>
72 <th><label
for=
"passconf"><?php
__(
"Confirm password"); ?></label></th>
73 <td><input type=
"password" id=
"passconf" name=
"passconf" class=
"int" value=
"<?php ehe($passconf); ?>" size=
"20" maxlength=
"64" /></td>
76 <th><label><?php
__(
"Can he change its password"); ?></label></th>
78 <input type=
"radio" class=
"inc" id=
"canpass0" name=
"canpass" value=
"0"<?php
cbox($canpass==0); ?>/><label
for=
"canpass0"><?php
__(
"No"); ?></label><br />
79 <input type=
"radio" class=
"inc" id=
"canpass1" name=
"canpass" value=
"1"<?php
cbox($canpass==1); ?>/><label
for=
"canpass1"><?php
__(
"Yes"); ?></label><br />
83 <th><label
for=
"notes"><?php
__(
"Notes"); ?></label></th>
84 <td><textarea name=
"notes" id=
"notes" class=
"int" cols=
"32" rows=
"5"><?php
ehe($notes); ?></textarea></td>
87 <th><label
for=
"nom"><?php echo _(
"Surname").
"</label> / <label for=\"prenom\">"._(
"First Name"); ?></label></th>
88 <td><input
class=
"int" type=
"text" id=
"nom" name=
"nom" value=
"<?php ehe($nom); ?>" size=
"16" maxlength=
"128" /> / <input type=
"text" name=
"prenom" id=
"prenom" value=
"<?php ehe($prenom); ?>" class=
"int" size=
"16" maxlength=
"128" /></td>
91 <th><label
for=
"nmail"><?php
__(
"Email address"); ?></label></th>
92 <td><input type=
"text" name=
"nmail" id=
"nmail" class=
"int" value=
"<?php ehe($nmail); ?>" size=
"30" maxlength=
"128" /></td>
95 <th><label
for=
"type"><?php
__(
"Account type"); ?></label></th>
96 <td><select name=
"type" id=
"type" class=
"inl">
98 eoption($quota->listtype(),
'default',
true);
105 __(
"Wich database server for this user ?");
107 echo
"<i>"._(
"Warning: you can't change it after the creation of the user.").
"</i>";
111 echo
"<select name='db_server_id' id='db_server_id' >";
112 foreach ($mysql->list_db_servers() as $ldb ) {
113 echo
"<option value='".$ldb[
'id'].
"'>".$ldb[
'name'].
"</option>";
123 <input type=
"checkbox" name=
"create_dom" value=
"1" class=
"inc" id=
"create_dom" <?php
cbox($create_dom==1); ?>/>
124 <label
for=
"create_dom"><?php printf(_(
"Install the domain"),
""); ?></label>
125 <span
class=
"int" id=
"create_dom_list_pfx">login.</span><select name=
"create_dom_list" class=
"int" id=
"create_dom_list">
127 <option value=
"<?php echo variable_get('hosting_tld'); ?>" selected=
"selected"><?php echo
variable_get(
'hosting_tld'); ?></option>
133 <option value=
"<?php echo $val; ?>" > <?php echo
$val?> </option>
139 <tr
class=
"trbtn"><td colspan=
"2">
140 <input type=
"submit" class=
"inb ok" name=
"submit" value=
"<?php __("Create
this AlternC account
"); ?>" />
141 <input type=
"button" class=
"inb cancel" name=
"cancel" value=
"<?php __("Cancel
"); ?>" onclick=
"document.location='adm_list.php'" />
145 <script type=
"text/javascript">
146 document.forms[
'main'].login.focus();
147 document.forms[
'main'].setAttribute(
'autocomplete',
'off');
150 <?php include_once(
"foot.php"); ?>