60 lines
1.8 KiB
PHP
Executable File
60 lines
1.8 KiB
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Garantiesbaremepriseencharge.php';
|
|
require_once 'Modele/Baremepriseencharge.php';
|
|
require_once 'Modele/Menuvueutilisateur.php';
|
|
require_once 'Modele/Ouinon.php';
|
|
|
|
class ControleurDetailbaremecollege extends Controleur {
|
|
private $menuvue;
|
|
private $bareme;
|
|
private $garantie;
|
|
private $oui_non;
|
|
|
|
public function __construct() {
|
|
$this->menuvue = new Menuvueutilisateur();
|
|
$this->menuvue->getMenuVue('Detailbaremecollege');
|
|
|
|
$this->bareme = new Baremepriseencharge();
|
|
$this->garantie = new Garantiesbaremepriseencharge();
|
|
$this->oui_non = new Ouinon();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$idBaremePriseEnCharge = $this->requete->getParametreFormulaire("id");
|
|
|
|
$bareme = $this->bareme->getBaremepriseenchargeId($idBaremePriseEnCharge);
|
|
|
|
$_SESSION['idBaremePriseEnCharge'] = $idBaremePriseEnCharge;
|
|
|
|
$idCollegeTemp = $_SESSION['idCollegeTemp'];
|
|
$idCollege = $_SESSION['idCollege_C'];
|
|
|
|
$garantiesajoutees = $this->garantie->getGarantiesProduit($bareme["codeProduit"], $idBaremePriseEnCharge);
|
|
|
|
$actif = $this->oui_non->getListe();
|
|
$tmBareme = $this->garantie->getTmBareme($idBaremePriseEnCharge);
|
|
|
|
$maxDateEffetBareme = $this->garantie->getMaxDateEffetBareme($idBaremePriseEnCharge);
|
|
|
|
$_SESSION['OrigineBareme'] = "Detailbaremecollege";
|
|
|
|
$this->genererVue(array(
|
|
'bareme' => $bareme,
|
|
'garantiesajoutees' => $garantiesajoutees,
|
|
'actif' => $actif,
|
|
'tmBareme' => $tmBareme,
|
|
'maxDateEffetBareme' => $maxDateEffetBareme
|
|
));
|
|
}
|
|
|
|
public function validerbaremelettrecle()
|
|
{
|
|
$this->garantie->validerBaremeLettreCleCollege();
|
|
|
|
// $this->rediriger("Consultercollege");
|
|
$this->rediriger("Collegepolice");
|
|
}
|
|
|
|
} |