production/Controleur/ControleurBaremepriseenchargelettrecletemp.php
2026-03-30 12:38:30 +00:00

49 lines
1.5 KiB
PHP
Executable File

<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Menuvueutilisateur.php';
require_once 'Modele/Garantiesbaremepriseencharge.php';
class ControleurBaremepriseenchargelettrecletemp extends Controleur
{
private $menuvue;
private $garantie;
public function __construct() {
$this->menuvue = new Menuvueutilisateur();
$this->menuvue->getMenuVue('Baremepriseenchargelettrecletemp');
$this->garantie = new Garantiesbaremepriseencharge();
}
public function index()
{
$idBaremePriseEnCharge = $_SESSION['idBaremePriseEnCharge'];
$idCollegeTemp = $_SESSION['idCollegeTemp'];
$actes = $this->garantie->getLettreclesGarantieBaremeTemp($idBaremePriseEnCharge, $idCollegeTemp);
$lettrecles = $this->garantie->getLettreCleBaremeAdd();
$tmBareme = $this->garantie->getTmBaremeTemp($idBaremePriseEnCharge, $idCollegeTemp);
$maxDateEffetBareme = $this->garantie->getMaxDateEffetBaremeTemp($idBaremePriseEnCharge, $idCollegeTemp);
$this->genererVue(array(
'actes' => $actes,
'lettrecles' => $lettrecles,
'tmBareme' => $tmBareme,
'maxDateEffetBareme'=> $maxDateEffetBareme,
));
}
public function consulter()
{
$idBaremePriseEnCharge = $_SESSION['idBaremePriseEnCharge'];
$idCollegeTemp = $_SESSION['idCollegeTemp'];
$actes = $this->garantie->getLettreclesGarantieBaremeTemp($idBaremePriseEnCharge, $idCollegeTemp);
$this->genererVue(array(
'actes' => $actes
));
}
}