Initial commit for newdesigngestionnaire project
This commit is contained in:
32
Controleur/ControleurModifparamseuilalerte.php
Executable file
32
Controleur/ControleurModifparamseuilalerte.php
Executable file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Produit.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
require_once 'Modele/Gestionconfiee.php';
|
||||
|
||||
class ControleurModifparamseuilalerte extends Controleur
|
||||
{
|
||||
private $menuvue;
|
||||
private $produit;
|
||||
private $garant;
|
||||
|
||||
public function __construct() {
|
||||
$this->menuvue = new Menuvueutilisateur();
|
||||
$this->menuvue->getMenuVue('Modifparamseuilalerte');
|
||||
|
||||
$this->produit = new Produit();
|
||||
$this->garant = new Gestionconfiee();
|
||||
}
|
||||
public function index()
|
||||
{
|
||||
$garant = $this->garant->getListeGarantDansProduit();
|
||||
|
||||
if($_SESSION['codeGcAssureur_S'] > " " && $_SESSION['codeProduit_S'] > " "){
|
||||
$produits = $this->produit->getProduitGarant($_SESSION['codeGcAssureur_S']);
|
||||
}else{
|
||||
$produits = array();
|
||||
}
|
||||
|
||||
$this->genererVue(array('garant' => $garant, 'produits' => $produits));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user