prestation/Controleur/ControleurAjaxgarantiescollegeadherent.php
2025-12-05 10:42:46 +00:00

24 lines
716 B
PHP
Executable File

<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Adherent.php';
class ControleurAjaxgarantiescollegeadherent extends Controleur {
private $adherent;
public function __construct() {
$this->adherent = new Adherent();
}
public function index() {
$garantiesadd = $this->adherent->getGarAddCollege();
$this->genererVueAjax(array('garantiesadd' => $garantiesadd));
}
public function majplafondadherent()
{
$idGarantie = $this->requete->getParametre("idGarantie");
$plafond = $this->requete->getParametreFormulaire("plafond","numerique");
$this->adherent->majplafondadd($idGarantie, $plafond);
$this->executerAction("index");
}
}