1 <h2>Les utilisateurs</h2>
4 <li><a class="add" href="<?php echo $this->url("admin/users/add"); ?>">Nouvel utilisateur</a></li>
9 $users_params = array();
10 if(isset($_GET[$this->param("role")])) $users_params["role"] = $_GET[$this->param("role")];
14 <li>Afficher les utilisateurs pour</li>
16 <select onchange="document.location=this.options[this.selectedIndex].value;">
17 <option value="<?php echo $this->url("admin/users", $users_params); ?>"<?php echo (isset($_GET[$this->param("alpha")]) && $_GET[$this->param("alpha")]) ? "" : " selected=\"selected\""; ?>>Tous les logins</option>
18 <?php for($i = 65; $i <= 90; $i++) : $users_params["alpha"] = chr($i); ?>
19 <option value="<?php echo $this->url("admin/users", $users_params); ?>"<?php echo (isset($_GET[$this->param("alpha")]) && ($_GET[$this->param("alpha")] == chr($i))) ? " selected=\"selected\"" : ""; ?>><?php echo chr($i); ?></option>
25 if($this->out["roles"]) :
26 if(isset($_GET[$this->param("alpha")])) $users_params["alpha"] = $_GET[$this->param("alpha")];
27 else unset($users_params["alpha"]);
28 unset($users_params["role"]);
32 <select onchange="document.location=this.options[this.selectedIndex].value;">
33 <option value="<?php echo $this->url("admin/users", $users_params); ?>"<?php echo (isset($_GET[$this->param("role")]) && $_GET[$this->param("role")]) ? "" : " selected=\"selected\""; ?>>Tous les roles</option>
34 <?php foreach($this->out["roles"] as $role) : if($role["id"]) : $users_params["role"] = $role["id"]; ?>
35 <option value="<?php echo $this->url("admin/users", $users_params); ?>"<?php echo (isset($_GET[$this->param("role")]) && ($_GET[$this->param("role")] == $role["id"])) ? " selected=\"selected\"" : ""; ?>><?php echo $role["intitule"]; ?></option>
36 <?php endif; endforeach; ?>
42 <?php $items = "users"; $legend = "utilisateurs"; require $this->out_file("views/navig.php"); ?>
44 <?php if($this->out["users"]["list"]) : ?>
51 <th align="center" colspan="2">actions</th>
53 <?php foreach($this->out["users"]["list"] as $id_user => $user) : ?>
55 <td><?php echo $user["login"]; ?></td>
56 <td><a href="mailto:<?php echo $user["email"]; ?>"><?php echo $user["email"]; ?></a></td>
61 foreach($user["roles"] as $id_role) $role .= ($role ? ", " : "").$this->out["roles"][$id_role]["intitule"];
67 <a href="<?php echo $this->url("admin/users/edit", array("id" => $user["login"])); ?>"
69 title="modifier cet utilisateur"><img src="<?php echo $this->out_url("icons/edit.gif"); ?>" /></a>
72 <a href="<?php echo $this->url("admin/users/del", array("id" => $user["login"])); ?>"
74 title="supprimer cet utilisateur"
75 onclick="return confirm('Supprimer cet utilisateur ?')"><img src="<?php echo $this->out_url("icons/del.gif"); ?>"/></a>
83 <p>Aucun utilisateur pour le moment...</p>