move code up one directory
[atutor.git] / themes / default / admin / users / create.tmpl.php
1 <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
2 <input type="hidden" name="form_password_hidden" value="" />
3 <input type="hidden" name="password_error" value="" />
4
5 <div class="input-form">
6         <div class="row">
7                 <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="login"><?php echo _AT('login_name'); ?></label><br />
8                 <input type="text" name="login" id="login" size="25" value="<?php echo htmlspecialchars($_POST['login']); ?>" />
9         </div>
10
11         <div class="row">
12                 <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="password"><?php echo _AT('password'); ?></label><br />
13                 <input type="password" name="password" id="password" size="25" />
14         </div>
15
16         <div class="row">
17                 <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="password2"><?php echo _AT('confirm_password'); ?></label><br />
18                 <input type="password" name="confirm_password" id="password2" size="25" />
19         </div>
20
21         <div class="row">
22                 <label for="real_name"><?php echo _AT('real_name'); ?></label><br />
23                 <input type="text" name="real_name" id="real_name" size="30" value="<?php echo htmlspecialchars($_POST['real_name']); ?>" />
24         </div>
25
26         <div class="row">
27                 <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="email"><?php echo _AT('email'); ?></label><br />
28                 <input type="text" name="email" id="email" size="30" value="<?php echo htmlspecialchars($_POST['email']); ?>" />
29         </div>
30
31         <div class="row">
32                 <?php echo _AT('privileges'); ?><br />
33                 <input type="checkbox" name="priv_admin" value="1" id="priv_admin" <?php if ($_POST['priv_admin']) { echo 'checked="checked"'; } ?> /><label for="priv_admin"><?php echo _AT('priv_admin_super'); ?></label><br /><br />
34
35         
36                 <?php foreach ($this->keys as $module_name): ?>
37                         <?php $module =& $this->module_list[$module_name]; ?>
38                         <?php if (!($module->getAdminPrivilege() > 1)) { continue; } ?>
39                                 <input type="checkbox" name="privs[]" value="<?php echo $module->getAdminPrivilege(); ?>" id="priv_<?php echo $module->getAdminPrivilege(); ?>" <?php if (query_bit($_POST['privs'], $module->getAdminPrivilege())) { echo 'checked="checked"'; }  ?> /><label for="priv_<?php echo $module->getAdminPrivilege(); ?>"><?php echo $module->getName() ?></label><br />
40                 <?php endforeach; ?>
41         </div>
42
43         <div class="row buttons">
44                 <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" onclick="return encrypt_password();" />
45                 <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
46         </div>
47 </div>
48 </form>