31 lines
867 B
PHP
Executable File
31 lines
867 B
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Produit.php';
|
|
require_once 'Modele/Gestionconfiee.php';
|
|
require_once 'Modele/Menuvueutilisateur.php';
|
|
|
|
class ControleurModifierproduit extends Controleur {
|
|
private $menuvue;
|
|
private $produit;
|
|
private $garant;
|
|
|
|
public function __construct() {
|
|
$this->menuvue = new Menuvueutilisateur();
|
|
$this->menuvue->getMenuVue('Modifierproduit');
|
|
|
|
$this->produit = new Produit();
|
|
$this->garant = (new Gestionconfiee())->getListe();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$idProduit = $this->requete->getParametreFormulaire("id");
|
|
|
|
$produit = $this->produit->getunproduit($idProduit);
|
|
$etatproduit = $this->produit->getEtatProduit();
|
|
|
|
$this->genererVue(array('produit' => $produit, 'garant' => $this->garant, 'etatproduit' => $etatproduit));
|
|
}
|
|
|
|
|
|
} |