Fix paypal return template when using Xnet
[platal.git] / templates / profile / profile.tpl
CommitLineData
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 25function chgMainWinLoc(strPage)
26{
27 strPage = platal_baseurl + strPage;
2c326273 28 if (parent.opener) {
29 parent.opener.document.location = strPage;
4d8e2051 30 window.close();
2c326273 31 } else {
32 document.location = strPage;
33 }
0337d704 34}
4d8e2051 35//]]></script>
0337d704 36{/literal}
37
8b10988d 38{if $logged and $x.forlife eq $smarty.session.forlife}
e2f609cd 39[<a href="javascript:chgMainWinLoc('profile/edit')">Modifier ma fiche</a>]
a11e04a6 40{/if}
41
0337d704 42<table id="fiche" cellpadding="0" cellspacing="0">
43 <tr>
44 <td id="fiche_identite">
45 <div class="civilite">
46 {if $x.sexe}&bull;{/if}
47 {$x.prenom} {if $x.nom_usage eq ""}{$x.nom}{else}{$x.nom_usage} ({$x.nom}){/if}
48 {if $logged}
0fb07071 49 {if $x.nickname} (alias {$x.nickname}){/if}&nbsp;
7ac1ef77 50 <a href="vcard/{$x.forlife}.vcf">{*
51 *}{icon name=vcard title="Afficher la carte de visite"}</a>
0337d704 52 {if !$x.is_contact}
e2f609cd 53 <a href="javascript:chgMainWinLoc('carnet/contacts?action=ajouter&amp;user={$x.forlife}')">
a7de4ef7 54 {icon name=add title="Ajouter à mes contacts"}</a>
0337d704 55 {else}
e2f609cd 56 <a href="javascript:chgMainWinLoc('carnet/contacts?action=retirer&amp;user={$x.forlife}')">
2faf884e 57 {icon name=cross title="Retirer de mes contacts"}</a>
0337d704 58 {/if}
bf517daf 59 {if $smarty.session.perms->hasFlag('admin')}
e2f609cd 60 <a href="javascript:chgMainWinLoc('admin/user/{$x.forlife}')">
2faf884e 61 {icon name=wrench title="administrer user"}</a>
c6db254a 62 {/if}
0337d704 63 {/if}
64 </div>
65 {if $logged}
66 <div class='maj'>
a7de4ef7 67 Fiche mise à jour<br />
0337d704 68 le {$x.date|date_format}
69 </div>
70 {/if}
71 {if $logged || $x.mobile}
72 <div class="contact">
73 {if $logged}
74 <div class='email'>
75 {if $x.dcd}
a7de4ef7 76 Décédé{if $x.sexe}e{/if} le {$x.deces|date_format}
d9caac6f 77 {elseif !$x.actif}
78 Ce camarade n'a plus d'adresse redirection valide,<br />
555fde86 79 <a href="marketing/broken/{$x.forlife}" class="popup">clique ici si tu connais son adresse email !</a>
0337d704 80 {elseif !$x.inscrit}
a7de4ef7 81 Cette personne n'est pas inscrite à Polytechnique.org,<br />
fbc210fa 82 <a href="marketing/public/{$x.user_id}" class="popup">clique ici si tu connais son adresse email !</a>
0337d704 83 {else}
84 {if $virtualalias}
85 <a href="mailto:{$virtualalias}">{$virtualalias}</a><br />
86 {/if}
7d73bb7b 87 <a href="mailto:{$x.bestalias}@{#globals.mail.domain#}">{$x.bestalias}@{#globals.mail.domain#}</a>
2c326273 88 {if $x.bestalias neq $x.forlife}<br />
7d73bb7b 89 <a href="mailto:{$x.forlife}@{#globals.mail.domain#}">{$x.forlife}@{#globals.mail.domain#}</a>
0337d704 90 {/if}
91 {/if}
92 </div>
93 {/if}
94 <div class="mob">
95 {if $x.mobile}<em class="intitule">Mobile : </em>{$x.mobile}<br />{/if}
96 </div>
97 <div class='spacer'></div>
98 </div>
99 {/if}
100 <div class='formation'>
101 {if $x.iso3166}
7b2413f6 102 <img src='images/flags/{$x.iso3166}.gif' alt='{$x.nationalite}' height='11' title='{$x.nationalite}' />&nbsp;
0337d704 103 {/if}
104 X {$x.promo}
105 {if ($x.promo_sortie-3 > $x.promo)}
106 - X {math equation="a-b" a=$x.promo_sortie b=3}
107 {/if}
108 {if $x.applis_join}
109 &nbsp;-&nbsp;Formation&nbsp;: {$x.applis_join|smarty:nodefaults}
110 {/if}
111 {if $logged}
112 {if $x.is_referent}
a7de4ef7 113 [<a href="referent/{$x.forlife}" class='popup2'>Ma fiche référent</a>]
0337d704 114 {/if}
115 {/if}
116 </div>
117 </td>
118 <td rowspan="4" id='photo'>
119 {if $photo_url}<img alt="Photo de {$x.forlife}" src="{$photo_url}" width="{$x.x}" height="{$x.y}" />{/if}
120 {if $logged}
121 {if $x.section}<div><em class="intitule">Section : </em><span>{$x.section}</span></div>{/if}
122 {if $x.binets_join}<div><em class="intitule">Binet(s) : </em><span>{$x.binets_join}</span></div>{/if}
123 {if $x.gpxs_join}<div><em class="intitule">Groupe(s) X : </em><span>{$x.gpxs_join|smarty:nodefaults}</span></div>{/if}
124 {/if}
125 {if $x.web}<div><em class="intitule">Site Web : </em><a href="{$x.web}" class='popup'>{$x.web}</a></div>{/if}
60979eb7 126 {if $x.freetext}<div><em class="intitule">Commentaires : </em><br /><span>{$x.freetext|smarty:nodefaults}</span></div>{/if}
0337d704 127 </td>
128 </tr>
129 {if $x.adr}
130 <tr>
131 <td>
132 <h2>Contact : </h2>
133 {foreach from=$x.adr item="address" key="i"}
134 {if $address.active}
3641a0e6 135 {include file="geoloc/address.tpl" address=$address titre_div=true titre="Mon adresse actuelle :"
136 for="`$x.prenom` `$x.nom`"}
0337d704 137 {elseif $address.secondaire}
3641a0e6 138 {include file="geoloc/address.tpl" address=$address titre_div=true titre="Adresse secondaire :"
139 for="`$x.prenom` `$x.nom`"}
0337d704 140 {else}
3641a0e6 141 {include file="geoloc/address.tpl" address=$address titre_div=true titre="Adresse principale :"
142 for="`$x.prenom` `$x.nom`"}
0337d704 143 {/if}
144 {/foreach}
145 <div class="spacer">&nbsp;</div>
146 </td>
147 </tr>
148 {/if}
149 {if $x.adr_pro}
150 <tr>
151 <td>
152 <h2>Informations professionnelles :</h2>
153 {foreach from=$x.adr_pro item="address" key="i"}
154 {include file="include/emploi.tpl" address=$address}
3641a0e6 155 {include file="geoloc/address.tpl" address=$address titre="Adresse : " for=$address.entreprise}
0337d704 156 <div class="spacer">&nbsp;</div>
157 {/foreach}
158 </td>
159 </tr>
160 {/if}
161 {if $x.medals}
162 <tr>
163 <td>
164 <h2>Distinctions : </h2>
165 {foreach from=$x.medals item=m}
166 <table style="float: left; width: 33%;">
167 <tr>
168 <td>
7b2413f6 169 <img src="images/medals/{$m.img}" width="24" alt="{$m.medal}" title="{$m.medal}" style='float: left;' />
0337d704 170 </td>
171 <td>
172 <strong>{$m.medal}</strong>
173 <br />{$m.grade}
174 </td>
175 </tr>
176 </table>
177 {/foreach}
178 <div class="spacer">&nbsp;</div>
179 </td>
180 </tr>
181 {/if}
182 {if $logged}
183 {if $x.cv}
184 <tr>
185 <td>
186 <h2>Curriculum Vitae :</h2>
60979eb7 187 {$x.cv|smarty:nodefaults}
0337d704 188 </td>
189 </tr>
190 {/if}
191 {/if}
2862cfa7 192{if !$logged}
360ecb20 193<tr><td colspan="2">Cette fiche est publique et visible par tout internaute,<br />
194vous pouvez aussi voir <a href="profile/private/{$x.forlife}?display=light">celle&nbsp;réservée&nbsp;aux&nbsp;X</a>.
2862cfa7 195</td></tr>
196{/if}
0337d704 197
2862cfa7 198</table>
0337d704 199
a7de4ef7 200{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}