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