{include file="%s/templates/_nav.tpl"|args:$plugin_root current_nav="activite"}

Versements par activité et tarif

{* Itération sur les versements *} {foreach from=$lesVersements key="rang" item="versement"} {if $rang == 0} {* premier versement *} idTarif; $personneCourante = $versement->idUser; $compteCourant = $versement->idCompte; ?> {afficher_debut_tarif versement=$versement} {afficher_debut_personne user=$personneCourante idVersement="%s_%s"|args:$tarifCourant,$personneCourante} {afficher_debut_compte idCompte=$compteCourant} {elseif $versement.idTarif != $tarifCourant} {* changement de tarif *} {fin_compte} {fin_personne} {fin_tarif} idTarif; $personneCourante = $versement->idUser; $compteCourant = $versement->idCompte; ?> {afficher_debut_tarif versement=$versement} {afficher_debut_personne user=$personneCourante idVersement="%s_%s"|args:$tarifCourant,$personneCourante} {afficher_debut_compte idCompte=$compteCourant} {elseif $versement.idUser != $personneCourante} {* changement de personne *} {fin_compte} {fin_personne} idUser; $compteCourant = $versement->idCompte; ?> {afficher_debut_personne user=$personneCourante idVersement="%s_%s"|args:$tarifCourant,$personneCourante} {afficher_debut_compte idCompte=$compteCourant} {elseif $versement.idCompte != $compteCourant} {fin_compte} {* changement de compte *} idCompte; ?> {afficher_debut_compte idCompte=$compteCourant} {else} {* même personne, même compte *} {/if} {afficher_versement versement=$versement idVersement="%s_%s"|args:$tarifCourant,$personneCourante rang=$rang pair=$pair} {/foreach} {* Itération sur les versements *} {fin_compte} {fin_personne} {fin_tarif}
{* scripts divers *} {include file="admin/_foot.tpl"}