Commit | Line | Data |
---|---|---|
98a7e9dc | 1 | {**************************************************************************} |
2 | {* *} | |
5e1513f6 | 3 | {* Copyright (C) 2003-2011 Polytechnique.org *} |
98a7e9dc | 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 | ||
741d92e9 SJ |
23 | {if t($anchor)} |
24 | {literal} | |
25 | <script type="text/javascript"> | |
26 | //<![CDATA[ | |
27 | $(document).ready(function() { | |
28 | {/literal} | |
29 | location.hash = "#{$anchor}"; | |
30 | {literal} | |
31 | }); | |
32 | // ]]> | |
33 | </script> | |
34 | {/literal} | |
35 | {/if} | |
36 | ||
34ade5a6 | 37 | <h1>{$asso->nom} : Gestion des télépaiements </h1> |
98a7e9dc | 38 | |
39 | <p class="descr"> | |
e46cf8c4 | 40 | Voici la liste des paiements en ligne possible pour le groupe {$asso->nom} : |
98a7e9dc | 41 | </p> |
42 | ||
af387c4b | 43 | {foreach from=$titles item=p} |
98a7e9dc | 44 | |
45 | <fieldset> | |
741d92e9 | 46 | <legend id="legend_{$p.id}"><a href="{$platal->ns}payment/{$p.id}">{icon name=money title="Télépaiement"}{$p.text}</a></legend> |
98a7e9dc | 47 | |
48 | {if $event[$p.id]} | |
49 | {assign var='ev' value=$event[$p.id]} | |
50 | <p> | |
f5e965ca | 51 | {if t($p.url)} |
a7de4ef7 | 52 | Plus d'informations sur ce télépaiement sont disponibles sur <a href="{$p.url}">cette page</a>.<br /> |
98a7e9dc | 53 | {/if} |
f5e965ca | 54 | {if t($ev.eid)} |
a7de4ef7 | 55 | Ce paiement est associé à l'événement <a href="{$platal->ns}events">{$ev.title}</a>.<br /> |
98a7e9dc | 56 | {if $ev.ins} |
a7de4ef7 | 57 | Tu es inscrit à cet événements. |
98a7e9dc | 58 | {if $ev.topay > $ev.paid} |
59 | <a href="{$platal->ns}payment/{$p.id}?montant={math equation="a-b" a=$ev.topay b=$ev.paid}"> | |
ec82a63f | 60 | Tu dois encore payer {math equation="a-b" a=$ev.topay b=$ev.paid}€. |
98a7e9dc | 61 | </a> |
62 | {elseif $ev.topay eq $ev.paid} | |
a7de4ef7 | 63 | Tu as déjà réglé l'intégralité de ton inscription ({$ev.topay}€). |
98a7e9dc | 64 | {else} |
77af6562 | 65 | Tu as réglé {$ev.paid}€ alors que tu n'en devais que {$ev.topay}€. |
98a7e9dc | 66 | {/if} |
67 | {else} | |
a7de4ef7 | 68 | <a href="{$platal->ns}events/sub/{$ev.eid}">Tu peux t'inscire à cet événement.</a> |
98a7e9dc | 69 | {/if} |
70 | {else} | |
71 | {if !$ev.paid} | |
a7de4ef7 | 72 | Tu n'as actuellement rien payé sur ce télépaiement. |
98a7e9dc | 73 | {else} |
a7de4ef7 | 74 | Tu as déjà payé {$ev.paid}€. |
98a7e9dc | 75 | {/if} |
76 | {/if} | |
77 | </p> | |
78 | {/if} | |
79 | ||
80 | {if $is_admin && $trans[$p.id]} | |
a7de4ef7 | 81 | <p>Liste des personnes ayant payé (pour les administrateurs uniquement) :</p> |
de4b22cc | 82 | <table cellpadding="0" cellspacing="0" id="list_{$p.id}" class='bicol'> |
98a7e9dc | 83 | <tr> |
de4b22cc | 84 | <th> |
af387c4b | 85 | {if $order eq 'timestamp' && $order_id eq $p.id} |
dbc62aa1 | 86 | <a href='{$platal->ns}payment?order={$order}&order_inv={$order_inv}&order_id={$p.id}'> |
a7de4ef7 | 87 | <img src="{$platal->baseurl}images/{if !$order_inv}dn{else}up{/if}.png" alt="" title="Tri {if $order_inv}dé{/if}croissant" /> |
98a7e9dc | 88 | {else} |
dbc62aa1 | 89 | <a href='{$platal->ns}payment?order=timestamp&order_id={$p.id}'> |
98a7e9dc | 90 | {/if}Date</a> |
91 | </th> | |
de4b22cc | 92 | <th colspan="2"> |
af387c4b | 93 | {if $order eq 'directory_name' && $order_id eq $p.id} |
dbc62aa1 | 94 | <a href='{$platal->ns}payment?order={$order}&order_inv={$order_inv}&order_id={$p.id}'> |
a7de4ef7 | 95 | <img src="{$platal->baseurl}images/{if $order_inv}dn{else}up{/if}.png" alt="" title="Tri {if !$order_inv}dé{/if}croissant" /> |
98a7e9dc | 96 | {else} |
dbc62aa1 | 97 | <a href='{$platal->ns}payment?order=directory_name&order_id={$p.id}'>{/if} |
a7de4ef7 | 98 | NOM Prénom</a> |
98a7e9dc | 99 | </th> |
de4b22cc | 100 | <th> |
af387c4b | 101 | {if $order eq 'promo' && $order_id eq $p.id} |
dbc62aa1 | 102 | <a href='{$platal->ns}payment?order={$order}&order_inv={$order_inv}&order_id={$p.id}'> |
a7de4ef7 | 103 | <img src="{$platal->baseurl}images/{if $order_inv}dn{else}up{/if}.png" alt="" title="Tri {if !$order_inv}dé{/if}croissant" /> |
98a7e9dc | 104 | {else} |
dbc62aa1 | 105 | <a href='{$platal->ns}payment?order=promo&order_id={$p.id}'> |
98a7e9dc | 106 | {/if}Promo</a> |
107 | </th> | |
de4b22cc | 108 | <th> |
af387c4b | 109 | {if $order eq 'comment' && $order_id eq $p.id} |
dbc62aa1 | 110 | <a href='{$platal->ns}payment?order=comment&order_inv={$order_inv}&order_id={$p.id}'> |
a7de4ef7 | 111 | <img src="{$platal->baseurl}images/{if $order_inv}dn{else}up{/if}.png" alt="" title="Tri {if !$order_inv}dé{/if} siant" /> |
de4b22cc | 112 | {else} |
dbc62aa1 | 113 | <a href='{$platal->ns}payment?order=comment&order_id={$p.id}'> |
de4b22cc | 114 | {/if}Commentaire</a> |
115 | </th> | |
116 | <th> | |
af387c4b | 117 | {if $order eq 'amount' && $order_id eq $p.id} |
dbc62aa1 | 118 | <a href='{$platal->ns}payment?order={$order}&order_inv={$order_inv}&order_id={$p.id}'> |
a7de4ef7 | 119 | <img src="{$platal->baseurl}images/{if $order_inv}dn{else}up{/if}.png" alt="" title="Tri {if !$order_inv}dé{/if}croissant" /> |
98a7e9dc | 120 | {else} |
dbc62aa1 | 121 | <a href='{$platal->ns}payment?order=amount&order_id={$p.id}'> |
98a7e9dc | 122 | {/if}Montant</a> |
123 | </th> | |
124 | </tr> | |
125 | {assign var="somme" value=0} | |
126 | {foreach from=$trans[$p.id] item=p name=people} | |
f5e965ca | 127 | {if !t($p.limit)} |
98a7e9dc | 128 | <tr> |
f5e965ca | 129 | <td class="center">{if $p.date eq 0}-{else}{$p.date|date_format:"%d/%m/%y"}{/if}</td> |
98a7e9dc | 130 | <td> |
1eaaa62d | 131 | {profile user=$p.user promo=false} |
98a7e9dc | 132 | </td> |
133 | <td> | |
1eaaa62d | 134 | <a href="mailto:{$p.user->bestEmail()}">{icon name=email title="email"}</a> |
98a7e9dc | 135 | </td> |
1eaaa62d | 136 | <td class="center">{$p.user->promo()}</td> |
17793ccf | 137 | <td>{$p.comment|comment_decode}</td> |
b3cd1320 | 138 | <td class="right">{$p.amount}</td> |
98a7e9dc | 139 | </tr> |
140 | {elseif $smarty.foreach.people.first} | |
141 | <tr> | |
77af6562 | 142 | <td colspan="6" class="center">Personne n'a encore payé pour ce télépaiement.</td> |
98a7e9dc | 143 | </tr> |
144 | {else} | |
145 | <tr class="pair"> | |
de4b22cc | 146 | <td class="right" colspan="5"><strong>Total </strong></td> |
b3cd1320 | 147 | <th class="right">{$p.amount}</th> |
98a7e9dc | 148 | </tr> |
149 | {/if} | |
150 | {/foreach} | |
151 | </table> | |
98a7e9dc | 152 | {/if} |
153 | </fieldset> | |
154 | ||
155 | {foreachelse} | |
156 | ||
157 | <p class="descr"> | |
6e828e47 | 158 | <em>Pas de télépaiement en cours…</em> |
98a7e9dc | 159 | </p> |
160 | ||
161 | {/foreach} | |
162 | ||
a7de4ef7 | 163 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |