1 {**************************************************************************}
3 {* Copyright (C) 2003-2010 Polytechnique.org *}
4 {* http://opensource.polytechnique.org/ *}
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. *}
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. *}
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 *}
21 {**************************************************************************}
23 <h1>{$asso->nom} : Gestion des télépaiements </h1>
26 Voici la liste des paiements en ligne possible pour le groupe {$asso->nom} :
29 {foreach from=$titres item=p}
32 <legend><a href="{$platal->ns}payment/{$p.id}">{icon name=money title="Télépaiement"}{$p.text}</a></legend>
35 {assign var='ev' value=$event[$p.id]}
38 Plus d'informations sur ce télépaiement sont disponibles sur <a href="{$p.url}">cette page</a>.<br />
41 Ce paiement est associé à l'événement <a href="{$platal->ns}events">{$ev.title}</a>.<br />
43 Tu es inscrit à cet événements.
44 {if $ev.topay > $ev.paid}
45 <a href="{$platal->ns}payment/{$p.id}?montant={math equation="a-b" a=$ev.topay b=$ev.paid}">
46 Tu dois encore payer {math equation="a-b" a=$ev.topay b=$ev.paid}€.
48 {elseif $ev.topay eq $ev.paid}
49 Tu as déjà réglé l'intégralité de ton inscription ({$ev.topay}€).
51 Tu as réglé {$ev.paid}€ alors que tu n'en devais que {$ev.topay}€.
54 <a href="{$platal->ns}events/sub/{$ev.eid}">Tu peux t'inscire à cet événement.</a>
58 Tu n'as actuellement rien payé sur ce télépaiement.
60 Tu as déjà payé {$ev.paid}€.
66 {if $is_admin && $trans[$p.id]}
67 <p>Liste des personnes ayant payé (pour les administrateurs uniquement) :</p>
68 <table cellpadding="0" cellspacing="0" id="list_{$p.id}" class='bicol'>
71 {if $order eq 'timestamp'}
72 <a href='{$platal->ns}payment?order={$order}&order_inv={$order_inv}'>
73 <img src="{$platal->baseurl}images/{if !$order_inv}dn{else}up{/if}.png" alt="" title="Tri {if $order_inv}dé{/if}croissant" />
75 <a href='{$platal->ns}payment?order=timestamp'>
80 <a href='{$platal->ns}payment?order={$order}&order_inv={$order_inv}'>
81 <img src="{$platal->baseurl}images/{if $order_inv}dn{else}up{/if}.png" alt="" title="Tri {if !$order_inv}dé{/if}croissant" />
83 <a href='{$platal->ns}payment?order=nom'>{/if}
87 {if $order eq 'promo'}
88 <a href='{$platal->ns}payment?order={$order}&order_inv={$order_inv}'>
89 <img src="{$platal->baseurl}images/{if $order_inv}dn{else}up{/if}.png" alt="" title="Tri {if !$order_inv}dé{/if}croissant" />
91 <a href='{$platal->ns}payment?order=promo'>
95 {if $order eq 'comment'}
96 <a href='{$platal->ns}payment?order=comment&order_inv={$order_inv}'>
97 <img src="{$platal->baseurl}images/{if $order_inv}dn{else}up{/if}.png" alt="" title="Tri {if !$order_inv}dé{/if} siant" />
99 <a href='{$platal->ns}payment?order=comment'>
103 {if $order eq 'amount'}
104 <a href='{$platal->ns}payment?order={$order}&order_inv={$order_inv}'>
105 <img src="{$platal->baseurl}images/{if $order_inv}dn{else}up{/if}.png" alt="" title="Tri {if !$order_inv}dé{/if}croissant" />
107 <a href='{$platal->ns}payment?order=montant'>
111 {assign var="somme" value=0}
112 {foreach from=$trans[$p.id] item=p name=people}
115 <td class="center">{if $p.date eq 0}-{else}{$p.date|date_format:"%d/%m/%y"}{/if}</td>
117 {profile user=$p.user promo=false}
120 <a href="mailto:{$p.user->bestEmail()}">{icon name=email title="email"}</a>
122 <td class="center">{$p.user->promo()}</td>
123 <td>{$p.comment|comment_decode}</td>
124 <td class="right">{$p.amount}</td>
126 {elseif $smarty.foreach.people.first}
128 <td colspan="6" class="center">Personne n'a encore payé pour ce télépaiement.</td>
132 <td class="right" colspan="5"><strong>Total </strong></td>
133 <th class="right">{$p.amount}</th>
144 <em>Pas de télépaiement en cours…</em>
149 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}