ed9f8f5fad6ec338aab980f354669be17b9548a4
[platal.git] / templates / admin / evenements.tpl
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
24
25 <h1>
26   Gestion des événements :
27   {if $arch eq 'archives'}
28   [&nbsp;<a href="admin/events/actu">Actualités</a>&nbsp;|&nbsp;Archives&nbsp;]
29   {else}
30   [&nbsp;Actualités&nbsp;|&nbsp;<a href="admin/events/archives">Archives</a>&nbsp;]
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>
44       Posté par <a href="profile/{$ev.forlife}" class='popup2'>{$ev.prenom} {$ev.nom} (X{$ev.promo})</a>
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="admin/events/{if $ev.arch}archives{else}actu{/if}" method="post">
67         <div>
68           <input type="hidden" name="evt_id" value="{$ev.id}" />
69           {if $ev.farch}
70           <input type="submit" name="action" value="Desarchiver" />
71           {else}
72           <input type="submit" name="action" value="Editer" />
73           {if $ev.fvalide}
74           <input type="submit" name="action" value="Invalider" />
75           <input type="submit" name="action" value="Archiver" />
76           {else}
77           <input type="submit" name="action" value="Valider" />
78           {/if}
79           <input type="submit" name="action" value="Supprimer" />
80           {/if}
81         </div>
82       </form>
83     </th>
84   </tr>
85 </table>
86
87 <br />
88 {/iterate}
89
90 {/if}
91
92
93 {* vim:set et sw=2 sts=2 sws=2: *}