1 {**************************************************************************}
3 {* Copyright (C) 2003-2013 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 {if $smarty.request.op eq "submit" and !$pl_errors}
25 <h1>Télépaiements</h1>
29 <th colspan="2">Paiement via {$meth->text}</th>
38 <td><b>Transaction</b></td>
42 <td><b>Montant</b></td>
43 <td>{$amount} €</td>
47 <td><b>Commentaire</b></td>
53 <td><span class="erreur">Remarque pour les utilisateurs de Paypal</span></td>
54 <td><span class="erreur">Merci de cliquer sur "revenir au site marchant" à la fin de la transaction, sinon celle-ci n'apparaitra pas sur polytechnique.net.</span></td>
60 <form method="post" action="{$pay->api->urlform}">
62 <!-- infos commercant -->
63 {foreach from=$pay->api->infos.commercant key="name" item="value"}
64 <input type="hidden" name="{$name}" value="{$value}" />
67 {foreach from=$pay->api->infos.client key="name" item="value"}
68 <input type="hidden" name="{$name}" value="{$value}" />
70 <!-- infos commande -->
71 {foreach from=$pay->api->infos.commande key="name" item="value"}
72 <input type="hidden" name="{$name}" value="{$value}" />
76 {foreach from=$pay->api->infos.divers key="name" item="value"}
77 <input type="hidden" name="{$name}" value="{$value}" />
79 <input type="submit" value="Valider" />
86 En cliquant sur "Valider", tu seras redirigé{if $sex}e{/if} vers le site de {$pay->api->nomsite}, où il te
87 sera demandé de saisir ton numéro de carte bancaire. Lorsque le paiement aura été effectué, tu
88 recevras une confirmation par email.
97 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>.
104 {include wiki=Docs.Dons}
107 <form method="post" action="{$platal->pl_self()}">
108 <table class="bicol">
110 <th colspan="2">Effectuer un télépaiement</th>
115 <strong>{$pay->text}</strong><input type="hidden" name="ref" value="{$pay->id}" />
118 <a href="{$pay->url}">plus d'informations</a>
125 <select name="methode">
126 {select_db_table table="payment_methods" valeur=$smarty.request.methode}
132 <td><input type="text" name="amount" size="13" class="right" value="{$pay->amount_def}" /> €</td>
136 <td>Identifiant <small>(prenom.nom.promo)</small></td>
137 <td><input type="text" name="login" size="30" /></td>
142 <td><textarea name="comment" rows="5" cols="30"></textarea></td>
146 <td>Afficher ton nom dans la liste des donateurs</td>
148 <label>Oui<input type="radio" name="display" value="1" checked="checked" /></label>
150 <label><input type="radio" name="display" value="0" />Non</label>
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.ts_confirmed|date_format}</td>
171 <td>{$t.amount|replace:'.':','} €</td>
178 <p class="descr">Les 10 plus gros dons sont les suivants :</p>
179 <table class="bicol">
185 {foreach from=$biggest_donations item=d}
186 <tr class="{cycle values="pair,impair"}">
188 <td class="center">{$d.amount|replace:'.':','} €</td>
189 <td>{$d.ts_confirmed|date_format}</td>
194 <p class="descr">Les dons par période :</p>
195 <table class="tinybicol">
200 {foreach from=$donations item=d}
201 <tr class="{cycle values="pair,impair"}">
202 <td>{if $d.month neq 0}{$d.ts_confirmed|date_format:"%B %Y"}{else}{$d.ts_confirmed|date_format:"%Y"}{/if}</td>
203 <td style="text-align: right">{$d.amount|replace:'.':','} €</td>
211 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}