This commit is contained in:
2026-01-12 11:08:06 +00:00
parent 616a3c53bd
commit cef2cdc005
3 changed files with 483 additions and 3 deletions

View File

@@ -846,5 +846,34 @@ class Adherent extends Modele {
$resultat = $this->executerRequete($sql, array($idAdherent));
return $resultat->fetch(PDO::FETCH_ASSOC);
}
// Ajouté par Sorel le 12-01-2026 => Gestion des graphiques de la famille
public function getPrestationsmensuelles($idAdherent){
if (isset($_SESSION['lang']) && $_SESSION['lang']=="en_US"){
$sql = 'call prestations_mensuelles_famille_eng(?)';
}else{
$sql = 'call prestations_mensuelles_famille(?)';
}
$resultat = $this->executerRequete($sql, array($idAdherent));
return $resultat->fetchAll(PDO::FETCH_ASSOC);
}
public function getPrestationsLiensParente($idAdherent){
if (isset($_SESSION['lang']) && $_SESSION['lang']=="en_US"){
$sql = 'call prestations_lienparente_famille_eng(?)';
}else{
$sql = 'call prestations_lienparente_famille(?)';
}
$resultat = $this->executerRequete($sql, array($idAdherent));
return $resultat->fetchAll(PDO::FETCH_ASSOC);
}
}