| 1 | {**************************************************************************} |
| 2 | {* *} |
| 3 | {* Copyright (C) 2003-2010 Polytechnique.org *} |
| 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 | |
| 23 | <table class="bicol" style="margin-bottom: 1em" summary="Profil : Noms"> |
| 24 | <tr> |
| 25 | <th colspan="3">Noms{if t($validation)} <small>(validations en attente de modération)</small>{/if}</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> |
| 35 | <a href="javascript:toggleNamesAdvanced();"> |
| 36 | {icon name="page_edit" title="Plus de détail"} |
| 37 | </a> |
| 38 | </td> |
| 39 | </tr> |
| 40 | {if $viewPrivate} |
| 41 | <tr> |
| 42 | <td class="titre"> |
| 43 | {icon name="flag_red" title="site privé"} Affichage privé |
| 44 | </td> |
| 45 | <td id="private_name"> |
| 46 | {$private_name} |
| 47 | </td> |
| 48 | <td></td> |
| 49 | </tr> |
| 50 | {/if} |
| 51 | {if $isMe} |
| 52 | <tr> |
| 53 | <td> |
| 54 | <span class="titre">Comment t'appeller</span><br /> |
| 55 | <span class="smaller">sur le site, dans la lettre mensuelle...</span> |
| 56 | </td> |
| 57 | <td> |
| 58 | <input type="text" name="yourself" value="{$yourself}" size="25"/> |
| 59 | </td> |
| 60 | <td></td> |
| 61 | </tr> |
| 62 | {/if} |
| 63 | <tr class="names_advanced" {if !$errors.search_names}style="display: none"{/if}> |
| 64 | <td colspan="3"> |
| 65 | <span class="titre">Gestion des noms, prénoms, surnoms...</span> |
| 66 | <span class="smaller">Ils déterminent la façon dont |
| 67 | {if $isMe}ton{else}son{/if} nom apparaît sur les annuaires |
| 68 | en ligne et papier et ta fiche apparaitra quand on cherche un de ces noms. Pour plus |
| 69 | d'explications sur l'icône suivante |
| 70 | <a href="profile/name_info" class="popup3">{icon name="information" title="Plus d'infos"}</a>.</span><br/> |
| 71 | <div class="small center">Si un de tes noms commence par une particule, |
| 72 | coche la case en bout de ligne.</div> |
| 73 | </td> |
| 74 | </tr> |
| 75 | {foreach from=$search_names item=sn key=id} |
| 76 | {include file="profile/general.searchname.tpl" i=$id sn=$sn |
| 77 | class="names_advanced" style="display: none" error_name=$errors.search_names} |
| 78 | {/foreach} |
| 79 | <tr class="names_advanced" id="searchname" {if !$errors.search_names}style="display: none"{/if}> |
| 80 | <td colspan="3"> |
| 81 | <div id="sn_add" class="center"> |
| 82 | <a href="javascript:addSearchName({$isFemale});"> |
| 83 | {icon name=add title="Ajouter un nom"} Ajouter un nom |
| 84 | </a> |
| 85 | </div> |
| 86 | </td> |
| 87 | </tr> |
| 88 | </table> |
| 89 | |
| 90 | <table class="bicol" style="margin-bottom: 1em" |
| 91 | summary="Profil : Informations générales"> |
| 92 | <tr> |
| 93 | <th colspan="2"> |
| 94 | <div class="flags" style="float: left"> |
| 95 | <input type="checkbox" disabled="disabled" checked="checked" /> |
| 96 | {icon name="flag_green" title="site public"} |
| 97 | </div> |
| 98 | Informations générales |
| 99 | </th> |
| 100 | </tr> |
| 101 | <tr> |
| 102 | <td> |
| 103 | <span class="titre">Promotion</span> |
| 104 | </td> |
| 105 | <td> |
| 106 | {if !t($promo_choice)} |
| 107 | <span class="nom">{$profile->promo()}</span> |
| 108 | <input type="hidden" name="promo_display" value="{$profile->promo()}"/> |
| 109 | {else} |
| 110 | <select name="promo_display"> |
| 111 | {foreach from=$promo_choice item="promo_to_display"} |
| 112 | <option value="{$promo_to_display}" {if $promo_to_display eq $promo_display}selected="selected"{/if}>{$promo_to_display}</option> |
| 113 | {/foreach} |
| 114 | </select> |
| 115 | {/if} |
| 116 | <span class="lien"><a href="javascript:togglePromotionEdition();" {popup text="pour les oranges"}>{icon name="page_edit" title="modifier"}</a></span> |
| 117 | </td> |
| 118 | </tr> |
| 119 | <tr class="promotion_edition" style="display: none"> |
| 120 | <td colspan="2"> |
| 121 | {if $isMe} |
| 122 | Afin de pouvoir être considéré{""|sex:"e":$profile} à la fois dans ta promotion d'origine et ta |
| 123 | ou tes promotions d'adoption tu peux entrer ici ta promotion d'adoption. |
| 124 | {else} |
| 125 | Afin que ce{""|sex:"tte":$profile} camarade soit considé{""|sex:"e":$profile} à la fois dans sa |
| 126 | promotion d'origine et sa promotion d'adoption, tu peux entrer ici sa promotion d'adoption. |
| 127 | {/if} |
| 128 | <br /><span class="smaller"><span class="titre">Attention :</span> |
| 129 | cette modification ne sera prise en compte qu'après validation par les administrateurs du site.</span> |
| 130 | </td> |
| 131 | </tr> |
| 132 | <tr class="promotion_edition" style="display: none"> |
| 133 | <td class="titre">Promotion d'adoption</td> |
| 134 | <td> |
| 135 | {$profile->mainEducation()}<input type="text" name="promo" size="4" maxlength="4" value="{$promo}" /> |
| 136 | <span class="smaller"> (que les chiffres)</span> |
| 137 | </td> |
| 138 | </tr> |
| 139 | <tr> |
| 140 | <td> |
| 141 | <span class="titre">Date de naissance</span> |
| 142 | </td> |
| 143 | <td><input type="text" {if $errors.birthdate}class="error"{/if} name="birthdate" value="{$birthdate}" /></td> |
| 144 | </tr> |
| 145 | {if !$isMe} |
| 146 | <tr> |
| 147 | <td> |
| 148 | <span class="titre">Date de décès</span> |
| 149 | </td> |
| 150 | <td><input type="text" {if $errors.deathdate}class="error"{/if} name="deathdate" value="{$deathdate}" /></td> |
| 151 | </tr> |
| 152 | {/if} |
| 153 | <tr> |
| 154 | <td> |
| 155 | <span class="titre">Nationalité</span> |
| 156 | </td> |
| 157 | <td> |
| 158 | <select name="nationality1"> |
| 159 | {select_nat valeur=$nationality1 pad=1} |
| 160 | </select> |
| 161 | <a href="javascript:addNationality();">{icon name=add title="Ajouter une nationalité"}</a> |
| 162 | </td> |
| 163 | </tr> |
| 164 | <tr id="nationality2" {if !$nationality2}style="display: none"{/if}> |
| 165 | <td></td> |
| 166 | <td> |
| 167 | <select name="nationality2"> |
| 168 | {select_nat valeur=$nationality2 pad=1} |
| 169 | </select> |
| 170 | <a href="javascript:delNationality('2');">{icon name=cross title="Supprimer cette nationalité"}</a> |
| 171 | </td> |
| 172 | </tr> |
| 173 | <tr id="nationality3" {if !$nationality3}style="display: none"{/if}> |
| 174 | <td></td> |
| 175 | <td> |
| 176 | <select name="nationality3"> |
| 177 | {select_nat valeur=$nationality3 pad=1} |
| 178 | </select> |
| 179 | <a href="javascript:delNationality('3');">{icon name=cross title="Supprimer cette nationalité"}</a> |
| 180 | </td> |
| 181 | </tr> |
| 182 | </table> |
| 183 | |
| 184 | <table class="bicol" style="margin-bottom: 1em" summary="Profil : Formations"> |
| 185 | <tr> |
| 186 | <th colspan="2"> |
| 187 | <div class="flags" style="float: left"> |
| 188 | <input type="checkbox" disabled="disabled" checked="checked" /> |
| 189 | {icon name="flag_green" title="site public"} |
| 190 | </div> |
| 191 | Formations |
| 192 | </th> |
| 193 | </tr> |
| 194 | {foreach from=$edus key=eduid item=edu} |
| 195 | {cycle values="impair, pair" assign=class} |
| 196 | {include file="profile/general.edu.tpl" eduid=$eduid edu=$edu edu_fields=$edu_fields class=$class} |
| 197 | {/foreach} |
| 198 | {cycle values="impair, pair" assign=class} |
| 199 | {assign var=eduaddid value=$edus|@count} |
| 200 | <tr id="edu_add" class="edu_{$eduaddid} {$class}"> |
| 201 | <td colspan="2"> |
| 202 | <div class="center" style="clear: both; padding-top: 4px;"> |
| 203 | <a href="javascript:addEdu();"> |
| 204 | {icon name=add title="Ajouter une formation"} Ajouter une formation |
| 205 | </a> |
| 206 | </div> |
| 207 | </td> |
| 208 | </tr> |
| 209 | <tr class="{$class}"> |
| 210 | <td class="center" colspan="2"> |
| 211 | <small>Si la formation que tu cherches ne figure pas dans la liste, |
| 212 | <a href="mailto:support@{#globals.mail.domain#}">contacte-nous</a>.</small> |
| 213 | </td> |
| 214 | </tr> |
| 215 | </table> |
| 216 | |
| 217 | {if $viewPrivate || $isMe} |
| 218 | <table class="bicol" style="margin-bottom: 1em" |
| 219 | summary="Profil : Trombinoscope"> |
| 220 | <tr> |
| 221 | <th colspan="2"> |
| 222 | <div class="flags" style="float: left"> |
| 223 | <label><input type="checkbox" name="photo_pub" {if $photo_pub eq 'public'}checked="checked" {/if}/> |
| 224 | {icon name="flag_green" title="site public"}</label> |
| 225 | </div> |
| 226 | Trombinoscope |
| 227 | </th> |
| 228 | </tr> |
| 229 | <tr> |
| 230 | <td {if !$nouvellephoto}colspan="2"{/if} class="center" style="width: 49%"> |
| 231 | <div class="titre">Photo actuelle</div> |
| 232 | <img src="photo/{$profile->hrid()}" alt=" [ PHOTO ] " style="max-height: 250px; margin-top: 1em" /> |
| 233 | </td> |
| 234 | {if $nouvellephoto} |
| 235 | <td class="center" style="width: 49%"> |
| 236 | <div class="titre">Photo en attente de validation</div> |
| 237 | <div> |
| 238 | <a href="profile/{$profile->hrid()}?modif=new" class="popup2"> |
| 239 | Ta fiche avec cette photo |
| 240 | </a> |
| 241 | </div> |
| 242 | <img src="photo/{$profile->hrid()}/req" alt=" [ PHOTO ] " style="max-height: 250px; margin-top: 1em" /> |
| 243 | </td> |
| 244 | {/if} |
| 245 | </tr> |
| 246 | <tr class="pair"> |
| 247 | <td colspan="2"> |
| 248 | Pour profiter de cette fonction intéressante, tu dois disposer |
| 249 | quelque part (sur ton ordinateur ou sur Internet) d'une photo |
| 250 | d'identité (dans un fichier au format JPEG, PNG ou GIF).<br /> |
| 251 | <div class="center"> |
| 252 | <a href="photo/change/{$profile->hrid()}">Éditer ta photo</a> |
| 253 | </div> |
| 254 | </td> |
| 255 | </tr> |
| 256 | </table> |
| 257 | {/if} |
| 258 | |
| 259 | <table class="bicol" style="margin-bottom: 1em" |
| 260 | summary="Profil : Divers"> |
| 261 | <tr> |
| 262 | <th colspan="2"> |
| 263 | Divers |
| 264 | </th> |
| 265 | </tr> |
| 266 | <tr> |
| 267 | <td colspan="2"> |
| 268 | <span class="titre">Téléphones personnels</span> |
| 269 | </td> |
| 270 | </tr> |
| 271 | <tr> |
| 272 | <td colspan="2"> |
| 273 | {foreach from=$tels key=telid item=tel} |
| 274 | <div id="tels_{$telid}" style="clear: both; padding-top: 4px; padding-bottom: 4px"> |
| 275 | {include file="profile/phone.tpl" prefname='tels' prefid='tels' telid=$telid tel=$tel} |
| 276 | </div> |
| 277 | {/foreach} |
| 278 | {if $tels|@count eq 0} |
| 279 | <div id="tels_0" style="clear: both; padding-top: 4px; padding-bottom: 4px"> |
| 280 | {include file="profile/phone.tpl" prefname='tels' preid='tels' telid=0 tel=0} |
| 281 | </div> |
| 282 | {/if} |
| 283 | <div id="tels_add" class="center" style="clear: both; padding-top: 4px;"> |
| 284 | <a href="javascript:addTel('tels','tels',null,null,null);"> |
| 285 | {icon name=add title="Ajouter un téléphone"} Ajouter un téléphone |
| 286 | </a> |
| 287 | </div> |
| 288 | </td> |
| 289 | </tr> |
| 290 | {if t($email_error)} |
| 291 | {include file="include/emails.combobox.tpl" name="email_directory" val=$email_directory_error error=$email_error i="0"} |
| 292 | {else}{include file="include/emails.combobox.tpl" name="email_directory" val=$email_directory error=false i="0"}{/if} |
| 293 | <tr> |
| 294 | <td colspan="2"> |
| 295 | <span class="titre">Messageries, networking et sites web</span> |
| 296 | </td> |
| 297 | </tr> |
| 298 | {foreach from=$networking item=network key=id} |
| 299 | {include file="profile/general.networking.tpl" nw=$network i=$id} |
| 300 | {/foreach} |
| 301 | <tr id="networking"> |
| 302 | <td colspan="2"> |
| 303 | <script type="text/javascript">//<![CDATA[ |
| 304 | var nw_list = new Array(); |
| 305 | {foreach from=$network_list item=network} |
| 306 | nw_list['{$network.name}'] = {$network.type}; |
| 307 | {/foreach} |
| 308 | //]]></script> |
| 309 | <div id="nw_add" class="center"> |
| 310 | <a href="javascript:addNetworking();"> |
| 311 | {icon name=add title="Ajouter une adresse"} Ajouter une adresse |
| 312 | </a> |
| 313 | </div> |
| 314 | </td> |
| 315 | </tr> |
| 316 | {if $viewPrivate || $isMe} |
| 317 | <tr class="pair"> |
| 318 | <td> |
| 319 | <div> |
| 320 | <span class="flags"> |
| 321 | <label><input type="checkbox" name="freetext_pub" {if $freetext_pub eq 'public'}checked="checked"{/if} /> |
| 322 | {icon name="flag_green" title="site public"}</label> |
| 323 | </span> |
| 324 | <span class="titre">Commentaire</span> |
| 325 | </div> |
| 326 | <div class="smaller" style="margin-top: 30px"> |
| 327 | <a href="wiki_help/notitle" class="popup3"> |
| 328 | {icon name=information title="Syntaxe wiki"} Voir la syntaxe wiki autorisée |
| 329 | </a> |
| 330 | <div class="center"> |
| 331 | <input type="submit" name="preview" value="Aperçu" |
| 332 | onclick="previewWiki('freetext', 'ft_preview', true, 'ft_preview'); return false;" /> |
| 333 | </div> |
| 334 | </div> |
| 335 | </td> |
| 336 | <td> |
| 337 | <div id="ft_preview" style="display: none"></div> |
| 338 | <textarea name="freetext" {if $errors.freetext}class="error"{/if} |
| 339 | id="freetext" rows="8" cols="50" >{$freetext}</textarea> |
| 340 | </td> |
| 341 | </tr> |
| 342 | {/if} |
| 343 | </table> |
| 344 | |
| 345 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |