Import initial du projet Production
This commit is contained in:
26
Controleur/ControleurEditionpieceavenant.php
Normal file
26
Controleur/ControleurEditionpieceavenant.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Avenant.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
class ControleurEditionpieceavenant extends Controleur {
|
||||
private $menuvue;
|
||||
private $avenant;
|
||||
|
||||
public function __construct() {
|
||||
$this->menuvue = new Menuvueutilisateur();
|
||||
$this->menuvue->getMenuVue("Editionpieceavenant");
|
||||
|
||||
$this->avenant = new Avenant();
|
||||
}
|
||||
public function index() {
|
||||
$idAvenant = $_SESSION['idAvenant_C'];
|
||||
$codeTypeAvenant = $_SESSION['codeTypeAvenant_C'];
|
||||
|
||||
$avenant = $this->avenant->getunavenant($idAvenant);
|
||||
|
||||
$pieces = $this->avenant->getListePieceAvenant($codeTypeAvenant);
|
||||
|
||||
$this->genererVue(array('avenant' => $avenant, 'pieces' => $pieces));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user