1 {**************************************************************************}
3 {* Copyright (C) 2003-2007 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 {**************************************************************************}
24 <script type="text/javascript">//<![CDATA[
25 function chgMainWinLoc( strPage , iePage) {
26 if (navigator.appName == 'Microsoft Internet Explorer') {
30 parent.opener.document.location = strPage;
33 document.location = strPage;
39 {if $logged and $x.forlife eq $smarty.session.forlife}
40 [<a href="javascript:chgMainWinLoc('profile/edit', 'edit')">Modifier ma fiche</a>]
43 <table id="fiche" cellpadding="0" cellspacing="0">
45 <td id="fiche_identite">
46 <div class="civilite">
47 {if $x.sexe}•{/if}
48 {$x.prenom} {if $x.nom_usage eq ""}{$x.nom}{else}{$x.nom_usage} ({$x.nom}){/if}
50 {if $x.nickname} (alias {$x.nickname}){/if}
51 <a href="vcard/{$x.forlife}.vcf">{*
52 *}{icon name=vcard title="Afficher la carte de visite"}</a>
54 <a href="javascript:x()" onclick="chgMainWinLoc('carnet/contacts?action=ajouter&user={$x.forlife}')">
55 {icon name=add title="Ajouter à mes contacts"}</a>
57 <a href="javascript:x()" onclick="chgMainWinLoc('carnet/contacts?action=retirer&user={$x.forlife}')">
58 {icon name=cross title="Retirer de mes contacts"}</a>
60 {if $smarty.session.perms eq admin}
61 <a href="javascript:x()" onclick="chgMainWinLoc('admin/user/{$x.forlife}')">
62 {icon name=wrench title="administrer user"}</a>
68 Fiche mise à jour<br />
69 le {$x.date|date_format}
72 {if $logged || $x.mobile}
77 Décédé{if $x.sexe}e{/if} le {$x.deces|date_format}
79 Ce camarade n'a plus d'adresse redirection valide,<br />
80 <a href="marketing/broken/{$x.user_id}" class="popup">clique ici si tu connais son adresse email !</a>
82 Cette personne n'est pas inscrite à Polytechnique.org,<br />
83 <a href="marketing/public/{$x.user_id}" class="popup">clique ici si tu connais son adresse email !</a>
86 <a href="mailto:{$virtualalias}">{$virtualalias}</a><br />
88 <a href="mailto:{$x.bestalias}@{#globals.mail.domain#}">{$x.bestalias}@{#globals.mail.domain#}</a>
89 {if $x.bestalias neq $x.forlife}<br />
90 <a href="mailto:{$x.forlife}@{#globals.mail.domain#}">{$x.forlife}@{#globals.mail.domain#}</a>
96 {if $x.mobile}<em class="intitule">Mobile : </em>{$x.mobile}<br />{/if}
98 <div class='spacer'></div>
101 <div class='formation'>
103 <img src='images/flags/{$x.iso3166}.gif' alt='{$x.nationalite}' height='11' title='{$x.nationalite}' />
106 {if ($x.promo_sortie-3 > $x.promo)}
107 - X {math equation="a-b" a=$x.promo_sortie b=3}
110 - Formation : {$x.applis_join|smarty:nodefaults}
114 [<a href="referent/{$x.forlife}" class='popup2'>Ma fiche référent</a>]
119 <td rowspan="4" id='photo'>
120 {if $photo_url}<img alt="Photo de {$x.forlife}" src="{$photo_url}" width="{$x.x}" height="{$x.y}" />{/if}
122 {if $x.section}<div><em class="intitule">Section : </em><span>{$x.section}</span></div>{/if}
123 {if $x.binets_join}<div><em class="intitule">Binet(s) : </em><span>{$x.binets_join}</span></div>{/if}
124 {if $x.gpxs_join}<div><em class="intitule">Groupe(s) X : </em><span>{$x.gpxs_join|smarty:nodefaults}</span></div>{/if}
126 {if $x.web}<div><em class="intitule">Site Web : </em><a href="{$x.web}" class='popup'>{$x.web}</a></div>{/if}
127 {if $x.freetext}<div><em class="intitule">Commentaires : </em><br /><span>{$x.freetext|nl2br|smarty:nodefaults}</span></div>{/if}
134 {foreach from=$x.adr item="address" key="i"}
136 {include file="geoloc/address.tpl" address=$address titre_div=true titre="Mon adresse actuelle :"}
137 {elseif $address.secondaire}
138 {include file="geoloc/address.tpl" address=$address titre_div=true titre="Adresse secondaire :"}
140 {include file="geoloc/address.tpl" address=$address titre_div=true titre="Adresse principale :"}
143 <div class="spacer"> </div>
150 <h2>Informations professionnelles :</h2>
151 {foreach from=$x.adr_pro item="address" key="i"}
152 {include file="include/emploi.tpl" address=$address}
153 {include file="geoloc/address.tpl" address=$address titre="Adresse : "}
154 <div class="spacer"> </div>
162 <h2>Distinctions : </h2>
163 {foreach from=$x.medals item=m}
164 <table style="float: left; width: 33%;">
167 <img src="images/medals/{$m.img}" width="24" alt="{$m.medal}" title="{$m.medal}" style='float: left;' />
170 <strong>{$m.medal}</strong>
176 <div class="spacer"> </div>
184 <h2>Curriculum Vitae :</h2>
191 <tr><td colspan="2">Cette fiche est publique et visible par tout internaute,
192 vous pouvez aussi voir <a href="profile/private/{$x.forlife}">celle réservée aux X</a>.
198 {* vim:set et sw=2 sts=2 sws=2: *}