From 441ed4e5f25099dd81f5e64190f837dd66ec4f1a Mon Sep 17 00:00:00 2001 From: KONE SOREL Date: Wed, 24 Dec 2025 12:50:58 +0000 Subject: [PATCH] debug --- Controleur/ControleurAccueil.php | 3 +++ Modele/Synthese.php | 16 ++++++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/Controleur/ControleurAccueil.php b/Controleur/ControleurAccueil.php index 6ed14ca..56eb928 100755 --- a/Controleur/ControleurAccueil.php +++ b/Controleur/ControleurAccueil.php @@ -42,6 +42,9 @@ class ControleurAccueil extends Controleur { ]; // Répartition sinistres + $claims = $this->beneficiaire->getClaims(); + var_dump($claims); + $claimsLabels = [ "Consultations", "Pharmacie", diff --git a/Modele/Synthese.php b/Modele/Synthese.php index 935a993..2632e4d 100755 --- a/Modele/Synthese.php +++ b/Modele/Synthese.php @@ -7,11 +7,23 @@ class Synthese extends Modele { { $idClient = $_SESSION['idClient_C']; - $sql = 'call sp_c_get_kpis(?)'; + $sql = 'call sp_c_dashboard_kpis_by_client(?)'; $resultat = $this->executerRequete($sql, array($idClient)); - return $resultat->fetch(); + return $resultat->fetchAll(); + } + + + public function getClaims() + { + $idClient = $_SESSION['idClient_C']; + + $sql = 'call sp_c_dashboard_claims_by_client(?)'; + + $resultat = $this->executerRequete($sql, array($idClient)); + + return $resultat->fetchAll(); }