Commit | Line | Data |
---|---|---|
0337d704 | 1 | {**************************************************************************} |
2 | {* *} | |
8d84c630 | 3 | {* Copyright (C) 2003-2009 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}" |
cd5bd7dc | 29 | alt="{$c.name_display}" /> |
ea62a170 | 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} |
cd5bd7dc | 36 | <span {if $c.name_tooltip}class="hinted" title="{$c.name_tooltip}"{/if}>{$c.name_display}</span> |
ea62a170 FB |
37 | {if !$c.dcd && ($c.inscrit || $smarty.session.auth eq AUTH_PUBLIC)}</a>{/if} |
38 | </div> | |
0337d704 | 39 | |
f711b03f | 40 | <div class="edu"> |
eeb2ec0f SJ |
41 | {if $c.iso3166_1} |
42 | <img src='images/flags/{$c.iso3166_1}.gif' alt='{$c.nat1}' height='11' title='{$c.nat1}' /> | |
43 | {/if} | |
44 | {if $c.iso3166_2} | |
45 | <img src='images/flags/{$c.iso3166_2}.gif' alt='{$c.nat2}' height='11' title='{$c.nat2}' /> | |
46 | {/if} | |
47 | {if $c.iso3166_3} | |
48 | <img src='images/flags/{$c.iso3166_3}.gif' alt='{$c.nat3}' height='11' title='{$c.nat3}' /> | |
ea62a170 | 49 | {/if} |
fb2c09c9 | 50 | {$c.promo_display}{if $c.eduname0}, {education_fmt name=$c.eduname0 url=$c.eduurl0 degree=$c.edudegree0 |
1504ac45 | 51 | grad_year=$c.edugrad_year0 field=$c.edufield0 program=$c.eduprogram0 sexe=$c.sexe}{* |
f711b03f | 52 | *}{/if}{if $c.eduname1}, {education_fmt name=$c.eduname1 url=$c.eduurl1 degree=$c.edudegree1 |
1504ac45 | 53 | grad_year=$c.edugrad_year1 field=$c.edufield1 program=$c.eduprogram1 sexe=$c.sexe}{* |
f711b03f | 54 | *}{/if}{if $c.eduname2}, {education_fmt name=$c.eduname2 url=$c.eduurl2 degree=$c.edudegree2 |
1504ac45 | 55 | grad_year=$c.edugrad_year2 field=$c.edufield2 program=$c.eduprogram2 sexe=$c.sexe}{* |
f711b03f | 56 | *}{/if}{if $c.eduname3}, {education_fmt name=$c.eduname3 url=$c.eduurl3 degree=$c.edudegree3 |
1504ac45 | 57 | grad_year=$c.edugrad_year3 field=$c.edufield3 program=$c.eduprogram3 sexe=$c.sexe}{* |
043bbacf | 58 | *}{/if}{if $c.dcd}, décédé{if $c.sexe}e{/if} le {$c.deces|date_format}{/if} |
ea62a170 | 59 | </div> |
0337d704 | 60 | </div> |
61 | ||
580f4860 | 62 | {if $smarty.session.auth ge AUTH_COOKIE} |
ea62a170 FB |
63 | <div class="noprint bits"> |
64 | <div> | |
ea62a170 FB |
65 | {if !$c.wasinscrit && !$c.dcd} |
66 | {if $show_action eq ajouter} | |
e6bf9216 | 67 | <a href="carnet/notifs/add_nonins/{$c.user_id}?token={xsrf_token}">{* |
ea62a170 FB |
68 | *}{icon name=add title="Ajouter à la liste de mes surveillances"}</a> |
69 | {else} | |
e6bf9216 | 70 | <a href="carnet/notifs/del_nonins/{$c.user_id}?token={xsrf_token}">{* |
ea62a170 FB |
71 | *}{icon name=cross title="Retirer de la liste de mes surveillances"}</a> |
72 | {/if} | |
73 | {elseif $c.wasinscrit} | |
6f3adfe5 | 74 | <a href="profile/{$c.hruid}" class="popup2">{* |
ea62a170 FB |
75 | *}{icon name=user_suit title="Afficher la fiche"}</a> |
76 | {if !$c.dcd} | |
6f3adfe5 | 77 | <a href="vcard/{$c.hruid}.vcf">{* |
ea62a170 | 78 | *}{icon name=vcard title="Afficher la carte de visite"}</a> |
7773d125 | 79 | <a href="mailto:{$c.bestemail}">{* |
fd9a8382 | 80 | *}{icon name=email title="Envoyer un email"}</a> |
ea62a170 | 81 | {if $show_action eq ajouter} |
6f3adfe5 | 82 | <a href="carnet/contacts?action={$show_action}&user={$c.hruid}&token={xsrf_token}">{* |
ea62a170 FB |
83 | *}{icon name=add title="Ajouter à mes contacts"}</a> |
84 | {else} | |
6f3adfe5 | 85 | <a href="carnet/contacts?action={$show_action}&user={$c.hruid}&token={xsrf_token}">{* |
ea62a170 FB |
86 | *}{icon name=cross title="Retirer de mes contacts"}</a> |
87 | {/if} | |
88 | {/if} | |
f8e7af52 | 89 | {/if} |
ea62a170 | 90 | </div> |
0337d704 | 91 | |
908db125 | 92 | {if hasPerm('admin')} |
ea62a170 | 93 | <div> |
1322ba86 | 94 | [{if !$c.wasinscrit && !$c.dcd} |
6f3adfe5 | 95 | <a href="marketing/private/{$c.hruid}">{* |
1322ba86 FB |
96 | *}{icon name=email title="marketter user"}</a> |
97 | {/if} | |
6f3adfe5 | 98 | <a href="admin/user/{$c.hruid}">{* |
1322ba86 FB |
99 | *}{icon name=wrench title="administrer user"}</a> |
100 | <a href="http://www.polytechniciens.com/?page=AX_FICHE_ANCIEN&anc_id={$c.matricule_ax}">{* | |
101 | *}{icon name=user_gray title="fiche AX"}</a>] | |
ea62a170 | 102 | </div> |
f51dcf10 | 103 | {/if} |
b9384d56 | 104 | </div> |
580f4860 | 105 | {/if} |
0337d704 | 106 | |
107 | <div class="long"> | |
d32d33d2 | 108 | {if $c.wasinscrit || !$c.dcd} |
d216d84a | 109 | {if $c.web || $c.mobile || $c.countrytxt || $c.city || $c.region || $c.entreprise || $c.freetext || (!$c.dcd && !$c.actif )} |
0337d704 | 110 | <table cellspacing="0" cellpadding="0"> |
111 | {if $c.web} | |
112 | <tr> | |
ed260de1 | 113 | <td class="lt">Page web :</td> |
0337d704 | 114 | <td class="rt"><a href="{$c.web}">{$c.web}</a></td> |
115 | </tr> | |
116 | {/if} | |
117 | {if $c.countrytxt || $c.city} | |
118 | <tr> | |
ed260de1 | 119 | <td class="lt">Géographie :</td> |
0337d704 | 120 | <td class="rt">{$c.city}{if $c.city && $c.countrytxt}, {/if}{$c.countrytxt}</td> |
121 | </tr> | |
122 | {/if} | |
68a26991 | 123 | {if $c.mobile && !$c.dcd} |
0337d704 | 124 | <tr> |
ed260de1 | 125 | <td class="lt">Mobile :</td> |
0337d704 | 126 | <td class="rt">{$c.mobile}</td> |
127 | </tr> | |
128 | {/if} | |
129 | {if $c.entreprise} | |
130 | <tr> | |
ed260de1 | 131 | <td class="lt">Profession :</td> |
0337d704 | 132 | <td class="rt"> |
fd9a8382 | 133 | {if $c.job_web}<a href="{$c.job_web}">{$c.entreprise}</a>{else}{$c.entreprise}{/if} |
984186ae | 134 | {if $c.secteur} ({$c.secteur}){/if}{if $c.fonction}<br />{$c.fonction}{/if} |
0337d704 | 135 | </td> |
136 | </tr> | |
137 | {/if} | |
138 | {if $c.freetext} | |
139 | <tr> | |
ed260de1 | 140 | <td class="lt">Commentaire :</td> |
0337d704 | 141 | <td class="rt">{$c.freetext|nl2br}</td> |
142 | </tr> | |
143 | {/if} | |
d32d33d2 | 144 | {if !$c.dcd && (!$c.actif || !$c.wasinscrit) && $smarty.session.auth ge AUTH_COOKIE} |
d216d84a | 145 | <tr> |
146 | <td class="smaller" colspan="2"> | |
d32d33d2 | 147 | {if !$c.wasinscrit} |
862210cd | 148 | Ce{if $c.sexe}tte{/if} camarade n'est pas inscrit{if $c.sexe}e{/if}. |
6f3adfe5 | 149 | <a href="marketing/public/{$c.hruid}" class='popup'>Si tu connais son adresse email, |
d32d33d2 FB |
150 | <strong>n'hésite pas à nous la transmettre !</a> |
151 | {elseif !$c.actif} | |
c3a040b8 | 152 | Ce{if $c.sexe}tte{/if} camarade n'a plus d'adresse de redirection valide. |
6f3adfe5 | 153 | <a href="marketing/broken/{$c.hruid}"> |
ed260de1 | 154 | Si tu en connais une, <strong>n'hésite pas à nous la transmettre</strong>. |
d216d84a | 155 | </a> |
d32d33d2 | 156 | {/if} |
d216d84a | 157 | </td> |
158 | </tr> | |
159 | {/if} | |
0337d704 | 160 | </table> |
161 | {/if} | |
162 | {/if} | |
163 | </div> | |
0337d704 | 164 | </div> |
0337d704 | 165 | |
a7de4ef7 | 166 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |