prestation/Controleur/ControleurAjaxadherent.php
2025-12-01 18:54:33 +00:00

30 lines
738 B
PHP

<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Adherent.php';
class ControleurAjaxadherent extends Controleur {
private $adherent;
public function __construct() {
$this->adherent = new Adherent();
}
public function index() {
$this->genererVueAjax();
}
public function supprimer() {
$idAherent = $this->requete->getParametreFormulaire("idAherent");
$this->adherent->supprimer($idAherent);
// On actualise le contexte : NbAdh et NbAss
$idPolice = $_SESSION['idPolice_C'];
$this->adherent->getNbassure($idPolice);
}
public function recalculersoldefamille()
{
$this->adherent->recalculersoldefamille();
}
}