prestation/Controleur/ControleurAjaxtableauprestation.php
2025-12-05 10:42:46 +00:00

32 lines
924 B
PHP
Executable File

<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/College_temp.php';
class ControleurAjaxtableauprestation extends Controleur {
private $college_temp2;
public function __construct() {
$this->college_temp2 = new College_temp();
}
public function index()
{
$idCollegeTemp = $_SESSION['idCollegeTemp'];
$tableau_prestations = $this->college_temp2->getPrestation($idCollegeTemp);
$this->genererVueAjax(array('tableau_prestations' => $tableau_prestations));
}
public function majtm()
{
$idPrestation = $this->requete->getParametre("idPrestation");
$tm = $this->requete->getParametreFormulaire("tm");
$this->college_temp2->majtm($idPrestation, $tm);
}
public function initprestation()
{
$idCollegeTemp = $_SESSION['idCollegeTemp'];
$this->college_temp2->initPrestationCollege($idCollegeTemp);
}
}