From 57a2fa6c914628fc0bc83c63e00ba90ff4eedfb5 Mon Sep 17 00:00:00 2001 From: KONE SOREL Date: Mon, 16 Mar 2026 20:41:04 +0000 Subject: [PATCH] df --- Js/fonctions.js | 45 +++---- Vue/Ajaxtrancheage/affichertrancheage.php | 154 ++++++++++++---------- 2 files changed, 111 insertions(+), 88 deletions(-) diff --git a/Js/fonctions.js b/Js/fonctions.js index b8c9db09..103cb2ce 100755 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -79116,30 +79116,31 @@ function filtreentetetrancheange(){ } } -function afficher_trancheage() -{ - if(verifier_entete_trancheage()) - { - donnees = 'codeGcAssureur='+codeGcAssureur+'&codeEnteteTrancheAge='+codeEnteteTrancheAge; +function afficher_trancheage() { + if (verifier_entete_trancheage()) { + let racineWeb = $("#racineWeb").val(); + let donnees = 'codeGcAssureur=' + codeGcAssureur + '&codeEnteteTrancheAge=' + codeEnteteTrancheAge; + let div_attente = $('#div_trancheage'); - var div_attente = $('#div_trancheage'); - - div_attente.html('
' + '
'); + // Loader moderne + div_attente.html( + '
' + + '
' + + 'Chargement des tranches...
' + ); - $.ajax({ - url: $("#racineWeb").val()+"Ajaxtrancheage/affichertrancheage/", - type : 'post', - data: donnees, - error: function(errorData) { - }, - success: function(data) { - div_attente.html(data); - }, - complete: function() { - $("#ageMax").focus(); - } - }); - } + $.ajax({ + url: racineWeb + "Ajaxtrancheage/affichertrancheage/", + type: 'post', + data: donnees, + success: function(data) { + div_attente.hide().html(data).fadeIn(); + }, + complete: function() { + $("#ageMax").focus(); + } + }); + } } function supprimer_derniere_tranche_age(idTrancheage) diff --git a/Vue/Ajaxtrancheage/affichertrancheage.php b/Vue/Ajaxtrancheage/affichertrancheage.php index 99473e27..b9a9e01c 100755 --- a/Vue/Ajaxtrancheage/affichertrancheage.php +++ b/Vue/Ajaxtrancheage/affichertrancheage.php @@ -1,71 +1,93 @@ +
+
+ + + + + + + + + -
+
+ + +
+
+
+ + +
+
- - - - - - - - - - - - - + + + + + - ' '): ?> - - - - + + + + + + + + + + + + + + + + + + + +
- -
- - - -
+
+ +
+
-
-

-
-
nettoyer($tranheage['codeTrancheAge']) ?>nettoyer($tranheage['ageMin']) ?> nettoyer($tranheage['ageMax']) ?> + + + +
+
+
- - + - - - - - nettoyer($tranheage['codeTrancheAge']) ?> - nettoyer($tranheage['ageMin']) ?> - nettoyer($tranheage['ageMax']) ?> - - - - - - - - - - - - \ No newline at end of file + \ No newline at end of file