modification navigation

FossilOrigin-Name: 3407c10e8a66ae57e7f516b0c9d1db8921ba241cf36aef5b7854bd1d31718dea
This commit is contained in:
engel 2022-03-31 09:43:23 +00:00
parent 0ab6aaad86
commit 5033a3bce6
4 changed files with 14 additions and 11 deletions

View file

@ -132,7 +132,7 @@ $tpl->register_function('afficher_versement', function ($params)
// ------------------------------------------------------------------------
// ------------------------------------------------------------------------
if ($_POST['choix_versements'] == 'tous_versements') {
if ($_GET['action'] == 'personne') {
require('versements_personnes.php');
} else {
require('versements_activites.php');

View file

@ -139,9 +139,12 @@ function verifierChoix(formulaire)
return ok;
}
/**
* fonction appelée pour afficher et masquer des portions de formulaire
*/
function choixMethodeGeneration(formulaire, action, nomClasse1, nomClasse2)
{
formulaire.setAttribute('action', 'action.php?action=' + action);
afficherMasquer(formulaire, nomClasse1, nomClasse2);
}
function afficherMasquer(formulaire, nomClasse1, nomClasse2)
{
for (var elem of formulaire.querySelectorAll(nomClasse1)) {