Convert source code to UTF-8
[platal.git] / templates / xnetgrp / annuaire.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 <h1>{$asso.nom} : Annuaire du groupe </h1>
24
25 <p class="descr">
26 Le groupe {$asso.nom} compte {$nb_tot} membres.
27 </p>
28
29 <p class="descr">
30 Les membres extérieurs du groupe sont intégrés à cette liste, et repérés par l'inscription 'extérieur' dans la colonne promotion.
31 </p>
32
33 <p class="descr">
34 Tu peux également :
35 </p>
36 <ul class="descr">
37   {if $is_admin}
38   <li>
39     <a href="{$platal->ns}member/new">
40       {icon name=add title="Ajouter un membre"} 
41       Ajouter un membre
42     </a>
43   </li>
44   <li>
45     <a href="{$platal->ns}admin/annuaire">
46       {icon name=wand title="Synchroniser"} 
47       Synchroniser annuaire et Listes de diffusion
48     </a>
49   </li>
50   {/if}
51   <li>
52     <a href="{$platal->ns}annuaire/vcard/photos/{$asso.diminutif}.vcf">
53       {icon name=vcard title="Carte de visite"} 
54       Ajouter les membres à ton carnet d'adresse
55     </a>
56     (<a href="{$platal->ns}annuaire/vcard/{$asso.diminutif}.vcf">sans les photos</a>)
57   </li>
58 </ul>
59
60 <p class="center">
61 [<a href="{$platal->ns}annuaire?order={$smarty.request.order}" {if !$only_admin}class="erreur"{/if}>tous les membres</a>]
62 [<a href="{$platal->ns}annuaire?order={$smarty.request.order}&amp;admin=1" {if $only_admin}class="erreur"{/if}>administrateurs</a>]<br/>
63 {foreach from=$alphabet item=c}
64 {if $c}
65 [<a href="{$platal->ns}annuaire?{$group}={$c}&amp;order={$smarty.request.order}{if $only_admin}&amp;admin=1{/if}"{if $request_group eq $c} class="erreur"{/if}>{$c}</a>]
66 {/if}
67 {/foreach}
68 </p>
69
70 <table summary="membres du groupe" class="tinybicol">
71   <tr>
72     <th>
73       <a href="{$platal->ns}annuaire?order=alpha{if $sort neq "alpha_inv"}_inv{/if}{if $request_group and $group eq 'initiale'}&amp;initiale={$request_group}{/if}{if $only_admin}&amp;admin=1{/if}">
74       {if $sort eq 'alpha'}
75         <img src="{$platal->baseurl}images/dn.png" alt="" title="Tri croissant" />
76       {elseif $sort eq 'alpha_inv'}
77         <img src="{$platal->baseurl}images/up.png" alt="" title="Tri décroissant" />
78       {/if}
79       Prénom NOM 
80       </a>
81     </th>
82     <th>
83       <a href="{$platal->ns}annuaire?order=promo{if $sort eq "promo"}_inv{/if}{if $request_group and $group eq 'promo'}&amp;promo={$request_group}{/if}">
84       {if $sort eq 'promo_inv'}
85         <img src="{$platal->baseurl}images/dn.png" alt="" title="Tri croissant" />
86       {elseif $sort eq 'promo'}
87         <img src="{$platal->baseurl}images/up.png" alt="" title="Tri décroissant" />
88       {/if}
89         Promo
90       </a>
91     </th>
92     <th>Infos</th>
93     {if $is_admin}
94     <th>Actions</th>
95     {/if}
96   </tr>
97   {iterate from=$ann item=m}
98   <tr>
99     <td>
100       {if $m.admin}<strong>{/if}
101       {if $m.inscrit}
102       <a href="https://www.polytechnique.org/profile/{$m.email}" class="popup2">
103       {elseif $m.x}
104       <a href="https://www.polytechnique.org/marketing/public/{$m.uid}">
105       {/if}
106       {if $m.femme}&bull;{/if}{if $m.prenom || $m.nom}{$m.prenom} {$m.nom|strtoupper}{else}{$m.email}{/if}
107       {if $m.x}</a>{/if} 
108       {if $m.admin}</strong>{/if}
109       {if $m.inscrit && !$m.actif}
110       <a href="https://www.polytechnique.org/marketing/broken/{$m.email}">{icon name=error title="Recherche d'email"}</a>
111       {assign var=broken value=true}
112       {/if}</td>
113     <td>{if $m.admin}<strong>{/if}{$m.promo}{if $m.admin}</strong>{/if}</td>
114     <td class="center">
115       {if $m.inscrit}
116       <a href="https://www.polytechnique.org/vcard/{$m.email}.vcf">{icon name=vcard title="[vcard]"}</a>
117       <a href="mailto:{$m.email}@polytechnique.org">{icon name=email title="mail"}</a>
118       {else}
119       <a href="mailto:{$m.email}">{icon name=email title="mail"}</a>
120       {/if}
121     </td>
122     {if $is_admin}
123     <td class="center">
124       <a href="{$platal->ns}member/{if $m.x}{$m.email}{else}{$m.uid}{/if}">{icon name=user_edit title="Edition du profil"}</a>
125       <a href="{$platal->ns}member/del/{if $m.x}{$m.email}{else}{$m.uid}{/if}">{icon name=delete title="Supprimer de l'annuaire"}</a>
126     </td>
127     {/if}
128   </tr>
129   {/iterate}
130 </table>
131
132 <p class="descr" style="text-align: center">
133 {foreach from=$links item=ofs key=txt}
134 <a href="{$platal->ns}annuaire?offset={$ofs}&amp;initiale={$smarty.request.initiale}&amp;order={$sort}"{if $smarty.request.offset eq $ofs} class="erreur"{/if}>{$txt}</a>
135 {/foreach}
136 </p>
137
138 {if $broken}
139 <p class="smaller">
140   {icon name=error} : Un camarade signalé par ce symbole n'a plus d'adresse de redirection et ne peut donc
141   plus être contacté via son adresse polytechnique.org. Si tu connais sa nouvelle adresse, tu peux nous la communiquer en
142   cliquant sur le symbole.
143 </p>
144 {/if}
145
146 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}