0337d704 |
1 | {**************************************************************************} |
2 | {* *} |
50a40a33 |
3 | {* Copyright (C) 2003-2006 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 | |
23 | {literal} |
24 | <script type="text/javascript"> |
25 | function chgMainWinLoc( strPage ) { |
2c326273 |
26 | if (parent.opener) { |
27 | parent.opener.document.location = strPage; |
28 | } else { |
29 | document.location = strPage; |
30 | } |
0337d704 |
31 | } |
32 | </script> |
33 | {/literal} |
34 | |
8b10988d |
35 | {if $logged and $x.forlife eq $smarty.session.forlife} |
7b2413f6 |
36 | [<a href="javascript:x()" onclick="chgMainWinLoc('profile/edit')">Modifier ma fiche</a>] |
a11e04a6 |
37 | {/if} |
38 | |
0337d704 |
39 | <table id="fiche" cellpadding="0" cellspacing="0"> |
40 | <tr> |
41 | <td id="fiche_identite"> |
42 | <div class="civilite"> |
43 | {if $x.sexe}•{/if} |
44 | {$x.prenom} {if $x.nom_usage eq ""}{$x.nom}{else}{$x.nom_usage} ({$x.nom}){/if} |
45 | {if $logged} |
46 | {if $x.nickname} (aka {$x.nickname}){/if} |
7b2413f6 |
47 | <a href="vcard/{$x.forlife}.vcf"> |
48 | <img src="images/vcard.png" alt="Afficher la carte de visite" title="Afficher la carte de visite"/> |
0337d704 |
49 | </a> |
50 | {if !$x.is_contact} |
7b2413f6 |
51 | <a href="javascript:x()" onclick="chgMainWinLoc('carnet/contacts?action=ajouter&user={$x.forlife}')"> |
7c0881fd |
52 | {icon name=add title="Ajouter à mes contacts"}</a> |
0337d704 |
53 | {else} |
7b2413f6 |
54 | <a href="javascript:x()" onclick="chgMainWinLoc('carnet/contacts?action=retirer&user={$x.forlife}')"> |
ff874621 |
55 | {icon name=cross title="Retirer de mes contacts"} |
0337d704 |
56 | </a> |
57 | {/if} |
c6db254a |
58 | {if $smarty.session.perms eq admin} |
7b2413f6 |
59 | <a href="javascript:x()" onclick="chgMainWinLoc('admin/utilisateurs.php?login={$x.forlife}')"> |
60 | <img src="images/admin.png" alt='admin' title="administrer user" /> |
0337d704 |
61 | </a> |
c6db254a |
62 | {/if} |
0337d704 |
63 | {/if} |
64 | </div> |
65 | {if $logged} |
66 | <div class='maj'> |
67 | Fiche mise à jour<br /> |
68 | le {$x.date|date_format} |
69 | </div> |
70 | {/if} |
71 | {if $logged || $x.mobile} |
72 | <div class="contact"> |
73 | {if $logged} |
74 | <div class='email'> |
75 | {if $x.dcd} |
76 | Décédé{if $x.sexe}e{/if} le {$x.deces|date_format} |
77 | {elseif !$x.inscrit} |
78 | Le compte de cette personne n'est pas actif (personne non inscrite ou exclue). |
79 | {else} |
80 | {if $virtualalias} |
81 | <a href="mailto:{$virtualalias}">{$virtualalias}</a><br /> |
82 | {/if} |
83 | <a href="mailto:{$x.bestalias}@polytechnique.org">{$x.bestalias}@polytechnique.org</a> |
2c326273 |
84 | {if $x.bestalias neq $x.forlife}<br /> |
0337d704 |
85 | <a href="mailto:{$x.forlife}@polytechnique.org">{$x.forlife}@polytechnique.org</a> |
86 | {/if} |
87 | {/if} |
88 | </div> |
89 | {/if} |
90 | <div class="mob"> |
91 | {if $x.mobile}<em class="intitule">Mobile : </em>{$x.mobile}<br />{/if} |
92 | </div> |
93 | <div class='spacer'></div> |
94 | </div> |
95 | {/if} |
96 | <div class='formation'> |
97 | {if $x.iso3166} |
7b2413f6 |
98 | <img src='images/flags/{$x.iso3166}.gif' alt='{$x.nationalite}' height='11' title='{$x.nationalite}' /> |
0337d704 |
99 | {/if} |
100 | X {$x.promo} |
101 | {if ($x.promo_sortie-3 > $x.promo)} |
102 | - X {math equation="a-b" a=$x.promo_sortie b=3} |
103 | {/if} |
104 | {if $x.applis_join} |
105 | - Formation : {$x.applis_join|smarty:nodefaults} |
106 | {/if} |
107 | {if $logged} |
108 | {if $x.is_referent} |
7b2413f6 |
109 | [<a href="referent/{$x.forlife}" class='popup2'>Ma fiche référent</a>] |
0337d704 |
110 | {/if} |
111 | {/if} |
112 | </div> |
113 | </td> |
114 | <td rowspan="4" id='photo'> |
115 | {if $photo_url}<img alt="Photo de {$x.forlife}" src="{$photo_url}" width="{$x.x}" height="{$x.y}" />{/if} |
116 | {if $logged} |
117 | {if $x.section}<div><em class="intitule">Section : </em><span>{$x.section}</span></div>{/if} |
118 | {if $x.binets_join}<div><em class="intitule">Binet(s) : </em><span>{$x.binets_join}</span></div>{/if} |
119 | {if $x.gpxs_join}<div><em class="intitule">Groupe(s) X : </em><span>{$x.gpxs_join|smarty:nodefaults}</span></div>{/if} |
120 | {/if} |
121 | {if $x.web}<div><em class="intitule">Site Web : </em><a href="{$x.web}" class='popup'>{$x.web}</a></div>{/if} |
122 | {if $x.freetext}<div><em class="intitule">Commentaires : </em><br /><span>{$x.freetext|nl2br}</span></div>{/if} |
123 | </td> |
124 | </tr> |
125 | {if $x.adr} |
126 | <tr> |
127 | <td> |
128 | <h2>Contact : </h2> |
129 | {foreach from=$x.adr item="address" key="i"} |
130 | {if $address.active} |
131 | {include file="geoloc/address.tpl" address=$address titre_div=true titre="Mon adresse actuelle :"} |
132 | {elseif $address.secondaire} |
133 | {include file="geoloc/address.tpl" address=$address titre_div=true titre="Adresse secondaire :"} |
134 | {else} |
135 | {include file="geoloc/address.tpl" address=$address titre_div=true titre="Adresse principale :"} |
136 | {/if} |
137 | {/foreach} |
138 | <div class="spacer"> </div> |
139 | </td> |
140 | </tr> |
141 | {/if} |
142 | {if $x.adr_pro} |
143 | <tr> |
144 | <td> |
145 | <h2>Informations professionnelles :</h2> |
146 | {foreach from=$x.adr_pro item="address" key="i"} |
147 | {include file="include/emploi.tpl" address=$address} |
148 | {include file="geoloc/address.tpl" address=$address titre="Adresse : "} |
149 | <div class="spacer"> </div> |
150 | {/foreach} |
151 | </td> |
152 | </tr> |
153 | {/if} |
154 | {if $x.medals} |
155 | <tr> |
156 | <td> |
157 | <h2>Distinctions : </h2> |
158 | {foreach from=$x.medals item=m} |
159 | <table style="float: left; width: 33%;"> |
160 | <tr> |
161 | <td> |
7b2413f6 |
162 | <img src="images/medals/{$m.img}" width="24" alt="{$m.medal}" title="{$m.medal}" style='float: left;' /> |
0337d704 |
163 | </td> |
164 | <td> |
165 | <strong>{$m.medal}</strong> |
166 | <br />{$m.grade} |
167 | </td> |
168 | </tr> |
169 | </table> |
170 | {/foreach} |
171 | <div class="spacer"> </div> |
172 | </td> |
173 | </tr> |
174 | {/if} |
175 | {if $logged} |
176 | {if $x.cv} |
177 | <tr> |
178 | <td> |
179 | <h2>Curriculum Vitae :</h2> |
180 | {$x.cv|nl2br} |
181 | </td> |
182 | </tr> |
183 | {/if} |
184 | {/if} |
185 | </table> |
186 | |
187 | |
188 | {* vim:set et sw=2 sts=2 sws=2: *} |