32 lines
794 B
PHP
32 lines
794 B
PHP
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Police.php';
|
|
|
|
class ControleurAjaxcontroleavenantpolice extends Controleur {
|
|
private $police;
|
|
|
|
public function __construct() {
|
|
$this->police = new Police();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$controler_avenant_info = "0";
|
|
|
|
$idPolice = $_SESSION['idPolice_C'];
|
|
|
|
$controle = $this->requete->getParametreFormulaire("controle");
|
|
|
|
if($controle=="existequittance")
|
|
{
|
|
$controler_avenant_info = $this->police->getExisteQuittance($idPolice);
|
|
|
|
if($controler_avenant_info=="0")
|
|
{
|
|
$controler_avenant_info = $this->police->getExisteConsommationPolice($idPolice);
|
|
}
|
|
}
|
|
|
|
$this->genererVueAjax(array('controler_avenant_info' => $controler_avenant_info));
|
|
}
|
|
} |