1 {**************************************************************************}
3 {* Copyright (C) 2003-2014 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 {**************************************************************************}
25 <script type="text/javascript">
29 location.hash = "#{$anchor}";
37 <h1>{$asso->nom} : Gestion des télépaiements </h1>
40 Voici la liste des paiements en ligne possible pour le groupe {$asso->nom}. Pour afficher les camarades dans un certain ordre,
41 il suffit de cliquer sur le titre de la colonne concernée.
44 {foreach from=$titles item=p}
47 <legend id="legend_{$p.id}">{icon name=money title="Télépaiement"}{$p.text}</legend>
50 {assign var='ev' value=$event[$p.id]}
53 Plus d'informations sur ce télépaiement sont disponibles sur <a href="{$p.url}">cette page</a>.<br />
56 Ce paiement est associé à l'événement <a href="{$platal->ns}events">{$ev.title}</a>.<br />
58 Tu es inscrit à cet événement.
59 {if $ev.topay > $ev.paid}
60 <a href="{$platal->ns}payment/{$p.id}?montant={math equation="a-b" a=$ev.topay b=$ev.paid}">
61 Tu dois encore payer {math equation="a-b" a=$ev.topay b=$ev.paid}€.
63 {elseif $ev.topay eq $ev.paid}
64 Tu as déjà réglé l'intégralité de ton inscription ({$ev.topay}€).
66 Tu as réglé {$ev.paid}€ alors que tu n'en devais que {$ev.topay}€.
69 <a href="{$platal->ns}events/sub/{$ev.eid}">Tu peux t'inscire à cet événement.</a>
73 Tu n'as actuellement rien payé sur ce télépaiement.
75 Tu as déjà payé {$ev.paid}€.
81 {if $is_admin && $trans[$p.id]}
83 Liste des personnes ayant payé (pour les administrateurs uniquement) :<br />
84 {include file="include/csv.tpl" url="`$platal->ns`payment/csv/`$p.id`.csv"}
86 <table cellpadding="0" cellspacing="0" id="list_{$p.id}" class='bicol'>
89 {if $order eq 'timestamp' && $order_id eq $p.id}
90 <a href='{$platal->ns}payment?order={$order}&order_inv={$order_inv}&order_id={$p.id}'>
91 <img src="{$platal->baseurl}images/{if !$order_inv}dn{else}up{/if}.png" alt="" title="Tri {if $order_inv}dé{/if}croissant" />
93 <a href='{$platal->ns}payment?order=timestamp&order_id={$p.id}'>
97 {if $order eq 'directory_name' && $order_id eq $p.id}
98 <a href='{$platal->ns}payment?order={$order}&order_inv={$order_inv}&order_id={$p.id}'>
99 <img src="{$platal->baseurl}images/{if $order_inv}dn{else}up{/if}.png" alt="" title="Tri {if !$order_inv}dé{/if}croissant" />
101 <a href='{$platal->ns}payment?order=directory_name&order_id={$p.id}'>{/if}
105 {if $order eq 'promo' && $order_id eq $p.id}
106 <a href='{$platal->ns}payment?order={$order}&order_inv={$order_inv}&order_id={$p.id}'>
107 <img src="{$platal->baseurl}images/{if $order_inv}dn{else}up{/if}.png" alt="" title="Tri {if !$order_inv}dé{/if}croissant" />
109 <a href='{$platal->ns}payment?order=promo&order_id={$p.id}'>
113 {if $order eq 'comment' && $order_id eq $p.id}
114 <a href='{$platal->ns}payment?order=comment&order_inv={$order_inv}&order_id={$p.id}'>
115 <img src="{$platal->baseurl}images/{if $order_inv}dn{else}up{/if}.png" alt="" title="Tri {if !$order_inv}dé{/if} siant" />
117 <a href='{$platal->ns}payment?order=comment&order_id={$p.id}'>
121 {if $order eq 'amount' && $order_id eq $p.id}
122 <a href='{$platal->ns}payment?order={$order}&order_inv={$order_inv}&order_id={$p.id}'>
123 <img src="{$platal->baseurl}images/{if $order_inv}dn{else}up{/if}.png" alt="" title="Tri {if !$order_inv}dé{/if}croissant" />
125 <a href='{$platal->ns}payment?order=amount&order_id={$p.id}'>
129 {assign var="somme" value=0}
130 {foreach from=$trans[$p.id] item=p name=people}
133 <td class="center">{if $p.date eq 0}-{else}{$p.date|date_format:"%d/%m/%y"}{/if}</td>
135 {profile user=$p.user promo=false}
138 <a href="mailto:{$p.user->bestEmail()}">{icon name=email title="email"}</a>
140 <td class="center">{$p.user->promo()}</td>
141 <td>{$p.comment|comment_decode}</td>
142 <td class="right">{$p.amount|replace:'.':','} €</td>
144 {elseif $smarty.foreach.people.first}
146 <td colspan="6" class="center">Personne n'a encore payé pour ce télépaiement.</td>
150 <td class="right" colspan="5"><strong>Total </strong></td>
151 <th class="right">{$p.amount|replace:'.':','} €</th>
162 <em>Pas de télépaiement en cours…</em>
167 {* vim:set et sw=2 sts=2 sws=2 fenc=utf-8: *}