| 1 | {**************************************************************************} |
| 2 | {* *} |
| 3 | {* Copyright (C) 2003-2004 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 | {if $smarty.get.del} |
| 24 | |
| 25 | <h1>Suppression du groupe {$nom}</h1> |
| 26 | |
| 27 | <form action="?del={$smarty.request.del}" method="post"> |
| 28 | <div class="center"> |
| 29 | <input type="submit" name="del" value="Oui, je veux supprimer ce groupe" /> |
| 30 | </div> |
| 31 | </form> |
| 32 | |
| 33 | {else} |
| 34 | |
| 35 | <h1>Ajouter un groupe</h1> |
| 36 | |
| 37 | <form action="{$smarty.server.PHP_SELF}" method="post"> |
| 38 | <p class="descr"> |
| 39 | Pour ajouter un groupe, choisir ici le diminutif qu'il va utiliser, |
| 40 | tu seras ensuite redirigé vers une page te permettant d'éditer le groupe : |
| 41 | </p> |
| 42 | <div class="center"> |
| 43 | <input type="text" name="diminutif" value="{$smarty.request.diminutif}" /> |
| 44 | <input type="submit" name="del" value="Ajouter" /> |
| 45 | </div> |
| 46 | </form> |
| 47 | |
| 48 | |
| 49 | <h1>Administration des groupes X.net</h1> |
| 50 | |
| 51 | <table cellspacing="0" cellpadding="0" class='large'> |
| 52 | {foreach from=$assos item=a key=i name=all} |
| 53 | {if $i is even}<tr>{/if} |
| 54 | <td><a href='?del={$a.diminutif}'><img src='{rel}/images/del.png' alt='delete' /></a></td> |
| 55 | <td><a href='{rel}/{$a.diminutif}/edit.php'>{$a.nom}</a></td> |
| 56 | {if $i is odd || $smarty.foreach.all.last}</tr>{/if} |
| 57 | {/foreach} |
| 58 | </table> |
| 59 | |
| 60 | {/if} |
| 61 | |
| 62 | {* vim:set et sw=2 sts=2 sws=2: *} |