Can generate multi-user vcards:
[platal.git] / templates / xnet / groupe / annuaire.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2006 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   <li>
38     <a href="{$platal->ns}annuaire/vcard/{$asso.diminutif}.vcf">
39       {icon name=vcard title="Carte de visite"} 
40       Ajouter les membres à ton carnet d'adresse
41     </a>
42   </li>
43   {if $admin}
44   <li>
45     <a href="{$platal->ns}member/new">
46       {icon name=add title="Ajouter un membre"} 
47       Ajouter un membre
48     </a>
49   </li>
50   <li>
51     <a href="{$platal->ns}admin/annuaire">
52       {icon name=wand title="Synchroniser"} 
53       Synchroniser annuaire et Listes de diffusion
54     </a>
55   </li>
56   {/if}
57 </ul>
58
59 <p class="center">
60 [<a href="{$platal->ns}annuaire?order={$smarty.request.order}" {if !$request_group}class="erreur"{/if}>tout</a>]
61 {foreach from=$alphabet item=c}
62 [<a href="{$platal->ns}annuaire?{$group}={$c}&amp;order={$smarty.request.order}"{if $request_group eq $c} class="erreur"{/if}>{$c}</a>]
63 {/foreach}
64 </p>
65
66 <table summary="membres du groupe" class="tinybicol">
67   <tr>
68     <th>
69       <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}">
70       {if $sort eq 'alpha'}
71         <img src="{$platal->baseurl}images/dn.png" alt="" title="Tri croissant" />
72       {elseif $sort eq 'alpha_inv'}
73         <img src="{$platal->baseurl}images/up.png" alt="" title="Tri décroissant" />
74       {/if}
75       Prénom NOM 
76       </a>
77     </th>
78     <th>
79       <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}">
80       {if $sort eq 'promo_inv'}
81         <img src="{$platal->baseurl}images/dn.png" alt="" title="Tri croissant" />
82       {elseif $sort eq 'promo'}
83         <img src="{$platal->baseurl}images/up.png" alt="" title="Tri décroissant" />
84       {/if}
85         Promo
86       </a>
87     </th>
88     <th>Infos</th>
89     {if $admin}
90     <th>Actions</th>
91     {/if}
92   </tr>
93   {iterate from=$ann item=m}
94   <tr>
95     <td>{if $m.admin}<strong>{/if}{if $m.femme}&bull;{/if}{$m.prenom} {$m.nom|strtoupper}{if $m.admin}</strong>{/if}</td>
96     <td>{if $m.admin}<strong>{/if}{$m.promo}{if $m.admin}</strong>{/if}</td>
97     <td class="center">
98       {if $m.x}
99       <a href="https://www.polytechnique.org/profile/{$m.email}" class="popup2">{icon name=user_suit title="fiche"}</a>
100       <a href="https://www.polytechnique.org/vcard/{$m.email}.vcf">{icon name=vcard title="[vcard]"}</a>
101       <a href="mailto:{$m.email}@polytechnique.org">{icon name=email title="mail"}</a>
102       {else}
103       <a href="mailto:{$m.email}">{icon name=email title="mail"}</a>
104       {/if}
105     </td>
106     {if $admin}
107     <td class="center">
108       <a href="{$platal->ns}member/{if $m.x}{$m.email}{else}{$m.uid}{/if}">{icon name=user_edit title="Edition du profil"}</a>
109       <a href="{$platal->ns}member/del/{if $m.x}{$m.email}{else}{$m.uid}{/if}">{icon name=delete title="Supprimer de l'annuaire"}</a>
110     </td>
111     {/if}
112   </tr>
113   {/iterate}
114 </table>
115
116 <p class="descr" style="text-align: center">
117 {foreach from=$links item=ofs key=txt}
118 <a href="{$platal->ns}annuaire?offset={$ofs}&amp;initiale={$smarty.request.initiale}"{if $smarty.request.offset eq $ofs} class="erreur"{/if}>{$txt}</a>
119 {/foreach}
120 </p>
121
122 {* vim:set et sw=2 sts=2 sws=2: *}