Commit | Line | Data |
---|---|---|
0337d704 | 1 | {**************************************************************************} |
2 | {* *} | |
8d84c630 | 3 | {* Copyright (C) 2003-2009 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 | ||
6e32823c SJ |
23 | <table class="bicol" style="margin-bottom: 1em" summary="Profil : Noms"> |
24 | <tr> | |
25 | <th colspan="3">Noms</th> | |
26 | </tr> | |
27 | <tr> | |
28 | <td class="titre"> | |
29 | {icon name="flag_green" title="site public"} Affichage public | |
30 | </td> | |
31 | <td id="public_name"> | |
32 | {$public_name} | |
33 | </td> | |
34 | <td rowspan="2"> | |
e1082e20 | 35 | <a href="javascript:toggleNamesAdvanced();"> |
6e32823c SJ |
36 | {icon name="page_edit" title="Plus de détail"} |
37 | </a> | |
38 | </td> | |
39 | </tr> | |
40 | <tr> | |
41 | <td class="titre"> | |
42 | {icon name="flag_red" title="site privé"} Affichage privé | |
43 | </td> | |
44 | <td id="private_name"> | |
45 | {$private_name} | |
46 | </td> | |
47 | </tr> | |
48 | <tr> | |
49 | <td> | |
70c65f3a | 50 | <span class="titre">Comment t'appeller</span><br /> |
6e32823c SJ |
51 | <span class="smaller">sur le site, dans la lettre mensuelle...</span> |
52 | </td> | |
53 | <td> | |
54 | <input type="text" name="yourself" value="{$yourself}" size="25"/> | |
55 | </td> | |
56 | <td></td> | |
57 | </tr> | |
c4b45374 | 58 | <tr class="names_advanced" {if !$errors.search_names}style="display: none"{/if}> |
6e32823c SJ |
59 | <td colspan="3"> |
60 | <span class="titre">Gestion de tes noms, prénoms, surnoms...</span> | |
61 | <span class="smaller">Ils déterminent la façon dont ton nom apparaît sur les annuaires | |
62 | en ligne et papier et ta fiche apparaitra quand on cherche un de ces noms. Pour plus | |
63 | d'explications sur l'icône suivante | |
70c65f3a | 64 | <a href="profile/name_info" class="popup3">{icon name="information" title="Plus d'infos"}</a>.</span><br/> |
6e32823c SJ |
65 | <div class="small center">Si un de tes noms commence par une particule, |
66 | coche la case en bout de ligne.</div> | |
67 | </td> | |
68 | </tr> | |
69 | {foreach from=$search_names item=sn key=id} | |
c4b45374 SJ |
70 | {include file="profile/general.searchname.tpl" i=$id sn=$sn |
71 | class="names_advanced" style="display: none" error_name=$errors.search_names} | |
6e32823c | 72 | {/foreach} |
c4b45374 | 73 | <tr class="names_advanced" id="searchname" {if !$errors.search_names}style="display: none"{/if}> |
6e32823c SJ |
74 | <td colspan="2"> |
75 | <div id="sn_add" class="center"> | |
76 | <a href="javascript:addSearchName();"> | |
77 | {icon name=add title="Ajouter un nom"} Ajouter un nom | |
78 | </a> | |
79 | </div> | |
80 | </td> | |
81 | </tr> | |
82 | </table> | |
753742b9 | 83 | |
46ae38a9 | 84 | <table class="bicol" style="margin-bottom: 1em" |
e8439508 | 85 | summary="Profil : Informations générales"> |
46ae38a9 FB |
86 | <tr> |
87 | <th colspan="2"> | |
0c6cbd63 | 88 | <div class="flags" style="float: left"> |
ee12da4e FB |
89 | <input type="checkbox" disabled="disabled" checked="checked" /> |
90 | {icon name="flag_green" title="site public"} | |
0c6cbd63 | 91 | </div> |
46ae38a9 FB |
92 | Informations générales |
93 | </th> | |
94 | </tr> | |
95 | <tr> | |
0c6cbd63 | 96 | <td> |
b04882ff | 97 | <span class="titre">Promotion</span> |
46ae38a9 | 98 | </td> |
0c6cbd63 | 99 | <td> |
fb2c09c9 | 100 | {if !$promo_choice} |
62835757 SJ |
101 | <span class="nom">{$promo}</span> |
102 | <input type="hidden" name="promo" value="{$promo}"/> | |
fb2c09c9 | 103 | {else} |
62835757 | 104 | <select name="promo"> |
fb2c09c9 | 105 | {foreach from=$promo_choice item="promo_to_display"} |
62835757 | 106 | <option value="{$promo_to_display}" {if $promo_to_display eq $promo}selected="selected"{/if}>{$promo_to_display}</option> |
fb2c09c9 SJ |
107 | {/foreach} |
108 | </select> | |
109 | {/if} | |
110 | <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> | |
46ae38a9 FB |
111 | </td> |
112 | </tr> | |
113 | <tr> | |
bc7f707b SJ |
114 | <td> |
115 | <span class="titre">Date de naissance</span> | |
116 | </td> | |
455ea0c9 | 117 | <td><input type="text" {if $errors.birthdate}class="error"{/if} name="birthdate" value="{$birthdate}" /></td> |
7bff4cb0 FB |
118 | </tr> |
119 | <tr> | |
0c6cbd63 | 120 | <td> |
46ae38a9 FB |
121 | <span class="titre">Nationalité</span> |
122 | </td> | |
0c6cbd63 | 123 | <td> |
e5bcd851 FB |
124 | <select name="nationality1"> |
125 | {select_nat valeur=$nationality1 pad=1} | |
46ae38a9 | 126 | </select> |
8450c2aa SJ |
127 | <a href="javascript:addNationality();">{icon name=add title="Ajouter une nationalité"}</a> |
128 | </td> | |
129 | </tr> | |
e5bcd851 | 130 | <tr id="nationality2" {if !$nationality2}style="display: none"{/if}> |
8450c2aa SJ |
131 | <td></td> |
132 | <td> | |
e5bcd851 FB |
133 | <select name="nationality2"> |
134 | {select_nat valeur=$nationality2 pad=1} | |
8450c2aa SJ |
135 | </select> |
136 | <a href="javascript:delNationality('2');">{icon name=cross title="Supprimer cette nationalité"}</a> | |
137 | </td> | |
138 | </tr> | |
e5bcd851 | 139 | <tr id="nationality3" {if !$nationality3}style="display: none"{/if}> |
8450c2aa SJ |
140 | <td></td> |
141 | <td> | |
e5bcd851 FB |
142 | <select name="nationality3"> |
143 | {select_nat valeur=$nationality3 pad=1} | |
8450c2aa SJ |
144 | </select> |
145 | <a href="javascript:delNationality('3');">{icon name=cross title="Supprimer cette nationalité"}</a> | |
46ae38a9 FB |
146 | </td> |
147 | </tr> | |
58acfe8b SJ |
148 | </table> |
149 | ||
150 | <table class="bicol" style="margin-bottom: 1em" summary="Profil : Formations"> | |
4887be78 | 151 | <tr> |
58acfe8b SJ |
152 | <th colspan="2"> |
153 | <div class="flags" style="float: left"> | |
154 | <input type="checkbox" disabled="disabled" checked="checked" /> | |
155 | {icon name="flag_green" title="site public"} | |
4887be78 | 156 | </div> |
58acfe8b SJ |
157 | Formations |
158 | </th> | |
043bbacf | 159 | </tr> |
58acfe8b SJ |
160 | {foreach from=$edus key=eduid item=edu} |
161 | {cycle values="impair, pair" assign=class} | |
2700a4f5 | 162 | {include file="profile/general.edu.tpl" eduid=$eduid edu=$edu edu_fields=$edu_fields class=$class} |
043bbacf SJ |
163 | {/foreach} |
164 | {if $edus|@count eq 0} | |
58acfe8b | 165 | {cycle values="impair, pair" assign=class} |
2700a4f5 | 166 | {include file="profile/general.edu.tpl" eduid=0 edu=0 class=$class} |
043bbacf | 167 | {/if} |
58acfe8b | 168 | {cycle values="impair, pair" assign=class} |
62dba58e SJ |
169 | {assign var=eduaddid value=$edus|@count} |
170 | <tr id="edu_add" class="edu_{$eduaddid} {$class}"> | |
043bbacf | 171 | <td colspan="2"> |
58acfe8b | 172 | <div class="center" style="clear: both; padding-top: 4px;"> |
043bbacf SJ |
173 | <a href="javascript:addEdu();"> |
174 | {icon name=add title="Ajouter une formation"} Ajouter une formation | |
4887be78 SJ |
175 | </a> |
176 | </div> | |
46ae38a9 FB |
177 | </td> |
178 | </tr> | |
58acfe8b | 179 | <tr class="{$class}"> |
30c895be SJ |
180 | <td class="center" colspan="2"> |
181 | <small>Si ta formation ne figure pas dans la liste, | |
182 | <a href="mailto:support@{#globals.mail.domain#}">contacte-nous</a>.</small> | |
183 | </td> | |
184 | </tr> | |
185 | </table> | |
0337d704 | 186 | |
46ae38a9 | 187 | <table class="bicol" style="margin-bottom: 1em" |
841ff7e7 | 188 | summary="Profil : Trombinoscope"> |
46ae38a9 FB |
189 | <tr> |
190 | <th colspan="2"> | |
0c6cbd63 | 191 | <div class="flags" style="float: left"> |
276f1db2 SJ |
192 | <label><input type="checkbox" name="photo_pub" {if $photo_pub eq 'public'}checked="checked" {/if}/> |
193 | {icon name="flag_green" title="site public"}</label> | |
0c6cbd63 | 194 | </div> |
46ae38a9 FB |
195 | Trombinoscope |
196 | </th> | |
197 | </tr> | |
198 | <tr> | |
46ae38a9 FB |
199 | <td {if !$nouvellephoto}colspan="2"{/if} class="center" style="width: 49%"> |
200 | <div class="titre">Ta photo actuelle</div> | |
e5bcd851 | 201 | <img src="photo/{$profile->hrid()}" alt=" [ PHOTO ] " style="max-height: 250px; margin-top: 1em" /> |
46ae38a9 FB |
202 | </td> |
203 | {if $nouvellephoto} | |
204 | <td class="center" style="width: 49%"> | |
205 | <div class="titre">Photo en attente de validation</div> | |
206 | <div> | |
e5bcd851 | 207 | <a href="profile/{$profile->hrid()}?modif=new" class="popup2"> |
46ae38a9 FB |
208 | Ta fiche avec cette photo |
209 | </a> | |
210 | </div> | |
e5bcd851 | 211 | <img src="photo/{$profile->hrid()}/req" alt=" [ PHOTO ] " style="max-height: 250px; margin-top: 1em" /> |
46ae38a9 FB |
212 | </td> |
213 | {/if} | |
214 | </tr> | |
215 | <tr class="pair"> | |
216 | <td colspan="2"> | |
217 | Pour profiter de cette fonction intéressante, tu dois disposer | |
218 | quelque part (sur ton ordinateur ou sur Internet) d'une photo | |
219 | d'identité (dans un fichier au format JPEG, PNG ou GIF).<br /> | |
220 | <div class="center"> | |
221 | <a href="photo/change">Éditer ta photo</a> | |
222 | </div> | |
223 | </td> | |
224 | </tr> | |
225 | </table> | |
226 | ||
227 | <table class="bicol" style="margin-bottom: 1em" | |
841ff7e7 | 228 | summary="Profil : Divers"> |
46ae38a9 FB |
229 | <tr> |
230 | <th colspan="2"> | |
231 | Divers | |
232 | </th> | |
233 | </tr> | |
234 | <tr> | |
bde2be3b GB |
235 | <td colspan="2"> |
236 | <span class="titre">Téléphones personnels</span> | |
46ae38a9 | 237 | </td> |
bde2be3b GB |
238 | </tr> |
239 | <tr> | |
240 | <td colspan="2"> | |
241 | {foreach from=$tels key=telid item=tel} | |
242 | <div id="tels_{$telid}" style="clear: both; padding-top: 4px; padding-bottom: 4px"> | |
243 | {include file="profile/phone.tpl" prefname='tels' prefid='tels' telid=$telid tel=$tel} | |
244 | </div> | |
245 | {/foreach} | |
246 | {if $tels|@count eq 0} | |
247 | <div id="tels_0" style="clear: both; padding-top: 4px; padding-bottom: 4px"> | |
248 | {include file="profile/phone.tpl" prefname='tels' preid='tels' telid=0 tel=0} | |
249 | </div> | |
250 | {/if} | |
251 | <div id="tels_add" class="center" style="clear: both; padding-top: 4px;"> | |
252 | <a href="javascript:addTel('tels', 'tels');"> | |
d8782f18 | 253 | {icon name=add title="Ajouter un téléphone"} Ajouter un téléphone |
bde2be3b GB |
254 | </a> |
255 | </div> | |
46ae38a9 FB |
256 | </td> |
257 | </tr> | |
b715c1e1 | 258 | {if $email_error} |
4f06d57b SJ |
259 | {include file="include/emails.combobox.tpl" name="email_directory" val=$email_directory_error error=$email_error i="0"} |
260 | {else}{include file="include/emails.combobox.tpl" name="email_directory" val=$email_directory error=$email_error i="0"}{/if} | |
46ae38a9 | 261 | <tr> |
d1a2252a GB |
262 | <td colspan="2"> |
263 | <span class="titre">Messageries, networking et sites web</span> | |
264 | </td> | |
265 | </tr> | |
d1a2252a GB |
266 | {foreach from=$networking item=network key=id} |
267 | {include file="profile/general.networking.tpl" nw=$network i=$id} | |
268 | {/foreach} | |
92c3f9e5 GB |
269 | <tr id="networking"> |
270 | <script type="text/javascript">//<![CDATA[ | |
271 | var nw_list = new Array(); | |
272 | {foreach from=$network_list item=network} | |
273 | nw_list['{$network.name}'] = {$network.type}; | |
274 | {/foreach} | |
275 | //]]></script> | |
276 | <td colspan="2"> | |
277 | <div id="nw_add" class="center"> | |
278 | <a href="javascript:addNetworking();"> | |
279 | {icon name=add title="Ajouter une adresse"} Ajouter une adresse | |
280 | </a> | |
281 | </div> | |
282 | </td> | |
283 | </tr> | |
e60e10d7 | 284 | <tr class="pair"> |
0c6cbd63 | 285 | <td> |
46ae38a9 | 286 | <div> |
0c6cbd63 | 287 | <span class="flags"> |
276f1db2 SJ |
288 | <label><input type="checkbox" name="freetext_pub" {if $freetext_pub eq 'public'}checked="checked"{/if} /> |
289 | {icon name="flag_green" title="site public"}</label> | |
0c6cbd63 | 290 | </span> |
1052148d | 291 | <span class="titre">Commentaire</span> |
46ae38a9 FB |
292 | </div> |
293 | <div class="smaller" style="margin-top: 30px"> | |
294 | <a href="wiki_help/notitle" class="popup3"> | |
e60e10d7 | 295 | {icon name=information title="Syntaxe wiki"} Voir la syntaxe wiki autorisée |
46ae38a9 | 296 | </a> |
0447150d | 297 | <div class="center"> |
46ae38a9 FB |
298 | <input type="submit" name="preview" value="Aperçu" |
299 | onclick="previewWiki('freetext', 'ft_preview', true, 'ft_preview'); return false;" /> | |
3950bc21 | 300 | </div> |
46ae38a9 FB |
301 | </div> |
302 | </td> | |
0c6cbd63 | 303 | <td> |
46ae38a9 FB |
304 | <div id="ft_preview" style="display: none"></div> |
305 | <textarea name="freetext" {if $errors.freetext}class="error"{/if} | |
e60e10d7 | 306 | id="freetext" rows="8" cols="50" >{$freetext}</textarea> |
46ae38a9 FB |
307 | </td> |
308 | </tr> | |
309 | </table> | |
0337d704 | 310 | |
a7de4ef7 | 311 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |