1 {**************************************************************************}
3 {* Copyright (C) 2003-2008 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"
24 summary="Profil : Informations générales">
27 <div class="flags" style="float: left">
28 <input type="checkbox" disabled="disabled" checked="checked" />
29 {icon name="flag_green" title="site public"}
31 Informations générales
36 <span class="titre">Nom</span><br/>
40 <input type='hidden' name='nom' {if $errors.nom}class="error"{/if} value="{$nom}" />
45 <span class="titre">Prénom</span><br/>
49 <input type='hidden' name='prenom' {if $errors.prenom}class="error"{/if} value="{$prenom}" />
54 <span class="titre">Affichage de ton nom</span>
57 {if $tooltip_name}<span title="{$tooltip_name}" class="hint">{$display_name}</span>{else}{$display_name}{/if}
58 <a href="profile/edit#names_advanced" onclick="$('#names_advanced').show();$(this).hide();document.location = document.location + '#names_advanced';return false">
59 {icon name="page_edit" title="Plus de détail"}
65 <span class="titre">Promotion</span>
69 <span class="nom">{$promo_display}</span>
71 <select name="promo_display">
72 {foreach from=$promo_choice item="promo_to_display"}
73 <option value="{$promo_to_display}" {if $promo_to_display eq $promo_display}selected="selected"{/if}>{$promo_to_display}</option>
77 <span class="lien"><a href="profile/orange" {if ($grad_year -3 == $entry_year)} {popup text="pour les oranges"}{/if}>{icon name="page_edit" title="modifier"}</a></span>
82 <span class="titre">Date de naissance</span>
84 <td><input type="text" {if $errors.naissance}class="error"{/if} name="naissance" value="{$naissance}" /></td>
88 <span class="titre">Nationalité</span>
91 <select name="nationalite">
92 {select_nat valeur=$nationalite pad=1}
94 <a href="javascript:addNationality();">{icon name=add title="Ajouter une nationalité"}</a>
97 <tr id="nationalite2" {if !$nationalite2}style="display: none"{/if}>
100 <select name="nationalite2">
101 {select_nat valeur=$nationalite2 pad=1}
103 <a href="javascript:delNationality('2');">{icon name=cross title="Supprimer cette nationalité"}</a>
106 <tr id="nationalite3" {if !$nationalite3}style="display: none"{/if}>
109 <select name="nationalite3">
110 {select_nat valeur=$nationalite3 pad=1}
112 <a href="javascript:delNationality('3');">{icon name=cross title="Supprimer cette nationalité"}</a>
117 <table class="bicol" style="margin-bottom: 1em" summary="Profil : Formations">
120 <div class="flags" style="float: left">
121 <input type="checkbox" disabled="disabled" checked="checked" />
122 {icon name="flag_green" title="site public"}
127 {foreach from=$edus key=eduid item=edu}
128 {cycle values="impair, pair" assign=class}
129 {include file="profile/edu.tpl" eduid=$eduid edu=$edu edu_fields=$edu_fields class=$class}
131 {if $edus|@count eq 0}
132 {cycle values="impair, pair" assign=class}
133 {include file="profile/edu.tpl" eduid=0 edu=0 class=$class}
135 {cycle values="impair, pair" assign=class}
136 {assign var=eduaddid value=$edus|@count}
137 <tr id="edu_add" class="edu_{$eduaddid} {$class}">
139 <div class="center" style="clear: both; padding-top: 4px;">
140 <a href="javascript:addEdu();">
141 {icon name=add title="Ajouter une formation"} Ajouter une formation
146 <tr class="{$class}">
147 <td class="center" colspan="2">
148 <small>Si ta formation ne figure pas dans la liste,
149 <a href="mailto:support@{#globals.mail.domain#}">contacte-nous</a>.</small>
154 <table class="bicol" style="margin-bottom: 1em;display:none"
155 summary="Profil : Noms" id="names_advanced">
164 <input type="checkbox" checked="checked" disabled="disabled" />
165 {icon name="flag_green" title="site public"}
167 <span class="titre">Affichage courant de ton nom</span>
168 <a class="popup3" href="Xorg/Profil#name_displayed">{icon name="information" title="aide"}</a>
171 <input type="text" name="display_name" value="{$display_name}" size="40"/>
176 <span class="titre">explication</span>
177 <a class="popup3" href="Xorg/Profil#name_tooltip">{icon name="information" title="aide"}</a>
180 <input type="text" name="tooltip_name" value="{$tooltip_name}" size="40"/>
185 <span class="titre">ranger ce nom à</span>
186 <a class="popup3" href="Xorg/Profil#name_order">{icon name="information" title="aide"}</a>
189 <input type="text" name="sort_name" value="{$sort_name}" size="40"/>
195 <input type="checkbox" checked="checked" disabled="disabled" />
196 {icon name="flag_red" title="privé"}
198 <span class="titre">Comment on doit t'appeller</span>
199 <a class="popup3" href="Xorg/Profil#name_yourself">{icon name="information" title="aide"}</a>
202 <input type="text" name="yourself" value="{$yourself}" size="40"/>
207 <span class="titre">Recherche</span><span class="smaller">, ta fiche apparaît quand on cherche un de ces noms</span>
208 <a class="popup3" href="Xorg/Profil#name_search">{icon name="information" title="aide"}</a>
209 {iterate from=$search_names item="sn"}
210 <div id="search_name_{$sn.sn_id}" style="padding:2px" class="center">
211 {include file="profile/general.searchname.tpl" i=$sn.sn_id sn=$sn}
214 <div id="add_search_name" class="center" style="clear: both">
215 <a href="javascript:addSearchName()">
216 {icon name=add title="Ajouter un nom de recherche"} Ajouter un nom
222 {if !$no_private_key}
223 <table class="bicol" style="margin-bottom: 1em"
224 summary="Profil : Informations générales">
227 Synchronisation avec l'AX
232 <input type="checkbox" name="synchro_ax" {if $synchro_ax}checked="checked" {/if}/>
233 {icon name="flag_orange" title="transmis à l'AX"}
235 Autoriser la synchronisation vers l'AX par des administrateurs ou des scripts automatiques.
242 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>.
245 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à.
248 <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>
255 <table class="bicol" style="margin-bottom: 1em"
256 summary="Profil : Trombinoscope">
259 <div class="flags" style="float: left">
260 <label><input type="checkbox" name="photo_pub" {if $photo_pub eq 'public'}checked="checked" {/if}/>
261 {icon name="flag_green" title="site public"}</label>
267 <td {if !$nouvellephoto}colspan="2"{/if} class="center" style="width: 49%">
268 <div class="titre">Ta photo actuelle</div>
269 <img src="photo/{$smarty.session.hruid}" alt=" [ PHOTO ] " style="max-height: 250px; margin-top: 1em" />
272 <td class="center" style="width: 49%">
273 <div class="titre">Photo en attente de validation</div>
275 <a href="profile/{$smarty.session.hruid}?modif=new" class="popup2">
276 Ta fiche avec cette photo
279 <img src="photo/{$smarty.session.hruid}/req" alt=" [ PHOTO ] " style="max-height: 250px; margin-top: 1em" />
285 Pour profiter de cette fonction intéressante, tu dois disposer
286 quelque part (sur ton ordinateur ou sur Internet) d'une photo
287 d'identité (dans un fichier au format JPEG, PNG ou GIF).<br />
289 <a href="photo/change">Éditer ta photo</a>
295 <table class="bicol" style="margin-bottom: 1em"
296 summary="Profil : Divers">
304 <span class="titre">Téléphones personnels</span>
309 {foreach from=$tels key=telid item=tel}
310 <div id="tels_{$telid}" style="clear: both; padding-top: 4px; padding-bottom: 4px">
311 {include file="profile/phone.tpl" prefname='tels' prefid='tels' telid=$telid tel=$tel}
314 {if $tels|@count eq 0}
315 <div id="tels_0" style="clear: both; padding-top: 4px; padding-bottom: 4px">
316 {include file="profile/phone.tpl" prefname='tels' preid='tels' telid=0 tel=0}
319 <div id="tels_add" class="center" style="clear: both; padding-top: 4px;">
320 <a href="javascript:addTel('tels', 'tels');">
321 {icon name=add title="Ajouter un téléphone"} Ajouter un téléphone
327 {include file="include/emails.combobox.tpl" name="email_directory" val=$email_directory_error error=$email_error i="0"}
328 {else}{include file="include/emails.combobox.tpl" name="email_directory" val=$email_directory error=$email_error i="0"}{/if}
331 <span class="titre">Messageries, networking et sites web</span>
334 {foreach from=$networking item=network key=id}
335 {include file="profile/general.networking.tpl" nw=$network i=$id}
338 <script type="text/javascript">//<![CDATA[
339 var nw_list = new Array();
340 {foreach from=$network_list item=network}
341 nw_list['{$network.name}'] = {$network.type};
345 <div id="nw_add" class="center">
346 <a href="javascript:addNetworking();">
347 {icon name=add title="Ajouter une adresse"} Ajouter une adresse
352 <!-- <tr id="networking">
354 <div style="float: left; width: 200px;">
355 <span class="titre" style="margin-left:1em;">Type à ajouter</span>
357 <div style="float: left;">
358 <div id="nw_type_ac" style="background-color: white; border: solid 1px black; position: absolute; width: 208px; display: none">TEST</div>
359 <input type="text" size="30" id="nw_type" name="nw_type" onkeyup="updateNetworking()">
360 <span id="nw_add" style="display: none">
361 <a href="javascript:addNetworking();">{icon name=add title="Ajouter cette adresse"}</a>
370 <label><input type="checkbox" name="freetext_pub" {if $freetext_pub eq 'public'}checked="checked"{/if} />
371 {icon name="flag_green" title="site public"}</label>
373 <span class="titre">Commentaire</span>
375 <div class="smaller" style="margin-top: 30px">
376 <a href="wiki_help/notitle" class="popup3">
377 {icon name=information title="Syntaxe wiki"} Voir la syntaxe wiki autorisée
380 <input type="submit" name="preview" value="Aperçu"
381 onclick="previewWiki('freetext', 'ft_preview', true, 'ft_preview'); return false;" />
386 <div id="ft_preview" style="display: none"></div>
387 <textarea name="freetext" {if $errors.freetext}class="error"{/if}
388 id="freetext" rows="8" cols="50" >{$freetext}</textarea>
393 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}