Commit | Line | Data |
---|---|---|
0337d704 | 1 | {**************************************************************************} |
2 | {* *} | |
179afa7f | 3 | {* Copyright (C) 2003-2008 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"> | |
44 | {if $photo_url}<img alt="Photo de {$x.forlife}" 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)} |
b11cf21e | 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"> | |
74 | {if $x.sexe}•{/if} | |
75 | {$x.prenom} {if $x.nom_usage eq ""}{$x.nom}{else}{$x.nom_usage} ({$x.nom}){/if} | |
76 | {if $logged} | |
581c3341 FB |
77 | {if $x.nickname} (alias {$x.nickname}){/if} |
78 | {/if} | |
581c3341 | 79 | {if $logged} |
5494e94d FB |
80 | {if !$x.dcd}<a href="vcard/{$x.forlife}.vcf">{* |
81 | *}{icon name=vcard title="Afficher la carte de visite"}</a>{/if} | |
03a6316f | 82 | {if !$x.is_contact} |
e6bf9216 | 83 | <a href="javascript:chgMainWinLoc('carnet/contacts?action=ajouter&user={$x.forlife}&token={xsrf_token}')"> |
03a6316f | 84 | {icon name=add title="Ajouter à mes contacts"}</a> |
85 | {else} | |
e6bf9216 | 86 | <a href="javascript:chgMainWinLoc('carnet/contacts?action=retirer&user={$x.forlife}&token={xsrf_token}')"> |
03a6316f | 87 | {icon name=cross title="Retirer de mes contacts"}</a> |
88 | {/if} | |
908db125 | 89 | {if hasPerm('admin')} |
03a6316f | 90 | <a href="javascript:chgMainWinLoc('admin/user/{$x.forlife}')"> |
91 | {icon name=wrench title="administrer user"}</a> | |
92 | {/if} | |
581c3341 FB |
93 | {if $x.forlife eq $smarty.session.forlife} |
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} | |
104 | {if $logged || $x.mobile} | |
105 | <div class="contact"> | |
106 | {if $logged} | |
107 | <div class='email'> | |
108 | {if $x.dcd} | |
109 | Décédé{if $x.sexe}e{/if} le {$x.deces|date_format} | |
110 | {elseif !$x.actif} | |
ac3f2812 | 111 | Ce camarade n'a plus d'adresse de redirection valide,<br /> |
03a6316f | 112 | <a href="marketing/broken/{$x.forlife}" class="popup">clique ici si tu connais son adresse email !</a> |
113 | {elseif !$x.inscrit} | |
114 | Cette personne n'est pas inscrite à Polytechnique.org,<br /> | |
115 | <a href="marketing/public/{$x.user_id}" 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} |
03a6316f | 120 | <a href="mailto:{$x.bestalias}@{#globals.mail.domain#}">{$x.bestalias}@{#globals.mail.domain#}</a> |
121 | {if $x.bestalias neq $x.forlife}<br /> | |
122 | <a href="mailto:{$x.forlife}@{#globals.mail.domain#}">{$x.forlife}@{#globals.mail.domain#}</a> | |
c6db254a | 123 | {/if} |
0337d704 | 124 | {/if} |
125 | </div> | |
0337d704 | 126 | {/if} |
6261a1b5 | 127 | {if $x.mobile} |
03a6316f | 128 | <div class="mob"> |
e8439508 | 129 | <em class="intitule">Mobile : </em>{$x.mobile} |
0337d704 | 130 | </div> |
6261a1b5 | 131 | {/if} |
03a6316f | 132 | <div class='spacer'></div> |
133 | </div> | |
134 | {/if} | |
135 | <div class='formation'> | |
136 | {if $x.iso3166} | |
137 | <img src='images/flags/{$x.iso3166}.gif' alt='{$x.nationalite}' height='11' title='{$x.nationalite}' /> | |
0337d704 | 138 | {/if} |
03a6316f | 139 | X {$x.promo} |
140 | {if ($x.promo_sortie-3 > $x.promo)} | |
141 | - X {math equation="a-b" a=$x.promo_sortie b=3} | |
142 | {/if} | |
143 | {if $x.applis_join} | |
144 | - Formation : {$x.applis_join|smarty:nodefaults} | |
0337d704 | 145 | {/if} |
03a6316f | 146 | {if $logged && $x.is_referent} |
147 | [<a href="referent/{$x.forlife}" class='popup2'>Ma fiche référent</a>] | |
148 | {/if} | |
149 | </div> | |
150 | </div> | |
0337d704 | 151 | {if $x.adr} |
03a6316f | 152 | <div class="part"> |
e8439508 | 153 | <h2>Contact : </h2> |
94c4f7a1 FB |
154 | {foreach from=$x.adr item="address" name=adresses} |
155 | {if $smarty.foreach.adresses.iteration is even} | |
6261a1b5 | 156 | {assign var=pos value="right"} |
157 | {else} | |
158 | {assign var=pos value="left"} | |
159 | {/if} | |
03a6316f | 160 | {if $address.active} |
e8439508 | 161 | {include file="geoloc/address.tpl" address=$address titre_div=true titre="Mon adresse actuelle :" |
6261a1b5 | 162 | for="`$x.prenom` `$x.nom`" pos=$pos} |
03a6316f | 163 | {elseif $address.secondaire} |
e8439508 | 164 | {include file="geoloc/address.tpl" address=$address titre_div=true titre="Adresse secondaire :" |
6261a1b5 | 165 | for="`$x.prenom` `$x.nom`" pos=$pos} |
03a6316f | 166 | {else} |
e8439508 | 167 | {include file="geoloc/address.tpl" address=$address titre_div=true titre="Adresse principale :" |
6261a1b5 | 168 | for="`$x.prenom` `$x.nom`" pos=$pos} |
03a6316f | 169 | {/if} |
94c4f7a1 | 170 | {if $smarty.foreach.adresses.iteration is even}<div class="spacer"></div>{/if} |
03a6316f | 171 | {/foreach} |
172 | </div> | |
0337d704 | 173 | {/if} |
174 | {if $x.adr_pro} | |
03a6316f | 175 | <div class="part"> |
e8439508 | 176 | <h2>Informations professionnelles :</h2> |
03a6316f | 177 | {foreach from=$x.adr_pro item="address" key="i"} |
16f20f22 | 178 | {if $i neq 0}<hr />{/if} |
179 | {include file="include/emploi.tpl" address=$address} | |
e8439508 | 180 | {include file="geoloc/address.tpl" address=$address titre="Adresse : " for=$address.entreprise pos="left"} |
16f20f22 | 181 | <div class="spacer"> </div> |
03a6316f | 182 | {/foreach} |
183 | </div> | |
0337d704 | 184 | {/if} |
185 | {if $x.medals} | |
03a6316f | 186 | <div class="part"> |
e8439508 | 187 | <h2>Distinctions : </h2> |
03a6316f | 188 | {foreach from=$x.medals item=m} |
189 | <div class="medal_frame"> | |
bd6a5fe3 | 190 | <img src="profile/medal/thumb/{$m.id}" height="50px" alt="{$m.medal}" title="{$m.medal}" style='float: left;' /> |
03a6316f | 191 | <div class="medal_text"> |
192 | {$m.medal}<br />{$m.grade} | |
193 | </div> | |
194 | </div> | |
195 | {/foreach} | |
196 | <div class="spacer"> </div> | |
6261a1b5 | 197 | </div> |
0337d704 | 198 | {/if} |
03a6316f | 199 | {if $logged && $x.cv} |
200 | <div class="part"> | |
e8439508 | 201 | <h2>Curriculum Vitae :</h2> |
794feea7 | 202 | {$x.cv|miniwiki:title|smarty:nodefaults} |
03a6316f | 203 | </div> |
0337d704 | 204 | {/if} |
24f4c06a | 205 | {if $view eq 'public'} |
03a6316f | 206 | <div class="part"> |
581c3341 | 207 | <small> |
03a6316f | 208 | Cette fiche est publique et visible par tout internaute,<br /> |
209 | vous pouvez aussi voir <a href="profile/private/{$x.forlife}?display=light">celle réservée aux X</a>. | |
581c3341 | 210 | </small> |
03a6316f | 211 | </div> |
24f4c06a FB |
212 | {elseif $view eq 'ax'} |
213 | <div class="part"> | |
214 | <small> | |
215 | Cette fiche est privée et ne recense que les informations transmises à l'AX. | |
216 | </small> | |
217 | </div> | |
0337d704 | 218 | {/if} |
03a6316f | 219 | <div class="spacer"></div> |
220 | </div> | |
0337d704 | 221 | |
a7de4ef7 | 222 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |