From 6cf3d94c88b63198d9caae27ac326c04f93a5246 Mon Sep 17 00:00:00 2001 From: KONE SOREL Date: Thu, 22 Jan 2026 11:08:03 +0000 Subject: [PATCH] fg --- .../ControleurRemboursementclassique.php | 9 ++++- ...ControleurRemboursementclassiquepolice.php | 38 ------------------- Modele/Remboursement.php | 14 +++++++ Vue/Remboursementclassique/index.php | 2 +- 4 files changed, 22 insertions(+), 41 deletions(-) delete mode 100755 Controleur/ControleurRemboursementclassiquepolice.php diff --git a/Controleur/ControleurRemboursementclassique.php b/Controleur/ControleurRemboursementclassique.php index 99c8eb5..3599828 100755 --- a/Controleur/ControleurRemboursementclassique.php +++ b/Controleur/ControleurRemboursementclassique.php @@ -1,21 +1,26 @@ menuvue = new Menuvueutilisateur(); $this->menuvue->getMenuVue('Remboursementclassique'); + $this->remboursement = new Remboursement(); } public function index() { - $d1 = $_SESSION['dUneSemaineAvant_C']; + $d1 = $_SESSION['debutMois_C']; $d2 = date('Y-m-d'); + + $reponsedemande = $this->remboursement->getstatutpaiementrd(); - $this->genererVue(); + $this->genererVue(array('reponsedemande' => $reponsedemande)); } } \ No newline at end of file diff --git a/Controleur/ControleurRemboursementclassiquepolice.php b/Controleur/ControleurRemboursementclassiquepolice.php deleted file mode 100755 index 3382b73..0000000 --- a/Controleur/ControleurRemboursementclassiquepolice.php +++ /dev/null @@ -1,38 +0,0 @@ -menuvue = new Menuvueutilisateur(); - $this->menuvue->getMenuVue('Remboursementclassiquepolice'); - - $this->facture = new Facture(); - $this->police = new Police(); - - $_SESSION['idDemandeRemboursement'] = "0"; - } - - public function index() { - $idPolice = "0";//$_SESSION['idPolice_C']; - $d1 = $_SESSION['dUneSemaineAvant_C']; - $d2 = date('Y-m-d'); - - if($idPolice > "0"){ - $factures = $this->facture->getfacturesclassiquepolice($idPolice, $d1, $d2); - }else{ - $factures = null; - } - - $polices = $this->police->getListePoliceAvecBeneficiaire(); - - $this->genererVue(array('factures' => $factures, 'polices' => $polices, 'idPolice' => $idPolice)); - } -} \ No newline at end of file diff --git a/Modele/Remboursement.php b/Modele/Remboursement.php index 325684f..125dbe9 100755 --- a/Modele/Remboursement.php +++ b/Modele/Remboursement.php @@ -79,5 +79,19 @@ class Remboursement extends Modele { return $resultat->fetchAll(PDO::FETCH_ASSOC); } + + public function getstatutpaiementrd() + { + if (est_anglophone()){ + $sql = 'call sp_c_get_statut_paiement_rd_eng()'; + }else{ + $sql = 'call sp_c_get_statut_paiement_rd()'; + } + + $resultat = $this->executerRequete($sql); + + return $resultat->fetchAll(PDO::FETCH_ASSOC); + + } } \ No newline at end of file diff --git a/Vue/Remboursementclassique/index.php b/Vue/Remboursementclassique/index.php index 2ac4631..0f50bff 100755 --- a/Vue/Remboursementclassique/index.php +++ b/Vue/Remboursementclassique/index.php @@ -20,7 +20,7 @@
+ value="" required>