Correction pour exercice sur 2 années civiles
FossilOrigin-Name: 24d7a87d9007dfb118ffb7a612b9eae155b1f45cb7f05577dc389240b848014d
This commit is contained in:
parent
457ee5f958
commit
86bc9c8ae1
3 changed files with 598 additions and 587 deletions
|
|
@ -4,86 +4,90 @@
|
|||
<h2>Année {$annee_recu} : versements par activité et tarif</h2>
|
||||
|
||||
<fieldset class="noprint">
|
||||
<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"
|
||||
onclick="montrerMasquerDetails(this.id, 'details.activite', 'toutes les activités')">
|
||||
Replier toutes les activités</button>
|
||||
<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>
|
||||
<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)"}
|
||||
<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"
|
||||
onclick="montrerMasquerDetails(this.id, 'details.activite', 'toutes les activités')">
|
||||
Replier toutes les activités</button>
|
||||
<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>
|
||||
<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)"}
|
||||
</fieldset>
|
||||
|
||||
<form method="post" target="_blank" id="versements_activites">
|
||||
|
||||
{* Itération sur les versements *}
|
||||
{foreach from=$lesVersements key="rang" item="versement"}
|
||||
{if $rang == 0}
|
||||
{* premier versement *}
|
||||
<?php
|
||||
$pair = true;
|
||||
$tarifCourant = $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}
|
||||
<?php
|
||||
$pair = true;
|
||||
$tarifCourant = $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.idUser != $personneCourante}
|
||||
{* changement de personne *}
|
||||
{fin_compte}
|
||||
{fin_personne}
|
||||
<?php
|
||||
$pair = true;
|
||||
$personneCourante = $versement->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 *}
|
||||
<?php
|
||||
$pair = true;
|
||||
$compteCourant = $versement->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}
|
||||
<?php $pair = ! $pair; ?>
|
||||
{/foreach} {* Itération sur les versements *}
|
||||
{fin_compte}
|
||||
{fin_personne}
|
||||
{fin_tarif}
|
||||
{* Itération sur les versements *}
|
||||
{foreach from=$lesVersements key="rang" item="versement"}
|
||||
{if $rang == 0}
|
||||
{* premier versement *}
|
||||
<?php
|
||||
$pair = true;
|
||||
$tarifCourant = $versement->idTarif;
|
||||
$personneCourante = $versement->idUser;
|
||||
$compteCourant = $versement->idCompte;
|
||||
$codeCompte = $versement->codeCompte;
|
||||
?>
|
||||
{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}
|
||||
<?php
|
||||
$pair = true;
|
||||
$tarifCourant = $versement->idTarif;
|
||||
$personneCourante = $versement->idUser;
|
||||
$compteCourant = $versement->idCompte;
|
||||
$codeCompte = $versement->codeCompte;
|
||||
?>
|
||||
{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}
|
||||
<?php
|
||||
$pair = true;
|
||||
$personneCourante = $versement->idUser;
|
||||
$compteCourant = $versement->idCompte;
|
||||
$codeCompte = $versement->codeCompte;
|
||||
?>
|
||||
{afficher_debut_personne user=$personneCourante idVersement="%s_%s"|args:$tarifCourant,$personneCourante}
|
||||
{afficher_debut_compte idCompte=$compteCourant}
|
||||
{elseif $versement.codeCompte != $codeCompte}
|
||||
{fin_compte}
|
||||
{* changement de compte *}
|
||||
<?php
|
||||
$pair = true;
|
||||
$compteCourant = $versement->idCompte;
|
||||
$codeCompte = $versement->codeCompte;
|
||||
?>
|
||||
{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}
|
||||
<?php $pair = ! $pair; ?>
|
||||
{/foreach} {* Itération sur les versements *}
|
||||
{fin_compte}
|
||||
{fin_personne}
|
||||
{fin_tarif}
|
||||
</form>
|
||||
|
||||
{* scripts divers *}
|
||||
<script src="script.js"></script>
|
||||
|
||||
<!-- footer -->
|
||||
{include file="_foot.tpl"}
|
||||
{include file="_foot.tpl"}
|
||||
|
|
|
|||
|
|
@ -4,67 +4,71 @@
|
|||
<h2>Année {$annee_recu} : 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>
|
||||
<br />
|
||||
{button type="submit" label="Télécharger les reçus au format PDF" shape="download"
|
||||
form="versements_personnes"
|
||||
formaction="generer_recus.php?type=personne&format=pdf"
|
||||
onclick="return verifierChoix(this.form)"}
|
||||
{button type="submit" target="_dialog" label="Imprimer les reçus" shape="print"
|
||||
form="versements_personnes"
|
||||
formaction="generer_recus.php?type=personne&format=print"
|
||||
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>
|
||||
<br />
|
||||
{button type="submit" label="Télécharger les reçus au format PDF" shape="download"
|
||||
form="versements_personnes"
|
||||
formaction="generer_recus.php?type=personne&format=pdf"
|
||||
onclick="return verifierChoix(this.form)"}
|
||||
{button type="submit" label="Imprimer les reçus" shape="print"
|
||||
form="versements_personnes"
|
||||
formaction="generer_recus.php?type=personne&format=print"
|
||||
onclick="return verifierChoix(this.form)"}
|
||||
</fieldset>
|
||||
|
||||
<form method="post" target="_dialog" id="versements_personnes">
|
||||
|
||||
{* Itération sur les personnes *}
|
||||
{foreach from=$lesVersements key="rang" item="versement"}
|
||||
{if $rang == 0}
|
||||
{* 1ère personne *}
|
||||
<?php
|
||||
$pair = true;
|
||||
$personneCourante = $versement->idUser;
|
||||
$compteCourant = $versement->idCompte;
|
||||
?>
|
||||
{afficher_debut_personne user=$personneCourante idVersement=$personneCourante}
|
||||
{afficher_debut_compte idCompte=$compteCourant}
|
||||
{elseif $versement.idUser != $personneCourante}
|
||||
{* changement de personne *}
|
||||
{fin_compte}
|
||||
{fin_personne}
|
||||
<?php
|
||||
$pair = true;
|
||||
$personneCourante = $versement->idUser;
|
||||
$compteCourant = $versement->idCompte;
|
||||
?>
|
||||
{afficher_debut_personne user=$personneCourante idVersement=$personneCourante}
|
||||
{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}
|
||||
{else}
|
||||
{* même personne, même compte *}
|
||||
{/if}
|
||||
{afficher_versement versement=$versement idVersement=$personneCourante rang=$rang pair=$pair}
|
||||
<?php $pair = ! $pair; ?>
|
||||
{/foreach} {* Itération sur les personnes *}
|
||||
{fin_compte}
|
||||
{fin_personne}
|
||||
{* Itération sur les personnes *}
|
||||
{foreach from=$lesVersements key="rang" item="versement"}
|
||||
|
||||
{if $rang == 0}
|
||||
{* 1ère personne *}
|
||||
<?php
|
||||
$pair = true;
|
||||
$personneCourante = $versement->idUser;
|
||||
$compteCourant = $versement->idCompte;
|
||||
$codeCompte = $versement->codeCompte;
|
||||
?>
|
||||
{afficher_debut_personne user=$personneCourante idVersement=$personneCourante}
|
||||
{afficher_debut_compte idCompte=$compteCourant}
|
||||
{elseif $versement.idUser != $personneCourante}
|
||||
{* changement de personne *}
|
||||
{fin_compte}
|
||||
{fin_personne}
|
||||
<?php
|
||||
$pair = true;
|
||||
$personneCourante = $versement->idUser;
|
||||
$compteCourant = $versement->idCompte;
|
||||
$codeCompte = $versement->codeCompte;
|
||||
?>
|
||||
{afficher_debut_personne user=$personneCourante idVersement=$personneCourante}
|
||||
{afficher_debut_compte idCompte=$compteCourant}
|
||||
{elseif $versement.codeCompte != $codeCompte}
|
||||
{fin_compte}
|
||||
{* changement de compte *}
|
||||
<?php
|
||||
$pair = true;
|
||||
$compteCourant = $versement->idCompte;
|
||||
$codeCompte = $versement->codeCompte;
|
||||
?>
|
||||
{afficher_debut_compte idCompte=$compteCourant}
|
||||
{else}
|
||||
{* même personne, même compte *}
|
||||
{/if}
|
||||
{afficher_versement versement=$versement idVersement=$personneCourante rang=$rang pair=$pair}
|
||||
<?php $pair = ! $pair; ?>
|
||||
{/foreach} {* Itération sur les personnes *}
|
||||
{fin_compte}
|
||||
{fin_personne}
|
||||
</form>
|
||||
|
||||
{* scripts divers *}
|
||||
<script src="script.js"></script>
|
||||
|
||||
<!-- footer -->
|
||||
{include file="_foot.tpl"}
|
||||
{include file="_foot.tpl"}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue