25 lines
642 B
PHP
Executable File
25 lines
642 B
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Adherent.php';
|
|
|
|
class ControleurAjaxconsosadherent extends Controleur {
|
|
private $adherent;
|
|
|
|
public function __construct() {
|
|
$this->adherent = new Adherent();
|
|
}
|
|
|
|
public function index() {
|
|
|
|
$idAdherent = $this->requete->getParametreFormulaire("idAdherent");
|
|
|
|
$prestations = $this->adherent->getConsosAdherent($idAdherent);
|
|
|
|
$total_prestation = $this->adherent->getConsosTotalAdherent($idAdherent);
|
|
|
|
$this->genererVueAjax(array('prestations' => $prestations, 'total_prestation' => $total_prestation));
|
|
|
|
|
|
}
|
|
|
|
} |