first reimport from platal
[platal.git] / templates / listes / archives.tpl
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
24 {include file="listes/header_listes.tpl" on=archives}
25
26
27 {if $archs}
28 <h1>Archives de la liste {$smarty.request.liste}</h1>
29
30 <h2>Triés par fils de discussion</h2>
31
32 <table class="tinybicol" cellspacing="0" cellpadding="0">
33   <tr>
34     <th>Année</th>
35     <th colspan="6">
36       Mois
37     </th>
38   </tr>
39   {foreach from=$archs item=m key=y}
40   <tr class="center {if $y is odd}pair{else}impair{/if}">
41     <td class="titre" rowspan="2">{$y}</td>
42     {foreach from=$range item=i}
43     <td>
44       {if $m[$i]}
45       <a href="?liste={$smarty.request.liste}&amp;rep={$y}/{$i|string_format:"%02u"}&amp;file=threads.html">{"0000-$i-01"|date_format:"%B"}</a>
46       {else}
47       &nbsp;
48       {/if}
49     </td>
50     {if $i eq 6}</tr><tr class="center {if $y is odd}pair{else}impair{/if}">{/if}
51     {/foreach}
52   </tr>
53   {/foreach}
54 </table>
55
56 <h2>Triés par date</h2>
57
58 <table class="tinybicol" cellspacing="0" cellpadding="0">
59   <tr>
60     <th>Année</th>
61     <th colspan="6">
62       Mois
63     </th>
64   </tr>
65   {foreach from=$archs item=m key=y}
66   <tr class="center {if $y is odd}pair{else}impair{/if}">
67     <td class="titre" rowspan="2">{$y}</td>
68     {foreach from=$range item=i}
69     <td>
70       {if $m[$i]}
71       <a href="?liste={$smarty.request.liste}&amp;rep={$y}/{$i|string_format:"%02u"}&amp;file=dates.html">{"0000-$i-01"|date_format:"%B"}</a>
72       {else}
73       &nbsp;
74       {/if}
75     </td>
76     {if $i eq 6}</tr><tr class="center {if $y is odd}pair{else}impair{/if}">{/if}
77     {/foreach}
78   </tr>
79   {/foreach}
80 </table>
81 {elseif $archives}
82 {tidy}
83 {include file="$archives"}
84 {/tidy}
85 {/if}
86
87
88 {* vim:set et sw=2 sts=2 sws=2: *}