From e1ea7b215e6b578b20e87622d42f4fba15f56a03 Mon Sep 17 00:00:00 2001 From: KONE SOREL Date: Mon, 12 Jan 2026 17:54:50 +0000 Subject: [PATCH] dr --- Js/fonctions.js | 327 ++++++++++++++++++++++++++++++++++++++---------- Vue/gabarit.php | 2 +- 2 files changed, 259 insertions(+), 70 deletions(-) diff --git a/Js/fonctions.js b/Js/fonctions.js index c40341a..ddabd1e 100755 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -1356,7 +1356,17 @@ function imprimer_contrat() function imprimer_cp(lienEtat) { var div_export = $('#div_export_a'); - div_export.html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); + + div_export.html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); donnees = 'lienEtat='+lienEtat; @@ -1454,19 +1464,21 @@ function enregistrer_avenant() v_msg="Confirmez-vous cet avenant?"; v_msgEng="Do you confirm this amendment to the contract?"; - /* - if(confirm_ebene(v_msg, v_msgEng)) - { - var div_attente = $('#div_attente'); - div_attente.html('
  ' + 'Chargement en cours! Veuillez patienter...' + '
'); - $("#btn_enreg").click(); - } - */ + confirm_ebene(v_msg, v_msgEng).then(isConfirmed => { if (isConfirmed) { - var div_attente = $('#div_attente'); - div_attente.html('
  ' + 'Chargement en cours! Veuillez patienter...' + '
'); - $("#btn_enreg").click(); + var div_attente = $('#div_attente'); + + div_attente.html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); } }); @@ -1476,8 +1488,18 @@ function pop_afficher_selection_retrait() { var div_selection_assure = $('#div_selection_assure'); - div_selection_assure.html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); - + div_selection_assure.html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); + + $.ajax({ url: $("#racineWeb").val()+"Ajaxselectionretrait/", type : 'post', @@ -1627,7 +1649,16 @@ function exporter_modele_assure() var div_export = $('#div_exporter_liste_assures'); - div_export.html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); + div_export.html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); $.ajax({ url: $("#racineWeb").val()+"Ajaximporterlisteassure/exportermodele/", @@ -1906,7 +1937,16 @@ function ebene_confirmer_photo_face() // OK return; } - $("#div_wait_face_ebene").html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); + $("#div_wait_face_ebene").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); compare_face = $("#compare_face").val(); @@ -2000,7 +2040,16 @@ function ebene_supprimer_photo_face() // OK $("ebene_take_photo_face").prop('disabled', true); $("motif").prop('disabled', true); - $("#div_wait_face_ebene").html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); + $("#div_wait_face_ebene").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); compare_face = $("#compare_face").val(); @@ -2058,7 +2107,16 @@ function histsupprface() donnees = 'debut='+debut+'&fin='+fin; - $("#div_detail_suppr_face").html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); + $("#div_detail_suppr_face").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); $.ajax({ url: $("#racineWeb").val()+"Ajaxhistsupprface/", @@ -2084,8 +2142,17 @@ function histsupprface_export() donnees = 'debut='+debut+'&fin='+fin; donnees_retour = ""; - $("#div_detail_suppr_face").html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); - + $("#div_detail_suppr_face").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); + $.ajax({ url: $("#racineWeb").val()+"Ajaxhistsupprfaceexport/", type : 'post', @@ -2111,8 +2178,17 @@ function histo_enrollement_face() donnees = 'debut='+debut+'&fin='+fin; donnees_retour = ""; - $("#div_detail_suppr_face").html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); - + $("#div_detail_suppr_face").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); + $.ajax({ url: $("#racineWeb").val()+"Ajaxhistsupprfaceexport/historiqueenrollement/", type : 'post', @@ -2135,8 +2211,17 @@ function afficher_liste_log_reconnaissance_faciale() donnees = 'debut='+debut+'&fin='+fin; - $("#div_detail").html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); - + $("#div_detail").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); + $.ajax({ url: $("#racineWeb").val()+"Ajaxlogreconnaissancefaciale/", type : 'post', @@ -2159,7 +2244,16 @@ function exporter_log_reconnaissance_faciale() donnees = 'debut='+debut+'&fin='+fin; - $("#div_deatil_pop").html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); + $("#div_deatil_pop").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); $("#btn_pop").click(); @@ -2185,8 +2279,17 @@ function afficher_liste_log_register_face() donnees = 'debut='+debut+'&fin='+fin; - $("#div_detail").html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); - + $("#div_detail").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); + $.ajax({ url: $("#racineWeb").val()+"Ajaxlogregisterface/", type : 'post', @@ -2209,7 +2312,16 @@ function exporter_log_register_face() donnees = 'debut='+debut+'&fin='+fin; - $("#div_deatil_pop").html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); + $("#div_deatil_pop").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); $("#btn_pop").click(); @@ -2235,8 +2347,17 @@ function afficher_liste_log_remove_face() donnees = 'debut='+debut+'&fin='+fin; - $("#div_detail").html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); - + $("#div_detail").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); + $.ajax({ url: $("#racineWeb").val()+"Ajaxlogremoveface/", type : 'post', @@ -2259,7 +2380,16 @@ function exporter_log_remove_face() donnees = 'debut='+debut+'&fin='+fin; - $("#div_deatil_pop").html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); + $("#div_deatil_pop").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); $("#btn_pop").click(); @@ -2296,8 +2426,17 @@ function afficher_liste_logconnexion() donnees = 'login='+login+'&ipConnexion='+ipConnexion+'&debut='+debut+'&fin='+fin; - $("#div_detail").html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); - + $("#div_detail").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); + $.ajax({ url: $("#racineWeb").val()+"Ajaxlogconnexion/", type : 'post', @@ -2322,7 +2461,16 @@ function exporter_liste_logconnexion() donnees = 'login='+login+'&ipConnexion='+ipConnexion+'&debut='+debut+'&fin='+fin; - $("#div_deatil_pop").html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); + $("#div_deatil_pop").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); $("#btn_pop").click(); @@ -2469,6 +2617,17 @@ function prorater_prime_beneficiaire() donnees = '&dateEntree='+dateEntree; donnees += '&fraisCarte='+fraisCarte; donnees += '&prorata='+prorata; + + $("#div_prime").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); $.ajax({ url: $("#racineWeb").val()+"Ajaxproraterprimebeneficiaire/", @@ -2683,8 +2842,17 @@ function calculer_prime_inmportation() var div_attente = $('#div_liste_assure_importe'); - div_attente.html('
  ' + 'Chargement en cours! Veuillez patienter...' + '
'); - + div_attente.html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); + $.ajax({ url: $("#racineWeb").val()+"Ajaximporterlisteassure/calculerprimeimportee/", type: 'POST', @@ -2762,8 +2930,17 @@ function incorporer_assures_inmportes() { var div_attente = $('#div_liste_assure_importe'); - div_attente.html('
  ' + 'Chargement en cours! Veuillez patienter...' + '
'); - + div_attente.html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); + $.ajax({ url: $("#racineWeb").val()+"Ajaximporterlisteassure/incorpoerassuresimportes/", type: 'POST', @@ -2826,8 +3003,16 @@ function afficher_adherent_importee() var div_attente = $('#div_adherents_importes'); - div_attente.html('
  ' + 'Chargement en cours! Veuillez patienter...' + '
'); - + div_attente.html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); $.ajax({ url: $("#racineWeb").val()+"Ajaximporterlisteassure/afficheradherentimportee/", @@ -3065,8 +3250,18 @@ function incorporer_assures_inmportes() if (isConfirmed) { var div_attente = $('#div_liste_assure_importe'); - div_attente.html('
  ' + 'Chargement en cours! Veuillez patienter...' + '
'); - + div_attente.html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); + + $.ajax({ url: $("#racineWeb").val()+"Ajaximporterlisteassure/incorpoerassuresimportes/", type: 'POST', @@ -3085,30 +3280,6 @@ function incorporer_assures_inmportes() } }); - /* - if(confirm_ebene(v_msg, v_msgEng)) - { - var div_attente = $('#div_liste_assure_importe'); - - div_attente.html('
  ' + 'Chargement en cours! Veuillez patienter...' + '
'); - - $.ajax({ - url: $("#racineWeb").val()+"Ajaximporterlisteassure/incorpoerassuresimportes/", - type: 'POST', - // data: donnees, - success: function(data) { - v_msg="Incorporation terminée avec succès!"; - v_msgEng="Incorporation completed successfully!"; - alert_ebene(v_msg, v_msgEng); - }, - error: function(data) { - }, - complete: function() { - afficher_police_id(); - } - }); - } - */ } function afficher_police_id() @@ -3166,7 +3337,16 @@ function afficher_garantieadherent_entete_contrat() // donnees = 'exercieReference='+exercieReference; donnees = 'idEntetecontrat='+idEntetecontrat; - div_attente.html('
  ' + 'Chargement en cours! Veuillez patienter...' + '
'); + div_attente.html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); $.ajax({ url: $("#racineWeb").val()+"Ajaxplafondadherent/", @@ -3233,8 +3413,17 @@ function listerfacturefamille() donnees = 'd1='+d1+'&d2='+d2; - $("#div_dossiers").html('
  ' + 'Veuillez patienter... / Please wait...' + '
'); - + $("#div_dossiers").html(` +
+
+ Loading... +
+ + Veuillez patienter... / Please wait... + +
+ `); + $.ajax({ url: $("#racineWeb").val()+"Ajaxfacturesfamille/", type : 'post', diff --git a/Vue/gabarit.php b/Vue/gabarit.php index fb1d8ae..0071357 100755 --- a/Vue/gabarit.php +++ b/Vue/gabarit.php @@ -634,7 +634,7 @@ $photoAssureCrypte = $_SESSION['photoAssureCrypte']; - +