2022-01-26 12:12:42 +01:00
|
|
|
<!-- nav bar -->
|
2022-05-20 21:42:57 +02:00
|
|
|
{include file="%s/templates/_nav.tpl"|args:$plugin_root current_nav="activite"}
|
2022-01-26 12:12:42 +01:00
|
|
|
|
2023-02-04 16:31:31 +01:00
|
|
|
<h2>Année {$annee_recu} : versements par activité et tarif</h2>
|
2022-01-26 12:12:42 +01:00
|
|
|
|
2022-03-29 14:50:25 +02:00
|
|
|
<fieldset class="noprint">
|
2022-05-04 13:53:12 +02:00
|
|
|
<input type="checkbox" class="check_global" id="check_global" onclick="cocherDecocherTout(check_global)" />
|
|
|
|
<label for="check_global">Cliquer pour cocher toutes les lignes</label>
|
|
|
|
<button type="button" data-icon="↑" class="icn-btn" id="close_details_activite"
|
2023-01-28 14:13:39 +01:00
|
|
|
onclick="montrerMasquerDetails(this.id, 'details.activite', 'toutes les activités')">
|
|
|
|
Replier toutes les activités</button>
|
2022-05-04 13:53:12 +02:00
|
|
|
<button type="button" data-icon="↑" class="icn-btn" id="close_details_personne"
|
2023-01-28 14:13:39 +01:00
|
|
|
onclick="montrerMasquerDetails(this.id, 'details.personne', 'toutes les personnes')">
|
|
|
|
Replier toutes les personnes</button>
|
2023-02-04 16:31:31 +01:00
|
|
|
<br />
|
|
|
|
{button type="submit" label="Télécharger les reçus au format PDF" shape="download"
|
|
|
|
form="versements_activites"
|
|
|
|
formaction="generer_recus.php?type=activite&format=pdf"
|
|
|
|
onclick="return verifierChoix(this.form)"}
|
|
|
|
{button type="submit" target="_dialog" label="Imprimer les reçus" shape="print"
|
|
|
|
form="versements_activites"
|
|
|
|
formaction="generer_recus.php?type=activite&format=print"
|
|
|
|
onclick="return verifierChoix(this.form)"}
|
2022-03-29 14:50:25 +02:00
|
|
|
</fieldset>
|
|
|
|
|
2023-12-22 17:46:26 +01:00
|
|
|
<form method="post" target="_blank" id="versements_activites">
|
2022-01-26 12:12:42 +01:00
|
|
|
|
2022-02-10 17:05:24 +01:00
|
|
|
{* Itération sur les versements *}
|
2022-05-04 13:53:12 +02:00
|
|
|
{foreach from=$lesVersements key="rang" item="versement"}
|
2022-04-27 15:29:13 +02:00
|
|
|
{if $rang == 0}
|
2022-02-10 17:05:24 +01:00
|
|
|
{* premier versement *}
|
|
|
|
<?php
|
2022-05-04 13:53:12 +02:00
|
|
|
$pair = true;
|
|
|
|
$tarifCourant = $versement->idTarif;
|
|
|
|
$personneCourante = $versement->idUser;
|
2022-05-18 12:29:19 +02:00
|
|
|
$compteCourant = $versement->idCompte;
|
2022-02-10 17:05:24 +01:00
|
|
|
?>
|
|
|
|
{afficher_debut_tarif versement=$versement}
|
2022-03-31 10:27:31 +02:00
|
|
|
{afficher_debut_personne user=$personneCourante idVersement="%s_%s"|args:$tarifCourant,$personneCourante}
|
2022-05-18 12:29:19 +02:00
|
|
|
{afficher_debut_compte idCompte=$compteCourant}
|
2022-05-04 13:53:12 +02:00
|
|
|
{elseif $versement.idTarif != $tarifCourant}
|
|
|
|
{* changement de tarif *}
|
2022-05-18 12:29:19 +02:00
|
|
|
{fin_compte}
|
2022-05-04 13:53:12 +02:00
|
|
|
{fin_personne}
|
|
|
|
{fin_tarif}
|
|
|
|
<?php
|
|
|
|
$pair = true;
|
2022-02-10 17:05:24 +01:00
|
|
|
$tarifCourant = $versement->idTarif;
|
|
|
|
$personneCourante = $versement->idUser;
|
2022-05-18 12:29:19 +02:00
|
|
|
$compteCourant = $versement->idCompte;
|
2022-05-04 13:53:12 +02:00
|
|
|
?>
|
|
|
|
{afficher_debut_tarif versement=$versement}
|
|
|
|
{afficher_debut_personne user=$personneCourante idVersement="%s_%s"|args:$tarifCourant,$personneCourante}
|
2022-05-18 12:29:19 +02:00
|
|
|
{afficher_debut_compte idCompte=$compteCourant}
|
2022-05-04 13:53:12 +02:00
|
|
|
{elseif $versement.idUser != $personneCourante}
|
|
|
|
{* changement de personne *}
|
2022-05-18 12:29:19 +02:00
|
|
|
{fin_compte}
|
2022-05-04 13:53:12 +02:00
|
|
|
{fin_personne}
|
|
|
|
<?php
|
|
|
|
$pair = true;
|
2022-02-10 17:05:24 +01:00
|
|
|
$personneCourante = $versement->idUser;
|
2022-05-18 12:29:19 +02:00
|
|
|
$compteCourant = $versement->idCompte;
|
2022-05-04 13:53:12 +02:00
|
|
|
?>
|
|
|
|
{afficher_debut_personne user=$personneCourante idVersement="%s_%s"|args:$tarifCourant,$personneCourante}
|
2022-05-18 12:29:19 +02:00
|
|
|
{afficher_debut_compte idCompte=$compteCourant}
|
|
|
|
{elseif $versement.idCompte != $compteCourant}
|
|
|
|
{fin_compte}
|
|
|
|
{* changement de compte *}
|
|
|
|
<?php
|
|
|
|
$pair = true;
|
|
|
|
$compteCourant = $versement->idCompte;
|
|
|
|
?>
|
|
|
|
{afficher_debut_compte idCompte=$compteCourant}
|
2022-05-04 13:53:12 +02:00
|
|
|
{else}
|
|
|
|
{* même personne, même compte *}
|
2022-02-10 17:05:24 +01:00
|
|
|
{/if}
|
2022-05-04 13:53:12 +02:00
|
|
|
{afficher_versement versement=$versement idVersement="%s_%s"|args:$tarifCourant,$personneCourante rang=$rang pair=$pair}
|
|
|
|
<?php $pair = ! $pair; ?>
|
|
|
|
{/foreach} {* Itération sur les versements *}
|
2022-05-18 12:29:19 +02:00
|
|
|
{fin_compte}
|
2022-05-04 13:53:12 +02:00
|
|
|
{fin_personne}
|
|
|
|
{fin_tarif}
|
2022-01-26 12:12:42 +01:00
|
|
|
</form>
|
|
|
|
|
2022-03-30 09:52:19 +02:00
|
|
|
{* scripts divers *}
|
2022-01-26 12:12:42 +01:00
|
|
|
<script src="script.js"></script>
|
|
|
|
|
|
|
|
<!-- footer -->
|
2023-09-28 11:08:46 +02:00
|
|
|
{include file="_foot.tpl"}
|