21 lines
717 B
PHP
21 lines
717 B
PHP
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Ouinon.php';
|
|
require_once 'Modele/Garantie.php';
|
|
|
|
class ControleurAjaxrequeteentetefacture extends Controleur {
|
|
private $ouinon;
|
|
private $garantie;
|
|
|
|
public function __construct() {
|
|
$this->ouinonfacture = (new Ouinon())->getListe();
|
|
$this->ouinonhospit = (new Ouinon())->getListe();
|
|
$this->ouinonchirurgie = (new Ouinon())->getListe();
|
|
$this->garantie = new Garantie();
|
|
}
|
|
|
|
public function index() {
|
|
$garanties = $this->garantie->getListePourActe();
|
|
$this->genererVueAjax(array('garanties' => $garanties,'ouinonhospit' => $this->ouinonhospit, 'ouinonchirurgie' => $this->ouinonchirurgie));
|
|
}
|
|
} |