24 lines
674 B
PHP
24 lines
674 B
PHP
<?php
|
|
require_once 'Framework/Controleurrequete.php'; // OK
|
|
require_once 'Modele/Garantieadherent.php';
|
|
|
|
class ControleurAjaxplafondadherent extends Controleurrequete
|
|
{
|
|
private $garantieadherent;
|
|
|
|
public function __construct()
|
|
{
|
|
$this->garantieadherent = new Garantieadherent();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$idAdherent = $_SESSION['idAdherent_C'];
|
|
|
|
$idEntetecontrat = $this->requete->getParametreFormulaire("idEntetecontrat");
|
|
|
|
$garantieadherents = $this->garantieadherent->getGarantieAdherentEnteteContrat($idAdherent, $idEntetecontrat);
|
|
|
|
$this->genererVueAjax(array('garantieadherents' => $garantieadherents));
|
|
}
|
|
} |