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