Adds links to and from the Google Apps administrative pages.
[platal.git] / templates / include / minifiche.tpl
CommitLineData
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
FB
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.prenom} {$c.nom}" />
30 </div>
580f4860 31 {/if}
0337d704 32
ea62a170
FB
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 {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}' />&nbsp;
43 {/if}
44 (X {$c.promo}{if $c.app0text}, {applis_fmt type=$c.app0type text=$c.app0text url=$c.app0url}{*
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}
47 {if $smarty.session.auth ge AUTH_COOKIE}
48 {if !$c.dcd && !$c.wasinscrit}
49 <a href="marketing/public/{$c.user_id}" class='popup'>clique ici si tu connais son adresse email !</a>
50 {/if}
51 {/if}
52 </div>
0337d704 53 </div>
54
580f4860 55 {if $smarty.session.auth ge AUTH_COOKIE}
ea62a170
FB
56 <div class="noprint bits">
57 <div>
ea62a170
FB
58 {if !$c.wasinscrit && !$c.dcd}
59 {if $show_action eq ajouter}
e6bf9216 60 <a href="carnet/notifs/add_nonins/{$c.user_id}?token={xsrf_token}">{*
ea62a170
FB
61 *}{icon name=add title="Ajouter à la liste de mes surveillances"}</a>
62 {else}
e6bf9216 63 <a href="carnet/notifs/del_nonins/{$c.user_id}?token={xsrf_token}">{*
ea62a170
FB
64 *}{icon name=cross title="Retirer de la liste de mes surveillances"}</a>
65 {/if}
66 {elseif $c.wasinscrit}
67 <a href="profile/{$c.forlife}" class="popup2">{*
68 *}{icon name=user_suit title="Afficher la fiche"}</a>
69 {if !$c.dcd}
70 <a href="vcard/{$c.forlife}.vcf">{*
71 *}{icon name=vcard title="Afficher la carte de visite"}</a>
72 {if $show_action eq ajouter}
e6bf9216 73 <a href="carnet/contacts?action={$show_action}&amp;user={$c.forlife}&amp;token={xsrf_token}">{*
ea62a170
FB
74 *}{icon name=add title="Ajouter à mes contacts"}</a>
75 {else}
e6bf9216 76 <a href="carnet/contacts?action={$show_action}&amp;user={$c.forlife}&amp;token={xsrf_token}">{*
ea62a170
FB
77 *}{icon name=cross title="Retirer de mes contacts"}</a>
78 {/if}
79 {/if}
f8e7af52 80 {/if}
ea62a170 81 </div>
0337d704 82
908db125 83 {if hasPerm('admin')}
ea62a170
FB
84 <div>
85 {if !$c.wasinscrit && !$c.dcd}
86 <a href="marketing/private/{$c.user_id}">{*
87 *}{icon name=email title="marketter user"}</a>
c6db254a 88 {/if}
ea62a170
FB
89 <a href="admin/user/{if $c.wasinscrit}{$c.forlife}{else}{$c.user_id}{/if}">{*
90 *}{icon name=wrench title="administrer user"}</a>
91 <a href="http://www.polytechniciens.com/?page=AX_FICHE_ANCIEN&amp;anc_id={$c.matricule_ax}">{*
92 *}{icon name=user_gray title="fiche AX"}</a>
93 {/if}
94 </div>
b9384d56 95 </div>
580f4860 96 {/if}
0337d704 97
98 <div class="long">
99 {if $c.wasinscrit}
d216d84a 100 {if $c.web || $c.mobile || $c.countrytxt || $c.city || $c.region || $c.entreprise || $c.freetext || (!$c.dcd && !$c.actif )}
0337d704 101 <table cellspacing="0" cellpadding="0">
102 {if $c.web}
103 <tr>
104 <td class="lt">Page web:</td>
105 <td class="rt"><a href="{$c.web}">{$c.web}</a></td>
106 </tr>
107 {/if}
108 {if $c.countrytxt || $c.city}
109 <tr>
a7de4ef7 110 <td class="lt">Géographie:</td>
0337d704 111 <td class="rt">{$c.city}{if $c.city && $c.countrytxt}, {/if}{$c.countrytxt}</td>
112 </tr>
113 {/if}
68a26991 114 {if $c.mobile && !$c.dcd}
0337d704 115 <tr>
116 <td class="lt">Mobile:</td>
117 <td class="rt">{$c.mobile}</td>
118 </tr>
119 {/if}
120 {if $c.entreprise}
121 <tr>
122 <td class="lt">Profession:</td>
123 <td class="rt">
124 {$c.entreprise} {if $c.secteur}({$c.secteur}){/if}
125 {if $c.fonction}<br />{$c.fonction}{/if}
126 </td>
127 </tr>
128 {/if}
129 {if $c.freetext}
130 <tr>
131 <td class="lt">Commentaire:</td>
132 <td class="rt">{$c.freetext|nl2br}</td>
133 </tr>
134 {/if}
7b9c876d 135 {if !$c.dcd && !$c.actif && $c.wasinscrit && $smarty.session.auth ge AUTH_COOKIE}
d216d84a 136 <tr>
137 <td class="smaller" colspan="2">
ac3f2812 138 Ce camarade n'a plus d'adresse de redirection valide.
fbc210fa 139 <a href="marketing/broken/{$c.forlife}">
a7de4ef7 140 Si tu en connais une, <strong>n'hésite pas à nous la transmettre</strong>
d216d84a 141 </a>
142 </td>
143 </tr>
144 {/if}
0337d704 145 </table>
146 {/if}
147 {/if}
148 </div>
0337d704 149</div>
0337d704 150
a7de4ef7 151{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}