1 {**************************************************************************}
3 {* Copyright (C) 2003-2006 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 = hash_encrypt(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();
101 function act_fwd(fwd, activate) {
103 document.forms.fwds.activate_fwd.value = fwd;
105 document.forms.fwds.deactivate_fwd.value = fwd;
106 document.forms.fwds.submit();
112 <form id="auth" method="post" action="{$smarty.server.PHP_SELF}">
113 <table cellspacing="0" cellpadding="2" class="tinybicol">
119 {$mr.user_id} / {$mr.matricule}
120 <input type="hidden" name="user_id" value="{$mr.user_id}" />
128 <input type="text" name="newpass_clair" size="10" maxlength="10" value="********" />
129 <input type="hidden" name="passw" size="32" maxlength="32" value="{$mr.password}" />
130 <input type="hidden" name="hashpass" value="" />
138 <input type="text" name="nomN" size="20" maxlength="255" value="{$mr.nom}" />
146 <input type="text" name="nomusageN" size="20" maxlength="255" value="{$mr.nom_usage}" />
154 <input type="text" name="prenomN" size="20" maxlength="30" value="{$mr.prenom}" />
162 femme <input type="radio" name="sexeN" {if $mr.sexe eq 'femme'}checked="checked"{/if} value='femme'/>
163 <input type="radio" name="sexeN" {if $mr.sexe neq 'femme'}checked="checked"{/if} value=''/> homme
171 <select name="permsN">
172 <option value="user" {if $mr.perms eq "user"}selected="selected"{/if}>user</option>
173 <option value="admin" {if $mr.perms eq "admin"}selected="selected"{/if}>admin</option>
174 <option value="pending" {if $mr.perms eq "pending"}selected="selected"{/if}>pending</option>
175 <option value="disabled" {if $mr.perms eq "disabled"}selected="selected"{/if}>disabled</option>
184 <input type="text" name="naissanceN" size="12" maxlength="10" value="{$mr.naissance}" />
192 <input type="text" name="promoN" size="4" maxlength="4" value="{$mr.promo}" />
200 <input type="text" name="commentN" size="40" maxlength="64" value="{$mr.comment}" />
205 <a href="{"fiche.php"|url}?user={$mr.forlife}" class="popup2">[Voir fiche]</a>
208 <input onclick="doEditUser(); return true;" type="submit" name="u_edit" value="UPDATE" />
213 <a href="admin_trombino.php?uid={$mr.user_id}">[Trombino]</a>
216 <input type="submit" name="u_kill_conf" value="Désinscrire" />
222 Ne pas utiliser [Désinscrire] si le but est d'exclure la personne.
223 Pour ceci changer ses permissions en 'disabled'.
225 <form id="alias" method="post" action="{$smarty.server.PHP_SELF}">
226 <table class="tinybicol" cellpadding="2" cellspacing="0">
228 <th class="alias" colspan="2">
232 {iterate from=$aliases item=a}
233 <tr class="{cycle values="impair,pair"}">
235 <input type="radio" name='best' {if $a.best}checked="checked"{/if} value='{$a.alias}' onclick="this.form.submit()" />
236 {if $a.for_life}<strong>{$a.alias}</strong>{else}{$a.alias}{/if}
237 {if $a.expire}<span class='erreur'>(expire le {$a.expire|date_format})</span>{/if}
240 <td>garanti à vie*</td>
243 <a href="javascript:del_alias('{$a.alias}')">delete</a>
248 <tr class="{cycle values="impair,pair"}">
250 <input type="text" name="email" size="29" maxlength="60" value="" />
253 <input type="hidden" name="user_id" value="{$mr.user_id}" />
254 <input type="hidden" name="del_alias" value="" />
255 <input type="submit" name="add_alias" value="Ajouter" />
262 <strong>* à ne modifier qu'avec l'accord express de l'utilisateur !!!</strong>
265 <form id="fwds" method="post" action="{$smarty.server.PHP_SELF}#fwds">
266 <table class="bicol" cellpadding="2" cellspacing="0">
272 {foreach item=mail from=$emails}
275 {if $mail->active}active{/if}
278 <span class="smaller"><a href="javascript:act_fwd('{$mail->email}',{if $mail->active}false{else}true{/if})">{if $mail->active}des{/if}activer</a></span>
284 <a href="javascript:del_fwd('{$mail->email}')">delete</a>
289 <td class="titre" colspan="2">
293 <input type="text" name="email" size="29" maxlength="60" value="" />
296 <input type="hidden" name="user_id" value="{$mr.user_id}" />
297 <input type="hidden" name="del_fwd" value="" />
298 <input type="hidden" name="activate_fwd" value="" />
299 <input type="hidden" name="deactivate_fwd" value="" />
300 <input type="submit" name="add_fwd" value="Ajouter" />
306 {foreach from=$emails item=mail}
307 {if $email->panne && $email->panne neq "0000-00-00"}
309 Panne pour l'email "{$mail->email}" le {$mail->panne|date_format}
316 {* vim:set et sw=2 sts=2 sws=2: *}