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

34 lines
988 B
PHP

<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Adherent_temp.php';
class ControleurAjaxttcfammille extends Controleur {
private $adherent_temp;
public function __construct() {
$this->adherent_temp = new Adherent_temp();
}
public function index()
{
$user = $_SESSION['login'];
$idCollege = $this->requete->getParametreFormulaire("idCollege");
$adherent_temp = $this->adherent_temp->etAdherent_temp($user);
$this->genererVueAjax(array('adherent_temp' => $adherent_temp));
}
public function initialiser()
{
$user = $_SESSION['login'];
$idCollege = $this->requete->getParametreFormulaire("idCollege");
$prorata = $this->requete->getParametreFormulaire("prorata");
$dateEntree = $this->requete->getParametreDate("dateEntree");
$adherent_temp = $this->adherent_temp->initialiserAdherent_temp($idCollege, $dateEntree, $user, $prorata) ;
$this->executerAction("index");
}
}