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> | |
4887be78 | 107 | <tr> |
043bbacf SJ |
108 | <td> |
109 | <span class="titre">Formation</span> | |
46ae38a9 | 110 | </td> |
4887be78 | 111 | <td></td> |
46ae38a9 | 112 | </tr> |
043bbacf | 113 | {foreach from=$edus key=eduid item=edu} |
4887be78 | 114 | <tr> |
043bbacf SJ |
115 | <td colspan="2"> |
116 | <div id="edu_{$eduid}"> | |
117 | {include file="profile/edu.tpl" eduid="$eduid" edu="$edu" edu_fields=$edu_fields} | |
4887be78 | 118 | </div> |
043bbacf SJ |
119 | </td> |
120 | </tr> | |
121 | {/foreach} | |
122 | {if $edus|@count eq 0} | |
123 | <tr> | |
4887be78 | 124 | <td colspan="2"> |
043bbacf SJ |
125 | <div id="edu_0"> |
126 | {include file="profile/edu.tpl" eduid=0 edu=0} | |
127 | </div> | |
128 | </td> | |
129 | </tr> | |
130 | {/if} | |
131 | <tr> | |
132 | <td colspan="2"> | |
133 | <div id="edu_add" class="center" style="clear: both; padding-top: 4px;"> | |
134 | <a href="javascript:addEdu();"> | |
135 | {icon name=add title="Ajouter une formation"} Ajouter une formation | |
4887be78 SJ |
136 | </a> |
137 | </div> | |
46ae38a9 FB |
138 | </td> |
139 | </tr> | |
043bbacf | 140 | <tr class="impair"> |
30c895be SJ |
141 | <td class="center" colspan="2"> |
142 | <small>Si ta formation ne figure pas dans la liste, | |
143 | <a href="mailto:support@{#globals.mail.domain#}">contacte-nous</a>.</small> | |
144 | </td> | |
145 | </tr> | |
146 | </table> | |
0337d704 | 147 | |
b04882ff PC |
148 | <table class="bicol" style="margin-bottom: 1em;display:none" |
149 | summary="Profil : Noms" id="names_advanced"> | |
150 | <tr> | |
151 | <th colspan="2"> | |
152 | Noms | |
153 | </th> | |
154 | </tr> | |
ccd6c98b | 155 | <tr class="impair"> |
b04882ff PC |
156 | <td> |
157 | <span class="flags"> | |
158 | <input type="checkbox" checked="checked" disabled="disabled" /> | |
159 | {icon name="flag_green" title="site public"} | |
160 | </span> | |
161 | <span class="titre">Affichage courant de ton nom</span> | |
ccd6c98b | 162 | <a class="popup3" href="Xorg/Profil#name_displayed">{icon name="information" title="aide"}</a> |
b04882ff PC |
163 | </td> |
164 | <td> | |
165 | <input type="text" name="display_name" value="{$display_name}" size="40"/> | |
166 | </td> | |
167 | </tr> | |
ccd6c98b | 168 | <tr class="impair"> |
b04882ff PC |
169 | <td> |
170 | <span class="titre">explication</span> | |
ccd6c98b | 171 | <a class="popup3" href="Xorg/Profil#name_tooltip">{icon name="information" title="aide"}</a> |
b04882ff PC |
172 | </td> |
173 | <td> | |
174 | <input type="text" name="tooltip_name" value="{$tooltip_name}" size="40"/> | |
175 | </td> | |
176 | </tr> | |
ccd6c98b | 177 | <tr class="impair"> |
b04882ff PC |
178 | <td> |
179 | <span class="titre">ranger ce nom à</span> | |
ccd6c98b | 180 | <a class="popup3" href="Xorg/Profil#name_order">{icon name="information" title="aide"}</a> |
b04882ff PC |
181 | </td> |
182 | <td> | |
183 | <input type="text" name="sort_name" value="{$sort_name}" size="40"/> | |
184 | </td> | |
185 | </tr> | |
ccd6c98b | 186 | <tr class="impair"> |
b04882ff PC |
187 | <td> |
188 | <span class="flags"> | |
189 | <input type="checkbox" checked="checked" disabled="disabled" /> | |
190 | {icon name="flag_red" title="privé"} | |
191 | </span> | |
192 | <span class="titre">Comment on doit t'appeller</span> | |
ccd6c98b | 193 | <a class="popup3" href="Xorg/Profil#name_yourself">{icon name="information" title="aide"}</a> |
b04882ff PC |
194 | </td> |
195 | <td> | |
196 | <input type="text" name="yourself" value="{$yourself}" size="40"/> | |
197 | </td> | |
198 | </tr> | |
ccd6c98b | 199 | <tr class="impair"> |
b04882ff | 200 | <td colspan="2"> |
ccd6c98b PC |
201 | <span class="titre">Recherche</span><span class="smaller">, ta fiche apparaît quand on cherche un de ces noms</span> |
202 | <a class="popup3" href="Xorg/Profil#name_search">{icon name="information" title="aide"}</a> | |
b04882ff PC |
203 | {iterate from=$search_names item="sn"} |
204 | <div id="search_name_{$sn.sn_id}" style="padding:2px" class="center"> | |
205 | {include file="profile/general.searchname.tpl" i=$sn.sn_id sn=$sn} | |
206 | </div> | |
207 | {/iterate} | |
208 | <div id="add_search_name" class="center" style="clear: both"> | |
209 | <a href="javascript:addSearchName()"> | |
210 | {icon name=add title="Ajouter un nom de recherche"} Ajouter un nom | |
211 | </a> | |
212 | </div> | |
213 | </td> | |
214 | </table> | |
215 | ||
33ae80b5 | 216 | {if !$no_private_key} |
46ae38a9 | 217 | <table class="bicol" style="margin-bottom: 1em" |
e8439508 | 218 | summary="Profil : Informations générales"> |
46ae38a9 FB |
219 | <tr> |
220 | <th> | |
221 | Synchronisation avec l'AX | |
222 | </th> | |
223 | </tr> | |
224 | <tr> | |
0c6cbd63 | 225 | <td class="flags"> |
ee12da4e FB |
226 | <input type="checkbox" name="synchro_ax" {if $synchro_ax}checked="checked" {/if}/> |
227 | {icon name="flag_orange" title="transmis à l'AX"} | |
0c6cbd63 FB |
228 | <span class="texte"> |
229 | Autoriser la synchronisation vers l'AX par des administrateurs ou des scripts automatiques. | |
230 | </span> | |
231 | </td> | |
232 | </tr> | |
233 | <tr> | |
46ae38a9 FB |
234 | <td> |
235 | <p> | |
236 | 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>. | |
237 | </p> | |
238 | <p> | |
239 | 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à. | |
240 | </p> | |
241 | <p class="center"> | |
242 | <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> | |
243 | </p> | |
244 | </td> | |
245 | </tr> | |
46ae38a9 | 246 | </table> |
33ae80b5 | 247 | {/if} |
76011d98 | 248 | |
46ae38a9 | 249 | <table class="bicol" style="margin-bottom: 1em" |
841ff7e7 | 250 | summary="Profil : Trombinoscope"> |
46ae38a9 FB |
251 | <tr> |
252 | <th colspan="2"> | |
0c6cbd63 | 253 | <div class="flags" style="float: left"> |
276f1db2 SJ |
254 | <label><input type="checkbox" name="photo_pub" {if $photo_pub eq 'public'}checked="checked" {/if}/> |
255 | {icon name="flag_green" title="site public"}</label> | |
0c6cbd63 | 256 | </div> |
46ae38a9 FB |
257 | Trombinoscope |
258 | </th> | |
259 | </tr> | |
260 | <tr> | |
46ae38a9 FB |
261 | <td {if !$nouvellephoto}colspan="2"{/if} class="center" style="width: 49%"> |
262 | <div class="titre">Ta photo actuelle</div> | |
263 | <img src="photo/{$smarty.session.forlife}" alt=" [ PHOTO ] " style="max-height: 250px; margin-top: 1em" /> | |
264 | </td> | |
265 | {if $nouvellephoto} | |
266 | <td class="center" style="width: 49%"> | |
267 | <div class="titre">Photo en attente de validation</div> | |
268 | <div> | |
269 | <a href="profile/{$smarty.session.forlife}?modif=new" class="popup2"> | |
270 | Ta fiche avec cette photo | |
271 | </a> | |
272 | </div> | |
273 | <img src="photo/{$smarty.session.forlife}/req" alt=" [ PHOTO ] " style="max-height: 250px; margin-top: 1em" /> | |
274 | </td> | |
275 | {/if} | |
276 | </tr> | |
277 | <tr class="pair"> | |
278 | <td colspan="2"> | |
279 | Pour profiter de cette fonction intéressante, tu dois disposer | |
280 | quelque part (sur ton ordinateur ou sur Internet) d'une photo | |
281 | d'identité (dans un fichier au format JPEG, PNG ou GIF).<br /> | |
282 | <div class="center"> | |
283 | <a href="photo/change">Éditer ta photo</a> | |
284 | </div> | |
285 | </td> | |
286 | </tr> | |
287 | </table> | |
288 | ||
289 | <table class="bicol" style="margin-bottom: 1em" | |
841ff7e7 | 290 | summary="Profil : Divers"> |
46ae38a9 FB |
291 | <tr> |
292 | <th colspan="2"> | |
293 | Divers | |
294 | </th> | |
295 | </tr> | |
296 | <tr> | |
bde2be3b GB |
297 | <td colspan="2"> |
298 | <span class="titre">Téléphones personnels</span> | |
46ae38a9 | 299 | </td> |
bde2be3b GB |
300 | </tr> |
301 | <tr> | |
302 | <td colspan="2"> | |
303 | {foreach from=$tels key=telid item=tel} | |
304 | <div id="tels_{$telid}" style="clear: both; padding-top: 4px; padding-bottom: 4px"> | |
305 | {include file="profile/phone.tpl" prefname='tels' prefid='tels' telid=$telid tel=$tel} | |
306 | </div> | |
307 | {/foreach} | |
308 | {if $tels|@count eq 0} | |
309 | <div id="tels_0" style="clear: both; padding-top: 4px; padding-bottom: 4px"> | |
310 | {include file="profile/phone.tpl" prefname='tels' preid='tels' telid=0 tel=0} | |
311 | </div> | |
312 | {/if} | |
313 | <div id="tels_add" class="center" style="clear: both; padding-top: 4px;"> | |
314 | <a href="javascript:addTel('tels', 'tels');"> | |
d8782f18 | 315 | {icon name=add title="Ajouter un téléphone"} Ajouter un téléphone |
bde2be3b GB |
316 | </a> |
317 | </div> | |
46ae38a9 FB |
318 | </td> |
319 | </tr> | |
b715c1e1 SJ |
320 | {if $email_error} |
321 | {include file="include/emails.combobox.tpl" name="email_directory" val=$email_directory_error error=$email_error} | |
322 | {else}{include file="include/emails.combobox.tpl" name="email_directory" val=$email_directory error=$email_error}{/if} | |
46ae38a9 | 323 | <tr> |
d1a2252a GB |
324 | <td colspan="2"> |
325 | <span class="titre">Messageries, networking et sites web</span> | |
326 | </td> | |
327 | </tr> | |
d1a2252a GB |
328 | {foreach from=$networking item=network key=id} |
329 | {include file="profile/general.networking.tpl" nw=$network i=$id} | |
330 | {/foreach} | |
92c3f9e5 GB |
331 | <tr id="networking"> |
332 | <script type="text/javascript">//<![CDATA[ | |
333 | var nw_list = new Array(); | |
334 | {foreach from=$network_list item=network} | |
335 | nw_list['{$network.name}'] = {$network.type}; | |
336 | {/foreach} | |
337 | //]]></script> | |
338 | <td colspan="2"> | |
339 | <div id="nw_add" class="center"> | |
340 | <a href="javascript:addNetworking();"> | |
341 | {icon name=add title="Ajouter une adresse"} Ajouter une adresse | |
342 | </a> | |
343 | </div> | |
344 | </td> | |
345 | </tr> | |
346 | <!-- <tr id="networking"> | |
347 | <td colspan="2"> | |
348 | <div style="float: left; width: 200px;"> | |
349 | <span class="titre" style="margin-left:1em;">Type à ajouter</span> | |
350 | </div> | |
351 | <div style="float: left;"> | |
352 | <div id="nw_type_ac" style="background-color: white; border: solid 1px black; position: absolute; width: 208px; display: none">TEST</div> | |
353 | <input type="text" size="30" id="nw_type" name="nw_type" onkeyup="updateNetworking()"> | |
354 | <span id="nw_add" style="display: none"> | |
355 | <a href="javascript:addNetworking();">{icon name=add title="Ajouter cette adresse"}</a> | |
356 | </span> | |
357 | </div> | |
358 | </td> | |
359 | </tr>--> | |
e60e10d7 | 360 | <tr class="pair"> |
0c6cbd63 | 361 | <td> |
46ae38a9 | 362 | <div> |
0c6cbd63 | 363 | <span class="flags"> |
276f1db2 SJ |
364 | <label><input type="checkbox" name="freetext_pub" {if $freetext_pub eq 'public'}checked="checked"{/if} /> |
365 | {icon name="flag_green" title="site public"}</label> | |
0c6cbd63 | 366 | </span> |
1052148d | 367 | <span class="titre">Commentaire</span> |
46ae38a9 FB |
368 | </div> |
369 | <div class="smaller" style="margin-top: 30px"> | |
370 | <a href="wiki_help/notitle" class="popup3"> | |
e60e10d7 | 371 | {icon name=information title="Syntaxe wiki"} Voir la syntaxe wiki autorisée |
46ae38a9 | 372 | </a> |
0447150d | 373 | <div class="center"> |
46ae38a9 FB |
374 | <input type="submit" name="preview" value="Aperçu" |
375 | onclick="previewWiki('freetext', 'ft_preview', true, 'ft_preview'); return false;" /> | |
3950bc21 | 376 | </div> |
46ae38a9 FB |
377 | </div> |
378 | </td> | |
0c6cbd63 | 379 | <td> |
46ae38a9 FB |
380 | <div id="ft_preview" style="display: none"></div> |
381 | <textarea name="freetext" {if $errors.freetext}class="error"{/if} | |
e60e10d7 | 382 | id="freetext" rows="8" cols="50" >{$freetext}</textarea> |
46ae38a9 FB |
383 | </td> |
384 | </tr> | |
385 | </table> | |
0337d704 | 386 | |
a7de4ef7 | 387 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |