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