48 lines
1.4 KiB
PHP
48 lines
1.4 KiB
PHP
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/College_temp.php';
|
|
|
|
class ControleurAjaxprestatairenmoins extends Controleur {
|
|
private $college_temp;
|
|
|
|
public function __construct() {
|
|
$this->college_temp = new College_temp();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$idCollege = $_SESSION['idCollege'];
|
|
|
|
$college= $this->college_temp->getCollegepoliceId($idCollege);
|
|
|
|
$prestatairereseaus= $this->college_temp->getprestatairereseau($idCollege);
|
|
|
|
$prestataireenmoinss= $this->college_temp->getprestataireenmoins($idCollege);
|
|
|
|
$this->genererVueAjax(array('college' => $college, 'prestatairereseaus' => $prestatairereseaus, 'prestataireenmoinss' => $prestataireenmoinss));
|
|
}
|
|
|
|
public function retirer()
|
|
{
|
|
$idPrestation = $this->requete->getParametre("idPrestation");
|
|
$this->college_temp->retirerprestatairenmoins($idPrestation);
|
|
|
|
$this->executerAction("index");
|
|
}
|
|
|
|
public function ajouterunprestataireenmoins()
|
|
{
|
|
$codePrestataire = $this->requete->getParametre("codePrestataire");
|
|
$this->college_temp->ajouterunprestataireenmoins($codePrestataire);
|
|
|
|
$this->executerAction("index");
|
|
}
|
|
|
|
public function initprestation()
|
|
{
|
|
$idCollegeTemp = $_SESSION['idCollegeTemp'];
|
|
$this->college_temp->initPrestationCollege($idCollegeTemp);
|
|
}
|
|
|
|
|
|
} |