Commit | Line | Data |
---|---|---|
0337d704 | 1 | {**************************************************************************} |
2 | {* *} | |
9f5bd98e | 3 | {* Copyright (C) 2003-2010 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 | ||
03a6316f | 42 | <div id="fiche"> |
43 | <div id="photo" class="part"> | |
54cabe90 | 44 | {if $photo_url}<img alt="Photo de {$user->login()}" src="{$photo_url}" width="{$x.x}"/>{/if} |
581c3341 | 45 | {if $logged && ( $x.section|smarty:nodefaults || $x.binets_join|smarty:nodefaults || $x.gpxs_join|smarty:nodefaults)} |
6e828e47 | 46 | <h2>À l'X…</h2> |
e8439508 | 47 | {if $x.section}<div><em class="intitule">Section : </em><span>{$x.section}</span></div>{/if} |
b11cf21e SJ |
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} | |
03a6316f | 52 | {/if} |
d1a2252a | 53 | {if $x.networking} |
92c3f9e5 | 54 | <h2>Sur le web...</h2> |
d1a2252a GB |
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> | |
dc6378df GB |
59 | {elseif $network.link != ''} |
60 | <a href="{$network.link}">{$network.address}</a> | |
d1a2252a GB |
61 | {else} |
62 | {$network.address} | |
63 | {/if} | |
64 | <br/> | |
65 | {/foreach} | |
66 | {/if} | |
581c3341 FB |
67 | {if $x.freetext} |
68 | <h2>Commentaires :</h2> | |
69 | <span>{$x.freetext|miniwiki|smarty:nodefaults}</span> | |
70 | {/if} | |
03a6316f | 71 | </div> |
72 | <div id="fiche_identite" class="part"> | |
73 | <div class="civilite"> | |
54cabe90 | 74 | {if $user->isFemale()}•{/if} |
cd5bd7dc | 75 | <span {if $x.name_tooltip neq ""}class="hinted" title="{$x.name_tooltip}"{/if}>{$x.name_display}</span> |
03a6316f | 76 | {if $logged} |
581c3341 FB |
77 | {if $x.nickname} (alias {$x.nickname}){/if} |
78 | {/if} | |
581c3341 | 79 | {if $logged} |
54cabe90 | 80 | {if !$x.dcd}<a href="vcard/{$user->login()}.vcf">{* |
5494e94d | 81 | *}{icon name=vcard title="Afficher la carte de visite"}</a>{/if} |
03a6316f | 82 | {if !$x.is_contact} |
54cabe90 | 83 | <a href="javascript:chgMainWinLoc('carnet/contacts?action=ajouter&user={$user->login()}&token={xsrf_token}')"> |
03a6316f | 84 | {icon name=add title="Ajouter à mes contacts"}</a> |
85 | {else} | |
54cabe90 | 86 | <a href="javascript:chgMainWinLoc('carnet/contacts?action=retirer&user={$user->login()}&token={xsrf_token}')"> |
03a6316f | 87 | {icon name=cross title="Retirer de mes contacts"}</a> |
88 | {/if} | |
908db125 | 89 | {if hasPerm('admin')} |
54cabe90 | 90 | <a href="javascript:chgMainWinLoc('admin/user/{$user->login()}')"> |
03a6316f | 91 | {icon name=wrench title="administrer user"}</a> |
92 | {/if} | |
54cabe90 | 93 | {if $user->login() eq $smarty.session.hruid} |
581c3341 FB |
94 | <a href="javascript:chgMainWinLoc('profile/edit')">{icon name="user_edit" title="Modifier ma fiche"}</a> |
95 | {/if} | |
03a6316f | 96 | {/if} |
97 | </div> | |
98 | {if $logged} | |
99 | <div class='maj'> | |
100 | Fiche mise à jour<br /> | |
101 | le {$x.date|date_format} | |
102 | </div> | |
103 | {/if} | |
bde2be3b | 104 | {if $logged || $x.tels} |
03a6316f | 105 | <div class="contact"> |
106 | {if $logged} | |
107 | <div class='email'> | |
108 | {if $x.dcd} | |
54cabe90 | 109 | Décédé{if $user->isFemale()}e{/if} le {$x.deces|date_format} |
03a6316f | 110 | {elseif !$x.actif} |
862210cd | 111 | Ce{if $c.sexe}tte{/if} camarade n'a plus d'adresse de redirection valide,<br /> |
6bb2f79a | 112 | <a href="marketing/broken/{$user->login()}" class="popup">clique ici si tu connais son adresse email !</a> |
03a6316f | 113 | {elseif !$x.inscrit} |
114 | Cette personne n'est pas inscrite à Polytechnique.org,<br /> | |
6bb2f79a | 115 | <a href="marketing/public/{$user->login()}" class="popup">clique ici si tu connais son adresse email !</a> |
0337d704 | 116 | {else} |
03a6316f | 117 | {if $virtualalias} |
118 | <a href="mailto:{$virtualalias}">{$virtualalias}</a><br /> | |
0337d704 | 119 | {/if} |
54cabe90 VZ |
120 | <a href="mailto:{$user->bestEmail()}">{$user->bestEmail()}</a> |
121 | {if $user->bestEmail() neq $user->forlifeEmail()}<br /> | |
122 | <a href="mailto:{$user->forlifeEmail()}">{$user->forlifeEmail()}</a> | |
c6db254a | 123 | {/if} |
0337d704 | 124 | {/if} |
125 | </div> | |
0337d704 | 126 | {/if} |
bde2be3b | 127 | {if $x.tels} |
429e4a4b | 128 | {display_phones tels=$x.tels dcd=$x.dcd} |
6261a1b5 | 129 | {/if} |
03a6316f | 130 | <div class='spacer'></div> |
131 | </div> | |
132 | {/if} | |
133 | <div class='formation'> | |
eeb2ec0f SJ |
134 | {if $x.iso3166_1} |
135 | <img src='images/flags/{$x.iso3166_1}.gif' alt='{$x.nationalite}' height='11' title='{$x.nationalite}' /> | |
136 | {/if} | |
137 | {if $x.iso3166_2} | |
138 | <img src='images/flags/{$x.iso3166_2}.gif' alt='{$x.nationalite2}' height='11' title='{$x.nationalite2}' /> | |
139 | {/if} | |
140 | {if $x.iso3166_3} | |
141 | <img src='images/flags/{$x.iso3166_3}.gif' alt='{$x.nationalite3}' height='11' title='{$x.nationalite3}' /> | |
0337d704 | 142 | {/if} |
fb2c09c9 SJ |
143 | {$user->promo()} |
144 | {if $logged && $x.is_referent} | |
145 | [<a href="referent/{$x.forlife}" class='popup2'>Ma fiche référent</a>] | |
03a6316f | 146 | {/if} |
043bbacf | 147 | {if $x.education} |
c7eac294 SJ |
148 | - Formation : |
149 | <ul> | |
150 | {foreach from=$x.education item="edu"} | |
151 | <li>{$edu|smarty:nodefaults}</li> | |
152 | {/foreach} | |
153 | </ul> | |
03a6316f | 154 | {/if} |
078dc884 | 155 | {if $x.corps} |
078dc884 SJ |
156 | {$x.corps|smarty:nodefaults} |
157 | {/if} | |
03a6316f | 158 | </div> |
159 | </div> | |
0337d704 | 160 | {if $x.adr} |
03a6316f | 161 | <div class="part"> |
e8439508 | 162 | <h2>Contact : </h2> |
44c7ed76 SJ |
163 | {if $x.dcd} |
164 | {assign var=address_name value="Dernière adresse"} | |
165 | {else} | |
166 | {assign var=address_name value="Adresse"} | |
167 | {/if} | |
94c4f7a1 FB |
168 | {foreach from=$x.adr item="address" name=adresses} |
169 | {if $smarty.foreach.adresses.iteration is even} | |
6261a1b5 | 170 | {assign var=pos value="right"} |
171 | {else} | |
172 | {assign var=pos value="left"} | |
173 | {/if} | |
03a6316f | 174 | {if $address.active} |
44c7ed76 | 175 | {include file="geoloc/address.tpl" address=$address titre_div=true titre=$address_name|@cat:" actuelle :" |
6261a1b5 | 176 | for="`$x.prenom` `$x.nom`" pos=$pos} |
03a6316f | 177 | {elseif $address.secondaire} |
44c7ed76 | 178 | {include file="geoloc/address.tpl" address=$address titre_div=true titre=$address_name|@cat:" secondaire :" |
6261a1b5 | 179 | for="`$x.prenom` `$x.nom`" pos=$pos} |
03a6316f | 180 | {else} |
44c7ed76 | 181 | {include file="geoloc/address.tpl" address=$address titre_div=true titre=$address_name|@cat:" principale :" |
6261a1b5 | 182 | for="`$x.prenom` `$x.nom`" pos=$pos} |
03a6316f | 183 | {/if} |
94c4f7a1 | 184 | {if $smarty.foreach.adresses.iteration is even}<div class="spacer"></div>{/if} |
03a6316f | 185 | {/foreach} |
186 | </div> | |
0337d704 | 187 | {/if} |
188 | {if $x.adr_pro} | |
03a6316f | 189 | <div class="part"> |
e8439508 | 190 | <h2>Informations professionnelles :</h2> |
03a6316f | 191 | {foreach from=$x.adr_pro item="address" key="i"} |
16f20f22 | 192 | {if $i neq 0}<hr />{/if} |
193 | {include file="include/emploi.tpl" address=$address} | |
e8439508 | 194 | {include file="geoloc/address.tpl" address=$address titre="Adresse : " for=$address.entreprise pos="left"} |
16f20f22 | 195 | <div class="spacer"> </div> |
03a6316f | 196 | {/foreach} |
197 | </div> | |
0337d704 | 198 | {/if} |
199 | {if $x.medals} | |
03a6316f | 200 | <div class="part"> |
e8439508 | 201 | <h2>Distinctions : </h2> |
03a6316f | 202 | {foreach from=$x.medals item=m} |
203 | <div class="medal_frame"> | |
bd6a5fe3 | 204 | <img src="profile/medal/thumb/{$m.id}" height="50px" alt="{$m.medal}" title="{$m.medal}" style='float: left;' /> |
03a6316f | 205 | <div class="medal_text"> |
206 | {$m.medal}<br />{$m.grade} | |
207 | </div> | |
208 | </div> | |
209 | {/foreach} | |
210 | <div class="spacer"> </div> | |
6261a1b5 | 211 | </div> |
0337d704 | 212 | {/if} |
03a6316f | 213 | {if $logged && $x.cv} |
214 | <div class="part"> | |
e8439508 | 215 | <h2>Curriculum Vitae :</h2> |
794feea7 | 216 | {$x.cv|miniwiki:title|smarty:nodefaults} |
03a6316f | 217 | </div> |
0337d704 | 218 | {/if} |
24f4c06a | 219 | {if $view eq 'public'} |
03a6316f | 220 | <div class="part"> |
581c3341 | 221 | <small> |
03a6316f | 222 | Cette fiche est publique et visible par tout internaute,<br /> |
54cabe90 | 223 | vous pouvez aussi voir <a href="profile/private/{$user->login()}?display=light">celle réservée aux X</a>. |
581c3341 | 224 | </small> |
03a6316f | 225 | </div> |
24f4c06a FB |
226 | {elseif $view eq 'ax'} |
227 | <div class="part"> | |
228 | <small> | |
229 | Cette fiche est privée et ne recense que les informations transmises à l'AX. | |
230 | </small> | |
231 | </div> | |
0337d704 | 232 | {/if} |
03a6316f | 233 | <div class="spacer"></div> |
234 | </div> | |
0337d704 | 235 | |
a7de4ef7 | 236 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |