1 <h2>Modifier un utilisateur</h2>
4 <li><a href="<?php echo $this->url("admin/users"); ?>">Retour à la liste des utilisateurs</a></li>
5 <li><a href="<?php echo $this->url("admin/users/del", array("id" => $this->out["user"]["login"])); ?>"
7 title="supprimer cet utilisateur"
8 onclick="return confirm('Supprimer cet utilisateur ?')"><img src="<?php echo $this->out_url("icons/del.gif"); ?>"/></a></li>
11 <form name="user_form" action="<?php echo $this->url("admin/users/edit", array("id" => $this->out["user"]["login"])); ?>" method="post">
15 <label for="login">login</label>
16 <div class="form_input">
17 <input type="text" name="login" id="login" value="<?php echo $this->out["user"]["login"]; ?>" disabled="disabled" />
21 <label>rôle</label>
22 <div class="form_input">
24 <?php foreach($this->out["roles"] as $id_role => $role) : if($id_role) : ?>
26 <input type="checkbox" name="role_<?php echo $id_role; ?>"<?php
27 echo in_array($id_role, $this->out["user"]["roles"]) ? " checked" : "";
29 <?php echo $role["intitule"]; ?>
31 <?php endif; endforeach; ?>
36 <label for="email">email</label>
37 <div class="form_input">
38 <input type="text" name="email" id="email" value="<?php echo $this->out["user"]["email"]; ?>" />
42 <label for="change_password">changer le mot de passe</label>
43 <div class="form_input">
44 <input type="checkbox" name="change_password" id="change_password" <?php echo isset($_POST["change_password"]) && $_POST["change_password"] ? "checked=\"checked\"" : ""; ?>/>
48 <label for="password">mot de passe</label>
49 <div class="form_input">
50 <input type="password" name="password" id="password" />
54 <label for="password_confirm">mot de passe<br />(confirmer)</label>
55 <div class="form_input">
56 <input type="password" name="password_confirm" id="password_confirm" />
60 <div class="form_buttons">
61 <input type="submit" value="Enregistrer" />