production/Controleur/ControleurModifierparametresgeneraux.php
2025-12-02 11:29:44 +00:00

52 lines
1.5 KiB
PHP
Executable File

<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Langue.php';
require_once 'Modele/Societeuser.php';
require_once 'Modele/Ouinon.php';
require_once 'Modele/Menuvueutilisateur.php';
class ControleurModifierparametresgeneraux extends Controleur {
private $menuvue;
private $societeuser;
private $langue;
private $oui_non;
public function __construct() {
$this->menuvue = new Menuvueutilisateur();
$this->menuvue->getMenuVue('Modifierparametresgeneraux');
$this->societeuser = new Societeuser();
$this->langue = new Langue();
$this->oui_non = new Ouinon();
}
public function index()
{
$idCentreGestion = intval($this->requete->getParametreFormulaire("id"));
if($idCentreGestion > '0' ){
$societeuser = $this->societeuser->getVwSocieteuserId($idCentreGestion);
}else{
$codeSociete = $_SESSION['codeSociete'];
$societeuser = $this->societeuser->getVwSocieteuser($codeSociete);
}
$langue = $this->langue->getListe();
$pays = $this->societeuser->getPays();
$codePays = $this->requete->getParametreFormulaire("codePays");
$villes = $this->societeuser->getVilles($societeuser["codePays"]);
$typeSociete = $this->societeuser->gettypeSociete();
$visitePage = $this->oui_non->getListe();
$this->genererVue(array('societeuser' => $societeuser, 'langue' => $langue,
'typeSociete' => $typeSociete, 'pays' => $pays, 'villes' => $villes,
'visitePage' => $visitePage));
}
}