2006 => 2007 Happy New Year\!
[platal.git] / templates / include / minifiche.tpl
index b16f168..385b4a9 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2006 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2007 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
     {/if}
   </div>
 
+  <div class="noprint">
   <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>
+        *}{icon name=add title="Ajouter à la liste de mes surveillances"}</a>
       {else}
         <a href="carnet/notifs/del_nonins/{$c.user_id}">{*
-        *}<img src="images/retirer.gif" alt="Retirer de la liste de mes surveillances" title="Retirer de la liste de mes surveillances" /></a>
+        *}{icon name=cross title="Retirer de la liste de mes surveillances"}</a>
       {/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>
+        *}{icon name=user_suit 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>
+        *}{icon name=vcard title="Afficher la carte de visite"}</a>
+      {if $show_action eq ajouter}
+        <a href="carnet/contacts?action={$show_action}&amp;user={$c.forlife}">{*
+        *}{icon name=add title="Ajouter à mes contacts"}</a>
+      {else}
         <a href="carnet/contacts?action={$show_action}&amp;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>
+        *}{icon name=cross title="Retirer de mes contacts"}</a>
+      {/if}
       {/if}
     {/if}
     {/if}
 
     {if $smarty.session.perms eq admin}
-      {if !$c.wasinscrit && !$c.dcd}
+      [{if !$c.wasinscrit && !$c.dcd}
         <a href="marketing/private/{$c.user_id}">{*
-          *}<img src="images/admin.png" alt='admin' title="marketter user" /></a>
-      {elseif $c.wasinscrit}
-        <a href="admin/utilisateurs.php?login={$c.forlife}">{*
-          *}<img src="images/admin.png" alt='admin' title="administrer user" /></a>
+          *}{icon name=email title="marketter user"}</a>
       {/if}
-      <a href="http://www.polytechniciens.com/index.php?page=AX_FICHE_ANCIEN&amp;anc_id={$c.matricule_ax}">{*
-      *}<img src="images/ax.png" alt='AX' title="fiche AX" /></a>
+      <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&amp;anc_id={$c.matricule_ax}">{*
+      *}{icon name=user_gray title="fiche AX"}</a>]
     {/if}
   </div>
+  </div>
 
   <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>
         <td class="rt">{$c.freetext|nl2br}</td>
       </tr>
       {/if}
+      {if !$c.dcd && !$c.actif && $c.wasinscrit}
+      <tr>
+        <td class="smaller" colspan="2">
+          Ce camarade n'a plus d'adresse redirection valide.
+          <a href="marketing/broken/{$c.user_id}">
+            Si tu en connais une, <strong>n'hésite pas à nous la transmettre</strong>
+          </a>
+        </td>
+      </tr>
+      {/if}
     </table>
     {/if}
   {/if}