1 {**************************************************************************}
3 {* Copyright (C) 2003-2009 Polytechnique.org *}
4 {* http://opensource.polytechnique.org/ *}
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. *}
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. *}
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 *}
21 {**************************************************************************}
23 <table class="bicol" style="margin-bottom: 1em" summary="Profil : Informations Polytechniciennes">
26 <div class="flags" style="float: left">
27 <input type="checkbox" name="accesX" checked="checked" disabled="disabled" />
28 {icon name="flag_red" title="privé"}
30 Informations polytechniciennes
34 <td class="titre" style="width: 30%">{if $old}ex-{/if}Section</td>
36 <select name="section">
37 {select_db_table table="sections" valeur=$section}
43 <td class="titre">{if $old}ex-{/if}Binet(s)</td>
45 <select name="binets_sel" onchange="updateGroup('binets')">
46 {select_db_table table="binets_def" valeur=0 champ="text" pad='1'}
48 <a id="binets_add" style="display: none"
49 href="javascript:addGroup('binets')">{icon name="add" title="Ajouter ce binet"}</a>
52 {foreach item=text key=bid from=$binets}
53 <tr id="binets_{$bid}">
55 <input type="hidden" name="binets[{$bid}]" value="{$text}" />
58 <div style="float: left; width: 70%">
61 <a href="javascript:removeGroup('binets', {$bid})">{icon name="cross" title="Supprimer ce binet"}</a>
66 <table class="bicol" style="margin-bottom: 1em">
68 <th colspan="2">Groupes et institutions X</th>
73 La gestion des annuaires des groupes X est réalisée grâce à
74 <a href="http://www.polytechnique.net">Polytechnique.net</a>. Pour faire apparaître un groupe sur ta fiche
75 il faut que tu sois inscrit dans ce groupe sur <a href="http://www.polytechnique.net">Polytechnique.net</a>.
82 Tu peux demander ton inscription aux groupes X qui t'intéressent. Voici la liste de ceux disponibles actuellement
83 sur Polytechnique.net et qui autorisent les demandes d'inscription :
89 {assign var=groupcat value=""}
90 {assign var=ingroup value=false}
91 <select name="groupesx_sub" onchange="updateGroupSubLink(this)">
92 {iterate from=$listgroups item=group}
93 {if $group.dom neq $groupcat}
96 {assign var=ingroup value=false}
99 <optgroup label="{$group.dom}">
100 {assign var=ingroup value=true}
101 {assign var=groupcat value="`$group.dom`"}
104 <option value="{if $group.sub_url}{$group.sub_url}{else}http://www.polytechnique.net/{$group.diminutif}/subscribe{/if}">
108 {if $ingroup}</optgroup>{/if}
111 <td style="text-align: right">
112 <a href="http://www.polytechnique.net" id="groupesx_sub">
113 {icon name="add" title="Demander ton inscription"} Demander ton inscription
117 {if $mygroups->total()}
119 <td colspan="2">Tu es actuellement dans les groupes suivants :</td>
122 {assign var=grp_admin value=false}
123 {assign var=grp_public value=false}
124 {iterate from=$mygroups item=group}
127 {if $group.pub neq 'public'}
128 {icon name=error title="Liste de membres a accès restreint"}
129 {assign var=grp_public value=true}
131 {if $group.perms eq 'admin'}
132 {icon name=wrench title="Tu es administrateur du groupe"}
133 {assign var=grp_admin value=true}
135 {if $group.site}<a href="{$group.site}">{else}<a href="http://www.polytechnique.net/{$group.diminutif}">{/if}
139 <td style="text-align: right; width: 30%">
140 <a href="{if $group.unsub_url}{$group.unsub_url}{else}http://www.polytechnique.net/{$group.diminutif}/unsubscribe{/if}">
141 {icon name=cross title="Demander désinscription"} Demander ta désinscription
146 {if $grp_admin || $grp_public}
148 <td colspan="2" class="smaller">
149 <div class="titre">Signification des symboles :</div>
150 {if $grp_public}{icon name=error} L'annuaire du groupe est à visibilité restreinte et ce groupe n'apparaîtra pas sur ta
152 {if $grp_public && $grp_admin}<br />{/if}
153 {if $grp_admin}{icon name=wrench} Tu es administrateur du groupe{/if}
159 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}