0337d704 |
1 | {**************************************************************************} |
2 | {* *} |
50a40a33 |
3 | {* Copyright (C) 2003-2006 Polytechnique.org *} |
0337d704 |
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 | |
24 | |
25 | <h1> |
26 | Gestion des événements : |
27 | {if $arch} |
28 | [ <a href="{$smarty.server.PHP_SELF}?arch=0">Actualités</a> | Archives ] |
29 | {else} |
30 | [ Actualités | <a href="{$smarty.server.PHP_SELF}?arch=1">Archives</a> ] |
31 | {/if} |
32 | </h1> |
33 | |
34 | {if $mode} |
35 | |
36 | {include file="include/form.evenement.tpl"} |
37 | |
38 | {else} |
39 | |
40 | {iterate from=$evs item=ev} |
41 | <table class="bicol"> |
42 | <tr> |
43 | <th> |
e8599c21 |
44 | Posté par <a href="{rel}/profile/{$ev.forlife}" class='popup2'>{$ev.prenom} {$ev.nom} (X{$ev.promo})</a> |
0337d704 |
45 | </th> |
46 | </tr> |
47 | <tr class="{if $ev.fvalide}impair{else}pair{/if}"> |
48 | <td> |
49 | <strong>{$ev.titre}</strong> |
50 | </td> |
51 | </tr> |
52 | <tr class="{if $ev.fvalide}impair{else}pair{/if}"> |
53 | <td> |
54 | {tidy}{$ev.texte|nl2br}{/tidy} |
55 | </td> |
56 | </tr> |
57 | <tr class="{if $ev.fvalide}impair{else}pair{/if}"> |
58 | <td> |
59 | Création : {$ev.creation_date}<br /> |
60 | Péremption : {$ev.peremption}<br /> |
61 | Promos : {$ev.promo_min} - {$ev.promo_max}<br /> |
62 | </td> |
63 | </tr> |
64 | <tr> |
65 | <th> |
66 | <form action="{$smarty.server.PHP_SELF}" method="post"> |
67 | <div> |
68 | <input type="hidden" name="evt_id" value="{$ev.id}" /> |
69 | <input type="hidden" name="arch" value="{$ev.arch}" /> |
70 | {if $ev.farch} |
71 | <input type="submit" name="action" value="Desarchiver" /> |
72 | {else} |
73 | <input type="submit" name="action" value="Editer" /> |
74 | {if $ev.fvalide} |
75 | <input type="submit" name="action" value="Invalider" /> |
76 | <input type="submit" name="action" value="Archiver" /> |
77 | {else} |
78 | <input type="submit" name="action" value="Valider" /> |
79 | {/if} |
80 | <input type="submit" name="action" value="Supprimer" /> |
81 | {/if} |
82 | </div> |
83 | </form> |
84 | </th> |
85 | </tr> |
86 | </table> |
87 | |
88 | <br /> |
89 | {/iterate} |
90 | |
91 | {/if} |
92 | |
93 | |
94 | {* vim:set et sw=2 sts=2 sws=2: *} |