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