0337d704 |
1 | {**************************************************************************} |
2 | {* *} |
3 | {* Copyright (C) 2003-2004 Polytechnique.org *} |
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} |
24 | <script type="text/javascript"> |
25 | function chgMainWinLoc( strPage ) { |
2c326273 |
26 | if (parent.opener) { |
27 | parent.opener.document.location = strPage; |
28 | } else { |
29 | document.location = strPage; |
30 | } |
0337d704 |
31 | } |
32 | </script> |
33 | {/literal} |
34 | |
35 | <table id="fiche" cellpadding="0" cellspacing="0"> |
36 | <tr> |
37 | <td id="fiche_identite"> |
38 | <div class="civilite"> |
39 | {if $x.sexe}•{/if} |
40 | {$x.prenom} {if $x.nom_usage eq ""}{$x.nom}{else}{$x.nom_usage} ({$x.nom}){/if} |
41 | {if $logged} |
42 | {if $x.nickname} (aka {$x.nickname}){/if} |
43 | <a href="vcard.php/{$x.forlife}.vcf?x={$x.forlife}"> |
44 | <img src="images/vcard.png" alt="Afficher la carte de visite" title="Afficher la carte de visite"/> |
45 | </a> |
46 | {if !$x.is_contact} |
47 | <a href="javascript:x()" onclick="chgMainWinLoc('{rel}/carnet/mescontacts.php?action=ajouter&user={$x.forlife}')"> |
48 | <img src="images/ajouter.gif" alt="Ajouter à mes contacts" title="Ajouter à mes contacts" /> |
49 | </a> |
50 | {else} |
51 | <a href="javascript:x()" onclick="chgMainWinLoc('{rel}/carnet/mescontacts.php?action=retirer&user={$x.forlife}')"> |
52 | <img src="images/retirer.gif" alt="Retirer de mes contacts" title="Retirer de mes contacts" /> |
53 | </a> |
54 | {/if} |
55 | {perms level=admin} |
56 | <a href="javascript:x()" onclick="chgMainWinLoc('{rel}/admin/utilisateurs.php?login={$x.forlife}')"> |
57 | <img src="images/admin.png" alt='admin' title="administrer user" /> |
58 | </a> |
59 | {/perms} |
60 | {/if} |
61 | </div> |
62 | {if $logged} |
63 | <div class='maj'> |
64 | Fiche mise à jour<br /> |
65 | le {$x.date|date_format} |
66 | </div> |
67 | {/if} |
68 | {if $logged || $x.mobile} |
69 | <div class="contact"> |
70 | {if $logged} |
71 | <div class='email'> |
72 | {if $x.dcd} |
73 | Décédé{if $x.sexe}e{/if} le {$x.deces|date_format} |
74 | {elseif !$x.inscrit} |
75 | Le compte de cette personne n'est pas actif (personne non inscrite ou exclue). |
76 | {else} |
77 | {if $virtualalias} |
78 | <a href="mailto:{$virtualalias}">{$virtualalias}</a><br /> |
79 | {/if} |
80 | <a href="mailto:{$x.bestalias}@polytechnique.org">{$x.bestalias}@polytechnique.org</a> |
2c326273 |
81 | {if $x.bestalias neq $x.forlife}<br /> |
0337d704 |
82 | <a href="mailto:{$x.forlife}@polytechnique.org">{$x.forlife}@polytechnique.org</a> |
83 | {/if} |
84 | {/if} |
85 | </div> |
86 | {/if} |
87 | <div class="mob"> |
88 | {if $x.mobile}<em class="intitule">Mobile : </em>{$x.mobile}<br />{/if} |
89 | </div> |
90 | <div class='spacer'></div> |
91 | </div> |
92 | {/if} |
93 | <div class='formation'> |
94 | {if $x.iso3166} |
95 | <img src='{rel}/images/flags/{$x.iso3166}.gif' alt='{$x.nationalite}' height='14' title='{$x.nationalite}' /> |
96 | {/if} |
97 | X {$x.promo} |
98 | {if ($x.promo_sortie-3 > $x.promo)} |
99 | - X {math equation="a-b" a=$x.promo_sortie b=3} |
100 | {/if} |
101 | {if $x.applis_join} |
102 | - Formation : {$x.applis_join|smarty:nodefaults} |
103 | {/if} |
104 | {if $logged} |
105 | {if $x.is_referent} |
106 | [<a href="fiche_referent.php?user={$x.forlife}" class='popup2'>Ma fiche référent</a>] |
107 | {/if} |
108 | {/if} |
109 | </div> |
110 | </td> |
111 | <td rowspan="4" id='photo'> |
112 | {if $photo_url}<img alt="Photo de {$x.forlife}" src="{$photo_url}" width="{$x.x}" height="{$x.y}" />{/if} |
113 | {if $logged} |
114 | {if $x.section}<div><em class="intitule">Section : </em><span>{$x.section}</span></div>{/if} |
115 | {if $x.binets_join}<div><em class="intitule">Binet(s) : </em><span>{$x.binets_join}</span></div>{/if} |
116 | {if $x.gpxs_join}<div><em class="intitule">Groupe(s) X : </em><span>{$x.gpxs_join|smarty:nodefaults}</span></div>{/if} |
117 | {/if} |
118 | {if $x.web}<div><em class="intitule">Site Web : </em><a href="{$x.web}" class='popup'>{$x.web}</a></div>{/if} |
119 | {if $x.freetext}<div><em class="intitule">Commentaires : </em><br /><span>{$x.freetext|nl2br}</span></div>{/if} |
120 | </td> |
121 | </tr> |
122 | {if $x.adr} |
123 | <tr> |
124 | <td> |
125 | <h2>Contact : </h2> |
126 | {foreach from=$x.adr item="address" key="i"} |
127 | {if $address.active} |
128 | {include file="geoloc/address.tpl" address=$address titre_div=true titre="Mon adresse actuelle :"} |
129 | {elseif $address.secondaire} |
130 | {include file="geoloc/address.tpl" address=$address titre_div=true titre="Adresse secondaire :"} |
131 | {else} |
132 | {include file="geoloc/address.tpl" address=$address titre_div=true titre="Adresse principale :"} |
133 | {/if} |
134 | {/foreach} |
135 | <div class="spacer"> </div> |
136 | </td> |
137 | </tr> |
138 | {/if} |
139 | {if $x.adr_pro} |
140 | <tr> |
141 | <td> |
142 | <h2>Informations professionnelles :</h2> |
143 | {foreach from=$x.adr_pro item="address" key="i"} |
144 | {include file="include/emploi.tpl" address=$address} |
145 | {include file="geoloc/address.tpl" address=$address titre="Adresse : "} |
146 | <div class="spacer"> </div> |
147 | {/foreach} |
148 | </td> |
149 | </tr> |
150 | {/if} |
151 | {if $x.medals} |
152 | <tr> |
153 | <td> |
154 | <h2>Distinctions : </h2> |
155 | {foreach from=$x.medals item=m} |
156 | <table style="float: left; width: 33%;"> |
157 | <tr> |
158 | <td> |
159 | <img src="{rel}/images/medals/{$m.img}" width="24" alt="{$m.medal}" title="{$m.medal}" style='float: left;' /> |
160 | </td> |
161 | <td> |
162 | <strong>{$m.medal}</strong> |
163 | <br />{$m.grade} |
164 | </td> |
165 | </tr> |
166 | </table> |
167 | {/foreach} |
168 | <div class="spacer"> </div> |
169 | </td> |
170 | </tr> |
171 | {/if} |
172 | {if $logged} |
173 | {if $x.cv} |
174 | <tr> |
175 | <td> |
176 | <h2>Curriculum Vitae :</h2> |
177 | {$x.cv|nl2br} |
178 | </td> |
179 | </tr> |
180 | {/if} |
181 | {/if} |
182 | </table> |
183 | |
184 | |
185 | {* vim:set et sw=2 sts=2 sws=2: *} |