32 lines
914 B
PHP
Executable File
32 lines
914 B
PHP
Executable File
<?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));
|
|
}
|
|
} |