Commit | Line | Data |
---|---|---|
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 | ||
46ae38a9 | 23 | <table class="bicol" style="margin-bottom: 1em" |
e8439508 | 24 | summary="Profil : Informations générales"> |
46ae38a9 FB |
25 | <tr> |
26 | <th colspan="2"> | |
0c6cbd63 | 27 | <div class="flags" style="float: left"> |
ee12da4e FB |
28 | <input type="checkbox" disabled="disabled" checked="checked" /> |
29 | {icon name="flag_green" title="site public"} | |
0c6cbd63 | 30 | </div> |
46ae38a9 FB |
31 | Informations générales |
32 | </th> | |
33 | </tr> | |
34 | <tr> | |
0c6cbd63 | 35 | <td> |
b04882ff | 36 | <span class="titre">Nom</span><br/> |
46ae38a9 | 37 | </td> |
0c6cbd63 | 38 | <td> |
b04882ff PC |
39 | {$nom} |
40 | <input type='hidden' name='nom' {if $errors.nom}class="error"{/if} value="{$nom}" /> | |
46ae38a9 FB |
41 | </td> |
42 | </tr> | |
43 | <tr> | |
0c6cbd63 | 44 | <td> |
b04882ff | 45 | <span class="titre">Prénom</span><br/> |
46ae38a9 | 46 | </td> |
0c6cbd63 | 47 | <td> |
b04882ff PC |
48 | {$prenom} |
49 | <input type='hidden' name='prenom' {if $errors.prenom}class="error"{/if} value="{$prenom}" /> | |
46ae38a9 FB |
50 | </td> |
51 | </tr> | |
52 | <tr> | |
0c6cbd63 | 53 | <td> |
b04882ff | 54 | <span class="titre">Affichage de ton nom</span> |
46ae38a9 | 55 | </td> |
0c6cbd63 | 56 | <td> |
cd5bd7dc | 57 | {if $tooltip_name}<span title="{$tooltip_name}" class="hint">{$display_name}</span>{else}{$display_name}{/if} |
ccd6c98b | 58 | <a href="profile/edit#names_advanced" onclick="$('#names_advanced').show();$(this).hide();document.location = document.location + '#names_advanced';return false"> |
b04882ff PC |
59 | {icon name="page_edit" title="Plus de détail"} |
60 | </a> | |
46ae38a9 FB |
61 | </td> |
62 | </tr> | |
63 | <tr> | |
0c6cbd63 | 64 | <td> |
b04882ff | 65 | <span class="titre">Promotion</span> |
46ae38a9 | 66 | </td> |
0c6cbd63 | 67 | <td> |
b04882ff PC |
68 | <span class="nom">X{$promo}{if ($promo != $promo_sortie - 3)} - X{math equation="a - b" a=$promo_sortie b=3}{/if}</span> |
69 | <span class="lien"><a href="profile/orange" {if ($promo_sortie -3 == $promo)} {popup text="pour les oranges"}{/if}>{icon name="page_edit" title="modifier"}</a></span> | |
46ae38a9 FB |
70 | </td> |
71 | </tr> | |
72 | <tr> | |
bc7f707b SJ |
73 | <td> |
74 | <span class="titre">Date de naissance</span> | |
75 | </td> | |
7bff4cb0 FB |
76 | <td><input type="text" {if $errors.naissance}class="error"{/if} name="naissance" value="{$naissance}" /></td> |
77 | </tr> | |
78 | <tr> | |
0c6cbd63 | 79 | <td> |
46ae38a9 FB |
80 | <span class="titre">Nationalité</span> |
81 | </td> | |
0c6cbd63 | 82 | <td> |
46ae38a9 | 83 | <select name="nationalite"> |
8450c2aa | 84 | {select_nat valeur=$nationalite pad=1} |
46ae38a9 | 85 | </select> |
8450c2aa SJ |
86 | <a href="javascript:addNationality();">{icon name=add title="Ajouter une nationalité"}</a> |
87 | </td> | |
88 | </tr> | |
89 | <tr id="nationalite2" {if !$nationalite2}style="display: none"{/if}> | |
90 | <td></td> | |
91 | <td> | |
92 | <select name="nationalite2"> | |
93 | {select_nat valeur=$nationalite2 pad=1} | |
94 | </select> | |
95 | <a href="javascript:delNationality('2');">{icon name=cross title="Supprimer cette nationalité"}</a> | |
96 | </td> | |
97 | </tr> | |
98 | <tr id="nationalite3" {if !$nationalite3}style="display: none"{/if}> | |
99 | <td></td> | |
100 | <td> | |
101 | <select name="nationalite3"> | |
102 | {select_nat valeur=$nationalite3 pad=1} | |
103 | </select> | |
104 | <a href="javascript:delNationality('3');">{icon name=cross title="Supprimer cette nationalité"}</a> | |
46ae38a9 FB |
105 | </td> |
106 | </tr> | |
58acfe8b SJ |
107 | </table> |
108 | ||
109 | <table class="bicol" style="margin-bottom: 1em" summary="Profil : Formations"> | |
4887be78 | 110 | <tr> |
58acfe8b SJ |
111 | <th colspan="2"> |
112 | <div class="flags" style="float: left"> | |
113 | <input type="checkbox" disabled="disabled" checked="checked" /> | |
114 | {icon name="flag_green" title="site public"} | |
4887be78 | 115 | </div> |
58acfe8b SJ |
116 | Formations |
117 | </th> | |
043bbacf | 118 | </tr> |
58acfe8b SJ |
119 | {foreach from=$edus key=eduid item=edu} |
120 | {cycle values="impair, pair" assign=class} | |
121 | {include file="profile/edu.tpl" eduid=$eduid edu=$edu edu_fields=$edu_fields class=$class} | |
043bbacf SJ |
122 | {/foreach} |
123 | {if $edus|@count eq 0} | |
58acfe8b SJ |
124 | {cycle values="impair, pair" assign=class} |
125 | {include file="profile/edu.tpl" eduid=0 edu=0 class=$class} | |
043bbacf | 126 | {/if} |
58acfe8b | 127 | {cycle values="impair, pair" assign=class} |
62dba58e SJ |
128 | {assign var=eduaddid value=$edus|@count} |
129 | <tr id="edu_add" class="edu_{$eduaddid} {$class}"> | |
043bbacf | 130 | <td colspan="2"> |
58acfe8b | 131 | <div class="center" style="clear: both; padding-top: 4px;"> |
043bbacf SJ |
132 | <a href="javascript:addEdu();"> |
133 | {icon name=add title="Ajouter une formation"} Ajouter une formation | |
4887be78 SJ |
134 | </a> |
135 | </div> | |
46ae38a9 FB |
136 | </td> |
137 | </tr> | |
58acfe8b | 138 | <tr class="{$class}"> |
30c895be SJ |
139 | <td class="center" colspan="2"> |
140 | <small>Si ta formation ne figure pas dans la liste, | |
141 | <a href="mailto:support@{#globals.mail.domain#}">contacte-nous</a>.</small> | |
142 | </td> | |
143 | </tr> | |
144 | </table> | |
0337d704 | 145 | |
b04882ff PC |
146 | <table class="bicol" style="margin-bottom: 1em;display:none" |
147 | summary="Profil : Noms" id="names_advanced"> | |
148 | <tr> | |
149 | <th colspan="2"> | |
150 | Noms | |
151 | </th> | |
152 | </tr> | |
ccd6c98b | 153 | <tr class="impair"> |
b04882ff PC |
154 | <td> |
155 | <span class="flags"> | |
156 | <input type="checkbox" checked="checked" disabled="disabled" /> | |
157 | {icon name="flag_green" title="site public"} | |
158 | </span> | |
159 | <span class="titre">Affichage courant de ton nom</span> | |
ccd6c98b | 160 | <a class="popup3" href="Xorg/Profil#name_displayed">{icon name="information" title="aide"}</a> |
b04882ff PC |
161 | </td> |
162 | <td> | |
163 | <input type="text" name="display_name" value="{$display_name}" size="40"/> | |
164 | </td> | |
165 | </tr> | |
ccd6c98b | 166 | <tr class="impair"> |
b04882ff PC |
167 | <td> |
168 | <span class="titre">explication</span> | |
ccd6c98b | 169 | <a class="popup3" href="Xorg/Profil#name_tooltip">{icon name="information" title="aide"}</a> |
b04882ff PC |
170 | </td> |
171 | <td> | |
172 | <input type="text" name="tooltip_name" value="{$tooltip_name}" size="40"/> | |
173 | </td> | |
174 | </tr> | |
ccd6c98b | 175 | <tr class="impair"> |
b04882ff PC |
176 | <td> |
177 | <span class="titre">ranger ce nom à</span> | |
ccd6c98b | 178 | <a class="popup3" href="Xorg/Profil#name_order">{icon name="information" title="aide"}</a> |
b04882ff PC |
179 | </td> |
180 | <td> | |
181 | <input type="text" name="sort_name" value="{$sort_name}" size="40"/> | |
182 | </td> | |
183 | </tr> | |
ccd6c98b | 184 | <tr class="impair"> |
b04882ff PC |
185 | <td> |
186 | <span class="flags"> | |
187 | <input type="checkbox" checked="checked" disabled="disabled" /> | |
188 | {icon name="flag_red" title="privé"} | |
189 | </span> | |
190 | <span class="titre">Comment on doit t'appeller</span> | |
ccd6c98b | 191 | <a class="popup3" href="Xorg/Profil#name_yourself">{icon name="information" title="aide"}</a> |
b04882ff PC |
192 | </td> |
193 | <td> | |
194 | <input type="text" name="yourself" value="{$yourself}" size="40"/> | |
195 | </td> | |
196 | </tr> | |
ccd6c98b | 197 | <tr class="impair"> |
b04882ff | 198 | <td colspan="2"> |
ccd6c98b PC |
199 | <span class="titre">Recherche</span><span class="smaller">, ta fiche apparaît quand on cherche un de ces noms</span> |
200 | <a class="popup3" href="Xorg/Profil#name_search">{icon name="information" title="aide"}</a> | |
b04882ff PC |
201 | {iterate from=$search_names item="sn"} |
202 | <div id="search_name_{$sn.sn_id}" style="padding:2px" class="center"> | |
203 | {include file="profile/general.searchname.tpl" i=$sn.sn_id sn=$sn} | |
204 | </div> | |
205 | {/iterate} | |
206 | <div id="add_search_name" class="center" style="clear: both"> | |
207 | <a href="javascript:addSearchName()"> | |
208 | {icon name=add title="Ajouter un nom de recherche"} Ajouter un nom | |
209 | </a> | |
210 | </div> | |
211 | </td> | |
212 | </table> | |
213 | ||
33ae80b5 | 214 | {if !$no_private_key} |
46ae38a9 | 215 | <table class="bicol" style="margin-bottom: 1em" |
e8439508 | 216 | summary="Profil : Informations générales"> |
46ae38a9 FB |
217 | <tr> |
218 | <th> | |
219 | Synchronisation avec l'AX | |
220 | </th> | |
221 | </tr> | |
222 | <tr> | |
0c6cbd63 | 223 | <td class="flags"> |
ee12da4e FB |
224 | <input type="checkbox" name="synchro_ax" {if $synchro_ax}checked="checked" {/if}/> |
225 | {icon name="flag_orange" title="transmis à l'AX"} | |
0c6cbd63 FB |
226 | <span class="texte"> |
227 | Autoriser la synchronisation vers l'AX par des administrateurs ou des scripts automatiques. | |
228 | </span> | |
229 | </td> | |
230 | </tr> | |
231 | <tr> | |
46ae38a9 FB |
232 | <td> |
233 | <p> | |
234 | Le service annuaire de l'<a href='http://www.polytechniciens.com'>AX</a> met à jour l'annuaire papier à partir des informations que tu lui fournis. Tu peux choisir ici d'envoyer directement les données de ta fiche Polytechnique.org vers ta <a href="http://www.polytechniciens.com/?page=AX_FICHE_ANCIEN&anc_id={$matricule_ax}">fiche AX</a>. | |
235 | </p> | |
236 | <p> | |
237 | L'opération de synchronisation prend en compte toutes les informations que tu as marquées comme transmises à l'AX (en orange ou en vert). Elle peut alors effacer, modifier ou rajouter des informations sur ta <a href="http://www.polytechniciens.com/?page=AX_FICHE_ANCIEN&anc_id={$matricule_ax}">fiche AX</a> selon ce qui s'y trouve déjà. | |
238 | </p> | |
239 | <p class="center"> | |
240 | <a href="profile/edit/general?synchro_ax=confirm" onclick="return confirm('Es-tu sûr de vouloir lancer la synchronisation ?')"><input type="button" value="Synchroniser"/></a> | |
241 | </p> | |
242 | </td> | |
243 | </tr> | |
46ae38a9 | 244 | </table> |
33ae80b5 | 245 | {/if} |
76011d98 | 246 | |
46ae38a9 | 247 | <table class="bicol" style="margin-bottom: 1em" |
841ff7e7 | 248 | summary="Profil : Trombinoscope"> |
46ae38a9 FB |
249 | <tr> |
250 | <th colspan="2"> | |
0c6cbd63 | 251 | <div class="flags" style="float: left"> |
276f1db2 SJ |
252 | <label><input type="checkbox" name="photo_pub" {if $photo_pub eq 'public'}checked="checked" {/if}/> |
253 | {icon name="flag_green" title="site public"}</label> | |
0c6cbd63 | 254 | </div> |
46ae38a9 FB |
255 | Trombinoscope |
256 | </th> | |
257 | </tr> | |
258 | <tr> | |
46ae38a9 FB |
259 | <td {if !$nouvellephoto}colspan="2"{/if} class="center" style="width: 49%"> |
260 | <div class="titre">Ta photo actuelle</div> | |
261 | <img src="photo/{$smarty.session.forlife}" alt=" [ PHOTO ] " style="max-height: 250px; margin-top: 1em" /> | |
262 | </td> | |
263 | {if $nouvellephoto} | |
264 | <td class="center" style="width: 49%"> | |
265 | <div class="titre">Photo en attente de validation</div> | |
266 | <div> | |
267 | <a href="profile/{$smarty.session.forlife}?modif=new" class="popup2"> | |
268 | Ta fiche avec cette photo | |
269 | </a> | |
270 | </div> | |
271 | <img src="photo/{$smarty.session.forlife}/req" alt=" [ PHOTO ] " style="max-height: 250px; margin-top: 1em" /> | |
272 | </td> | |
273 | {/if} | |
274 | </tr> | |
275 | <tr class="pair"> | |
276 | <td colspan="2"> | |
277 | Pour profiter de cette fonction intéressante, tu dois disposer | |
278 | quelque part (sur ton ordinateur ou sur Internet) d'une photo | |
279 | d'identité (dans un fichier au format JPEG, PNG ou GIF).<br /> | |
280 | <div class="center"> | |
281 | <a href="photo/change">Éditer ta photo</a> | |
282 | </div> | |
283 | </td> | |
284 | </tr> | |
285 | </table> | |
286 | ||
287 | <table class="bicol" style="margin-bottom: 1em" | |
841ff7e7 | 288 | summary="Profil : Divers"> |
46ae38a9 FB |
289 | <tr> |
290 | <th colspan="2"> | |
291 | Divers | |
292 | </th> | |
293 | </tr> | |
294 | <tr> | |
bde2be3b GB |
295 | <td colspan="2"> |
296 | <span class="titre">Téléphones personnels</span> | |
46ae38a9 | 297 | </td> |
bde2be3b GB |
298 | </tr> |
299 | <tr> | |
300 | <td colspan="2"> | |
301 | {foreach from=$tels key=telid item=tel} | |
302 | <div id="tels_{$telid}" style="clear: both; padding-top: 4px; padding-bottom: 4px"> | |
303 | {include file="profile/phone.tpl" prefname='tels' prefid='tels' telid=$telid tel=$tel} | |
304 | </div> | |
305 | {/foreach} | |
306 | {if $tels|@count eq 0} | |
307 | <div id="tels_0" style="clear: both; padding-top: 4px; padding-bottom: 4px"> | |
308 | {include file="profile/phone.tpl" prefname='tels' preid='tels' telid=0 tel=0} | |
309 | </div> | |
310 | {/if} | |
311 | <div id="tels_add" class="center" style="clear: both; padding-top: 4px;"> | |
312 | <a href="javascript:addTel('tels', 'tels');"> | |
d8782f18 | 313 | {icon name=add title="Ajouter un téléphone"} Ajouter un téléphone |
bde2be3b GB |
314 | </a> |
315 | </div> | |
46ae38a9 FB |
316 | </td> |
317 | </tr> | |
b715c1e1 SJ |
318 | {if $email_error} |
319 | {include file="include/emails.combobox.tpl" name="email_directory" val=$email_directory_error error=$email_error} | |
320 | {else}{include file="include/emails.combobox.tpl" name="email_directory" val=$email_directory error=$email_error}{/if} | |
46ae38a9 | 321 | <tr> |
d1a2252a GB |
322 | <td colspan="2"> |
323 | <span class="titre">Messageries, networking et sites web</span> | |
324 | </td> | |
325 | </tr> | |
d1a2252a GB |
326 | {foreach from=$networking item=network key=id} |
327 | {include file="profile/general.networking.tpl" nw=$network i=$id} | |
328 | {/foreach} | |
92c3f9e5 GB |
329 | <tr id="networking"> |
330 | <script type="text/javascript">//<![CDATA[ | |
331 | var nw_list = new Array(); | |
332 | {foreach from=$network_list item=network} | |
333 | nw_list['{$network.name}'] = {$network.type}; | |
334 | {/foreach} | |
335 | //]]></script> | |
336 | <td colspan="2"> | |
337 | <div id="nw_add" class="center"> | |
338 | <a href="javascript:addNetworking();"> | |
339 | {icon name=add title="Ajouter une adresse"} Ajouter une adresse | |
340 | </a> | |
341 | </div> | |
342 | </td> | |
343 | </tr> | |
344 | <!-- <tr id="networking"> | |
345 | <td colspan="2"> | |
346 | <div style="float: left; width: 200px;"> | |
347 | <span class="titre" style="margin-left:1em;">Type à ajouter</span> | |
348 | </div> | |
349 | <div style="float: left;"> | |
350 | <div id="nw_type_ac" style="background-color: white; border: solid 1px black; position: absolute; width: 208px; display: none">TEST</div> | |
351 | <input type="text" size="30" id="nw_type" name="nw_type" onkeyup="updateNetworking()"> | |
352 | <span id="nw_add" style="display: none"> | |
353 | <a href="javascript:addNetworking();">{icon name=add title="Ajouter cette adresse"}</a> | |
354 | </span> | |
355 | </div> | |
356 | </td> | |
357 | </tr>--> | |
e60e10d7 | 358 | <tr class="pair"> |
0c6cbd63 | 359 | <td> |
46ae38a9 | 360 | <div> |
0c6cbd63 | 361 | <span class="flags"> |
276f1db2 SJ |
362 | <label><input type="checkbox" name="freetext_pub" {if $freetext_pub eq 'public'}checked="checked"{/if} /> |
363 | {icon name="flag_green" title="site public"}</label> | |
0c6cbd63 | 364 | </span> |
1052148d | 365 | <span class="titre">Commentaire</span> |
46ae38a9 FB |
366 | </div> |
367 | <div class="smaller" style="margin-top: 30px"> | |
368 | <a href="wiki_help/notitle" class="popup3"> | |
e60e10d7 | 369 | {icon name=information title="Syntaxe wiki"} Voir la syntaxe wiki autorisée |
46ae38a9 | 370 | </a> |
0447150d | 371 | <div class="center"> |
46ae38a9 FB |
372 | <input type="submit" name="preview" value="Aperçu" |
373 | onclick="previewWiki('freetext', 'ft_preview', true, 'ft_preview'); return false;" /> | |
3950bc21 | 374 | </div> |
46ae38a9 FB |
375 | </div> |
376 | </td> | |
0c6cbd63 | 377 | <td> |
46ae38a9 FB |
378 | <div id="ft_preview" style="display: none"></div> |
379 | <textarea name="freetext" {if $errors.freetext}class="error"{/if} | |
e60e10d7 | 380 | id="freetext" rows="8" cols="50" >{$freetext}</textarea> |
46ae38a9 FB |
381 | </td> |
382 | </tr> | |
383 | </table> | |
0337d704 | 384 | |
a7de4ef7 | 385 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |