Compare commits
No commits in common. "master" and "evolution" have entirely different histories.
13 changed files with 137 additions and 178 deletions
|
|
@ -71,8 +71,8 @@ $tpl->register_function('afficher_debut_tarif', function ($params)
|
|||
<summary class="activite">
|
||||
<div class="activite">
|
||||
<input type="checkbox" id="check_%1$s"
|
||||
onclick="cocherDecocherTarif(check_%1$s, %2$s)" />',
|
||||
$idTarif, "total_general");
|
||||
onclick="cocherDecocherTarif(check_%1$s)" />',
|
||||
$idTarif);
|
||||
if ($idTarif == 0) {
|
||||
// versement sur un compte non rattaché à une activité
|
||||
$out .= sprintf('
|
||||
|
|
@ -122,7 +122,7 @@ $tpl->register_function('afficher_debut_personne', function ($params)
|
|||
<summary class="personne">
|
||||
<div class="personne">
|
||||
<input type="checkbox" id="check_%1$s"
|
||||
onclick="cocherDecocherPersonne(check_%1$s, total_%1$s, %3$s)" />
|
||||
onclick="cocherDecocherPersonne(check_%1$s, total_%1$s)" />
|
||||
<label for="check_%1$s">
|
||||
%2$s : <span class="total" id="total_%1$s">0,00 €</span>
|
||||
</label>
|
||||
|
|
@ -130,8 +130,7 @@ $tpl->register_function('afficher_debut_personne', function ($params)
|
|||
</summary>
|
||||
<div class="versements">',
|
||||
$idVersement,
|
||||
$personne->nomPrenom,
|
||||
"total_general"
|
||||
$personne->nomPrenom
|
||||
);
|
||||
return $out;
|
||||
});
|
||||
|
|
@ -164,7 +163,7 @@ $tpl->register_function('afficher_versement', function ($params)
|
|||
id="check_%1$s_%2$s"
|
||||
name="selected[]"
|
||||
value="%2$s"
|
||||
onclick="cocherDecocherCase(check_%1$s_%2$s, total_%1$s, %5$s)" />
|
||||
onclick="cocherDecocherVersement(check_%1$s_%2$s, total_%1$s)" />
|
||||
<label for="check_%1$s_%2$s"><span class="montant">%3$s</span>
|
||||
<span>%4$s</span>
|
||||
</label>
|
||||
|
|
@ -177,8 +176,7 @@ $tpl->register_function('afficher_versement', function ($params)
|
|||
",",
|
||||
" "
|
||||
),
|
||||
date_format(date_create($versement->date),"d/m/Y"),
|
||||
"total_general"
|
||||
date_format(date_create($versement->date),"d/m/Y")
|
||||
);
|
||||
return $out;
|
||||
});
|
||||
|
|
|
|||
|
|
@ -16,11 +16,9 @@ $_GET['_dialog'] = true;
|
|||
|
||||
// signature
|
||||
$signature =
|
||||
(null !== $config->fileURL('signature')) ?
|
||||
$config->fileURL('signature') :
|
||||
((null !== $plugin->getConfig('signature')) ?
|
||||
\KD2\HTTP::getScheme() . '://' . \KD2\HTTP::getHost() . WWW_URI . $plugin->getConfig('signature') :
|
||||
"");
|
||||
(null !== $plugin->getConfig('signature')) ?
|
||||
\KD2\HTTP::getScheme() . '://' . \KD2\HTTP::getHost() . WWW_URI . "/" . $plugin->getConfig('signature') :
|
||||
"";
|
||||
|
||||
// logo
|
||||
$config = Config::getInstance();
|
||||
|
|
@ -113,8 +111,7 @@ function genererRecusPDF($totalPersonnes,
|
|||
$numero_sequentiel = getNumSequentiel($configNum);
|
||||
foreach ($totalPersonnes as $idPersonne => $personne) {
|
||||
$tpl = new UserTemplate(null);
|
||||
/* $tpl->setSource(PLUGIN_ROOT . '/templates/recu.skel'); */
|
||||
$tpl->setSourcePath(PLUGIN_ROOT . '/templates/recu.skel');
|
||||
$tpl->setSource(PLUGIN_ROOT . '/templates/recu.skel');
|
||||
|
||||
$tpl->assignArray(compact('signature', 'logo_asso', 'texteArticles'));
|
||||
$tpl->assign('objet_asso', $plugin->getConfig('objet_asso'));
|
||||
|
|
@ -208,9 +205,9 @@ function genererRecusPDF($totalPersonnes,
|
|||
);
|
||||
|
||||
//supprimer les fichiers pdf
|
||||
foreach ($listeFichiersPDF as $f) {
|
||||
\Paheko\Utils::safe_unlink($f);
|
||||
}
|
||||
// foreach ($listeFichiersPDF as $f) {
|
||||
// \Paheko\Utils::safe_unlink($f);
|
||||
// }
|
||||
} // genererRecusPDF
|
||||
|
||||
function generererRecusHTML($tpl,
|
||||
|
|
|
|||
|
|
@ -34,18 +34,5 @@ div.previs_recu
|
|||
font-family: Serif;
|
||||
font-size: 11pt;
|
||||
background-color: white;
|
||||
break-after: always;
|
||||
}
|
||||
|
||||
/* supprimer saut de page après dernier */
|
||||
div.previs_recu:last-of-type
|
||||
{
|
||||
font-family: Serif;
|
||||
font-size: 11pt;
|
||||
background-color: white;
|
||||
break-after: avoid;
|
||||
}
|
||||
|
||||
#__profiler {
|
||||
display: none;
|
||||
page-break-after: always;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -95,9 +95,3 @@ span.titre, span.libelle
|
|||
{
|
||||
display : inline;
|
||||
}
|
||||
|
||||
/* Ne pas imprimer le bandeau des boutons du profiler */
|
||||
#__profiler
|
||||
{
|
||||
display: none;
|
||||
}
|
||||
|
|
|
|||
120
admin/script.js
120
admin/script.js
|
|
@ -1,26 +1,5 @@
|
|||
"use strict";
|
||||
|
||||
/**
|
||||
* renvoyer la valeur numérique d'un montant formaté en €
|
||||
* @param texte qui représente nu nombre
|
||||
*/
|
||||
function getNumber(texte) {
|
||||
return Number(texte.replace(/[^0-9,]/g, '').replace(/,/, '.'));
|
||||
}
|
||||
|
||||
/**
|
||||
* afficher un montant au format monétaire
|
||||
* @param montant à afficher
|
||||
* @param idElem : élément où faire l'affichage
|
||||
*/
|
||||
function displayNumber(montant, idElem) {
|
||||
idElem.innerHTML =
|
||||
montant.toLocaleString('fr-FR', {
|
||||
style: 'currency', currency: 'EUR',
|
||||
minimumFractionDigits: 2
|
||||
});
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// actions sur la liste des versements
|
||||
// ------------------------------------------------------------------------
|
||||
|
|
@ -29,15 +8,14 @@ function displayNumber(montant, idElem) {
|
|||
* Fonction appelée quand on (dé)coche la case globale
|
||||
* (dé)sélectionner toutes les cases de toutes les activités
|
||||
* @param {HTMLInputElement} idCaseGlobale id de la case globale
|
||||
* @param {HTMLSpanElement} idTotalGeneral id du total général
|
||||
*/
|
||||
function cocherDecocherTout(idCaseGlobale, idTotalGeneral) {
|
||||
function cocherDecocherTout(idCaseGlobale) {
|
||||
// itérer sur la liste des éléments détails : 1 par couple <activité, tarif>
|
||||
let lesDetails = document.querySelectorAll("details.activite");
|
||||
for (let i = 0; i < lesDetails.length; ++i) {
|
||||
let idCase = lesDetails[i].querySelector("input[type=checkbox]");
|
||||
idCase.checked = idCaseGlobale.checked;
|
||||
cocherDecocherTarif(idCase, idTotalGeneral);
|
||||
cocherDecocherTarif(idCase);
|
||||
}
|
||||
// changer le message
|
||||
changerMessage(idCaseGlobale.nextElementSibling, idCaseGlobale);
|
||||
|
|
@ -47,37 +25,35 @@ function cocherDecocherTout(idCaseGlobale, idTotalGeneral) {
|
|||
* Fonction appelée quand on (dé)coche la case d'activité
|
||||
* (dé)sélectionner toutes les cases de cette activité
|
||||
* @param {HTMLInputElement} idCaseGlobale id de la case d'activité
|
||||
* @param {HTMLSpanElement} idTotalGeneral id du total général
|
||||
*/
|
||||
function cocherDecocherTarif(idCaseGlobale, idTotalGeneral) {
|
||||
function cocherDecocherTarif(idCaseGlobale) {
|
||||
let lesPersonnes = idCaseGlobale.closest("details").querySelectorAll("div.personne");
|
||||
cocherDecocherLesPersonnes(idCaseGlobale, lesPersonnes, idTotalGeneral);
|
||||
cocherDecocherLesPersonnes(idCaseGlobale, lesPersonnes);
|
||||
}
|
||||
|
||||
/**
|
||||
* idem dans le cas des versements des personnes
|
||||
* @param {HTMLInputElement} idCaseGlobale id case à cocher d'une personne
|
||||
*/
|
||||
function cocherDecocherToutesLesPersonnes(idCaseGlobale, idTotalGeneral) {
|
||||
let lesPersonnes = document.querySelectorAll("summary.personne");
|
||||
cocherDecocherLesPersonnes(idCaseGlobale, lesPersonnes, idTotalGeneral);
|
||||
function cocherDecocherToutesLesPersonnes(idCaseGlobale) {
|
||||
let lesPersonnes = document.querySelectorAll("div.personne");
|
||||
cocherDecocherLesPersonnes(idCaseGlobale, lesPersonnes);
|
||||
changerMessage(idCaseGlobale.nextElementSibling, idCaseGlobale);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {HTMLInputElement} idCaseGlobale
|
||||
* @param {NodeListOf<Element>} lesPersonnes
|
||||
* @param {HTMLSpanElement} idTotalGeneral id du total général
|
||||
*/
|
||||
function cocherDecocherLesPersonnes(idCaseGlobale, lesPersonnes, idTotalGeneral) {
|
||||
*/
|
||||
function cocherDecocherLesPersonnes(idCaseGlobale, lesPersonnes) {
|
||||
for (let j = 0; j < lesPersonnes.length; ++j) {
|
||||
// trouver l'élément total de la personne
|
||||
let idTotal = lesPersonnes[j].querySelector("span.total");
|
||||
let idTotal = lesPersonnes[j].querySelector("span");
|
||||
// puis la case à cocher
|
||||
let idCase = lesPersonnes[j].querySelector("input[type=checkbox]");
|
||||
let idCase = lesPersonnes[j].closest("summary").querySelector("input");
|
||||
idCase.checked = idCaseGlobale.checked;
|
||||
// puis traiter toutes les cases de la personne
|
||||
cocherDecocherPersonne(idCase, idTotal, idTotalGeneral);
|
||||
cocherDecocherPersonne(idCase, idTotal);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -86,45 +62,51 @@ function cocherDecocherLesPersonnes(idCaseGlobale, lesPersonnes, idTotalGeneral)
|
|||
* - (dé)sélectionner toutes les cases à cocher
|
||||
* - faire le total des cases cochées et l'afficher
|
||||
* @param {HTMLInputElement} idCase id de la case qui a été cochée
|
||||
* @param {HTMLSpanElement} idTotal id de l'élément où afficher le total de la personne
|
||||
* @param {HTMLSpanElement} idTotalGeneral id de l'élément où afficher le total général
|
||||
* @param {HTMLSpanElement} idTotal id de l'élément où afficher le total
|
||||
*/
|
||||
function cocherDecocherPersonne(idCase, idTotal, idTotalGeneral) {
|
||||
let conteneur = idCase.closest("details").querySelector("div.versements");
|
||||
let listeCases = conteneur.querySelectorAll("input[type=checkbox]");
|
||||
|
||||
for (let i = 0; i < listeCases.length; ++i) {
|
||||
if (listeCases[i].checked != idCase.checked) {
|
||||
listeCases[i].checked = idCase.checked;
|
||||
cocherDecocherVersement(listeCases[i], idTotal, idTotalGeneral);
|
||||
}
|
||||
}
|
||||
function cocherDecocherPersonne(idCase, idTotal) {
|
||||
// chercher le fieldset des versements
|
||||
let fieldset = idCase.closest("details").querySelector("div.versements");
|
||||
let listeCases = fieldset.querySelectorAll("input[type=checkbox]");
|
||||
for (let i = 0; i < listeCases.length; ++i) {
|
||||
listeCases[i].checked = idCase.checked;
|
||||
cocherDecocherVersement(listeCases[i], idTotal);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Fonction appelée quand on (dé)coche la case d'un versement
|
||||
* Mettre à jour le total des cases cochées et le total global et les afficher
|
||||
* Faire le total des cases cochées et l'afficher
|
||||
*
|
||||
* @param {HTMLInputElement} idCase id de la case qui a été (dé)cochée
|
||||
* @param {HTMLSpanElement} idTotal id du total de la personne
|
||||
* @param {HTMLSpanElement} idTotalGeneral id du total général
|
||||
* @param {HTMLInputElement} idCase id de la case qui a été cochée
|
||||
* @param {HTMLSpanElement} idTotal id de l'élément où afficher le total
|
||||
*/
|
||||
function cocherDecocherVersement(idCase, idTotal) {
|
||||
let fieldset = idCase.closest("div.versements");
|
||||
let listeCases = fieldset.querySelectorAll("input[type=checkbox]");
|
||||
let listeMontants = fieldset.querySelectorAll("span.montant");
|
||||
calculerTotal(listeCases, listeMontants, idTotal);
|
||||
}
|
||||
|
||||
function cocherDecocherVersement(idCase, idTotal, idTotalGeneral) {
|
||||
let div = idCase.closest("div");
|
||||
let idmontant = div.querySelector("span.montant");
|
||||
let montant = getNumber(idmontant.textContent);
|
||||
let totalPersonne = getNumber(idTotal.textContent);
|
||||
let totalGeneral = getNumber(idTotalGeneral.textContent);
|
||||
if (idCase.checked) {
|
||||
totalPersonne += montant;
|
||||
totalGeneral += montant;
|
||||
} else {
|
||||
totalPersonne -= montant;
|
||||
totalGeneral -= montant;
|
||||
}
|
||||
displayNumber(totalPersonne, idTotal);
|
||||
displayNumber(totalGeneral, idTotalGeneral);
|
||||
/**
|
||||
* Faire le total des cases cochées et l'afficher
|
||||
* @param {NodeListOf<Element>} listeCases liste des cases
|
||||
* @param {NodeListOf<Element>} listeMontants liste des montants associés
|
||||
* @param {HTMLSpanElement} idTotal id de l'élément où afficher le total
|
||||
*/
|
||||
function calculerTotal(listeCases, listeMontants, idTotal) {
|
||||
let total = 0;
|
||||
for (let i = 0; i < listeCases.length; ++i) {
|
||||
if (listeCases[i].checked) {
|
||||
total += parseFloat(listeMontants[i].textContent.replace(/\s/g, "").replace(",", "."));
|
||||
}
|
||||
}
|
||||
// afficher le total
|
||||
idTotal.innerHTML =
|
||||
total.toLocaleString('fr-FR', {
|
||||
style: 'currency', currency: 'EUR',
|
||||
minimumFractionDigits: 2
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -285,8 +267,10 @@ function verifierCases(conteneur, type, message) {
|
|||
*/
|
||||
function changerStyle(document) {
|
||||
let styles = document.querySelectorAll('link[rel="stylesheet"]');
|
||||
// console.log(styles);
|
||||
for (let sheet of styles) {
|
||||
if (sheet.href.includes('print.css')) { sheet.media = "tv"; }
|
||||
if (sheet.href.includes('print.css')) { sheet.media = "tv"; sheet.remove; }
|
||||
if (sheet.href.includes('imprimer_recu.css')) { sheet.media = 'print'; }
|
||||
}
|
||||
// console.log(styles);
|
||||
}
|
||||
|
|
@ -2,10 +2,6 @@
|
|||
* liste des versements
|
||||
*/
|
||||
|
||||
label.strong {
|
||||
font-weight : bold;
|
||||
}
|
||||
|
||||
div.pair {
|
||||
background-color: rgba(var(--gSecondColor), 0.15);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@ if (!File::checkCreateAccess($parent, $session)) {
|
|||
|
||||
$csrf_key = 'upload_file_' . md5($parent);
|
||||
|
||||
$form->runIf('upload', function () use ($parent, $session) {
|
||||
$_SESSION['sig_file'] = \Paheko\Files\Files::uploadMultiple($parent, 'file', $session);
|
||||
$form->runIf('upload', function () use ($parent) {
|
||||
$_SESSION['sig_file'] = \Paheko\Files\Files::uploadMultiple($parent, 'file');
|
||||
}, $csrf_key, PLUGIN_ROOT . '/admin/config.php');
|
||||
|
||||
$tpl->assign(compact('parent', 'csrf_key'));
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ class Utils
|
|||
description,
|
||||
amount as montant
|
||||
FROM services_fees');
|
||||
return $db->getGrouped($sql);
|
||||
return Utils::toAssoc($db->get($sql), 'id');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -37,7 +37,7 @@ class Utils
|
|||
services.label,
|
||||
services.description
|
||||
FROM services');
|
||||
return $db->getGrouped($sql);
|
||||
return Utils::toAssoc($db->get($sql), 'id');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -76,7 +76,7 @@ class Utils
|
|||
$annee,
|
||||
$db->where('code', $op, $comptes)
|
||||
);
|
||||
return $db->getGrouped($sql);
|
||||
return Utils::toAssoc($db->get($sql), 'id');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -120,6 +120,32 @@ class Utils
|
|||
return $db->get($sql);
|
||||
}
|
||||
|
||||
/**
|
||||
* faire un tableau associatif avec le résultat d'une requête
|
||||
*/
|
||||
static function toAssoc($array, $nomCle)
|
||||
{
|
||||
$assoc = array();
|
||||
foreach ($array as $elem)
|
||||
{
|
||||
$ro = new \ReflectionObject($elem);
|
||||
$proprietes = $ro->getProperties();
|
||||
$obj = new \stdClass();
|
||||
foreach ($proprietes as $p)
|
||||
{
|
||||
$pname = $p->getName();
|
||||
if ($pname == $nomCle) {
|
||||
$key = $p->getValue($elem);
|
||||
}
|
||||
else {
|
||||
$obj->$pname = $p->getValue($elem);
|
||||
}
|
||||
}
|
||||
$assoc[$key] = $obj;
|
||||
}
|
||||
return $assoc;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return versements correspondants à l'année donnée
|
||||
* @param $annee
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
<!-- title -->
|
||||
{include file="_head.tpl" title="%s"|args:$plugin.label current="plugin_%s"|args:$plugin.name}
|
||||
{include file="_head.tpl" title="%s"|args:$plugin.label current="plugin_%s"|args:$plugin.id}
|
||||
|
||||
<!-- nav bar -->
|
||||
<nav class="tabs">
|
||||
<ul>
|
||||
<li{if $current_nav == 'index'} class="current"{/if}><a href="{plugin_url}">Accueil</a></li>
|
||||
{if $current_nav == 'personne'} <li class="current"><a>Versements par personne</a></li>{/if}
|
||||
{if $current_nav == 'activite'} <li class="current"><a>Versements par activité et tarif</a></li>{/if}
|
||||
<li{if $current_nav == 'personne'} class="current"{/if}><a href="{plugin_url file="action.php?action=personne"}">Versements par personne</a></li>
|
||||
<li{if $current_nav == 'activite'} class="current"{/if}><a href="{plugin_url file="action.php?action=activite"}">Versements par activité et tarif</a></li>
|
||||
{if $session->canAccess($session::SECTION_ACCOUNTING, $session::ACCESS_WRITE)}
|
||||
<li{if $current_nav == 'config'} class="current"{/if}><a href="{plugin_url file="config.php"}">Configuration</a></li>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
<fieldset>
|
||||
{* <legend>Choisir une des méthodes</legend> *}
|
||||
<dl>
|
||||
<dl id="menu">
|
||||
<dd class="radio-btn">
|
||||
<input type="radio" id="radio_versements_personne" name="choix_versements" value="personne"
|
||||
onclick="choixMethodeGeneration(this.form, 'personne', 'menu_versements', '.menu');" />
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{include file="_head.tpl" title="%s"|args:$plugin.label current="plugin_%s"|args:$plugin.id}
|
||||
{include file="_head.tpl" title="%s"|args:$plugin.name current="plugin_%s"|args:$plugin.id}
|
||||
|
||||
<?php
|
||||
$fmt = new \NumberFormatter('fr_FR', \NumberFormatter::SPELLOUT);
|
||||
|
|
@ -15,12 +15,12 @@
|
|||
<p id="articles">Articles 200, 238 bis et 978 du code général des impôts</p>
|
||||
<div id="numRecu">
|
||||
{if $numero_sequentiel}
|
||||
{afficher_numero_recu prefixe=$prefixeNum membre=$membre numero_personne=$personne->numero numero_sequentiel=$numero_courant}
|
||||
<?php
|
||||
++$numero_courant;
|
||||
?>
|
||||
{afficher_numero_recu prefixe=$prefixeNum membre=$membre numero_personne=$personne->numero numero_sequentiel=$numero_courant}
|
||||
<?php
|
||||
++$numero_courant;
|
||||
?>
|
||||
{else}
|
||||
{afficher_numero_recu prefixe=$prefixeNum membre=$membre numero_personne=$personne->numero numero_sequentiel=$numero_sequentiel}
|
||||
{afficher_numero_recu prefixe=$prefixeNum membre=$membre numero_personne=$personne->numero numero_sequentiel=$numero_sequentiel}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -28,20 +28,20 @@
|
|||
<div class="cartouche" id="beneficiaire">
|
||||
<h3 class="rubrique">Bénéficiaire des versements</h3>
|
||||
<p class="important">Association « {$org_name} »<br />
|
||||
{$org_address}<br />
|
||||
<span class="titre">Objet : </span><span class="libelle">{$objet_asso}</span>
|
||||
{$org_address}<br />
|
||||
<span class="titre">Objet : </span><span class="libelle">{$objet_asso}</span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="cartouche" id="donateur">
|
||||
<h3 class="rubrique">Donateur</h3>
|
||||
<p>
|
||||
{$personne.nomPrenom}<br />
|
||||
{$personne.adresse}<br />
|
||||
{$personne.codePostal} {$personne.ville}
|
||||
{if $courriel && $personne.courriel != ""}
|
||||
<br />courriel : <a href="mailto:{$personne.courriel}">{$personne.courriel}</a>
|
||||
{/if}
|
||||
{$personne.nomPrenom}<br />
|
||||
{$personne.adresse}<br />
|
||||
{$personne.codePostal} {$personne.ville}
|
||||
{if $courriel && $personne.courriel != ""}
|
||||
<br />courriel : <a href="mailto:{$personne.courriel}">{$personne.courriel}</a>
|
||||
{/if}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -4,24 +4,15 @@
|
|||
<h2>Année {$annee_recu} : versements par activité et tarif</h2>
|
||||
|
||||
<fieldset class="noprint">
|
||||
<dl>
|
||||
<dd>
|
||||
<label class="strong">Total des cases cochées : </label>
|
||||
<span class="total" id="total_general">0,00 €</span>
|
||||
</dd>
|
||||
<dd>
|
||||
<input type="checkbox" class="check_global" id="check_global" onclick="cocherDecocherTout(check_global, total_general)" />
|
||||
<input type="checkbox" class="check_global" id="check_global" onclick="cocherDecocherTout(check_global)" />
|
||||
<label for="check_global">Cliquer pour cocher toutes les lignes</label>
|
||||
</dd>
|
||||
<dd>
|
||||
<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>
|
||||
</dd>
|
||||
<dd>
|
||||
<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"
|
||||
|
|
@ -30,11 +21,9 @@
|
|||
form="versements_activites"
|
||||
formaction="generer_recus.php?type=activite&format=print"
|
||||
onclick="return verifierChoix(this.form)"}
|
||||
</dd>
|
||||
</dl>
|
||||
</fieldset>
|
||||
|
||||
<form method="post" target="_blank" id="versements_activites" data-disable-progress="1">
|
||||
<form method="post" target="_blank" id="versements_activites">
|
||||
|
||||
{* Itération sur les versements *}
|
||||
{foreach from=$lesVersements key="rang" item="versement"}
|
||||
|
|
|
|||
|
|
@ -4,36 +4,24 @@
|
|||
<h2>Année {$annee_recu} : versements par personne</h2>
|
||||
|
||||
<fieldset class="noprint">
|
||||
<dl>
|
||||
|
||||
<dd>
|
||||
<label class="strong">Total des cases cochées : </label>
|
||||
<span class="total" id="total_general">0,00 €</span>
|
||||
</dd>
|
||||
<dd>
|
||||
<input type="checkbox" class="check_global" id="check_global"
|
||||
onclick="cocherDecocherToutesLesPersonnes(check_global, total_general)" />
|
||||
<label for="check_global">Cliquer pour cocher toutes les lignes</label>
|
||||
</dd>
|
||||
<dd>
|
||||
<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>
|
||||
</dd>
|
||||
<dd>
|
||||
{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)"}
|
||||
</dd>
|
||||
</dl>
|
||||
<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" data-disable-progress="1">
|
||||
<form method="post" target="_dialog" id="versements_personnes">
|
||||
|
||||
{* Itération sur les personnes *}
|
||||
{foreach from=$lesVersements key="rang" item="versement"}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue