26 lines
625 B
PHP
26 lines
625 B
PHP
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Tabpointvente.php';
|
|
|
|
class ControleurAjaxfiltrelocaliteparville extends Controleur {
|
|
private $pv;
|
|
|
|
public function __construct() {
|
|
$this->pv = new Tabpointvente();
|
|
}
|
|
|
|
public function index() {
|
|
$codePays = $this->requete->getParametreFormulaire("codePays");
|
|
$codeVille = $this->requete->getParametreFormulaire("codeVille");
|
|
|
|
$tablocalite = $this->pv->getlocalite($codePays,$codeVille);
|
|
|
|
$this->genererVueAjax(array(
|
|
'localite' => $tablocalite
|
|
));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|