Import initial du projet Production
This commit is contained in:
27
Controleur/ControleurSpcollege.php
Normal file
27
Controleur/ControleurSpcollege.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Collegepolice.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
class ControleurSpcollege extends Controleur {
|
||||
private $menuvue;
|
||||
private $spcollege;
|
||||
|
||||
public function __construct() {
|
||||
$this->menuvue = new Menuvueutilisateur();
|
||||
$this->menuvue->getMenuVue("Spcollege");
|
||||
|
||||
$this->spcollege = new Collegepolice();
|
||||
}
|
||||
public function index() {
|
||||
$idCollege = $_SESSION['idCollege'];
|
||||
|
||||
$dj = date("Y-m-d");
|
||||
|
||||
$spcollege = $this->spcollege->getRapportSpCollege($idCollege, $dj);
|
||||
|
||||
$chemin = $this->menuvue->getChemin('Spcollege');
|
||||
|
||||
$this->genererVue(array('spcollege' => $spcollege, 'chemin' => $chemin));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user