Update to last core:
[platal.git] / templates / xnetgrp / annuaire.tpl
CommitLineData
0337d704 1{**************************************************************************}
2{* *}
179afa7f 3{* Copyright (C) 2003-2008 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
e8439508 23<h1>{$asso.nom}&nbsp;: Annuaire du groupe </h1>
0337d704 24
25<p class="descr">
78cf6438 26Le groupe {$asso.nom} compte {$nb_tot} membres&nbsp;:
0337d704 27</p>
28
0337d704 29<ul class="descr">
d24c8a11 30 {if $is_admin}
5e193297 31 <li>
32 <a href="{$platal->ns}member/new">
33 {icon name=add title="Ajouter un membre"}
34 Ajouter un membre
35 </a>
36 </li>
37 <li>
38 <a href="{$platal->ns}admin/annuaire">
39 {icon name=wand title="Synchroniser"}
77af6562 40 Synchroniser annuaire et listes de diffusion
5e193297 41 </a>
42 </li>
43 {/if}
dc2073c3 44 <li>
102f4e64
FB
45 <a href="{$platal->ns}annuaire/csv/{$asso.diminutif}.csv">
46 {icon name=page_excel title="Fichier Excel"}
47 Obtenir au format Excel
48 </a>
49 </li>
50 <li>
dc2073c3 51 <a href="{$platal->ns}annuaire/vcard/photos/{$asso.diminutif}.vcf">
52 {icon name=vcard title="Carte de visite"}
a7de4ef7 53 Ajouter les membres à ton carnet d'adresse
dc2073c3 54 </a>
55 (<a href="{$platal->ns}annuaire/vcard/{$asso.diminutif}.vcf">sans les photos</a>)
56 </li>
0337d704 57</ul>
0337d704 58
a91fb584 59{if $plset_base}
a9cd2bab 60{include core=plset.tpl}
a91fb584 61{else}
62
0337d704 63<p class="center">
f2900e25 64[<a href="{$platal->ns}annuaire?order={$smarty.request.order}" {if !$only_admin}class="erreur"{/if}>tous les membres</a>]
77af6562 65[<a href="{$platal->ns}annuaire?order={$smarty.request.order}&amp;admin=1" {if $only_admin}class="erreur"{/if}>animateurs</a>]<br/>
0337d704 66{foreach from=$alphabet item=c}
d8d9fb55 67{if $c}
f2900e25 68[<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>]
d8d9fb55 69{/if}
0337d704 70{/foreach}
71</p>
72
54b24ba2 73<table summary="membres du groupe" class="bicol">
0337d704 74 <tr>
e02ecfce 75 <th>
f2900e25 76 <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}">
e02ecfce 77 {if $sort eq 'alpha'}
c73a312d 78 <img src="{$platal->baseurl}images/dn.png" alt="" title="Tri croissant" />
e02ecfce 79 {elseif $sort eq 'alpha_inv'}
a7de4ef7 80 <img src="{$platal->baseurl}images/up.png" alt="" title="Tri décroissant" />
e02ecfce 81 {/if}
a7de4ef7 82 Prénom NOM
e02ecfce 83 </a>
84 </th>
85 <th>
86 <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}">
87 {if $sort eq 'promo_inv'}
c73a312d 88 <img src="{$platal->baseurl}images/dn.png" alt="" title="Tri croissant" />
e02ecfce 89 {elseif $sort eq 'promo'}
a7de4ef7 90 <img src="{$platal->baseurl}images/up.png" alt="" title="Tri décroissant" />
e02ecfce 91 {/if}
92 Promo
93 </a>
94 </th>
54b24ba2 95 <th colspan="2">Infos</th>
d24c8a11 96 {if $is_admin}
a72a67b9 97 <th>Actions</th>
0337d704 98 {/if}
99 </tr>
100 {iterate from=$ann item=m}
4664b701 101 <tr>
fbacde57 102 <td>
103 {if $m.admin}<strong>{/if}
dc2073c3 104 {if $m.inscrit}
98a7e9dc 105 <a href="https://www.polytechnique.org/profile/{$m.email}" class="popup2">
dc2073c3 106 {elseif $m.x}
98a7e9dc 107 <a href="https://www.polytechnique.org/marketing/public/{$m.uid}">
dc2073c3 108 {/if}
add9e6eb 109 {if $m.femme}&bull;{/if}{if $m.prenom || $m.nom}{$m.prenom} {$m.nom|strtoupper}{else}{$m.email}{/if}
fbacde57 110 {if $m.x}</a>{/if}
e429fff0 111 {if $m.admin}</strong>{/if}
112 {if $m.inscrit && !$m.actif}
113 <a href="https://www.polytechnique.org/marketing/broken/{$m.email}">{icon name=error title="Recherche d'email"}</a>
114 {assign var=broken value=true}
115 {/if}</td>
fbacde57 116 <td>{if $m.admin}<strong>{/if}{$m.promo}{if $m.admin}</strong>{/if}</td>
54b24ba2
FB
117 {if $m.comm}
118 <td>{$m.comm}</td>
119 {/if}
d6eba9a4 120 <td class="right" {if !$m.comm}colspan="2"{/if}>
dc2073c3 121 {if $m.inscrit}
7ac1ef77 122 <a href="https://www.polytechnique.org/vcard/{$m.email}.vcf">{icon name=vcard title="[vcard]"}</a>
faefdbb7 123 <a href="mailto:{$m.email}@polytechnique.org">{icon name=email title="email"}</a>
0337d704 124 {else}
faefdbb7 125 <a href="mailto:{$m.email}">{icon name=email title="email"}</a>
0337d704 126 {/if}
127 </td>
d24c8a11 128 {if $is_admin}
4664b701 129 <td class="center">
25edb442 130 <a href="{$platal->ns}member/{if $m.x}{$m.email}{else}{$m.uid}{/if}">{icon name=user_edit title="Edition du profil"}</a>
a72a67b9 131 <a href="{$platal->ns}member/del/{if $m.x}{$m.email}{else}{$m.uid}{/if}">{icon name=delete title="Supprimer de l'annuaire"}</a>
132 </td>
0337d704 133 {/if}
134 </tr>
135 {/iterate}
136</table>
137
4664b701 138<p class="descr" style="text-align: center">
0337d704 139{foreach from=$links item=ofs key=txt}
d3b88248 140<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>
0337d704 141{/foreach}
142</p>
143
e429fff0 144{if $broken}
145<p class="smaller">
841ff7e7 146 {icon name=error}&nbsp;Un camarade signalé par ce symbole n'a plus d'adresse de redirection et ne peut donc
a7de4ef7 147 plus être contacté via son adresse polytechnique.org. Si tu connais sa nouvelle adresse, tu peux nous la communiquer en
e429fff0 148 cliquant sur le symbole.
149</p>
150{/if}
151
a91fb584 152{/if}
153
a7de4ef7 154{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}