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

36 lines
1.2 KiB
PHP
Executable File

<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Prestataire.php';
require_once 'Modele/Periode.php';
require_once 'Modele/Exercice.php';
require_once 'Modele/Menuvueutilisateur.php';
class ControleurRelevecompteprestaire extends Controleur {
private $menuvue;
private $prestataire;
private $periode;
private $periode2;
private $exercice;
private $exercice2;
public function __construct() {
$this->menuvue = new Menuvueutilisateur();
$this->menuvue->getMenuVue('Relevecompteprestaire');
$this->prestataire = new Prestataire();
$this->periode = (new Periode)->getListe();
$this->exercice = (new Exercice())->getListe();
$this->periode2 = (new Periode)->getListe();
$this->exercice2 = (new Exercice())->getListe();
}
public function index()
{
$prestataire = $this->prestataire->getPrestataireCode( $_SESSION['codePrestataire_C']);
$chemin = $this->menuvue->getChemin('Relevecompteprestaire');
$this->genererVue(array('prestataire' => $prestataire, 'periode' => $this->periode, 'exercice' => $this->exercice, 'periode2' => $this->periode2, 'exercice2' => $this->exercice2, 'chemin' => $chemin));
}
}