Collegepolice
This commit is contained in:
25
Controleur/ControleurCollegepolice.php
Normal file
25
Controleur/ControleurCollegepolice.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Collegepolice.php';
|
||||
require_once 'Modele/Police.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
class ControleurCollegepolice extends Controleur {
|
||||
private $college;
|
||||
private $police;
|
||||
public function __construct() {
|
||||
$this->menuvue = new Menuvueutilisateur();
|
||||
$this->menuvue->getMenuVue("Collegepolice");
|
||||
|
||||
$this->college = new Collegepolice();
|
||||
$this->police = new Police();
|
||||
}
|
||||
public function index() {
|
||||
$idPolice = $_SESSION['idPolice_C'];
|
||||
$police = $this->police->getPoliceIdSimple($idPolice);
|
||||
$colleges = $this->college->getCollegesPolice($idPolice);
|
||||
$totalcollege = $this->college->getTotaldcollege($idPolice);
|
||||
$this->genererVue(array('police' => $police, 'colleges' => $colleges, 'totalcollege' => $totalcollege));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user