Commit | Line | Data |
---|---|---|
0337d704 | 1 | {**************************************************************************} |
2 | {* *} | |
c441aabe | 3 | {* Copyright (C) 2003-2014 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 | { | |
63c89179 | 27 | strPage = $.plURL(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 | } |
0c9edc89 FB |
39 | |
40 | $($.closeOnEsc); | |
41 | ||
4d8e2051 | 42 | //]]></script> |
0337d704 | 43 | {/literal} |
03a6316f | 44 | <div id="fiche"> |
45 | <div id="photo" class="part"> | |
68f988a8 | 46 | {assign var=photo value=$profile->getPhoto(false)} |
7e019d24 | 47 | {if $photo}<img alt="Photo de {$profile->fullName()}" src="photo/{$profile->hrid()}{if $with_pending_pic}/req{/if}" width="{$photo->width()}"/>{/if} |
5f8ad70d | 48 | |
22771578 | 49 | {if $logged && $view->isVisible(#Visibility::EXPORT_AX#) && ( $profile->section|smarty:nodefaults || $profile->getBinets()|smarty:nodefaults || ($owner && $owner->groups(true,true)|smarty:nodefaults))} |
6e828e47 | 50 | <h2>À l'X…</h2> |
68f988a8 | 51 | {if $profile->section}<div><em class="intitule">Section : </em><span>{$profile->section}</span></div>{/if} |
5f8ad70d | 52 | |
7f3c6bf4 | 53 | {assign var=binets value=$profile->getFullBinets()} |
5f8ad70d | 54 | {if $binets|@count}<div><em class="intitule">Binet{if count($binets) > 1}s{/if} : </em> |
7f3c6bf4 TM |
55 | <span> <br /> |
56 | {foreach from=$binets item=binet name=binets} | |
57 | {if !$smarty.foreach.binets.first}, {/if} | |
58 | <span title="{$binet.text}">{if $binet.url}<a href="{$binet.url}">{/if}{$binet.text}{if $binet.url}</a>{/if}</span> | |
59 | {/foreach} | |
60 | </span></div>{/if} | |
5f8ad70d | 61 | |
22771578 | 62 | {if $owner && $view->isVisible(#Visibility::EXPORT_AX#)} |
56cd7aee | 63 | {assign var=groups value=$owner->groups(true,true)} |
5f8ad70d RB |
64 | {if $groups|@count}<div><em class="intitule">Groupe{if count($groups) > 1}s{/if} et institution{if count($groups) > 1}s{/if} X : </em> |
65 | <span><br/> | |
c3a9fa2b SJ |
66 | {foreach from=$groups item=group name=groups} |
67 | {if !$smarty.foreach.groups.first}, {/if} | |
d20d775c | 68 | <span title="{$group.nom}"><a href="{if $group.site}{$group.site}{else}http://www.polytechnique.net/{$group.diminutif}{/if}">{$group.nom}</a></span> |
c3a9fa2b | 69 | {/foreach} |
5f8ad70d RB |
70 | </span></div>{/if} |
71 | {/if} | |
72 | ||
03a6316f | 73 | {/if} |
5f8ad70d | 74 | |
79270914 | 75 | {assign var=networking value=$profile->getNetworking(#Profile::NETWORKING_ALL#)} |
5f8ad70d | 76 | {if count($networking) > 0} |
92c3f9e5 | 77 | <h2>Sur le web...</h2> |
5f8ad70d | 78 | {foreach from=$networking item=network} |
1f5cd004 PC |
79 | <img style="width: auto; padding: 0" src="profile/networking/{$network.nwid}" alt="{$network.name}" title="{$network.name}"/> |
80 | {if $network.link} | |
81 | <a href="{$network.link|replace:'%s':$network.address}">{$network.address}</a> | |
d1a2252a GB |
82 | {else} |
83 | {$network.address} | |
84 | {/if} | |
85 | <br/> | |
86 | {/foreach} | |
87 | {/if} | |
5f8ad70d | 88 | |
c96e6bd0 VB |
89 | {assign var=hobbies value=$profile->getHobbies()} |
90 | {if count($hobbies) > 0} | |
91 | <h2>Hobbies...</h2> | |
92 | {foreach from=$hobbies key=type item=text} | |
93 | <div><em class="intitule">{$type} : </em>{$text}</div> | |
94 | {/foreach} | |
95 | {/if} | |
96 | ||
68f988a8 | 97 | {if $profile->freetext} |
5f8ad70d | 98 | <h2>Commentaires :</h2> |
68f988a8 | 99 | <span>{$profile->freetext|miniwiki|smarty:nodefaults}</span> |
581c3341 | 100 | {/if} |
5f8ad70d | 101 | |
03a6316f | 102 | </div> |
5f8ad70d | 103 | |
03a6316f | 104 | <div id="fiche_identite" class="part"> |
105 | <div class="civilite"> | |
68f988a8 | 106 | {if $profile->isFemale()}•{/if} |
94e3a8e9 | 107 | {if $view->isVisible(#Visibility::EXPORT_PRIVATE#)}{$profile->private_name}{else}{$profile->public_name}{/if} |
1eddb8dc | 108 | {if $logged && ( hasPerm('admin') || $smarty.session.user->canEdit($profile)) && $view->isVisible(#Visibility::EXPORT_PRIVATE#)} |
2a24bda2 NI |
109 | <span title="Identifiant AX, uniquement visible par les administrateurs du site" style="font-weight:normal;font-style:italic;"> ({$profile->ax_id})</span> |
110 | {/if} | |
5f8ad70d | 111 | |
581c3341 | 112 | {if $logged} |
68f988a8 | 113 | {if !$profile->isDead()}<a href="vcard/{$owner->login()}.vcf">{* |
5f8ad70d RB |
114 | *}{icon name=vcard title="Afficher la carte de visite"}</a>{/if} |
115 | ||
2ab391bc | 116 | {if !$smarty.session.user->isContact($profile)} |
68f988a8 | 117 | <a href="javascript:chgMainWinLoc('carnet/contacts?action=ajouter&user={$owner->login()}&token={xsrf_token}')"> |
5f8ad70d RB |
118 | {icon name=add title="Ajouter à mes contacts"}</a> |
119 | {else} | |
68f988a8 | 120 | <a href="javascript:chgMainWinLoc('carnet/contacts?action=retirer&user={$owner->login()}&token={xsrf_token}')"> |
5f8ad70d RB |
121 | {icon name=cross title="Retirer de mes contacts"}</a> |
122 | {/if} | |
123 | ||
124 | {if hasPerm('admin')} | |
68f988a8 | 125 | <a href="javascript:chgMainWinLoc('admin/user/{$owner->login()}')"> |
5f8ad70d RB |
126 | {icon name=wrench title="administrer user"}</a> |
127 | {/if} | |
128 | ||
6fbc3476 | 129 | {if $smarty.session.user->isMyProfile($profile)} |
5f8ad70d | 130 | <a href="javascript:chgMainWinLoc('profile/edit')">{icon name="user_edit" title="Modifier ma fiche"}</a> |
6fbc3476 FB |
131 | {elseif hasPerm('admin') || $smarty.session.user->canEdit($profile)} |
132 | <a href="javascript:chgMainWinLoc('profile/edit/{$profile->hrpid}')"> | |
133 | {icon name=user_edit title="modifier la fiche"} | |
134 | </a> | |
5f8ad70d | 135 | {/if} |
03a6316f | 136 | {/if} |
137 | </div> | |
5f8ad70d | 138 | |
22771578 | 139 | {if $logged && $view->isVisible(#Visibility::EXPORT_AX#) && $owner && $owner->state eq 'active'} |
03a6316f | 140 | <div class='maj'> |
141 | Fiche mise à jour<br /> | |
68f988a8 | 142 | le {$profile->last_change|date_format} |
03a6316f | 143 | </div> |
144 | {/if} | |
5f8ad70d | 145 | |
3c985c08 RB |
146 | {* 121634816 is Profile::PHONE_LINK_PROFILE | Profile::PHONE_TYPE_ANY = 0x7400000 *} |
147 | {assign var=phones value=$profile->getPhones(121634816)} | |
22771578 | 148 | {if ($logged && $view->isVisible(#Visibility::EXPORT_AX#)) || count($phones) > 0} |
03a6316f | 149 | <div class="contact"> |
22771578 | 150 | {if $logged && $view->isVisible(#Visibility::EXPORT_AX#)} |
03a6316f | 151 | <div class='email'> |
68f988a8 RB |
152 | {if $profile->isDead()} |
153 | Décédé{if $profile->isFemale()}e{/if} le {$profile->deathdate|date_format} | |
5f96fea9 | 154 | {elseif $owner && $owner->lost} |
68f988a8 RB |
155 | Ce{if $profile->isFemale()}tte{/if} camarade n'a plus d'adresse de redirection valide,<br /> |
156 | <a href="marketing/broken/{$owner->login()}" class="popup">clique ici si tu connais son adresse email !</a> | |
5f96fea9 | 157 | {elseif $owner && $owner->state != 'active'} |
03a6316f | 158 | Cette personne n'est pas inscrite à Polytechnique.org,<br /> |
68f988a8 | 159 | <a href="marketing/public/{$owner->login()}" class="popup">clique ici si tu connais son adresse email !</a> |
0337d704 | 160 | {else} |
a9d13889 | 161 | {if $virtualalias && $view->isVisible(#Visibility::EXPORT_PRIVATE#) && $virtualalias neq $owner->bestEmail()} |
03a6316f | 162 | <a href="mailto:{$virtualalias}">{$virtualalias}</a><br /> |
0337d704 | 163 | {/if} |
68f988a8 RB |
164 | <a href="mailto:{$owner->bestEmail()}">{$owner->bestEmail()}</a> |
165 | {if $owner->bestEmail() neq $owner->forlifeEmail()}<br /> | |
166 | <a href="mailto:{$owner->forlifeEmail()}">{$owner->forlifeEmail()}</a> | |
c6db254a | 167 | {/if} |
0337d704 | 168 | {/if} |
169 | </div> | |
0337d704 | 170 | {/if} |
5f8ad70d | 171 | {if count($phones) > 0} |
9533d793 | 172 | <div style="float: right"> |
68f988a8 | 173 | {display_phones tels=$phones dcd=$profile->isDead()} |
9533d793 | 174 | </div> |
6261a1b5 | 175 | {/if} |
03a6316f | 176 | <div class='spacer'></div> |
177 | </div> | |
eb173bf1 SJ |
178 | {else} |
179 | <div class='spacer'></div> | |
03a6316f | 180 | {/if} |
5f8ad70d | 181 | |
03a6316f | 182 | <div class='formation'> |
6420023b SJ |
183 | {foreach from=$profile->nationalities() item=country key=code} |
184 | <img src='images/flags/{$code}.gif' alt='{$code}' height='11' title='{$country}' /> | |
5f8ad70d RB |
185 | {/foreach} |
186 | ||
d718e91c | 187 | {$profile->promo('details')} |
5f8ad70d | 188 | |
22771578 | 189 | {if $logged && $view->isVisible(#Visibility::EXPORT_AX#) && $profile->mentor_expertise} |
68f988a8 | 190 | [<a href="referent/{$profile->hrid()}" class='popup2'>Ma fiche référent</a>] |
03a6316f | 191 | {/if} |
5f8ad70d | 192 | |
bdce9ed9 | 193 | {assign var=educations value=$profile->getEducations(32)} |
5f8ad70d | 194 | {if count($educations) > 0} |
c7eac294 | 195 | <ul> |
5f8ad70d | 196 | {foreach from=$educations item=edu} |
8f3d549b | 197 | <li>{display_education edu=$edu profile=$profile full=true}</li> |
c7eac294 SJ |
198 | {/foreach} |
199 | </ul> | |
03a6316f | 200 | {/if} |
5f8ad70d | 201 | |
68f988a8 | 202 | {assign var=corps value=$profile->getCorps()} |
5f8ad70d | 203 | {if $corps && ($corps->current || $corps->original)} |
e792fdb8 | 204 | <ul> |
5f8ad70d | 205 | {if $corps->current} |
e792fdb8 RB |
206 | <li> |
207 | Corps actuel : {$corps->current_name} | |
208 | {if $corps->current_rank}({$corps->current_rank}){/if} | |
209 | </li> | |
5f8ad70d | 210 | {/if} |
e792fdb8 | 211 | {if $corps->current != $corps->original && $corps->original} |
fc6e024d | 212 | <li>Corps d'origine : {$corps->original_name}</li> |
5f8ad70d | 213 | {/if} |
e792fdb8 | 214 | </ul> |
078dc884 | 215 | {/if} |
5f8ad70d | 216 | |
03a6316f | 217 | </div> |
218 | </div> | |
5f8ad70d | 219 | |
68f988a8 | 220 | {assign var=addr value=$profile->getAddresses(3)} |
5f8ad70d | 221 | {if count($addr) > 0} |
03a6316f | 222 | <div class="part"> |
e8439508 | 223 | <h2>Contact : </h2> |
68f988a8 | 224 | {if $profile->isDead()} |
44c7ed76 SJ |
225 | {assign var=address_name value="Dernière adresse"} |
226 | {else} | |
227 | {assign var=address_name value="Adresse"} | |
228 | {/if} | |
5f8ad70d RB |
229 | {foreach from=$addr item="address" name=addresses} |
230 | {if $smarty.foreach.addresses.iteration is even} | |
6261a1b5 | 231 | {assign var=pos value="right"} |
232 | {else} | |
233 | {assign var=pos value="left"} | |
234 | {/if} | |
5f8ad70d | 235 | {if $address->hasFlag('current')} |
44c7ed76 | 236 | {include file="geoloc/address.tpl" address=$address titre_div=true titre=$address_name|@cat:" actuelle :" |
efb74b8f | 237 | for="`$profile->firstname` `$profile->lastname`" pos=$pos phones=null} |
5f8ad70d | 238 | {elseif $address->hasFlag('secondary')} |
44c7ed76 | 239 | {include file="geoloc/address.tpl" address=$address titre_div=true titre=$address_name|@cat:" secondaire :" |
efb74b8f | 240 | for="`$profile->firstname` `$profile->lastname`" pos=$pos phones=null} |
03a6316f | 241 | {else} |
44c7ed76 | 242 | {include file="geoloc/address.tpl" address=$address titre_div=true titre=$address_name|@cat:" principale :" |
efb74b8f | 243 | for="`$profile->firstname` `$profile->lastname`" pos=$pos phones=null} |
03a6316f | 244 | {/if} |
5f8ad70d | 245 | {if $smarty.foreach.addresses.iteration is even}<div class="spacer"></div>{/if} |
03a6316f | 246 | {/foreach} |
247 | </div> | |
0337d704 | 248 | {/if} |
5f8ad70d | 249 | |
68f988a8 | 250 | {assign var=jobs value=$profile->getJobs(2)} |
5f8ad70d | 251 | {if count($jobs) > 0} |
03a6316f | 252 | <div class="part"> |
e8439508 | 253 | <h2>Informations professionnelles :</h2> |
5f8ad70d | 254 | {foreach from=$jobs item="job" key="i"} |
16f20f22 | 255 | {if $i neq 0}<hr />{/if} |
5f8ad70d | 256 | {include file="include/emploi.tpl" job=$job} |
efb74b8f | 257 | {assign var=jobPhones value=$job->phones()} |
5f8ad70d | 258 | {if $job->address()} |
efb74b8f SJ |
259 | {include file="geoloc/address.tpl" address=$job->address() titre="Adresse : " for=$job->company->name pos="left" phones=$jobPhones} |
260 | {elseif $jobPhones|@count neq 0} | |
261 | {display_phones tels=$jobPhones} | |
5f8ad70d | 262 | {/if} |
16f20f22 | 263 | <div class="spacer"> </div> |
03a6316f | 264 | {/foreach} |
265 | </div> | |
0337d704 | 266 | {/if} |
5f8ad70d | 267 | |
68f988a8 | 268 | {assign var=medals value=$profile->getMedals()} |
5f8ad70d RB |
269 | {if count($medals) > 0} |
270 | <div class="part"> | |
271 | <h2>Distinctions : </h2> | |
272 | {foreach from=$medals item=m} | |
273 | <div class="medal_frame"> | |
274 | <img src="profile/medal/thumb/{$m.mid}" height="50px" alt="{$m.text}" title="{$m.text}" style='float: left;' /> | |
275 | <div class="medal_text"> | |
15d26d45 | 276 | {$m.text}{if $m.level} ({$m.level}){/if}<br />{$m.grade} |
5f8ad70d | 277 | </div> |
03a6316f | 278 | </div> |
5f8ad70d RB |
279 | {/foreach} |
280 | <div class="spacer"> </div> | |
03a6316f | 281 | </div> |
0337d704 | 282 | {/if} |
5f8ad70d | 283 | |
68f988a8 | 284 | {if $logged && $profile->cv} |
03a6316f | 285 | <div class="part"> |
e8439508 | 286 | <h2>Curriculum Vitae :</h2> |
68f988a8 | 287 | {$profile->cv|miniwiki:title|smarty:nodefaults} |
03a6316f | 288 | </div> |
0337d704 | 289 | {/if} |
5f8ad70d | 290 | |
22771578 | 291 | {if $view->level() eq #Visibility::VIEW_PUBLIC#} |
03a6316f | 292 | <div class="part"> |
581c3341 | 293 | <small> |
03a6316f | 294 | Cette fiche est publique et visible par tout internaute,<br /> |
68f988a8 | 295 | vous pouvez aussi voir <a href="profile/private/{$profile->hrid()}?display=light">celle réservée aux X</a>. |
581c3341 | 296 | </small> |
03a6316f | 297 | </div> |
22771578 | 298 | {elseif $view->level() eq #Visibility::VIEW_AX#} |
24f4c06a FB |
299 | <div class="part"> |
300 | <small> | |
301 | Cette fiche est privée et ne recense que les informations transmises à l'AX. | |
302 | </small> | |
303 | </div> | |
0337d704 | 304 | {/if} |
5f8ad70d | 305 | |
03a6316f | 306 | <div class="spacer"></div> |
307 | </div> | |
0337d704 | 308 | |
448c8cdc | 309 | {* vim:set et sw=2 sts=2 sws=2 fenc=utf-8: *} |