Commit | Line | Data |
---|---|---|
0337d704 | 1 | {**************************************************************************} |
2 | {* *} | |
5e1513f6 | 3 | {* Copyright (C) 2003-2011 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 | ||
34ade5a6 | 23 | <h1>{$asso->nom} : Annuaire du groupe </h1> |
0337d704 | 24 | |
25 | <p class="descr"> | |
34ade5a6 | 26 | Le groupe {$asso->nom} compte {$nb_tot} membres : |
0337d704 | 27 | </p> |
28 | ||
0337d704 | 29 | <ul class="descr"> |
d24c8a11 | 30 | {if $is_admin} |
5e193297 | 31 | <li> |
32 | <a href="{$platal->ns}member/new"> | |
aab2ffdd | 33 | {icon name=add title="Ajouter un membre"} |
5e193297 | 34 | Ajouter un membre |
35 | </a> | |
36 | </li> | |
52366335 SJ |
37 | <li> |
38 | <a href="{$platal->ns}directory/sync"> | |
39 | {icon name=arrow_refresh title="Synchroniser avec les listes"} | |
40 | Synchroniser avec les listes | |
41 | </a> | |
42 | </li> | |
c329751f SJ |
43 | <li> |
44 | <a href="{$platal->ns}directory/unact"> | |
45 | {icon name=group_gear title="Lister les membres du groupe sans compte actif"} | |
46 | Lister les membres du groupe sans compte actif | |
47 | </a> | |
48 | </li> | |
e1406965 | 49 | {if $asso->has_ml} |
5e193297 | 50 | <li> |
51 | <a href="{$platal->ns}admin/annuaire"> | |
aab2ffdd | 52 | {icon name=wand title="Synchroniser"} |
77af6562 | 53 | Synchroniser annuaire et listes de diffusion |
5e193297 | 54 | </a> |
55 | </li> | |
56 | {/if} | |
41c0150b | 57 | {/if} |
dc2073c3 | 58 | <li> |
34ade5a6 | 59 | <a href="{$platal->ns}annuaire/csv/{$asso->diminutif}.csv"> |
aab2ffdd | 60 | {icon name=page_excel title="Fichier Excel"} |
102f4e64 FB |
61 | Obtenir au format Excel |
62 | </a> | |
63 | </li> | |
64 | <li> | |
34ade5a6 | 65 | <a href="{$platal->ns}annuaire/vcard/photos/{$asso->diminutif}.vcf"> |
aab2ffdd | 66 | {icon name=vcard title="Carte de visite"} |
a7de4ef7 | 67 | Ajouter les membres à ton carnet d'adresse |
dc2073c3 | 68 | </a> |
34ade5a6 | 69 | (<a href="{$platal->ns}annuaire/vcard/{$asso->diminutif}.vcf">sans les photos</a>) |
dc2073c3 | 70 | </li> |
0337d704 | 71 | </ul> |
0337d704 | 72 | |
a91fb584 | 73 | {if $plset_base} |
a9cd2bab | 74 | {include core=plset.tpl} |
a91fb584 | 75 | {else} |
76 | ||
0337d704 | 77 | <p class="center"> |
f6d7a2df FB |
78 | [<a href="{$platal->ns}annuaire?order={$order}" {if !$only_admin}class="erreur"{/if}>tous les membres</a>] |
79 | [<a href="{$platal->ns}annuaire?order={$order}&admin=1" {if $only_admin}class="erreur"{/if}>animateurs</a>]<br/> | |
80 | {* | |
81 | XXX: This code has been temporary dropped, waiting for a cleaner way to do that stuff | |
0337d704 | 82 | {foreach from=$alphabet item=c} |
d8d9fb55 | 83 | {if $c} |
f6d7a2df | 84 | [<a href="{$platal->ns}annuaire?order={$order}&admin={$only_admin}"{if $request_group eq $c} class="erreur"{/if}>{$c}</a>] |
d8d9fb55 | 85 | {/if} |
0337d704 | 86 | {/foreach} |
f6d7a2df | 87 | *} |
0337d704 | 88 | </p> |
89 | ||
54b24ba2 | 90 | <table summary="membres du groupe" class="bicol"> |
0337d704 | 91 | <tr> |
e02ecfce | 92 | <th> |
f6d7a2df FB |
93 | <a href="{$platal->ns}annuaire?order={if $order eq 'directory_name'}-{/if}directory_name&admin={$only_admin}"> |
94 | {if $order eq 'directory_name'} | |
c73a312d | 95 | <img src="{$platal->baseurl}images/dn.png" alt="" title="Tri croissant" /> |
f6d7a2df | 96 | {elseif $order eq '-directory_name'} |
a7de4ef7 | 97 | <img src="{$platal->baseurl}images/up.png" alt="" title="Tri décroissant" /> |
e02ecfce | 98 | {/if} |
445d244c | 99 | NOM Prénom |
e02ecfce | 100 | </a> |
101 | </th> | |
102 | <th> | |
f6d7a2df FB |
103 | <a href="{$platal->ns}annuaire?order={if $order eq 'promo'}-{/if}promo&admin={$only_admin}"> |
104 | {if $order eq '-promo'} | |
c73a312d | 105 | <img src="{$platal->baseurl}images/dn.png" alt="" title="Tri croissant" /> |
f6d7a2df | 106 | {elseif $order eq 'promo'} |
a7de4ef7 | 107 | <img src="{$platal->baseurl}images/up.png" alt="" title="Tri décroissant" /> |
e02ecfce | 108 | {/if} |
f6d7a2df | 109 | Promo |
e02ecfce | 110 | </a> |
111 | </th> | |
54b24ba2 | 112 | <th colspan="2">Infos</th> |
d24c8a11 | 113 | {if $is_admin} |
a72a67b9 | 114 | <th>Actions</th> |
0337d704 | 115 | {/if} |
116 | </tr> | |
4cc4d017 | 117 | {assign var=lostUsers value=false} |
f6d7a2df | 118 | {foreach from=$users item=user} |
4664b701 | 119 | <tr> |
fbacde57 | 120 | <td> |
4cc4d017 | 121 | {if $user->lost}{assign var=lostUsers value=true}{/if} |
f6d7a2df | 122 | {profile user=$user promo=false} |
9c817bfd | 123 | </td> |
f6d7a2df | 124 | <td> |
ee4556f0 FB |
125 | {if $user->group_perms eq 'admin' && $user->category()}<strong>{/if} |
126 | {$user->category()|default:"Extérieur"} | |
127 | {if $user->group_perms eq 'admin' && $user->category()}</strong>{/if} | |
f6d7a2df FB |
128 | </td> |
129 | {if $user->group_comm} | |
130 | <td>{$user->group_comm}</td> | |
54b24ba2 | 131 | {/if} |
e46cf8c4 | 132 | <td class="right"{if !$user->group_comm} colspan="2"{/if}> |
34ade5a6 FB |
133 | {if $user->hasProfile()} |
134 | <a href="https://www.polytechnique.org/vcard/{$user->login()}.vcf">{icon name=vcard title="[vcard]"}</a> | |
135 | {/if} | |
136 | <a href="mailto:{$user->bestEmail()}">{icon name=email title="email"}</a> | |
0337d704 | 137 | </td> |
d24c8a11 | 138 | {if $is_admin} |
4664b701 | 139 | <td class="center"> |
3f95a7bd | 140 | <a href="{$platal->ns}member/{$user->login()}">{icon name=user_edit title="Édition du profil"}</a> |
f6d7a2df | 141 | <a href="{$platal->ns}member/del/{$user->login()}">{icon name=delete title="Supprimer de l'annuaire"}</a> |
a72a67b9 | 142 | </td> |
0337d704 | 143 | {/if} |
144 | </tr> | |
f6d7a2df | 145 | {/foreach} |
0337d704 | 146 | </table> |
147 | ||
a087cc8d | 148 | {if $pages gt 1} |
4664b701 | 149 | <p class="descr" style="text-align: center"> |
a087cc8d | 150 | {section name="links" loop=$pages} |
ce814052 FB |
151 | {if $smarty.section.links.index eq $current} |
152 | <span class="erreur">{$smarty.section.links.iteration}</span> | |
153 | {else} | |
154 | {if $smarty.section.links.first} | |
155 | <a href="{$platal->ns}annuaire?offset={$current-1}&order={$order}&admin={$only_admin}">précédente</a> | |
156 | {/if} | |
157 | <a href="{$platal->ns}annuaire?offset={$smarty.section.links.index}&order={$order}&admin={$only_admin}">{$smarty.section.links.iteration}</a> | |
158 | {if $smarty.section.links.last} | |
159 | <a href="{$platal->ns}annuaire?offset={$current+1}&order={$order}&admin={$only_admin}">suivante</a> | |
160 | {/if} | |
161 | {/if} | |
162 | {/section} | |
0337d704 | 163 | </p> |
ce814052 | 164 | {/if} |
0337d704 | 165 | |
4cc4d017 | 166 | {if $lostUsers} |
e429fff0 | 167 | <p class="smaller"> |
841ff7e7 | 168 | {icon name=error} Un camarade signalé par ce symbole n'a plus d'adresse de redirection et ne peut donc |
a7de4ef7 | 169 | plus être contacté via son adresse polytechnique.org. Si tu connais sa nouvelle adresse, tu peux nous la communiquer en |
e429fff0 | 170 | cliquant sur le symbole. |
171 | </p> | |
aa7cb883 | 172 | {/if} |
e429fff0 | 173 | |
a91fb584 | 174 | {/if} |
175 | ||
a7de4ef7 | 176 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |