| 1 | {**************************************************************************} |
| 2 | {* *} |
| 3 | {* Copyright (C) 2003-2006 Polytechnique.org *} |
| 4 | {* http://opensource.polytechnique.org/ *} |
| 5 | {* *} |
| 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. *} |
| 10 | {* *} |
| 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. *} |
| 15 | {* *} |
| 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 *} |
| 20 | {* *} |
| 21 | {**************************************************************************} |
| 22 | |
| 23 | <h1>{$asso.nom} : gestion des membres</h1> |
| 24 | |
| 25 | <p> |
| 26 | [<a href='{$platal->ns}annuaire'>Retour à l'annuaire</a>] |
| 27 | </p> |
| 28 | |
| 29 | <h2> |
| 30 | Édition du profil de {$user.prenom} {$user.nom} |
| 31 | {if $user.origine eq 'X'} |
| 32 | (X{$user.promo}) |
| 33 | <a href="https://www.polytechnique.org/profile/{$user.alias}">{icon name=user_suit title="fiche"}</a> |
| 34 | {/if} |
| 35 | <a href="{$platal->ns}member/del/{$user.email}">{icon name=delete title="Suppression du compte"}</a> |
| 36 | <a href="mailto:{$user.email}">{icon name=email title="mail"}</a> |
| 37 | </h2> |
| 38 | |
| 39 | <form method="post" action="{$platal->ns}member/{$platal->argv[1]}"> |
| 40 | <table cellpadding="0" cellspacing="0" class='tinybicol'> |
| 41 | <tr class="pair"> |
| 42 | <td class="titre"> |
| 43 | Permissions: |
| 44 | </td> |
| 45 | <td> |
| 46 | <select name="is_admin"> |
| 47 | <option value="0" {if !$user.perms}selected="selected"{/if}>Membre</option> |
| 48 | <option value="1" {if $user.perms}selected="selected"{/if}>Administrateur</option> |
| 49 | </select> |
| 50 | </td> |
| 51 | </tr> |
| 52 | {if $user.origine neq X} |
| 53 | <tr class="impair"> |
| 54 | <td class="titre"> |
| 55 | Prénom: |
| 56 | </td> |
| 57 | <td> |
| 58 | <input type="text" value="{$user.prenom}" name="prenom" size="40" /> |
| 59 | </td> |
| 60 | </tr> |
| 61 | <tr class="impair"> |
| 62 | <td class="titre"> |
| 63 | Nom: |
| 64 | </td> |
| 65 | <td> |
| 66 | <input type="text" value="{$user.nom}" name="nom" size="40" /> |
| 67 | </td> |
| 68 | </tr> |
| 69 | <tr class="impair"> |
| 70 | <td class="titre"> |
| 71 | Sexe: |
| 72 | </td> |
| 73 | <td> |
| 74 | <select name="sexe"> |
| 75 | <option value="0"{if $user.sexe eq 0} selected="selected"{/if}>Homme</option> |
| 76 | <option value="1"{if $user.sexe eq 1} selected="selected"{/if}>Femme</option> |
| 77 | </select> |
| 78 | </td> |
| 79 | </tr> |
| 80 | <tr class="impair"> |
| 81 | <td class="titre"> |
| 82 | Email: |
| 83 | </td> |
| 84 | <td> |
| 85 | <input type="text" value="{$user.email}" name="email" size="40" /> |
| 86 | </td> |
| 87 | </tr> |
| 88 | {/if} |
| 89 | </table> |
| 90 | |
| 91 | <h2>Abonnement aux listes</h2> |
| 92 | |
| 93 | <table cellpadding="0" cellspacing="0" class='large'> |
| 94 | <tr> |
| 95 | <th> </th> |
| 96 | <th>Liste</th> |
| 97 | <th>Description</th> |
| 98 | <th>Nb</th> |
| 99 | </tr> |
| 100 | {foreach from=$listes item=liste} |
| 101 | <tr> |
| 102 | <td class='right'> |
| 103 | <input type='hidden' name='ml1[{$liste.list}]' value='{$liste.sub}' /> |
| 104 | <input type='checkbox' name='ml2[{$liste.list}]' {if $liste.sub eq 2}checked="checked"{/if} /> |
| 105 | </td> |
| 106 | <td> |
| 107 | <a href='{$platal->ns}lists/members/{$liste.list}'>{$liste.list}</a> |
| 108 | </td> |
| 109 | <td>{$liste.desc}</td> |
| 110 | <td class='right'>{$liste.nbsub}</td> |
| 111 | </tr> |
| 112 | {foreachelse} |
| 113 | <tr><td colspan='4'>Pas de listes pour ce groupe</td></tr> |
| 114 | {/foreach} |
| 115 | </table> |
| 116 | |
| 117 | <h2>Abonnement aux alias</h2> |
| 118 | |
| 119 | <table cellpadding="0" cellspacing="0" class='large'> |
| 120 | <tr> |
| 121 | <th> </th> |
| 122 | <th>Alias</th> |
| 123 | </tr> |
| 124 | |
| 125 | {foreach from=$alias item=a} |
| 126 | <tr> |
| 127 | <td align='right'> |
| 128 | <input type='hidden' name='ml3[{$a.alias}]' value='{$a.sub}' /> |
| 129 | <input type='checkbox' name='ml4[{$a.alias}]' {if $a.sub}checked="checked"{/if} /> |
| 130 | </td> |
| 131 | <td> |
| 132 | <a href='{$platal->ns}alias/admin/{$a.alias}'>{$a.alias}</a> |
| 133 | </td> |
| 134 | </tr> |
| 135 | {foreachelse} |
| 136 | <tr><td colspan='2'>Pas d'alias pour ce groupe</td></tr> |
| 137 | {/foreach} |
| 138 | </table> |
| 139 | |
| 140 | <div class="center"> |
| 141 | <br /> |
| 142 | <input type="submit" name='change' value="Valider ces changements" /> |
| 143 | |
| 144 | <input type="reset" value="Annuler ces changements" /> |
| 145 | </div> |
| 146 | |
| 147 | </form> |
| 148 | |
| 149 | |
| 150 | {* vim:set et sw=2 sts=2 sws=2: *} |