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