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