Convert source code to UTF-8
[platal.git] / templates / lists / admin.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2007 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 {if !$details.own}
25 <p class='erreur'>
26 Tu n'es pas administrateur de la liste, mais du site.
27 </p>
28 {/if}
29
30 {include file="lists/header_listes.tpl" on=admin}
31
32 <p>
33 Pour inscrire un utilisateur, il faut remplir les champs prévus à cet effet en saisissant un de
34 ses identifiants, de la forme "prenom.nom", ou "prenom.nom.promo" en cas d'homonymie. Pour inscrire plusieurs utilisateurs, les séparer par des espaces.
35 L'icône {icon name=cross title='retirer membre'} permet de désinscrire de la liste quelqu'un
36 qui y était abonné.
37 </p>
38
39 <h1>
40   modérateurs de la liste
41 </h1>
42
43 <form method='post' action='{$smarty.server.REQUEST_URI}'>
44   <table class='tinybicol' cellpadding='0' cellspacing='0'>
45     {foreach from=$owners item=xs key=promo}
46     <tr>
47       <td class='titre'>{if $promo}{$promo}{else}non-X{/if}</td>
48       <td>
49         {foreach from=$xs item=x}
50         {if $promo && strpos($x.l, '@') === false}
51         <a href="profile/{$x.l}" class="popup2">{$x.n}</a>
52         {elseif $x.x}
53         <a href="{$platal->ns}member/{$x.x}">{$x.n}</a>
54         {elseif $x.n}
55         {$x.n}
56         {else}
57         {$x.l}
58         {/if}
59         <a href='{$platal->pl_self(1)}?del_owner={$x.l}'>{icon name=cross title='retirer modérateur'}</a>
60         <br />
61         {/foreach}
62       </td>
63     </tr>
64     {/foreach}
65     <tr>
66       <td class='titre'>Ajouter ... </td>
67       <td>
68         <input type='text' size='30' name='add_owner' />
69         &nbsp;
70         <input type='submit' value='ajouter' />
71       </td>
72     </tr>
73   </table>
74 </form>
75
76
77 <h1>
78   {$np_m|default:"0"} membre(s) dans la liste
79 </h1>
80
81 <form method='post' action='{$smarty.server.REQUEST_URI}'>
82   <table class='bicol' cellpadding='0' cellspacing='0'>
83     {foreach from=$members item=xs key=promo}
84     <tr>
85       <td class='titre'>{if $promo}{$promo}{else}non-X{/if}</td>
86       <td>
87         {foreach from=$xs item=x}
88         {if $promo && strpos($x.l, '@') === false}
89         <a href="profile/{$x.l}" class="popup2">{$x.n}</a>
90         {elseif $x.x}
91         <a href="{$platal->ns}member/{$x.x}">{$x.n}</a>
92         {elseif $x.n}
93         {$x.n}
94         {else}
95         {$x.l}
96         {/if}
97         <a href='{$platal->pl_self(1)}?del_member={$x.l}'>{icon name=cross title='retirer membre'}</a>
98         <br />
99         {/foreach}
100       </td>
101     </tr>
102     {/foreach}
103     <tr>
104       <td class='titre'>Ajouter ...</td>
105       <td>
106         <input type='text' size='40' name='add_member' />
107         &nbsp;
108         <input type='submit' value='ajouter' />
109       </td>
110     </tr>
111   </table>
112 </form>
113
114
115 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}