améliorations cosmétiques

FossilOrigin-Name: 7d5cb4f8bf9819281d67cc67f69d1894a1f4e6480b74d52c761f43dbf5d358bb
This commit is contained in:
engel 2022-04-27 13:14:27 +00:00
parent 9b20a54f43
commit c51bc9a97f
3 changed files with 32 additions and 27 deletions

View file

@ -4,37 +4,43 @@
<h2>Versements par personne</h2>
<fieldset class="noprint">
<input type="checkbox" class="check_global" id="check_global"
onclick="cocherDecocherToutesLesPersonnes(check_global)" />
<label for="check_global">Cliquer pour cocher toutes les lignes</label>
<button type="button" data-icon="↑" class="icn-btn" id="close_details_personne" onclick="montrerMasquerDetails(this.id, 'details.personne', 'toutes les personnes')">Replier toutes les personnes</button>
<input type="submit" value="Générer les reçus" form="versements_personnes" onclick="return verifierChoix(this.form)">
<input type="checkbox" class="check_global" id="check_global"
onclick="cocherDecocherToutesLesPersonnes(check_global)" />
<label for="check_global">Cliquer pour cocher toutes les lignes</label>
<button type="button" data-icon="↑" class="icn-btn" id="close_details_personne"
onclick="montrerMasquerDetails(this.id, 'details.personne', 'toutes les personnes')">Replier toutes les
personnes</button>
<input type="submit" value="Générer les reçus" form="versements_personnes"
onclick="return verifierChoix(this.form)">
</fieldset>
<form method="post" id="versements_personnes" action="generer_recus.php?type=personne">
{* Itération sur les personnes *}
<?php $rang = 0; ?>
{foreach from=$lesVersements key="i" item="versement"}
{if $i == 0}
{if $rang == 0}
{* 1ère personne *}
<?php
$personneCourante = $versement->idUser;
$personneCourante = $versement->idUser;
?>
{afficher_debut_personne user=$personneCourante idVersement=$personneCourante}
{afficher_versement versement=$versement idVersement=$personneCourante rang=$i}
{afficher_versement versement=$versement idVersement=$personneCourante rang=$rang}
{elseif $versement.idUser != $personneCourante}
{* changement de personne *}
<?php $rang = 0; ?>
</fieldset>
</details>
<?php
$personneCourante = $versement->idUser;
$personneCourante = $versement->idUser;
?>
{afficher_debut_personne user=$personneCourante idVersement=$personneCourante}
{afficher_versement versement=$versement idVersement=$personneCourante rang=$i}
{afficher_versement versement=$versement idVersement=$personneCourante rang=$rang}
{else}
{* même personne *}
{afficher_versement versement=$versement idVersement=$personneCourante rang=$i}
{afficher_versement versement=$versement idVersement=$personneCourante rang=$rang}
{/if}
<?php ++$rang; ?>
{/foreach} {* Itération sur les personnes *}
</fieldset>
</details>