Only uses autoload to require validation classes.
[platal.git] / templates / payment / xnet.tpl
index 2ff1af8..4c7f794 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2009 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2010 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
 {*                                                                        *}
 {**************************************************************************}
 
-<h1>{$asso.nom}&nbsp;: Gestion des télépaiements </h1>
+<h1>{$asso->nom}&nbsp;: Gestion des télépaiements </h1>
 
 <p class="descr">
-Voici la liste des paiements en ligne possible pour le groupe {$asso.nom} :
+Voici la liste des paiements en ligne possible pour le groupe {$asso->nom}&nbsp;:
 </p>
 
 {foreach from=$titres item=p}
@@ -100,7 +100,7 @@ Voici la liste des paiements en ligne possible pour le groupe {$asso.nom} :
       {/if}Commentaire</a>
     </th>
     <th>
-      {if $order eq 'montant'}
+      {if $order eq 'amount'}
         <a href='{$platal->ns}payment?order={$order}&order_inv={$order_inv}'>
           <img src="{$platal->baseurl}images/{if $order_inv}dn{else}up{/if}.png" alt="" title="Tri {if !$order_inv}dé{/if}croissant" />
       {else}
@@ -114,16 +114,14 @@ Voici la liste des paiements en ligne possible pour le groupe {$asso.nom} :
   <tr>
     <td class="center">{$p.date|date_format:"%d/%m/%y"}</td>
     <td>
-      <a href="https://www.polytechnique.org/profile/{$p.alias}" class="popup2">
-        {$p.nom|strtoupper} {$p.prenom}
-       </a>
+      {profile user=$p.user promo=false}
     </td>
     <td>
-      <a href="mailto:{$p.alias}@{#globals.mail.domain#}">{icon name=email title="email"}</a>
+      <a href="mailto:{$p.user->bestEmail()}">{icon name=email title="email"}</a>
     </td>
-    <td class="center">{$p.promo}</td>
+    <td class="center">{$p.user->promo()}</td>
     <td>{$p.comment|comment_decode}</td>
-    <td class="right">{$p.montant}</td>
+    <td class="right">{$p.amount}</td>
   </tr>
   {elseif $smarty.foreach.people.first}
   <tr>
@@ -132,7 +130,7 @@ Voici la liste des paiements en ligne possible pour le groupe {$asso.nom} :
   {else}
   <tr class="pair">
     <td class="right" colspan="5"><strong>Total </strong></td>
-    <th class="right">{$p.montant}</th>
+    <th class="right">{$p.amount}</th>
   </tr>
   {/if}
   {/foreach}