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

36 lines
1.1 KiB
PHP

<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/College_temp.php';
class ControleurAjaxgarantiescollegeadd extends Controleur {
private $college_temp;
public function __construct() {
$this->college_temp = new College_temp();
}
public function index() {
$idCollegeTemp = $_SESSION['idCollegeTemp'];
$garantiesadd = $this->college_temp->getGarAddCollege($idCollegeTemp);
$this->genererVueAjax(array('garantiesadd' => $garantiesadd));
}
public function majplafondadd()
{
$idGarantie = $this->requete->getParametre("idGarantie");
$plafond = $this->requete->getParametreFormulaire("plafond","numerique");
$this->college_temp->majplafondadd($idGarantie, $plafond);
$this->executerAction("index");
}
public function majprimeadd()
{
$primeOption = $this->requete->getParametreFormulaire("primeOption","numerique");
$idGarantie = $this->requete->getParametre("idGarantie");
$this->college_temp->majprimeadd($idGarantie, $primeOption);
$this->executerAction("index");
}
}