29 lines
704 B
PHP
Executable File
29 lines
704 B
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Tabtableaucommission.php';
|
|
|
|
class ControleurAjaxtblistertableaucommission extends Controleur {
|
|
private $commission;
|
|
|
|
public function __construct() {
|
|
$this->commission = new Tabtableaucommission();
|
|
}
|
|
|
|
public function index() {
|
|
$tabcommission = $this->commission->getlistertableaucommission();
|
|
|
|
$this->genererVueAjax(array(
|
|
'tableaucommission' => $tabcommission
|
|
));
|
|
}
|
|
|
|
public function supprimer(){
|
|
$id = $this->requete->getParametreFormulaire('id');
|
|
|
|
$this->commission->supprimertableaucommission($id);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|