ab02e8a9 |
1 | {if $groups|@count} |
2 | {if $withsubs} |
ded3974d |
3 | <form action="{url action=subscribe}" method="post"> |
ab02e8a9 |
4 | <p style="text-align: center"> |
75b4a888 |
5 | <input type="submit" name="validsubs" value="{"Valider"|b}" /> |
ab02e8a9 |
6 | </p> |
7 | {/if} |
8 | <table class="bicol"> |
9 | <tr> |
10 | {if $withsubs} |
11 | <th></th> |
12 | {/if} |
13 | {if $withstats} |
75b4a888 |
14 | <th>{"Total"|b}</th> |
15 | <th>{"Nouveaux"|b}</th> |
ab02e8a9 |
16 | {/if} |
75b4a888 |
17 | <th>{"Nom"|b}</th> |
18 | <th>{"Description"|b}</th> |
ab02e8a9 |
19 | </tr> |
20 | {foreach from=$groups key=name item=grp} |
21 | <tr class="{cycle values="impair,pair"}"> |
22 | {if $withsubs} |
23 | <td> |
24 | <input type="checkbox" name="subscribe[{$name}]" {if in_array($name, $profile.subscribe)}checked="checked"{/if} /> |
25 | </td> |
26 | {/if} |
27 | {if $withstats} |
28 | <td style="text-align: center">{if $grp.msgnum eq 0}-{else}{$grp.msgnum}{/if}</td> |
29 | <td style="text-align: center">{if $grp.unread eq 0}-{else}{$grp.unread}{/if}</td> |
30 | {/if} |
31 | <td class="grp">{link group=$name text=$name}</td> |
32 | <td class="dsc">{$grp.desc}</td> |
33 | </tr> |
34 | {/foreach} |
35 | </table> |
36 | {if $withsubs} |
37 | <p style="text-align: center"> |
75b4a888 |
38 | <input type="submit" name="validsubs" value="{"Valider"|b}" /> |
ab02e8a9 |
39 | </p> |
40 | </form> |
41 | {/if} |
42 | {/if} |
43 | |
d8d416c4 |
44 | {* vim:set et sw=2 sts=2 ts=2 enc=utf-8: *} |