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 {include file="profile/general.name.tpl display_name=$display_name tooltip_name=$tooltip_name prenom=$prenom
24 nom=$nom sort_name=$sort_name yourself=$yourself search_names=$search_names}
26 <table class="bicol" style="margin-bottom: 1em"
27 summary="Profil : Informations générales">
30 <div class="flags" style="float: left">
31 <input type="checkbox" disabled="disabled" checked="checked" />
32 {icon name="flag_green" title="site public"}
34 Informations générales
39 <span class="titre">Promotion</span>
43 <span class="nom">{$promo_display}</span>
45 <select name="promo_display">
46 {foreach from=$promo_choice item="promo_to_display"}
47 <option value="{$promo_to_display}" {if $promo_to_display eq $promo_display}selected="selected"{/if}>{$promo_to_display}</option>
51 <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>
56 <span class="titre">Date de naissance</span>
58 <td><input type="text" {if $errors.birthdate}class="error"{/if} name="naissance" value="{$birthdate}" /></td>
62 <span class="titre">Nationalité</span>
65 <select name="nationality1">
66 {select_nat valeur=$nationality1 pad=1}
68 <a href="javascript:addNationality();">{icon name=add title="Ajouter une nationalité"}</a>
71 <tr id="nationality2" {if !$nationality2}style="display: none"{/if}>
74 <select name="nationality2">
75 {select_nat valeur=$nationality2 pad=1}
77 <a href="javascript:delNationality('2');">{icon name=cross title="Supprimer cette nationalité"}</a>
80 <tr id="nationality3" {if !$nationality3}style="display: none"{/if}>
83 <select name="nationality3">
84 {select_nat valeur=$nationality3 pad=1}
86 <a href="javascript:delNationality('3');">{icon name=cross title="Supprimer cette nationalité"}</a>
91 <table class="bicol" style="margin-bottom: 1em" summary="Profil : Formations">
94 <div class="flags" style="float: left">
95 <input type="checkbox" disabled="disabled" checked="checked" />
96 {icon name="flag_green" title="site public"}
101 {foreach from=$edus key=eduid item=edu}
102 {cycle values="impair, pair" assign=class}
103 {include file="profile/edu.tpl" eduid=$eduid edu=$edu edu_fields=$edu_fields class=$class}
105 {if $edus|@count eq 0}
106 {cycle values="impair, pair" assign=class}
107 {include file="profile/edu.tpl" eduid=0 edu=0 class=$class}
109 {cycle values="impair, pair" assign=class}
110 {assign var=eduaddid value=$edus|@count}
111 <tr id="edu_add" class="edu_{$eduaddid} {$class}">
113 <div class="center" style="clear: both; padding-top: 4px;">
114 <a href="javascript:addEdu();">
115 {icon name=add title="Ajouter une formation"} Ajouter une formation
120 <tr class="{$class}">
121 <td class="center" colspan="2">
122 <small>Si ta formation ne figure pas dans la liste,
123 <a href="mailto:support@{#globals.mail.domain#}">contacte-nous</a>.</small>
128 <table class="bicol" style="margin-bottom: 1em"
129 summary="Profil : Trombinoscope">
132 <div class="flags" style="float: left">
133 <label><input type="checkbox" name="photo_pub" {if $photo_pub eq 'public'}checked="checked" {/if}/>
134 {icon name="flag_green" title="site public"}</label>
140 <td {if !$nouvellephoto}colspan="2"{/if} class="center" style="width: 49%">
141 <div class="titre">Ta photo actuelle</div>
142 <img src="photo/{$profile->hrid()}" alt=" [ PHOTO ] " style="max-height: 250px; margin-top: 1em" />
145 <td class="center" style="width: 49%">
146 <div class="titre">Photo en attente de validation</div>
148 <a href="profile/{$profile->hrid()}?modif=new" class="popup2">
149 Ta fiche avec cette photo
152 <img src="photo/{$profile->hrid()}/req" alt=" [ PHOTO ] " style="max-height: 250px; margin-top: 1em" />
158 Pour profiter de cette fonction intéressante, tu dois disposer
159 quelque part (sur ton ordinateur ou sur Internet) d'une photo
160 d'identité (dans un fichier au format JPEG, PNG ou GIF).<br />
162 <a href="photo/change">Éditer ta photo</a>
168 <table class="bicol" style="margin-bottom: 1em"
169 summary="Profil : Divers">
177 <span class="titre">Téléphones personnels</span>
182 {foreach from=$tels key=telid item=tel}
183 <div id="tels_{$telid}" style="clear: both; padding-top: 4px; padding-bottom: 4px">
184 {include file="profile/phone.tpl" prefname='tels' prefid='tels' telid=$telid tel=$tel}
187 {if $tels|@count eq 0}
188 <div id="tels_0" style="clear: both; padding-top: 4px; padding-bottom: 4px">
189 {include file="profile/phone.tpl" prefname='tels' preid='tels' telid=0 tel=0}
192 <div id="tels_add" class="center" style="clear: both; padding-top: 4px;">
193 <a href="javascript:addTel('tels', 'tels');">
194 {icon name=add title="Ajouter un téléphone"} Ajouter un téléphone
200 {include file="include/emails.combobox.tpl" name="email_directory" val=$email_directory_error error=$email_error i="0"}
201 {else}{include file="include/emails.combobox.tpl" name="email_directory" val=$email_directory error=$email_error i="0"}{/if}
204 <span class="titre">Messageries, networking et sites web</span>
207 {foreach from=$networking item=network key=id}
208 {include file="profile/general.networking.tpl" nw=$network i=$id}
211 <script type="text/javascript">//<![CDATA[
212 var nw_list = new Array();
213 {foreach from=$network_list item=network}
214 nw_list['{$network.name}'] = {$network.type};
218 <div id="nw_add" class="center">
219 <a href="javascript:addNetworking();">
220 {icon name=add title="Ajouter une adresse"} Ajouter une adresse
225 <!-- <tr id="networking">
227 <div style="float: left; width: 200px;">
228 <span class="titre" style="margin-left:1em;">Type à ajouter</span>
230 <div style="float: left;">
231 <div id="nw_type_ac" style="background-color: white; border: solid 1px black; position: absolute; width: 208px; display: none">TEST</div>
232 <input type="text" size="30" id="nw_type" name="nw_type" onkeyup="updateNetworking()">
233 <span id="nw_add" style="display: none">
234 <a href="javascript:addNetworking();">{icon name=add title="Ajouter cette adresse"}</a>
243 <label><input type="checkbox" name="freetext_pub" {if $freetext_pub eq 'public'}checked="checked"{/if} />
244 {icon name="flag_green" title="site public"}</label>
246 <span class="titre">Commentaire</span>
248 <div class="smaller" style="margin-top: 30px">
249 <a href="wiki_help/notitle" class="popup3">
250 {icon name=information title="Syntaxe wiki"} Voir la syntaxe wiki autorisée
253 <input type="submit" name="preview" value="Aperçu"
254 onclick="previewWiki('freetext', 'ft_preview', true, 'ft_preview'); return false;" />
259 <div id="ft_preview" style="display: none"></div>
260 <textarea name="freetext" {if $errors.freetext}class="error"{/if}
261 id="freetext" rows="8" cols="50" >{$freetext}</textarea>
266 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}