Initial commit for newdesigngestionnaire project
This commit is contained in:
49
Controleur/ControleurLocaliseradherent.php
Executable file
49
Controleur/ControleurLocaliseradherent.php
Executable file
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Pays.php';
|
||||
require_once 'Modele/Ville.php';
|
||||
require_once 'Modele/Localite.php';
|
||||
require_once 'Modele/Client.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
class ControleurLocaliseradherent extends Controleur
|
||||
{
|
||||
private $menuvue;
|
||||
private $client;
|
||||
private $pays;
|
||||
private $ville;
|
||||
private $localite;
|
||||
|
||||
public function __construct() {
|
||||
$this->menuvue = new Menuvueutilisateur();
|
||||
$this->menuvue->getMenuVue("Localiseradherent");
|
||||
|
||||
$this->pays = new Pays();
|
||||
$this->ville = new Ville();
|
||||
$this->localite = new Localite();
|
||||
$this->client = new Client();
|
||||
|
||||
$_SESSION['modeDevis'] = "0";
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$idClient = $_SESSION['idClient_C'];
|
||||
$idPolice = $_SESSION['idPolice_C'];
|
||||
|
||||
$client = $this->client->getClientId($idClient);
|
||||
|
||||
$codeSociete = $_SESSION['codeSociete'];
|
||||
$codePays = $client['codePays'];
|
||||
$codeVille = $client['codeVille'];
|
||||
|
||||
$pays = $this->pays->getListe($codePays);
|
||||
$ville = $this->ville->getListe($codePays);
|
||||
$localite = $this->localite->getListe($codePays, $codeVille);
|
||||
|
||||
$chemin = $this->menuvue->getChemin('Localiseradherent');
|
||||
|
||||
$this->genererVue(array('pays' => $pays, 'ville' => $ville, 'localite' => $localite, 'client' => $client ,'chemin' => $chemin
|
||||
));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user