{**************************************************************************}
{* *}
-{* Copyright (C) 2003-2010 Polytechnique.org *}
+{* Copyright (C) 2003-2011 Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
</tr>
{if $comment}
<tr>
- <td><b>Commentaire</b>
+ <td><b>Commentaire</b></td>
<td>{$comment}</td>
</tr>
{/if}
</tr>
</table>
<p>
-En cliquant sur "Valider", tu seras redirigé{if $smarty.session.sexe}e{/if} vers le site de {$pay->api->nomsite}, où il te
+En cliquant sur "Valider", tu seras redirigé{if $sex}e{/if} vers le site de {$pay->api->nomsite}, où il te
sera demandé de saisir ton numéro de carte bancaire. Lorsque le paiement aura été effectué, tu
recevras une confirmation par email.
</p>
</script>
<form method="post" action="{$platal->pl_self()}">
- </p>
<table class="bicol">
<tr>
<th colspan="2">Effectuer un télépaiement</th>
<tr>
<td>Transaction</td>
<td>
- {if $asso}
+ {if t($asso)}
<strong>{$pay->text}</strong><input type="hidden" name="ref" value="{$pay->id}" />
{else}
<select name="ref" onchange="payment_submit(this.form)">
- {select_db_table table="`$prefix`paiements" valeur=$pay->id
- where="WHERE FIND_IN_SET(\'old\',t.flags)=0"
- join="LEFT JOIN #groupex#.asso AS g ON (t.asso_id = g.id)" group="g.nom"}
+ {select_db_table table="payments" valeur=$pay->id
+ where="WHERE FIND_IN_SET('old', t.flags) = 0"
+ join="LEFT JOIN groups AS g ON (t.asso_id = g.id)" group="g.nom"}
</select>
{/if}
{if $pay->url}
<td>Méthode</td>
<td>
<select name="methode">
- {select_db_table table="#paiement#.methodes" valeur=$smarty.request.methode}
+ {select_db_table table="payment_methods" valeur=$smarty.request.methode}
</select>
</td>
</tr>
<td>Commentaire</td>
<td><textarea name="comment" rows="5" cols="30"></textarea></td>
</tr>
+ {if t($donation)}
+ <tr>
+ <td>Afficher ton nom dans la liste des donateurs sur {#globals.core.sitename#}</td>
+ <td>
+ <label>Oui<input type="radio" name="display" value="1" checked="checked" /></label>
+ -
+ <label><input type="radio" name="display" value="0" />Non</label>
+ </td>
+ </tr>
+ {/if}
<tr>
<td> </td>
<td>
+ {if !t($donation)}<input type="hidden" name="display" value="0" />{/if}
<input type="hidden" name="op" value="submit" />
<input type="submit" value="Continuer" />
</td>
</table>
</form>
-{if $transactions}
+{if t($transactions)}
<p class="descr">Tu as déjà effectué des paiements pour cette transaction :</p>
<table class="bicol">
<tr><th>Date</th><th>Montant</th></tr>
{iterate from=$transactions item=t}
<tr class="{cycle values="pair,impair"}">
- <td>{$t.timestamp|date_format}</td>
- <td>{$t.montant|replace:'EUR':'€'}</td>
+ <td>{$t.ts_confirmed|date_format}</td>
+ <td>{$t.amount|replace:'.':','} €</td>
</tr>
{/iterate}
</table>
{/if}
+{if t($donation)}
+{if !t($donations)}
+<p class="descr">Aucun don n'a encore été recueilli.</p>
+{else}
+<p class="descr">Les dons suivants ont déjà été recueillis (pour un total de {$sum} €) :</p>
+<table class="bicol">
+ <tr>
+ <th>Nom</th>
+ <th>Montant</th>
+ </tr>
+ {foreach from=$donations item=d}
+ <tr class="{cycle values="pair,impair"}">
+ <td>{$d.name}</td>
+ <td class="center">{$d.amount|replace:'.':','} €</td>
+ </tr>
+ {/foreach}
+</table>
+{/if}
+{/if}
+
{/if}