projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Links accounts requests to group sites.
[platal.git]
/
templates
/
payment
/
xnet.tpl
diff --git
a/templates/payment/xnet.tpl
b/templates/payment/xnet.tpl
index
61ddb31
..
5926052
100644
(file)
--- a/
templates/payment/xnet.tpl
+++ b/
templates/payment/xnet.tpl
@@
-1,6
+1,6
@@
{**************************************************************************}
{* *}
{**************************************************************************}
{* *}
-{* Copyright (C) 2003-201
0
Polytechnique.org *}
+{* Copyright (C) 2003-201
1
Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
@@
-20,24
+20,39
@@
{* *}
{**************************************************************************}
{* *}
{**************************************************************************}
+{if t($anchor)}
+{literal}
+<script type="text/javascript">
+//<![CDATA[
+$(function() {
+{/literal}
+ location.hash = "#{$anchor}";
+{literal}
+});
+// ]]>
+</script>
+{/literal}
+{/if}
+
<h1>{$asso->nom} : Gestion des télépaiements </h1>
<p class="descr">
<h1>{$asso->nom} : Gestion des télépaiements </h1>
<p class="descr">
-Voici la liste des paiements en ligne possible pour le groupe {$asso->nom} :
+Voici la liste des paiements en ligne possible pour le groupe {$asso->nom}. Pour afficher les camarades dans un certain ordre,
+il suffit de cliquer sur le titre de la colonne concernée.
</p>
</p>
-{foreach from=$tit
r
es item=p}
+{foreach from=$tit
l
es item=p}
<fieldset>
<fieldset>
-<legend><a href="{$platal->ns}payment/{$p.id}">{icon name=money title="Télépaiement"}{$p.text}</a></legend>
+<legend
id="legend_{$p.id}"
><a href="{$platal->ns}payment/{$p.id}">{icon name=money title="Télépaiement"}{$p.text}</a></legend>
{if $event[$p.id]}
{assign var='ev' value=$event[$p.id]}
<p>
{if $event[$p.id]}
{assign var='ev' value=$event[$p.id]}
<p>
- {if
$p.url
}
+ {if
t($p.url)
}
Plus d'informations sur ce télépaiement sont disponibles sur <a href="{$p.url}">cette page</a>.<br />
{/if}
Plus d'informations sur ce télépaiement sont disponibles sur <a href="{$p.url}">cette page</a>.<br />
{/if}
- {if
$ev.eid
}
+ {if
t($ev.eid)
}
Ce paiement est associé à l'événement <a href="{$platal->ns}events">{$ev.title}</a>.<br />
{if $ev.ins}
Tu es inscrit à cet événements.
Ce paiement est associé à l'événement <a href="{$platal->ns}events">{$ev.title}</a>.<br />
{if $ev.ins}
Tu es inscrit à cet événements.
@@
-64,55
+79,58
@@
Voici la liste des paiements en ligne possible pour le groupe {$asso->nom}
{/if}
{if $is_admin && $trans[$p.id]}
{/if}
{if $is_admin && $trans[$p.id]}
-<p>Liste des personnes ayant payé (pour les administrateurs uniquement) :</p>
+<p>
+ Liste des personnes ayant payé (pour les administrateurs uniquement) :<br />
+ {include file="include/csv.tpl" url="`$platal->ns`payment/csv/`$p.id`.csv"}
+</p>
<table cellpadding="0" cellspacing="0" id="list_{$p.id}" class='bicol'>
<tr>
<th>
<table cellpadding="0" cellspacing="0" id="list_{$p.id}" class='bicol'>
<tr>
<th>
- {if $order eq 'timestamp'}
- <a href='{$platal->ns}payment?order={$order}&
order_inv={$order_inv
}'>
+ {if $order eq 'timestamp'
&& $order_id eq $p.id
}
+ <a href='{$platal->ns}payment?order={$order}&
amp;order_inv={$order_inv}&order_id={$p.id
}'>
<img src="{$platal->baseurl}images/{if !$order_inv}dn{else}up{/if}.png" alt="" title="Tri {if $order_inv}dé{/if}croissant" />
{else}
<img src="{$platal->baseurl}images/{if !$order_inv}dn{else}up{/if}.png" alt="" title="Tri {if $order_inv}dé{/if}croissant" />
{else}
- <a href='{$platal->ns}payment?order=timestamp'>
+ <a href='{$platal->ns}payment?order=timestamp
&order_id={$p.id}
'>
{/if}Date</a>
</th>
<th colspan="2">
{/if}Date</a>
</th>
<th colspan="2">
- {if $order eq '
nom'
}
- <a href='{$platal->ns}payment?order={$order}&
order_inv={$order_inv
}'>
+ {if $order eq '
directory_name' && $order_id eq $p.id
}
+ <a href='{$platal->ns}payment?order={$order}&
amp;order_inv={$order_inv}&order_id={$p.id
}'>
<img src="{$platal->baseurl}images/{if $order_inv}dn{else}up{/if}.png" alt="" title="Tri {if !$order_inv}dé{/if}croissant" />
{else}
<img src="{$platal->baseurl}images/{if $order_inv}dn{else}up{/if}.png" alt="" title="Tri {if !$order_inv}dé{/if}croissant" />
{else}
- <a href='{$platal->ns}payment?order=
nom
'>{/if}
+ <a href='{$platal->ns}payment?order=
directory_name&order_id={$p.id}
'>{/if}
NOM Prénom</a>
</th>
<th>
NOM Prénom</a>
</th>
<th>
- {if $order eq 'promo'}
- <a href='{$platal->ns}payment?order={$order}&
order_inv={$order_inv
}'>
+ {if $order eq 'promo'
&& $order_id eq $p.id
}
+ <a href='{$platal->ns}payment?order={$order}&
amp;order_inv={$order_inv}&order_id={$p.id
}'>
<img src="{$platal->baseurl}images/{if $order_inv}dn{else}up{/if}.png" alt="" title="Tri {if !$order_inv}dé{/if}croissant" />
{else}
<img src="{$platal->baseurl}images/{if $order_inv}dn{else}up{/if}.png" alt="" title="Tri {if !$order_inv}dé{/if}croissant" />
{else}
- <a href='{$platal->ns}payment?order=promo'>
+ <a href='{$platal->ns}payment?order=promo
&order_id={$p.id}
'>
{/if}Promo</a>
</th>
<th>
{/if}Promo</a>
</th>
<th>
- {if $order eq '
t.comment'
}
- <a href='{$platal->ns}payment?order=comment&
order_inv={$order_inv
}'>
+ {if $order eq '
comment' && $order_id eq $p.id
}
+ <a href='{$platal->ns}payment?order=comment&
amp;order_inv={$order_inv}&order_id={$p.id
}'>
<img src="{$platal->baseurl}images/{if $order_inv}dn{else}up{/if}.png" alt="" title="Tri {if !$order_inv}dé{/if} siant" />
{else}
<img src="{$platal->baseurl}images/{if $order_inv}dn{else}up{/if}.png" alt="" title="Tri {if !$order_inv}dé{/if} siant" />
{else}
- <a href='{$platal->ns}payment?order=comment'>
+ <a href='{$platal->ns}payment?order=comment
&order_id={$p.id}
'>
{/if}Commentaire</a>
</th>
<th>
{/if}Commentaire</a>
</th>
<th>
- {if $order eq '
montant'
}
- <a href='{$platal->ns}payment?order={$order}&
order_inv={$order_inv
}'>
+ {if $order eq '
amount' && $order_id eq $p.id
}
+ <a href='{$platal->ns}payment?order={$order}&
amp;order_inv={$order_inv}&order_id={$p.id
}'>
<img src="{$platal->baseurl}images/{if $order_inv}dn{else}up{/if}.png" alt="" title="Tri {if !$order_inv}dé{/if}croissant" />
{else}
<img src="{$platal->baseurl}images/{if $order_inv}dn{else}up{/if}.png" alt="" title="Tri {if !$order_inv}dé{/if}croissant" />
{else}
- <a href='{$platal->ns}payment?order=
montant
'>
+ <a href='{$platal->ns}payment?order=
amount&order_id={$p.id}
'>
{/if}Montant</a>
</th>
</tr>
{assign var="somme" value=0}
{foreach from=$trans[$p.id] item=p name=people}
{/if}Montant</a>
</th>
</tr>
{assign var="somme" value=0}
{foreach from=$trans[$p.id] item=p name=people}
- {if
$p.nom neq "somme totale"
}
+ {if
!t($p.limit)
}
<tr>
<tr>
- <td class="center">{
$p.date|date_format:"%d/%m/%y"
}</td>
+ <td class="center">{
if $p.date eq 0}-{else}{$p.date|date_format:"%d/%m/%y"}{/if
}</td>
<td>
{profile user=$p.user promo=false}
</td>
<td>
{profile user=$p.user promo=false}
</td>
@@
-121,7
+139,7
@@
Voici la liste des paiements en ligne possible pour le groupe {$asso->nom}
</td>
<td class="center">{$p.user->promo()}</td>
<td>{$p.comment|comment_decode}</td>
</td>
<td class="center">{$p.user->promo()}</td>
<td>{$p.comment|comment_decode}</td>
- <td class="right">{$p.
montant}
</td>
+ <td class="right">{$p.
amount|replace:'.':','} €
</td>
</tr>
{elseif $smarty.foreach.people.first}
<tr>
</tr>
{elseif $smarty.foreach.people.first}
<tr>
@@
-130,7
+148,7
@@
Voici la liste des paiements en ligne possible pour le groupe {$asso->nom}
{else}
<tr class="pair">
<td class="right" colspan="5"><strong>Total </strong></td>
{else}
<tr class="pair">
<td class="right" colspan="5"><strong>Total </strong></td>
- <th class="right">{$p.
montant}
</th>
+ <th class="right">{$p.
amount|replace:'.':','} €
</th>
</tr>
{/if}
{/foreach}
</tr>
{/if}
{/foreach}