23 lines
587 B
PHP
23 lines
587 B
PHP
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Police.php';
|
|
|
|
class ControleurAjaxcontextpolice extends Controleur {
|
|
private $police;
|
|
|
|
public function __construct() {
|
|
$this->police = new Police();
|
|
}
|
|
|
|
public function index() {
|
|
$idPolice = $this->requete->getParametreFormulaire("idPolice");
|
|
|
|
$this->police->getContextePoliceId($idPolice);
|
|
|
|
$police = $this->police->getPoliceId($idPolice);
|
|
|
|
$nomGarant = $this->police->getNomGarant($police['codeGcAssureur']);
|
|
|
|
$_SESSION['nomGcAssureur_C'] = $nomGarant;
|
|
}
|
|
} |