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