c144f2e5 |
1 | {**************************************************************************} |
2 | {* *} |
3 | {* Copyright (C) 2003-2007 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>Sondages</h1> |
24 | |
25 | <table class="bicol"> |
26 | <tr> |
27 | <th> |
28 | Sondages en attente de validation |
29 | </th> |
30 | </tr> |
31 | {iterate item=s from=$survey_waiting} |
3d8decf9 |
32 | <tr class="{cycle name=ws_cycle values="impair,pair"}"> |
c144f2e5 |
33 | <td class="half"> |
34 | • |
3d8decf9 |
35 | <a href="survey/admin/{$s.id}"> |
36 | {$s.title} [{$s.end|date_format:"%x"} - {$survey_modes[$s.mode]}] |
c144f2e5 |
37 | </a> |
38 | </td> |
39 | </tr> |
40 | {assign var="has_ws" value="true"} |
41 | {/iterate} |
42 | {if !$has_ws} |
43 | <tr> |
44 | <td class="half">Aucun sondage en attente de validation</td> |
45 | </tr> |
46 | {/if} |
47 | </table> |
48 | |
49 | <br /> |
50 | |
51 | <table class="bicol"> |
52 | <tr> |
53 | <th> |
54 | Sondages en cours |
55 | </th> |
56 | </tr> |
57 | {iterate item=s from=$survey_current} |
3d8decf9 |
58 | <tr class="{cycle name=cs_cycle values="impair,pair"}"> |
c144f2e5 |
59 | <td class="half"> |
60 | • |
3d8decf9 |
61 | <a href="survey/admin/{$s.id}"> |
62 | {$s.title} [{$s.end|date_format:"%x"} - {$survey_modes[$s.mode]}] |
c144f2e5 |
63 | </a> |
64 | </td> |
65 | </tr> |
66 | {assign var="has_cs" value="true"} |
67 | {/iterate} |
68 | {if !$has_cs} |
69 | <tr> |
70 | <td class="half">Aucun sondage en cours</td> |
71 | </tr> |
72 | {/if} |
73 | </table> |
74 | |
75 | <br /> |
76 | |
77 | <table class="bicol"> |
78 | <tr> |
79 | <th> |
80 | Anciens sondages |
81 | </th> |
82 | </tr> |
83 | {iterate item=s from=$survey_old} |
3d8decf9 |
84 | <tr class="{cycle name=os_cycle values="impair,pair"}"> |
c144f2e5 |
85 | <td class="half"> |
86 | • |
3d8decf9 |
87 | <a href="survey/admin/{$s.id}"> |
88 | {$s.title} [{$s.end|date_format:"%x"} - {$survey_modes[$s.mode]}] |
c144f2e5 |
89 | </a> |
90 | </td> |
91 | </tr> |
92 | {assign var="has_os" value="true"} |
93 | {/iterate} |
94 | {if !$has_os} |
95 | <tr> |
96 | <td class="half">Aucun ancien sondage</td> |
97 | </tr> |
98 | {/if} |
99 | </table> |
100 | |
8b0fa81e |
101 | {* vim:set et sw=2 sts=2 ts=8 enc=utf-8: *} |