Can use event shortname as event id in URL
[platal.git] / templates / include / minifiche.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
24{if !$c.inscrit || $c.dcd}<div class='grayed'>{/if}
c6db254a 25<div class="contact" {if $c.inscrit}{if $smarty.session.auth ge AUTH_COOKIE}title="fiche mise à jour le {$c.date|date_format}"{/if}{/if}>
0337d704 26
27 <div class="nom">
28 {if $c.sexe}&bull;{/if}
7b2413f6 29 {if !$c.dcd && $c.inscrit}<a href="profile/{$c.forlife}" class="popup2">{/if}
0337d704 30 {if $c.nom_usage}{$c.nom_usage} {$c.prenom}<br />({$c.nom}){else}{$c.nom} {$c.prenom}{/if}
31 {if !$c.dcd && $c.inscrit}</a>{/if}
32 </div>
33
34 <div class="appli">
35 {if $c.iso3166}
7b2413f6 36 <img src='images/flags/{$c.iso3166}.gif' alt='{$c.nat}' height='11' title='{$c.nat}' />&nbsp;
0337d704 37 {/if}
38 (X {$c.promo}{if $c.app0text}, {applis_fmt type=$c.app0type text=$c.app0text url=$c.app0url}
39 {/if}{if $c.app1text}, {applis_fmt type=$c.app1type text=$c.app1text url=$c.app1url}{/if})
40 {if $c.dcd}décédé{if $c.sexe}e{/if} le {$c.deces|date_format}{/if}
c6db254a 41 {if $smarty.session.auth ge AUTH_COOKIE}
0337d704 42 {if !$c.dcd && !$c.wasinscrit}
7b2413f6 43 <a href="marketing/public/{$c.user_id}" class='popup'>clique ici si tu connais son adresse email !</a>
0337d704 44 {/if}
c6db254a 45 {/if}
0337d704 46 </div>
47
b9384d56 48 <div class="noprint">
0337d704 49 <div class="bits">
c6db254a 50 {if $smarty.session.auth ge AUTH_COOKIE}
f8e7af52 51 {if !$c.wasinscrit && !$c.dcd}
0337d704 52 {if $show_action eq ajouter}
7b2413f6 53 <a href="carnet/notifs/add_nonins/{$c.user_id}">{*
7c0881fd 54 *}{icon name=add title="Ajouter à la liste de mes surveillances"}</a>
0337d704 55 {else}
7b2413f6 56 <a href="carnet/notifs/del_nonins/{$c.user_id}">{*
ff874621 57 *}{icon name=cross title="Retirer de la liste de mes surveillances"}</a>
0337d704 58 {/if}
f8e7af52 59 {elseif $c.wasinscrit}
7b2413f6 60 <a href="profile/{$c.forlife}" class="popup2">{*
7ac1ef77 61 *}{icon name=user_suit title="Afficher la fiche"}</a>
f8e7af52 62 {if !$c.dcd}
7b2413f6 63 <a href="vcard/{$c.forlife}.vcf">{*
7ac1ef77 64 *}{icon name=vcard title="Afficher la carte de visite"}</a>
7c0881fd 65 {if $show_action eq ajouter}
66 <a href="carnet/contacts?action={$show_action}&amp;user={$c.forlife}">{*
67 *}{icon name=add title="Ajouter à mes contacts"}</a>
68 {else}
7b2413f6 69 <a href="carnet/contacts?action={$show_action}&amp;user={$c.forlife}">{*
7c0881fd 70 *}{icon name=cross title="Retirer de mes contacts"}</a>
71 {/if}
f8e7af52 72 {/if}
0337d704 73 {/if}
c6db254a 74 {/if}
0337d704 75
c6db254a 76 {if $smarty.session.perms eq admin}
f8e7af52 77 {if !$c.wasinscrit && !$c.dcd}
22b95ab1 78 [<a href="marketing/private/{$c.user_id}">{*
2faf884e 79 *}{icon name=wrench title="marketter user"}</a>
f8e7af52 80 {elseif $c.wasinscrit}
f81d9dad 81 [<a href="admin/user/{$c.forlife}">{*
2faf884e 82 *}{icon name=wrench title="administrer user"}</a>
0337d704 83 {/if}
a2fa0614 84 <a href="http://www.polytechniciens.com/?page=AX_FICHE_ANCIEN&amp;anc_id={$c.matricule_ax}">{*
22b95ab1 85 *}{icon name=user_gray title="fiche AX"}</a>]
c6db254a 86 {/if}
0337d704 87 </div>
b9384d56 88 </div>
0337d704 89
90 <div class="long">
91 {if $c.wasinscrit}
d216d84a 92 {if $c.web || $c.mobile || $c.countrytxt || $c.city || $c.region || $c.entreprise || $c.freetext || (!$c.dcd && !$c.actif )}
0337d704 93 <table cellspacing="0" cellpadding="0">
94 {if $c.web}
95 <tr>
96 <td class="lt">Page web:</td>
97 <td class="rt"><a href="{$c.web}">{$c.web}</a></td>
98 </tr>
99 {/if}
100 {if $c.countrytxt || $c.city}
101 <tr>
102 <td class="lt">Géographie:</td>
103 <td class="rt">{$c.city}{if $c.city && $c.countrytxt}, {/if}{$c.countrytxt}</td>
104 </tr>
105 {/if}
68a26991 106 {if $c.mobile && !$c.dcd}
0337d704 107 <tr>
108 <td class="lt">Mobile:</td>
109 <td class="rt">{$c.mobile}</td>
110 </tr>
111 {/if}
112 {if $c.entreprise}
113 <tr>
114 <td class="lt">Profession:</td>
115 <td class="rt">
116 {$c.entreprise} {if $c.secteur}({$c.secteur}){/if}
117 {if $c.fonction}<br />{$c.fonction}{/if}
118 </td>
119 </tr>
120 {/if}
121 {if $c.freetext}
122 <tr>
123 <td class="lt">Commentaire:</td>
124 <td class="rt">{$c.freetext|nl2br}</td>
125 </tr>
126 {/if}
d216d84a 127 {if !$c.dcd && !$c.actif && $c.wasinscrit}
128 <tr>
129 <td class="smaller" colspan="2">
130 Ce camarade n'a plus d'adresse redirection valide.
131 <a href="marketing/broken/{$c.user_id}">
132 Si tu en connais une, <strong>n'hésite pas à nous la transmettre</strong>
133 </a>
134 </td>
135 </tr>
136 {/if}
0337d704 137 </table>
138 {/if}
139 {/if}
140 </div>
141
142</div>
143{if !$c.inscrit || $c.dcd}</div>{/if}
144
145{* vim:set et sw=2 sts=2 sws=2: *}