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