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 {**************************************************************************}
24 <script type="text/javascript">//<![CDATA[
25 function chgMainWinLoc(strPage)
27 strPage = platal_baseurl + strPage;
30 parent.opener.document.location = strPage;
36 document.location = strPage;
43 <div id="photo" class="part">
44 {if $photo_url}<img alt="Photo de {$x.forlife}" src="{$photo_url}" width="{$x.x}"/>{/if}
45 {if $logged && ( $x.section|smarty:nodefaults || $x.binets_join|smarty:nodefaults || $x.gpxs_join|smarty:nodefaults)}
47 {if $x.section}<div><em class="intitule">Section : </em><span>{$x.section}</span></div>{/if}
48 {if $x.binets_join}<div><em class="intitule">Binet{if count($x.binets) > 1}s{/if} : </em>
49 <span>{$x.binets_join}</span></div>{/if}
50 {if $x.gpxs_join}<div><em class="intitule">Groupe{if count($x.gpxs) > 1}s{/if} et institution{if count($x.gpxs) > 1}s{/if} X : </em>
51 <span><br/>{$x.gpxs_join|smarty:nodefaults}</span></div>{/if}
54 <h2>Sur le web...</h2>
55 {foreach from=$x.networking item=network}
56 <img style="width: auto; padding: 0" src="profile/networking/{$network.type}" alt="{$network.name}" title="{$network.name}"/>
57 {if $network.filter == 'web'}
58 <a href="{$network.address}">{$network.address}</a>
59 {elseif $network.link != ''}
60 <a href="{$network.link}">{$network.address}</a>
68 <h2>Commentaires :</h2>
69 <span>{$x.freetext|miniwiki|smarty:nodefaults}</span>
72 <div id="fiche_identite" class="part">
73 <div class="civilite">
74 {if $x.sexe}•{/if}
75 <span {if $x.name_tooltip neq ""}class="hinted" title="{$x.name_tooltip}"{/if}>{$x.name_display}</span>
77 {if $x.nickname} (alias {$x.nickname}){/if}
80 {if !$x.dcd}<a href="vcard/{$x.forlife}.vcf">{*
81 *}{icon name=vcard title="Afficher la carte de visite"}</a>{/if}
83 <a href="javascript:chgMainWinLoc('carnet/contacts?action=ajouter&user={$x.forlife}&token={xsrf_token}')">
84 {icon name=add title="Ajouter à mes contacts"}</a>
86 <a href="javascript:chgMainWinLoc('carnet/contacts?action=retirer&user={$x.forlife}&token={xsrf_token}')">
87 {icon name=cross title="Retirer de mes contacts"}</a>
90 <a href="javascript:chgMainWinLoc('admin/user/{$x.forlife}')">
91 {icon name=wrench title="administrer user"}</a>
93 {if $x.forlife eq $smarty.session.forlife}
94 <a href="javascript:chgMainWinLoc('profile/edit')">{icon name="user_edit" title="Modifier ma fiche"}</a>
100 Fiche mise à jour<br />
101 le {$x.date|date_format}
104 {if $logged || $x.tels}
105 <div class="contact">
109 Décédé{if $x.sexe}e{/if} le {$x.deces|date_format}
111 Ce camarade n'a plus d'adresse de redirection valide,<br />
112 <a href="marketing/broken/{$x.forlife}" class="popup">clique ici si tu connais son adresse email !</a>
114 Cette personne n'est pas inscrite à Polytechnique.org,<br />
115 <a href="marketing/public/{$x.user_id}" class="popup">clique ici si tu connais son adresse email !</a>
118 <a href="mailto:{$virtualalias}">{$virtualalias}</a><br />
120 <a href="mailto:{$x.bestalias}@{#globals.mail.domain#}">{$x.bestalias}@{#globals.mail.domain#}</a>
121 {if $x.bestalias neq $x.forlife}<br />
122 <a href="mailto:{$x.forlife}@{#globals.mail.domain#}">{$x.forlife}@{#globals.mail.domain#}</a>
128 {display_phones tels=$x.tels}
130 <div class='spacer'></div>
133 <div class='formation'>
135 <img src='images/flags/{$x.iso3166}.gif' alt='{$x.nationalite}' height='11' title='{$x.nationalite}' />
138 {if ($x.promo_sortie-3 > $x.promo)}
139 - X {math equation="a-b" a=$x.promo_sortie b=3}
142 - Formation : {$x.applis_join|smarty:nodefaults}
144 {if $logged && $x.is_referent}
145 [<a href="referent/{$x.forlife}" class='popup2'>Ma fiche référent</a>]
151 <h2>Contact : </h2>
152 {foreach from=$x.adr item="address" name=adresses}
153 {if $smarty.foreach.adresses.iteration is even}
154 {assign var=pos value="right"}
156 {assign var=pos value="left"}
159 {include file="geoloc/address.tpl" address=$address titre_div=true titre="Mon adresse actuelle :"
160 for="`$x.prenom` `$x.nom`" pos=$pos}
161 {elseif $address.secondaire}
162 {include file="geoloc/address.tpl" address=$address titre_div=true titre="Adresse secondaire :"
163 for="`$x.prenom` `$x.nom`" pos=$pos}
165 {include file="geoloc/address.tpl" address=$address titre_div=true titre="Adresse principale :"
166 for="`$x.prenom` `$x.nom`" pos=$pos}
168 {if $smarty.foreach.adresses.iteration is even}<div class="spacer"></div>{/if}
174 <h2>Informations professionnelles :</h2>
175 {foreach from=$x.adr_pro item="address" key="i"}
176 {if $i neq 0}<hr />{/if}
177 {include file="include/emploi.tpl" address=$address}
178 {include file="geoloc/address.tpl" address=$address titre="Adresse : " for=$address.entreprise pos="left"}
179 <div class="spacer"> </div>
185 <h2>Distinctions : </h2>
186 {foreach from=$x.medals item=m}
187 <div class="medal_frame">
188 <img src="profile/medal/thumb/{$m.id}" height="50px" alt="{$m.medal}" title="{$m.medal}" style='float: left;' />
189 <div class="medal_text">
190 {$m.medal}<br />{$m.grade}
194 <div class="spacer"> </div>
197 {if $logged && $x.cv}
199 <h2>Curriculum Vitae :</h2>
200 {$x.cv|miniwiki:title|smarty:nodefaults}
203 {if $view eq 'public'}
206 Cette fiche est publique et visible par tout internaute,<br />
207 vous pouvez aussi voir <a href="profile/private/{$x.forlife}?display=light">celle réservée aux X</a>.
210 {elseif $view eq 'ax'}
213 Cette fiche est privée et ne recense que les informations transmises à l'AX.
217 <div class="spacer"></div>
220 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}