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 {**************************************************************************}
23 {if $smarty.request.op eq "submit" and !$pl_errors}
25 <h1>Don à l'association Polytechnique.org</h1>
29 <th colspan="2">Paiement via {$meth->text}</th>
32 <td><b>Transaction</b></td>
36 <td><b>Montant</b></td>
37 <td>{$amount} €</td>
41 <td><b>Commentaire</b></td>
48 <form method="post" action="{$pay->api->urlform}">
50 <!-- infos commercant -->
51 {foreach from=$pay->api->infos.commercant key="name" item="value"}
52 <input type="hidden" name="{$name}" value="{$value}" />
55 {foreach from=$pay->api->infos.client key="name" item="value"}
56 <input type="hidden" name="{$name}" value="{$value}" />
58 <!-- infos commande -->
59 {foreach from=$pay->api->infos.commande key="name" item="value"}
60 <input type="hidden" name="{$name}" value="{$value}" />
64 {foreach from=$pay->api->infos.divers key="name" item="value"}
65 <input type="hidden" name="{$name}" value="{$value}" />
67 <input type="submit" value="Valider" />
74 En cliquant sur "Valider", tu seras redirigé{if $sex}e{/if} vers le site de {$pay->api->nomsite}, où il te
75 sera demandé de saisir ton numéro de carte bancaire. Lorsque le paiement aura été effectué, tu
76 recevras une confirmation par email.
86 {include wiki=Docs.Dons}
88 <form method="post" action="{$platal->pl_self()}">
91 <th colspan="2">Effectuer le don</th>
96 <select name="methode">
97 {select_db_table table="payment_methods" valeur=$smarty.request.methode}
103 <td><input type="text" name="amount" size="13" class='right' value="{$pay->amount_def}" /> €</td>
107 <td><textarea name="comment" rows="5" cols="30"></textarea></td>
110 <td>Afficher ton nom dans la liste des donateurs</td>
112 <label>Oui<input type="radio" name="display" value="1" checked="checked" /></label>
114 <label><input type="radio" name="display" value="0" />Non</label>
120 <input type="hidden" name="op" value="submit" />
121 <input type="submit" value="Continuer" />
127 {if t($transactions)}
128 <p class="descr">Tu as déjà effectué les dons suivants :</p>
129 <table class="bicol">
130 <tr><th>Date</th><th>Montant</th></tr>
131 {iterate from=$transactions item=t}
132 <tr class="{cycle values="pair,impair"}">
133 <td>{$t.ts_confirmed|date_format}</td>
134 <td>{$t.amount|replace:'.':','} €</td>
140 <p class="descr">Les 10 plus gros dons sont les suivants :</p>
141 <table class="bicol">
147 {foreach from=$biggest_donations item=d}
148 <tr class="{cycle values="pair,impair"}">
150 <td class="center">{$d.amount|replace:'.':','} €</td>
151 <td>{$d.ts_confirmed|date_format}</td>
156 <p class="descr">Les dons par période :</p>
157 <table class="tinybicol">
162 {foreach from=$donations item=d}
163 <tr class="{cycle values="pair,impair"}">
164 <td>{if $d.month neq 0}{$d.ts_confirmed|date_format:"%B %Y"}{else}{$d.ts_confirmed|date_format:"%Y"}{/if}</td>
165 <td style="text-align: right">{$d.amount|replace:'.':','} €</td>
172 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}