Add a sorting mark in member list
[platal.git] / templates / xnet / groupe / annuaire.tpl
CommitLineData
0337d704 1{**************************************************************************}
2{* *}
50a40a33 3{* Copyright (C) 2003-2006 Polytechnique.org *}
0337d704 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">
26Le groupe {$asso.nom} compte {$nb_tot} membres.
27</p>
28
29<p class="descr">
30Les 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{if $admin}
34<p class="descr">
35Fonctionnalités visibles uniquement par les administrateurs :
36</p>
37<ul class="descr">
7b2413f6 38 <li><a href="{$platal->ns}member/new">Ajouter un membre</a></li>
39 <li><a href="{$platal->ns}admin/annuaire">Synchroniser annuaire et Listes de diffusion</a></li>
0337d704 40</ul>
41{/if}
42
43<p class="center">
4664b701 44[<a href="{$platal->ns}annuaire?order={$smarty.request.order}" {if !$request_group}class="erreur"{/if}>tout</a>]
0337d704 45{foreach from=$alphabet item=c}
7b2413f6 46[<a href="{$platal->ns}annuaire?{$group}={$c}&amp;order={$smarty.request.order}"{if $request_group eq $c} class="erreur"{/if}>{$c}</a>]
0337d704 47{/foreach}
48</p>
49
4664b701 50<table summary="membres du groupe" class="tinybicol">
0337d704 51 <tr>
e02ecfce 52 <th>
53 <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}">
54 {if $sort eq 'alpha'}
55 <img src="{$platal->baseurl}images/dn.png" alt="Tri croissant" title="Tri croissant" />
56 {elseif $sort eq 'alpha_inv'}
57 <img src="{$platal->baseurl}images/up.png" alt="Tri décroissant" title="Tri décroissant" />
58 {/if}
59 Prénom NOM
60 </a>
61 </th>
62 <th>
63 <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}">
64 {if $sort eq 'promo_inv'}
65 <img src="{$platal->baseurl}images/dn.png" alt="Tri croissant" title="Tri croissant" />
66 {elseif $sort eq 'promo'}
67 <img src="{$platal->baseurl}images/up.png" alt="Tri décroissant" title="Tri décroissant" />
68 {/if}
69 Promo
70 </a>
71 </th>
0337d704 72 <th>Infos</th>
73 {if $admin}
a72a67b9 74 <th>Actions</th>
0337d704 75 {/if}
76 </tr>
77 {iterate from=$ann item=m}
4664b701 78 <tr>
79 <td>{if $m.admin}<strong>{/if}{if $m.femme}&bull;{/if}{$m.prenom} {$m.nom|strtoupper}{if $m.admin}</strong>{/if}</td>
80 <td>{if $m.admin}<strong>{/if}{$m.promo}{if $m.admin}</strong>{/if}</td>
81 <td class="center">
0337d704 82 {if $m.x}
05a11a4d 83 <a href="https://www.polytechnique.org/profile/{$m.email}" class="popup2">{icon name=user_suit title="fiche"}</a>
7ac1ef77 84 <a href="https://www.polytechnique.org/vcard/{$m.email}.vcf">{icon name=vcard title="[vcard]"}</a>
f7413044 85 <a href="mailto:{$m.email}@polytechnique.org">{icon name=email title="mail"}</a>
0337d704 86 {else}
f7413044 87 <a href="mailto:{$m.email}">{icon name=email title="mail"}</a>
0337d704 88 {/if}
89 </td>
90 {if $admin}
4664b701 91 <td class="center">
25edb442 92 <a href="{$platal->ns}member/{if $m.x}{$m.email}{else}{$m.uid}{/if}">{icon name=user_edit title="Edition du profil"}</a>
a72a67b9 93 <a href="{$platal->ns}member/del/{if $m.x}{$m.email}{else}{$m.uid}{/if}">{icon name=delete title="Supprimer de l'annuaire"}</a>
94 </td>
0337d704 95 {/if}
96 </tr>
97 {/iterate}
98</table>
99
4664b701 100<p class="descr" style="text-align: center">
0337d704 101{foreach from=$links item=ofs key=txt}
7b2413f6 102<a href="{$platal->ns}annuaire?offset={$ofs}&amp;initiale={$smarty.request.initiale}"{if $smarty.request.offset eq $ofs} class="erreur"{/if}>{$txt}</a>
0337d704 103{/foreach}
104</p>
105
106{* vim:set et sw=2 sts=2 sws=2: *}