11d441f3 |
1 | {if $grouplist|@count} |
7027794f |
2 | {if $withsubs} |
2f0aa8ce |
3 | <form action="{url action=subscribe}" method="post"> |
7027794f |
4 | <p style="text-align: center"> |
a0b2e16c |
5 | <input type="submit" name="validsubs" value="{"Valider"|b}" /> |
7027794f |
6 | </p> |
7 | {/if} |
8 | <table class="bicol"> |
9 | <tr> |
10 | {if $withsubs} |
11 | <th></th> |
12 | {/if} |
13 | {if $withstats} |
a0b2e16c |
14 | <th>{"Total"|b}</th> |
15 | <th>{"Nouveaux"|b}</th> |
7027794f |
16 | {/if} |
a0b2e16c |
17 | <th>{"Nom"|b}</th> |
18 | <th>{"Description"|b}</th> |
7027794f |
19 | </tr> |
11d441f3 |
20 | {foreach from=$grouplist key=name item=grp} |
7027794f |
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"> |
a0b2e16c |
38 | <input type="submit" name="validsubs" value="{"Valider"|b}" /> |
7027794f |
39 | </p> |
40 | </form> |
41 | {/if} |
42 | {/if} |
43 | |
598a1c53 |
44 | {* vim:set et sw=2 sts=2 ts=2 enc=utf-8: *} |