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 | |
24 | {if !$c.inscrit || $c.dcd}<div class='grayed'>{/if} |
25 | <div class="contact" {if $c.inscrit}{min_auth level='cookie'}title="fiche mise à jour le {$c.date|date_format}"{/min_auth}{/if}> |
26 | |
27 | <div class="nom"> |
28 | {if $c.sexe}•{/if} |
0337d704 |
29 | {if !$c.dcd && $c.inscrit}<a href="{"fiche.php"|url}?user={$c.user_id}" 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} |
36 | <img src='{"images/"|url}flags/{$c.iso3166}.gif' alt='{$c.nat}' height='14' title='{$c.nat}' /> |
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} |
41 | {min_auth level="cookie"} |
42 | {if !$c.dcd && !$c.wasinscrit} |
43 | <a href="{rel}/marketing/public.php?num={$c.user_id}" class='popup'>clique ici si tu connais son adresse email !</a> |
44 | {/if} |
45 | {/min_auth} |
46 | </div> |
47 | |
48 | <div class="bits"> |
49 | {min_auth level="cookie"} |
f8e7af52 |
50 | {if !$c.wasinscrit && !$c.dcd} |
0337d704 |
51 | {if $show_action eq ajouter} |
52 | <a href="{rel}/carnet/notifs.php?add_nonins={$c.user_id}">{* |
53 | *}<img src="{rel}/images/ajouter.gif" alt="Ajouter à la liste de mes surveillances" title="Ajouter à la liste de mes surveillances" /></a> |
54 | {else} |
55 | <a href="{rel}/carnet/notifs.php?del_nonins={$c.user_id}">{* |
56 | *}<img src="{rel}/images/retirer.gif" alt="Retirer de la liste de mes surveillances" title="Retirer de la liste de mes surveillances" /></a> |
57 | {/if} |
f8e7af52 |
58 | {elseif $c.wasinscrit} |
0337d704 |
59 | <a href="{rel}/fiche.php?user={$c.forlife}" class="popup2">{* |
60 | *}<img src="{rel}/images/loupe.gif" alt="Afficher la fiche" title="Afficher la fiche" /></a> |
f8e7af52 |
61 | {if !$c.dcd} |
0337d704 |
62 | <a href="{rel}/vcard.php/{$c.forlife}.vcf?x={$c.forlife}">{* |
63 | *}<img src="{rel}/images/vcard.png" alt="Afficher la carte de visite" title="Afficher la carte de visite" /></a> |
64 | <a href="{rel}/carnet/mescontacts.php?action={$show_action}&user={$c.forlife}">{* |
65 | *}<img src="{rel}/images/{$show_action}.gif" alt="{if $show_action eq "ajouter"}Ajouter à mes{else}Retirer de mes{/if} contacts" |
66 | title="{if $show_action eq "ajouter"}Ajouter à mes{else}Retirer de mes{/if} contacts" /></a> |
f8e7af52 |
67 | {/if} |
0337d704 |
68 | {/if} |
69 | {/min_auth} |
70 | |
71 | {perms level='admin'} |
f8e7af52 |
72 | {if !$c.wasinscrit && !$c.dcd} |
73 | <a href="{rel}/marketing/private.php?uid={$c.user_id}">{* |
74 | *}<img src="{rel}/images/admin.png" alt='admin' title="marketter user" /></a> |
75 | {elseif $c.wasinscrit} |
76 | <a href="{rel}/admin/utilisateurs.php?login={$c.forlife}">{* |
77 | *}<img src="{rel}/images/admin.png" alt='admin' title="administrer user" /></a> |
0337d704 |
78 | {/if} |
f8e7af52 |
79 | <a href="http://www.polytechniciens.com/index.php?page=AX_FICHE_ANCIEN&anc_id={$c.matricule_ax}">{* |
80 | *}<img src="{rel}/images/ax.png" alt='AX' title="fiche AX" /></a> |
0337d704 |
81 | {/perms} |
82 | </div> |
83 | |
84 | <div class="long"> |
85 | {if $c.wasinscrit} |
86 | {if $c.web || $c.mobile || $c.countrytxt || $c.city || $c.region || $c.entreprise || $c.freetext} |
87 | <table cellspacing="0" cellpadding="0"> |
88 | {if $c.web} |
89 | <tr> |
90 | <td class="lt">Page web:</td> |
91 | <td class="rt"><a href="{$c.web}">{$c.web}</a></td> |
92 | </tr> |
93 | {/if} |
94 | {if $c.countrytxt || $c.city} |
95 | <tr> |
96 | <td class="lt">Géographie:</td> |
97 | <td class="rt">{$c.city}{if $c.city && $c.countrytxt}, {/if}{$c.countrytxt}</td> |
98 | </tr> |
99 | {/if} |
100 | {if $c.mobile} |
101 | <tr> |
102 | <td class="lt">Mobile:</td> |
103 | <td class="rt">{$c.mobile}</td> |
104 | </tr> |
105 | {/if} |
106 | {if $c.entreprise} |
107 | <tr> |
108 | <td class="lt">Profession:</td> |
109 | <td class="rt"> |
110 | {$c.entreprise} {if $c.secteur}({$c.secteur}){/if} |
111 | {if $c.fonction}<br />{$c.fonction}{/if} |
112 | </td> |
113 | </tr> |
114 | {/if} |
115 | {if $c.freetext} |
116 | <tr> |
117 | <td class="lt">Commentaire:</td> |
118 | <td class="rt">{$c.freetext|nl2br}</td> |
119 | </tr> |
120 | {/if} |
121 | </table> |
122 | {/if} |
123 | {/if} |
124 | </div> |
125 | |
126 | </div> |
127 | {if !$c.inscrit || $c.dcd}</div>{/if} |
128 | |
129 | {* vim:set et sw=2 sts=2 sws=2: *} |