migrate payments.
[platal.git] / templates / xnet / groupe / telepaiement.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2006 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 <h1>{$asso.nom} : Gestion des télépaiements </h1>
24
25 <p class="descr">
26 Voici la liste des paiements en ligne possible pour le groupe {$asso.nom}
27 </p>
28
29 {foreach from=$titres item=p}
30
31 <hr />
32 <h2>
33 <a href="https://www.polytechnique.org/payment/{$p.id}">{$p.text}</a>
34 </h2>
35
36 {if $trans[$p.id]}
37 <table cellpadding="0" cellspacing="0" class='bicol'>
38   <tr>
39     <th colspan="4">{$p.text} : détails pour les administrateurs</th>
40   </tr>
41   <tr>
42     <td class="center">[{if $order eq 'timestamp'}<strong><a href='?order={$order}&order_inv={$order_inv}'>{else}<a href='?order=timestamp'>{/if}Date</a>{if $order eq 'timestamp'}</strong>{/if}]</td>
43     <td class="center">[{if $order eq 'nom'}<strong><a href='?order={$order}&order_inv={$order_inv}'>{else}<a href='?order=nom'>{/if}Prénom NOM</a>{if $order eq 'nom'}</strong>{/if}]</td>
44     <td class="center">[{if $order eq 'promo'}<strong><a href='?order={$order}&order_inv={$order_inv}'>{else}<a href='?order=promo'>{/if}Promo</a>{if $order eq 'promo'}</strong>{/if}]</td>
45     <td class="center">[{if $order eq 'montant'}<strong><a href='?order={$order}&order_inv={$order_inv}'>{else}<a href='?order=montant'>{/if}Montant</a>{if $order eq 'montant'}</strong>{/if}]</td>
46   </tr>
47   {assign var="somme" value=0}
48   {foreach from=$trans[$p.id] item=p}
49   <tr>
50     {if $p.nom neq "somme totale"}
51         <td class="center">{$p.date|date_format:"%d/%m/%y"}</td>
52         <td>
53           {$p.prenom} {$p.nom}
54           <a href="https://www.polytechnique.org/fiche.php?user={$p.alias}"><img alt="[fiche]" title="Voir sa fiche" src="{rel}/images/loupe.gif"/></a>
55           <a href="mailto:{$p.alias}@polytechnique.org"><img alt="[mail]" title="Lui envoyer un mail" src="{rel}/images/mail.png"/></a>
56         </td>
57         <td class="center">X {$p.promo}</td>
58         <td class="right">{$p.montant}</td>
59     {else}
60         <td class="right" colspan="3"><strong>Total </strong></td>
61         <th class="right">{$p.montant}</th>
62     {/if}        
63   </tr>
64   {/foreach}
65 </table>
66 {/if}
67
68 {foreachelse}
69
70 <p class="descr">
71 <em>Pas de télépaiement en cours ...</em>
72 </p>
73
74 {/foreach}
75
76 {* vim:set et sw=2 sts=2 sws=2: *}