From 19bf1d7a43fea8a98ebf4533a0d12787d9c08080 Mon Sep 17 00:00:00 2001 From: KONE SOREL Date: Fri, 10 Apr 2026 19:20:24 +0000 Subject: [PATCH] drt --- .../ControleurBaremeaccessoiregarant.php | 12 ++++----- Controleur/ControleurProduits.php | 2 -- Vue/Baremeaccessoiregarant/index.php | 26 +++++++------------ 3 files changed, 16 insertions(+), 24 deletions(-) diff --git a/Controleur/ControleurBaremeaccessoiregarant.php b/Controleur/ControleurBaremeaccessoiregarant.php index 6748147d..0cb2446b 100755 --- a/Controleur/ControleurBaremeaccessoiregarant.php +++ b/Controleur/ControleurBaremeaccessoiregarant.php @@ -2,22 +2,22 @@ require_once 'Framework/Controleur.php'; require_once 'Modele/Menuvueutilisateur.php'; require_once 'Modele/Baremeaccessoiregarant.php'; +require_once 'Modele/Gestionconfiee.php'; class ControleurBaremeaccessoiregarant extends Controleur { private $menuvue; private $bareme; + private $garant; public function __construct() { $this->menuvue = new Menuvueutilisateur(); $this->menuvue->getMenuVue("Baremeaccessoiregarant"); - $this->bareme = new Baremeaccessoiregarant(); + $this->bareme = new Baremeaccessoiregarant(); + $this->garant = (new Gestionconfiee())->getListe(); } public function index() { - $garant = $this->bareme->getgarant(); - $chemin = $this->menuvue->getChemin('Baremeaccessoiregarant'); - - - $this->genererVue(array('garant' => $garant, 'chemin' => $chemin, 'chemin' => $chemin)); + + $this->genererVue(array('garant' => $this->garant)); } } \ No newline at end of file diff --git a/Controleur/ControleurProduits.php b/Controleur/ControleurProduits.php index dbae4026..b79194a1 100755 --- a/Controleur/ControleurProduits.php +++ b/Controleur/ControleurProduits.php @@ -30,8 +30,6 @@ class ControleurProduits extends Controleur { $produits = $this->produit->getTousProduitsGarant($codeGcAssureur); - - $this->genererVue(array('produits' => $produits, 'garant' => $this->garant)); } } \ No newline at end of file diff --git a/Vue/Baremeaccessoiregarant/index.php b/Vue/Baremeaccessoiregarant/index.php index 8d5e2ed9..5d597d33 100755 --- a/Vue/Baremeaccessoiregarant/index.php +++ b/Vue/Baremeaccessoiregarant/index.php @@ -16,27 +16,21 @@ -
-
-
-
- +
+
+
+
+
-
+
- - - - + onchange="javascript:afficher_bareme_accessoire_garant();" + autofocus>