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