first reimport from platal
[platal.git] / templates / listes / listes.inc.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 <table class='bicol' cellpadding='0' cellspacing='0'>
24   <tr>
25     <th>Liste</th>
26     <th>Description</th>
27     <th>Diff.</th>
28     <th>Inscr.</th>
29     <th>Nb</th>
30     <th></th>
31   </tr>
32   {foreach from=$listes item=liste}
33   {if $liste.priv >= $min && $liste.priv <= $max|default:$min}
34   <tr class='{cycle values="impair,pair"}'>
35     <td>
36       <a href='members.php?liste={$liste.list}'>{$liste.list}{if $liste.own}&nbsp;*{/if}</a> 
37     </td>
38     <td>{$liste.desc}</td>
39     <td class='center'>
40       {if $liste.diff eq 2}modérée{elseif $liste.diff}restreinte{else}libre{/if}
41     </td>
42     <td class='center'>
43       {if $liste.ins}modérée{else}libre{/if}
44     </td>
45     <td class='right'>{$liste.nbsub}</td>
46     <td class='right'>
47       {if $liste.sub eq 2}
48       <a href='{$smarty.server.PHP_SELF}?del={$liste.list}'>
49         <img src="{"images/retirer.gif"|url}" alt="[ désinscription ]" title="me désinscrire de {$liste.list}" />
50       </a>
51       {elseif $liste.sub eq 1}
52       <img src="{"images/flag.png"|url}" alt="[ en cours ]" title='inscription en attente de modération' />
53       {else}
54       <a href='{$smarty.server.PHP_SELF}?add={$liste.list}'>
55         <img src="{"images/ajouter.gif"|url}" alt="[ inscription ]" title="m'inscrire sur {$liste.list}" />
56       </a>
57       {/if}
58     </td>
59   </tr>
60   {/if}
61   {/foreach}
62 </table>
63
64 {* vim:set et sw=2 sts=2 sws=2: *}