34 lines
1.1 KiB
PHP
34 lines
1.1 KiB
PHP
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Gestionnaire.php';
|
|
require_once 'Modele/Menuvueutilisateur.php';
|
|
|
|
class ControleurTblistegestionnaire extends Controleur {
|
|
private $menuvue;
|
|
|
|
private $gestionnaire;
|
|
|
|
public function __construct() {
|
|
$this->menuvue = new Menuvueutilisateur();
|
|
$this->menuvue->getMenuGestionTatbles('gestionnaire');
|
|
|
|
$this->gestionnaire = new Gestionnaire();
|
|
}
|
|
|
|
public function index($codesearch="",$nomsearch="",$prenomsearch="") {
|
|
if (isset($_POST['codesearch']))
|
|
{
|
|
$codesearch=$_POST['codesearch'];
|
|
$nomsearch=$_POST['nomsearch'];
|
|
$prenomsearch=$_POST['prenomsearch'];
|
|
}
|
|
$gestionnaires = $this->gestionnaire->getGestionnaires($codesearch,$nomsearch,$prenomsearch);
|
|
$this->genererVue(array('gestionnaires' => $gestionnaires, 'codesearch' => $codesearch, 'nomsearch' => $nomsearch, 'prenomsearch' => $prenomsearch));
|
|
}
|
|
|
|
public function supprimer() {
|
|
$id = $this->requete->getParametre("id");
|
|
$this->gestionnaire->supprimer($id);
|
|
$this->rediriger("Tblistegestionnaire");
|
|
}
|
|
} |