1 {**************************************************************************}
3 {* Copyright (C) 2003-2011 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 {**************************************************************************}
24 <h1>Télépaiements</h1>
26 {if $smarty.request.op eq "submit" and !$pl_errors}
30 <th colspan="2">Paiement via {$meth->text}</th>
33 <td><b>Transaction</b></td>
37 <td><b>Montant</b></td>
38 <td>{$montant} €</td>
42 <td><b>Commentaire</b></td>
49 <form method="post" action="{$pay->api->urlform}">
51 <!-- infos commercant -->
52 {foreach from=$pay->api->infos.commercant key="name" item="value"}
53 <input type="hidden" name="{$name}" value="{$value}" />
56 {foreach from=$pay->api->infos.client key="name" item="value"}
57 <input type="hidden" name="{$name}" value="{$value}" />
59 <!-- infos commande -->
60 {foreach from=$pay->api->infos.commande key="name" item="value"}
61 <input type="hidden" name="{$name}" value="{$value}" />
65 {foreach from=$pay->api->infos.divers key="name" item="value"}
66 <input type="hidden" name="{$name}" value="{$value}" />
68 <input type="submit" value="Valider" />
75 En cliquant sur "Valider", tu seras redirigé{if $sex}e{/if} vers le site de {$pay->api->nomsite}, où il te
76 sera demandé de saisir ton numéro de carte bancaire. Lorsque le paiement aura été effectué, tu
77 recevras une confirmation par email.
86 Si tu n'es pas encore inscrit à cet événement, n'oublie pas d'aller t'<a href='http://www.polytechnique.net/{$evtlink.diminutif}/events/sub/{$evtlink.eid}'>inscrire</a>.
92 <script type='text/javascript'>
94 function payment_submit(form)
96 form.op.value = 'select';
97 form.montant.value = 0;
98 form.action = 'payment/' + form.ref.value;
104 <form method="post" action="{$platal->pl_self()}">
105 <table class="bicol">
107 <th colspan="2">Effectuer un télépaiement</th>
113 <strong>{$pay->text}</strong><input type="hidden" name="ref" value="{$pay->id}" />
115 <select name="ref" onchange="payment_submit(this.form)">
116 {select_db_table table="payments" valeur=$pay->id
117 where="WHERE FIND_IN_SET('old', t.flags) = 0"
118 join="LEFT JOIN groups AS g ON (t.asso_id = g.id)" group="g.nom"}
123 <a href="{$pay->url}">plus d'informations</a>
130 <select name="methode">
131 {select_db_table table="payment_methods" valeur=$smarty.request.methode}
137 <td><input type="text" name="montant" size="13" class='right' value="{$montant}" /> €</td>
141 <td><textarea name="comment" rows="5" cols="30"></textarea></td>
145 <td>Afficher ton nom dans la liste des donateurs sur {#globals.core.sitename#}</td>
147 <label>Oui<input type="radio" name="display" value="1" checked="checked" /></label>
149 <label><input type="radio" name="display" value="0" />Non</label>
156 {if !t($donation)}<input type="hidden" name="display" value="0" />{/if}
157 <input type="hidden" name="op" value="submit" />
158 <input type="submit" value="Continuer" />
164 {if t($transactions)}
165 <p class="descr">Tu as déjà effectué des paiements pour cette transaction :</p>
166 <table class="bicol">
167 <tr><th>Date</th><th>Montant</th></tr>
168 {iterate from=$transactions item=t}
169 <tr class="{cycle values="pair,impair"}">
170 <td>{$t.timestamp|date_format}</td>
171 <td>{$t.amount|replace:'EUR':'€'}</td>
179 <p class="descr">Aucun don n'a encore été recueilli.</p>
181 <p class="descr">Les dons suivants ont déjà été recueillis (pour un total de {$sum} €) :</p>
182 <table class="bicol">
187 {foreach from=$donations item=d}
188 <tr class="{cycle values="pair,impair"}">
190 <td class="center">{$d.amount|replace:'EUR':'€'}</td>
200 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}