From c97feb2c83c5143fba41f5004466288bf19b4744 Mon Sep 17 00:00:00 2001 From: KANE LAZENI Date: Sat, 3 Jan 2026 09:33:14 +0000 Subject: [PATCH 1/5] a --- Js/fonctions.js | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/Js/fonctions.js b/Js/fonctions.js index 2a8d9f8..1c8e067 100755 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -1568,3 +1568,52 @@ function controle_date_avenant() $("#dateAvenant").readable(); $("#motifavenant").readable(); } + +$.prototype.enable = function () { + $.each(this, function (index, el) { + $(el).removeAttr('disabled'); + }); +} + +$.prototype.disable = function () { + $.each(this, function (index, el) { + $(el).attr('disabled', 'disabled'); + }); +} + +$.prototype.unreadable = function () { + $.each(this, function (index, el) { + $(el).attr('READONLY', 'READONLY'); + }); +} + +$.prototype.readable = function () { + $.each(this, function (index, el) { + $(el).removeAttr('READONLY'); + }); +} + +Date.estAnneeBissextile = function (annee) { + return (((annee % 4 === 0) && (annee % 100 !== 0)) || (annee % 400 === 0)); +}; + +Date.getDaysInMonth = function (annee, month) { + return [31, (Date.estAnneeBissextile(annee) ? 29 : 28), 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][month]; +}; + +Date.prototype.estAnneeBissextile = function () { + return Date.estAnneeBissextile(this.getFullYear()); +}; + +Date.prototype.getDaysInMonth = function () { + return Date.getDaysInMonth(this.getFullYear(), this.getMonth()); +}; + +Date.prototype.addMonths = function (value) { + var n = this.getDate(); + this.setDate(1); + this.setMonth(this.getMonth() + value); + this.setDate(Math.min(n, this.getDaysInMonth())); + this.setDate(this.getDate()-1); + return this; +}; From a11e5386ed5d4992ec25acdfac2df9a395a468da Mon Sep 17 00:00:00 2001 From: KANE LAZENI Date: Sat, 3 Jan 2026 09:37:33 +0000 Subject: [PATCH 2/5] a --- Js/fonctions.js | 60 ------------------------------------------------- 1 file changed, 60 deletions(-) diff --git a/Js/fonctions.js b/Js/fonctions.js index 1c8e067..fb689e1 100755 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -1557,63 +1557,3 @@ function enregistrer_retrait() }); } -function controle_date_avenant() -{ - codeTypeAvenant=$("#codeTypeAvenant").val(); - - $("#div_periodidite").html(""); - - $("#dateAvenant").val($("#datejourfr_C").val()); - - $("#dateAvenant").readable(); - $("#motifavenant").readable(); -} - -$.prototype.enable = function () { - $.each(this, function (index, el) { - $(el).removeAttr('disabled'); - }); -} - -$.prototype.disable = function () { - $.each(this, function (index, el) { - $(el).attr('disabled', 'disabled'); - }); -} - -$.prototype.unreadable = function () { - $.each(this, function (index, el) { - $(el).attr('READONLY', 'READONLY'); - }); -} - -$.prototype.readable = function () { - $.each(this, function (index, el) { - $(el).removeAttr('READONLY'); - }); -} - -Date.estAnneeBissextile = function (annee) { - return (((annee % 4 === 0) && (annee % 100 !== 0)) || (annee % 400 === 0)); -}; - -Date.getDaysInMonth = function (annee, month) { - return [31, (Date.estAnneeBissextile(annee) ? 29 : 28), 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][month]; -}; - -Date.prototype.estAnneeBissextile = function () { - return Date.estAnneeBissextile(this.getFullYear()); -}; - -Date.prototype.getDaysInMonth = function () { - return Date.getDaysInMonth(this.getFullYear(), this.getMonth()); -}; - -Date.prototype.addMonths = function (value) { - var n = this.getDate(); - this.setDate(1); - this.setMonth(this.getMonth() + value); - this.setDate(Math.min(n, this.getDaysInMonth())); - this.setDate(this.getDate()-1); - return this; -}; From 539b7a121481dd5ec3e349c729725afae8b8e0c3 Mon Sep 17 00:00:00 2001 From: KANE LAZENI Date: Sat, 3 Jan 2026 09:39:25 +0000 Subject: [PATCH 3/5] a --- Js/fonctions.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/Js/fonctions.js b/Js/fonctions.js index fb689e1..6d656fa 100755 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -1544,8 +1544,6 @@ function enregistrer_retrait() .then((isConfirmed) => { if (isConfirmed) { // L'utilisateur a confirmé - alert("confirmé"); - return; window.location.assign($("#racineWeb" ).val()+"Ficheretrait/enregistrerretrait/"); } else { // L'utilisateur a annulé From ef0a12235b7459eaf6caf9c1414a191082a747bb Mon Sep 17 00:00:00 2001 From: KANE LAZENI Date: Sat, 3 Jan 2026 09:41:32 +0000 Subject: [PATCH 4/5] a --- Modele/Police.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Modele/Police.php b/Modele/Police.php index 7aecbf6..5d8b7c3 100644 --- a/Modele/Police.php +++ b/Modele/Police.php @@ -355,7 +355,8 @@ class Police extends Modele { $user = $_SESSION['login']; $idPolice = $_SESSION['idPolice_C']; - $sql = 'call sp_avenant_retrait(?, ?)'; + // $sql = 'call sp_avenant_retrait(?, ?)'; + $sql = 'call sp_avenant_retrait_client(?, ?)'; $this->executerRequete($sql, array($idPolice, $user)); } From 7595e84797a22d72a5e818c158e35f91a6f0822d Mon Sep 17 00:00:00 2001 From: KANE LAZENI Date: Sat, 3 Jan 2026 09:43:02 +0000 Subject: [PATCH 5/5] a --- Controleur/ControleurFicheretrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Controleur/ControleurFicheretrait.php b/Controleur/ControleurFicheretrait.php index bfbdea8..6c4d1fe 100644 --- a/Controleur/ControleurFicheretrait.php +++ b/Controleur/ControleurFicheretrait.php @@ -34,6 +34,6 @@ class ControleurFicheretrait extends Controleur { { $this->avenant->enregistrerretrait(); - // $this->rediriger("Fichepolice"); + $this->rediriger("Fichepolice"); } } \ No newline at end of file