{**************************************************************************}
{* *}
-{* Copyright (C) 2003-2006 Polytechnique.org *}
+{* Copyright (C) 2003-2008 Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
{* *}
{**************************************************************************}
-
-{if !$c.inscrit || $c.dcd}<div class='grayed'>{/if}
-<div class="contact" {if $c.inscrit}{if $smarty.session.auth ge AUTH_COOKIE}title="fiche mise à jour le {$c.date|date_format}"{/if}{/if}>
-
- <div class="nom">
- {if $c.sexe}•{/if}
- {if !$c.dcd && $c.inscrit}<a href="profile/{$c.forlife}" class="popup2">{/if}
- {if $c.nom_usage}{$c.nom_usage} {$c.prenom}<br />({$c.nom}){else}{$c.nom} {$c.prenom}{/if}
- {if !$c.dcd && $c.inscrit}</a>{/if}
- </div>
-
- <div class="appli">
- {if $c.iso3166}
- <img src='images/flags/{$c.iso3166}.gif' alt='{$c.nat}' height='11' title='{$c.nat}' />
- {/if}
- (X {$c.promo}{if $c.app0text}, {applis_fmt type=$c.app0type text=$c.app0text url=$c.app0url}
- {/if}{if $c.app1text}, {applis_fmt type=$c.app1type text=$c.app1text url=$c.app1url}{/if})
- {if $c.dcd}décédé{if $c.sexe}e{/if} le {$c.deces|date_format}{/if}
+<div class="contact {if (!$c.inscrit && $smarty.session.auth ge AUTH_COOKIE) || $c.dcd}grayed{/if}"
+ {if $c.inscrit}{if $smarty.session.auth ge AUTH_COOKIE}title="fiche mise à jour le {$c.date|date_format}"{/if}{/if}>
+ <div class="identity">
{if $smarty.session.auth ge AUTH_COOKIE}
- {if !$c.dcd && !$c.wasinscrit}
- <a href="marketing/public/{$c.user_id}" class='popup'>clique ici si tu connais son adresse email !</a>
- {/if}
+ <div class="photo">
+ <img src="photo/{if $c.inscrit}{$c.forlife}{else}{make_forlife nom=$c.nom prenom=$c.prenom promo=$c.promo}{/if}"
+ alt="{$c.prenom} {$c.nom}" />
+ </div>
{/if}
- </div>
- <div class="bits">
- {if $smarty.session.auth ge AUTH_COOKIE}
- {if !$c.wasinscrit && !$c.dcd}
- {if $show_action eq ajouter}
- <a href="carnet/notifs/add_nonins/{$c.user_id}">{*
- *}<img src="images/ajouter.gif" alt="Ajouter à la liste de mes surveillances" title="Ajouter à la liste de mes surveillances" /></a>
- {else}
- <a href="carnet/notifs/del_nonins/{$c.user_id}">{*
- *}{icon name=cross title="Retirer de la liste de mes surveillances"}</a>
+ <div class="nom">
+ {if $c.sexe}•{/if}
+ {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}
+ {if $c.nom_usage}{$c.nom_usage} {$c.prenom}<br />({$c.nom}){else}{$c.nom} {$c.prenom}{/if}
+ {if !$c.dcd && ($c.inscrit || $smarty.session.auth eq AUTH_PUBLIC)}</a>{/if}
+ </div>
+
+ <div class="appli">
+ {if $c.iso3166}
+ <img src='images/flags/{$c.iso3166}.gif' alt='{$c.nat}' height='11' title='{$c.nat}' />
{/if}
- {elseif $c.wasinscrit}
- <a href="profile/{$c.forlife}" class="popup2">{*
- *}<img src="images/loupe.gif" alt="Afficher la fiche" title="Afficher la fiche" /></a>
- {if !$c.dcd}
- <a href="vcard/{$c.forlife}.vcf">{*
- *}<img src="images/vcard.png" alt="Afficher la carte de visite" title="Afficher la carte de visite" /></a>
- <a href="carnet/contacts?action={$show_action}&user={$c.forlife}">{*
- *}<img src="images/{$show_action}.gif" alt="{if $show_action eq "ajouter"}Ajouter à mes{else}Retirer de mes{/if} contacts"
- title="{if $show_action eq "ajouter"}Ajouter à mes{else}Retirer de mes{/if} contacts" /></a>
+ (X {$c.promo}{if $c.app0text}, {applis_fmt type=$c.app0type text=$c.app0text url=$c.app0url}{*
+ *}{/if}{if $c.app1text}, {applis_fmt type=$c.app1type text=$c.app1text url=$c.app1url}{/if})
+ {if $c.dcd}décédé{if $c.sexe}e{/if} le {$c.deces|date_format}{/if}
+ {if $smarty.session.auth ge AUTH_COOKIE}
+ {if !$c.dcd && !$c.wasinscrit}
+ <a href="marketing/public/{$c.user_id}" class='popup'>clique ici si tu connais son adresse email !</a>
{/if}
- {/if}
- {/if}
+ {/if}
+ </div>
+ </div>
- {if $smarty.session.perms eq admin}
+ {if $smarty.session.auth ge AUTH_COOKIE}
+ <div class="noprint bits">
+ <div>
{if !$c.wasinscrit && !$c.dcd}
- <a href="marketing/private/{$c.user_id}">{*
- *}<img src="images/admin.png" alt='admin' title="marketter user" /></a>
+ {if $show_action eq ajouter}
+ <a href="carnet/notifs/add_nonins/{$c.user_id}?token={xsrf_token}">{*
+ *}{icon name=add title="Ajouter à la liste de mes surveillances"}</a>
+ {else}
+ <a href="carnet/notifs/del_nonins/{$c.user_id}?token={xsrf_token}">{*
+ *}{icon name=cross title="Retirer de la liste de mes surveillances"}</a>
+ {/if}
{elseif $c.wasinscrit}
- <a href="admin/utilisateurs.php?login={$c.forlife}">{*
- *}<img src="images/admin.png" alt='admin' title="administrer user" /></a>
+ <a href="profile/{$c.forlife}" class="popup2">{*
+ *}{icon name=user_suit title="Afficher la fiche"}</a>
+ {if !$c.dcd}
+ <a href="vcard/{$c.forlife}.vcf">{*
+ *}{icon name=vcard title="Afficher la carte de visite"}</a>
+ {if $show_action eq ajouter}
+ <a href="carnet/contacts?action={$show_action}&user={$c.forlife}&token={xsrf_token}">{*
+ *}{icon name=add title="Ajouter à mes contacts"}</a>
+ {else}
+ <a href="carnet/contacts?action={$show_action}&user={$c.forlife}&token={xsrf_token}">{*
+ *}{icon name=cross title="Retirer de mes contacts"}</a>
+ {/if}
+ {/if}
{/if}
- <a href="http://www.polytechniciens.com/index.php?page=AX_FICHE_ANCIEN&anc_id={$c.matricule_ax}">{*
- *}<img src="images/ax.png" alt='AX' title="fiche AX" /></a>
+ </div>
+
+ {if hasPerm('admin')}
+ <div>
+ {if !$c.wasinscrit && !$c.dcd}
+ <a href="marketing/private/{$c.user_id}">{*
+ *}{icon name=email title="marketter user"}</a>
+ {/if}
+ <a href="admin/user/{if $c.wasinscrit}{$c.forlife}{else}{$c.user_id}{/if}">{*
+ *}{icon name=wrench title="administrer user"}</a>
+ <a href="http://www.polytechniciens.com/?page=AX_FICHE_ANCIEN&anc_id={$c.matricule_ax}">{*
+ *}{icon name=user_gray title="fiche AX"}</a>
+ </div>
{/if}
</div>
+ {/if}
<div class="long">
{if $c.wasinscrit}
- {if $c.web || $c.mobile || $c.countrytxt || $c.city || $c.region || $c.entreprise || $c.freetext}
+ {if $c.web || $c.mobile || $c.countrytxt || $c.city || $c.region || $c.entreprise || $c.freetext || (!$c.dcd && !$c.actif )}
<table cellspacing="0" cellpadding="0">
{if $c.web}
<tr>
{/if}
{if $c.countrytxt || $c.city}
<tr>
- <td class="lt">Géographie:</td>
+ <td class="lt">Géographie:</td>
<td class="rt">{$c.city}{if $c.city && $c.countrytxt}, {/if}{$c.countrytxt}</td>
</tr>
{/if}
<td class="rt">{$c.freetext|nl2br}</td>
</tr>
{/if}
+ {if !$c.dcd && !$c.actif && $c.wasinscrit && $smarty.session.auth ge AUTH_COOKIE}
+ <tr>
+ <td class="smaller" colspan="2">
+ Ce camarade n'a plus d'adresse de redirection valide.
+ <a href="marketing/broken/{$c.forlife}">
+ Si tu en connais une, <strong>n'hésite pas à nous la transmettre</strong>
+ </a>
+ </td>
+ </tr>
+ {/if}
</table>
{/if}
{/if}
</div>
-
</div>
-{if !$c.inscrit || $c.dcd}</div>{/if}
-{* vim:set et sw=2 sts=2 sws=2: *}
+{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}