1 {**************************************************************************}
3 {* Copyright (C) 2003-2004 Polytechnique.org *}
4 {* http://opensource.polytechnique.org/ *}
6 {* This program is free software; you can redistribute it and/or modify *}
7 {* it under the terms of the GNU General Public License as published by *}
8 {* the Free Software Foundation; either version 2 of the License, or *}
9 {* (at your option) any later version. *}
11 {* This program is distributed in the hope that it will be useful, *}
12 {* but WITHOUT ANY WARRANTY; without even the implied warranty of *}
13 {* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *}
14 {* GNU General Public License for more details. *}
16 {* You should have received a copy of the GNU General Public License *}
17 {* along with this program; if not, write to the Free Software *}
18 {* Foundation, Inc., *}
19 {* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *}
21 {**************************************************************************}
24 {if $smarty.session.suid}
26 Attention, déjà en SUID !!!
31 Gestion des utilisateurs
35 {if $smarty.post.u_kill_conf}
36 <form method="post" action="{$smarty.server.PHP_SELF}">
38 <input type="hidden" name="user_id" value="{$smarty.request.user_id}" />
39 Confirmer la suppression de {$smarty.request.user_id}
40 <input type="submit" name="u_kill" value="continuer" />
45 <form method="post" action="{$smarty.server.PHP_SELF}">
46 <table class="tinybicol" cellspacing="0" cellpadding="2">
52 {if !$smarty.request.login && !$mr.forlife}
55 Il est possible d'entrer ici n'importe quelle adresse mail : redirection, melix, ou alias.
61 <input type="text" name="login" size="40" maxlength="255" value="{$smarty.request.login|default:$mr.forlife}" />
66 <input type="hidden" name="hashpass" value="" />
67 <input type="submit" name="select" value=" edit " />
68 <input type="submit" name="suid_button" value=" su " />
69 <input type="submit" name="ax_button" value=" AX " />
70 <input type="submit" name="logs_button" value=" logs " />
79 Derniére connexion le <strong>{$lastlogin|date_format:"%d %B %Y, %T"}</strong>
80 depuis <strong>{$host}</strong>
84 <script type="text/javascript">
86 function doEditUser() {
87 document.forms.auth.hashpass.value = MD5(document.forms.edit.password.value);
88 document.forms.auth.password.value = "";
89 document.forms.auth.submit();
92 function del_alias(alias) {
93 document.forms.alias.del_alias.value = alias;
94 document.forms.alias.submit();
97 function del_fwd(fwd) {
98 document.forms.fwds.del_fwd.value = fwd;
99 document.forms.fwds.submit();
105 <form id="auth" method="post" action="{$smarty.server.PHP_SELF}">
106 <table cellspacing="0" cellpadding="2" class="tinybicol">
112 {$mr.user_id} / {$mr.matricule}
113 <input type="hidden" name="user_id" value="{$mr.user_id}" />
121 <input type="text" name="newpass_clair" size="10" maxlength="10" value="********" />
122 <input type="hidden" name="passw" size="32" maxlength="32" value="{$mr.password}" />
123 <input type="hidden" name="hashpass" value="" />
131 <input type="text" name="nomN" size="20" maxlength="255" value="{$mr.nom}" />
139 <input type="text" name="nomusageN" size="20" maxlength="255" value="{$mr.nom_usage}" />
147 <input type="text" name="prenomN" size="20" maxlength="30" value="{$mr.prenom}" />
155 <select name="permsN">
156 <option value="user" {if $mr.perms eq "user"}selected="selected"{/if}>user</option>
157 <option value="admin" {if $mr.perms eq "admin"}selected="selected"{/if}>admin</option>
158 <option value="pending" {if $mr.perms eq "pending"}selected="selected"{/if}>pending</option>
159 <option value="disabled" {if $mr.perms eq "disabled"}selected="selected"{/if}>disabled</option>
168 <input type="text" name="naissanceN" size="12" maxlength="10" value="{$mr.naissance}" />
176 <input type="text" name="promoN" size="4" maxlength="4" value="{$mr.promo}" />
184 <input type="text" name="commentN" size="40" maxlength="64" value="{$mr.comment}" />
189 <a href="{"fiche.php"|url}?user={$mr.forlife}" class="popup2">[Voir fiche]</a>
192 <input onclick="doEditUser(); return true;" type="submit" name="u_edit" value="UPDATE" />
197 <a href="admin_trombino.php?uid={$mr.user_id}">[Trombino]</a>
200 <input type="submit" name="u_kill_conf" value="Désinscrire" />
206 Ne pas utiliser [Désinscrire] si le but est d'exclure la personne.
207 Pour ceci changer ses permissions en 'disabled'.
209 <form id="alias" method="post" action="{$smarty.server.PHP_SELF}">
210 <table class="tinybicol" cellpadding="2" cellspacing="0">
212 <th class="alias" colspan="2">
216 {iterate from=$aliases item=a}
217 <tr class="{cycle values="impair,pair"}">
219 <input type="radio" name='best' {if $a.best}checked="checked"{/if} value='{$a.alias}' onclick="this.form.submit()" />
220 {if $a.for_life}<strong>{$a.alias}</strong>{else}{$a.alias}{/if}
221 {if $a.expire}<span class='erreur'>(expire le {$a.expire|date_format})</span>{/if}
224 <td>garanti à vie*</td>
227 <a href="javascript:del_alias('{$a.alias}')">delete</a>
232 <tr class="{cycle values="impair,pair"}">
234 <input type="text" name="email" size="29" maxlength="60" value="" />
237 <input type="hidden" name="user_id" value="{$mr.user_id}" />
238 <input type="hidden" name="del_alias" value="" />
239 <input type="submit" name="add_alias" value="Ajouter" />
246 <strong>* à ne modifier qu'avec l'accord express de l'utilisateur !!!</strong>
249 <form id="fwds" method="post" action="{$smarty.server.PHP_SELF}">
250 <table class="bicol" cellpadding="2" cellspacing="0">
256 {foreach item=mail from=$emails}
259 {if $mail->active}active{/if}
265 <a href="javascript:del_fwd('{$mail->email}')">delete</a>
274 <input type="text" name="email" size="29" maxlength="60" value="" />
277 <input type="hidden" name="user_id" value="{$mr.user_id}" />
278 <input type="hidden" name="del_fwd" value="" />
279 <input type="submit" name="add_fwd" value="Ajouter" />
285 {foreach from=$emails item=mail}
286 {if $email->panne && $email->panne neq "0000-00-00"}
288 Panne pour l'email "{$mail->email}" le {$mail->panne|date_format}
295 {* vim:set et sw=2 sts=2 sws=2: *}