34 lines
1.1 KiB
PHP
Executable File
34 lines
1.1 KiB
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Localite.php';
|
|
require_once 'Modele/Menuvueutilisateur.php';
|
|
|
|
class ControleurTblistelocalite extends Controleur {
|
|
private $menuvue;
|
|
|
|
private $localite;
|
|
|
|
public function __construct() {
|
|
$this->menuvue = new Menuvueutilisateur();
|
|
$this->menuvue->getMenuGestionTatbles('localite');
|
|
|
|
$this->localite = new Localite();
|
|
}
|
|
|
|
public function index($codesearch="",$libellesearch="",$villesearch="") {
|
|
if (isset($_POST['codesearch']))
|
|
{
|
|
$codesearch=$_POST['codesearch'];
|
|
$libellesearch=$_POST['libellesearch'];
|
|
$villesearch=$_POST['villesearch'];
|
|
}
|
|
$localites = $this->localite->getLocalites($codesearch,$libellesearch,$villesearch);
|
|
$this->genererVue(array('localites' => $localites, 'codesearch' => $codesearch, 'libellesearch' => $libellesearch, 'villesearch' => $villesearch));
|
|
}
|
|
|
|
public function supprimer() {
|
|
$id = $this->requete->getParametre("id");
|
|
$this->localite->supprimer($id);
|
|
$this->rediriger("Tblistelocalite");
|
|
}
|
|
} |