radiantproduction/Controleur/ControleurAjaxplafondadherent.php
2026-02-21 07:23:53 +00:00

27 lines
797 B
PHP

<?php
require_once 'vendor/autoload.php';
use PhpOffice\PhpSpreadsheet\Spreadsheet;
use PhpOffice\PhpSpreadsheet\Writer\Xlsx;
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));
}
}