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