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[ |
555fde86 |
25 | function chgMainWinLoc(strPage) |
26 | { |
27 | strPage = platal_baseurl + strPage; |
2c326273 |
28 | if (parent.opener) { |
007c44cb |
29 | try { |
30 | parent.opener.document.location = strPage; |
31 | window.close(); |
32 | } catch(e) { |
33 | window.open(strPage); |
34 | } |
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 | |
03a6316f |
46 | <div id="fiche"> |
47 | <div id="photo" class="part"> |
48 | {if $photo_url}<img alt="Photo de {$x.forlife}" src="{$photo_url}" width="{$x.x}"/>{/if} |
49 | {if $logged} |
50 | {if $x.section}<div><em class="intitule">Section : </em><span>{$x.section}</span></div>{/if} |
51 | {if $x.binets_join}<div><em class="intitule">Binet(s) : </em><span>{$x.binets_join}</span></div>{/if} |
b37aacd9 |
52 | {if $x.gpxs_join}<div><em class="intitule">Groupe(s) et institution(s) X : </em><span><br/>{$x.gpxs_join|smarty:nodefaults}</span></div>{/if} |
03a6316f |
53 | {/if} |
6261a1b5 |
54 | {if $x.web}<div><em class="intitule">Site Web : </em><br /><a href="{$x.web}" class='popup'>{$x.web}</a></div>{/if} |
794feea7 |
55 | {if $x.freetext}<div><em class="intitule">Commentaires : </em><br /><span>{$x.freetext|miniwiki|smarty:nodefaults}</span></div>{/if} |
03a6316f |
56 | </div> |
57 | <div id="fiche_identite" class="part"> |
58 | <div class="civilite"> |
59 | {if $x.sexe}•{/if} |
60 | {$x.prenom} {if $x.nom_usage eq ""}{$x.nom}{else}{$x.nom_usage} ({$x.nom}){/if} |
61 | {if $logged} |
62 | {if $x.nickname} (alias {$x.nickname}){/if} |
63 | <a href="vcard/{$x.forlife}.vcf">{* |
64 | *}{icon name=vcard title="Afficher la carte de visite"}</a> |
65 | {if !$x.is_contact} |
66 | <a href="javascript:chgMainWinLoc('carnet/contacts?action=ajouter&user={$x.forlife}')"> |
67 | {icon name=add title="Ajouter à mes contacts"}</a> |
68 | {else} |
69 | <a href="javascript:chgMainWinLoc('carnet/contacts?action=retirer&user={$x.forlife}')"> |
70 | {icon name=cross title="Retirer de mes contacts"}</a> |
71 | {/if} |
908db125 |
72 | {if hasPerm('admin')} |
03a6316f |
73 | <a href="javascript:chgMainWinLoc('admin/user/{$x.forlife}')"> |
74 | {icon name=wrench title="administrer user"}</a> |
75 | {/if} |
76 | {/if} |
77 | </div> |
78 | {if $logged} |
79 | <div class='maj'> |
80 | Fiche mise à jour<br /> |
81 | le {$x.date|date_format} |
82 | </div> |
83 | {/if} |
84 | {if $logged || $x.mobile} |
85 | <div class="contact"> |
86 | {if $logged} |
87 | <div class='email'> |
88 | {if $x.dcd} |
89 | Décédé{if $x.sexe}e{/if} le {$x.deces|date_format} |
90 | {elseif !$x.actif} |
ac3f2812 |
91 | Ce camarade n'a plus d'adresse de redirection valide,<br /> |
03a6316f |
92 | <a href="marketing/broken/{$x.forlife}" class="popup">clique ici si tu connais son adresse email !</a> |
93 | {elseif !$x.inscrit} |
94 | Cette personne n'est pas inscrite à Polytechnique.org,<br /> |
95 | <a href="marketing/public/{$x.user_id}" class="popup">clique ici si tu connais son adresse email !</a> |
0337d704 |
96 | {else} |
03a6316f |
97 | {if $virtualalias} |
98 | <a href="mailto:{$virtualalias}">{$virtualalias}</a><br /> |
0337d704 |
99 | {/if} |
03a6316f |
100 | <a href="mailto:{$x.bestalias}@{#globals.mail.domain#}">{$x.bestalias}@{#globals.mail.domain#}</a> |
101 | {if $x.bestalias neq $x.forlife}<br /> |
102 | <a href="mailto:{$x.forlife}@{#globals.mail.domain#}">{$x.forlife}@{#globals.mail.domain#}</a> |
c6db254a |
103 | {/if} |
0337d704 |
104 | {/if} |
105 | </div> |
0337d704 |
106 | {/if} |
6261a1b5 |
107 | {if $x.mobile} |
03a6316f |
108 | <div class="mob"> |
6261a1b5 |
109 | <em class="intitule">Mobile : </em>{$x.mobile} |
0337d704 |
110 | </div> |
6261a1b5 |
111 | {/if} |
03a6316f |
112 | <div class='spacer'></div> |
113 | </div> |
114 | {/if} |
115 | <div class='formation'> |
116 | {if $x.iso3166} |
117 | <img src='images/flags/{$x.iso3166}.gif' alt='{$x.nationalite}' height='11' title='{$x.nationalite}' /> |
0337d704 |
118 | {/if} |
03a6316f |
119 | X {$x.promo} |
120 | {if ($x.promo_sortie-3 > $x.promo)} |
121 | - X {math equation="a-b" a=$x.promo_sortie b=3} |
122 | {/if} |
123 | {if $x.applis_join} |
124 | - Formation : {$x.applis_join|smarty:nodefaults} |
0337d704 |
125 | {/if} |
03a6316f |
126 | {if $logged && $x.is_referent} |
127 | [<a href="referent/{$x.forlife}" class='popup2'>Ma fiche référent</a>] |
128 | {/if} |
129 | </div> |
130 | </div> |
0337d704 |
131 | {if $x.adr} |
03a6316f |
132 | <div class="part"> |
133 | <h2>Contact : </h2> |
134 | {foreach from=$x.adr item="address" key="i" name=adresses} |
6261a1b5 |
135 | {if $i is odd} |
136 | {assign var=pos value="right"} |
137 | {else} |
138 | {assign var=pos value="left"} |
139 | {/if} |
03a6316f |
140 | {if $address.active} |
141 | {include file="geoloc/address.tpl" address=$address titre_div=true titre="Mon adresse actuelle :" |
6261a1b5 |
142 | for="`$x.prenom` `$x.nom`" pos=$pos} |
03a6316f |
143 | {elseif $address.secondaire} |
144 | {include file="geoloc/address.tpl" address=$address titre_div=true titre="Adresse secondaire :" |
6261a1b5 |
145 | for="`$x.prenom` `$x.nom`" pos=$pos} |
03a6316f |
146 | {else} |
147 | {include file="geoloc/address.tpl" address=$address titre_div=true titre="Adresse principale :" |
6261a1b5 |
148 | for="`$x.prenom` `$x.nom`" pos=$pos} |
03a6316f |
149 | {/if} |
150 | {if $i is odd}<div class="spacer"></div>{/if} |
151 | {/foreach} |
152 | </div> |
0337d704 |
153 | {/if} |
154 | {if $x.adr_pro} |
03a6316f |
155 | <div class="part"> |
156 | <h2>Informations professionnelles :</h2> |
157 | {foreach from=$x.adr_pro item="address" key="i"} |
16f20f22 |
158 | {if $i neq 0}<hr />{/if} |
159 | {include file="include/emploi.tpl" address=$address} |
160 | {include file="geoloc/address.tpl" address=$address titre="Adresse : " for=$address.entreprise pos="left"} |
161 | <div class="spacer"> </div> |
03a6316f |
162 | {/foreach} |
163 | </div> |
0337d704 |
164 | {/if} |
165 | {if $x.medals} |
03a6316f |
166 | <div class="part"> |
167 | <h2>Distinctions : </h2> |
168 | {foreach from=$x.medals item=m} |
169 | <div class="medal_frame"> |
5e70bf24 |
170 | <img src="profile/medal/{$m.id}" width="24" alt="{$m.medal}" title="{$m.medal}" style='float: left;' /> |
03a6316f |
171 | <div class="medal_text"> |
172 | {$m.medal}<br />{$m.grade} |
173 | </div> |
174 | </div> |
175 | {/foreach} |
176 | <div class="spacer"> </div> |
6261a1b5 |
177 | </div> |
0337d704 |
178 | {/if} |
03a6316f |
179 | {if $logged && $x.cv} |
180 | <div class="part"> |
181 | <h2>Curriculum Vitae :</h2> |
794feea7 |
182 | {$x.cv|miniwiki:title|smarty:nodefaults} |
03a6316f |
183 | </div> |
0337d704 |
184 | {/if} |
03a6316f |
185 | {if !$logged} |
186 | <div class="part"> |
187 | Cette fiche est publique et visible par tout internaute,<br /> |
188 | vous pouvez aussi voir <a href="profile/private/{$x.forlife}?display=light">celle réservée aux X</a>. |
189 | </div> |
0337d704 |
190 | {/if} |
03a6316f |
191 | <div class="spacer"></div> |
192 | </div> |
0337d704 |
193 | |
a7de4ef7 |
194 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |