production/Controleur/ControleurAjaxrequeteenteteprestationactes.php
2025-12-02 11:29:44 +00:00

33 lines
1.2 KiB
PHP
Executable File

<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Prestataire.php';
require_once 'Modele/Typeprestation.php';
require_once 'Modele/Reponseententeprealable.php';
require_once 'Modele/Ouinon.php';
require_once 'Modele/Typeprestataire.php';
class ControleurAjaxrequeteenteteprestationactes extends Controleur {
private $prestataire;
private $typeprestation;
private $reponseententeprealable;
private $ouinon;
private $typeprestataire;
public function __construct()
{
$this->prestataire = new Prestataire();
$this->typeprestation = (new Typeprestation())->getListe();
$this->ouinonfacture = (new Ouinon())->getListe();
$this->typeprestataire = (new Typeprestataire())->getListe();
$this->reponseententeprealable = (new Reponseententeprealable())->getListe();
}
public function index()
{
$prestataire_courant = $this->prestataire->getPrestataireCode( $_SESSION['codePrestataire_C']);
$this->genererVueAjax(array('prestataire_courant' => $prestataire_courant, 'typeprestation' => $this->typeprestation,
'ouinonfacture' => $this->ouinonfacture, 'typeprestataire' => $this->typeprestataire,
'reponseententeprealable' => $this->reponseententeprealable));
}
}