Commit | Line | Data |
---|---|---|
c144f2e5 | 1 | {**************************************************************************} |
2 | {* *} | |
905ab104 | 3 | {* Copyright (C) 2003-2010 Polytechnique.org *} |
c144f2e5 | 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 | ||
905ab104 | 23 | <h1>Sondages</h1> |
2f4b93be | 24 | |
905ab104 FB |
25 | <table class="bicol"> |
26 | <tr> | |
27 | <th> | |
28 | Sondages en cours | |
29 | </th> | |
30 | </tr> | |
31 | {iterate item=s from=$survey_current} | |
32 | <tr class="{cycle name=cs_cycle values="impair,pair"}"> | |
33 | <td class="half"> | |
34 | • | |
35 | <a href="survey/admin/{$s.id}"> | |
36 | {$s.title} [{$s.end|date_format:"%x"} - {$survey_modes[$s.mode]}] | |
37 | </a> | |
38 | </td> | |
39 | </tr> | |
40 | {assign var="has_cs" value="true"} | |
41 | {/iterate} | |
42 | {if !$has_cs} | |
43 | <tr> | |
44 | <td class="half">Aucun sondage en cours</td> | |
45 | </tr> | |
46 | {/if} | |
47 | </table> | |
c144f2e5 | 48 | |
905ab104 | 49 | <br /> |
90343d1e | 50 | |
905ab104 FB |
51 | <table class="bicol"> |
52 | <tr> | |
53 | <th> | |
54 | Anciens sondages | |
55 | </th> | |
56 | </tr> | |
57 | {iterate item=s from=$survey_old} | |
58 | <tr class="{cycle name=os_cycle values="impair,pair"}"> | |
59 | <td class="half"> | |
60 | • | |
61 | <a href="survey/admin/{$s.id}"> | |
62 | {$s.title} [{$s.end|date_format:"%x"} - {$survey_modes[$s.mode]}] | |
63 | </a> | |
64 | </td> | |
65 | </tr> | |
66 | {assign var="has_os" value="true"} | |
67 | {/iterate} | |
68 | {if !$has_os} | |
69 | <tr> | |
70 | <td class="half">Aucun ancien sondage</td> | |
71 | </tr> | |
72 | {/if} | |
73 | </table> | |
90343d1e | 74 | |
8b0fa81e | 75 | {* vim:set et sw=2 sts=2 ts=8 enc=utf-8: *} |