Import initial du projet Production
This commit is contained in:
36
Controleur/ControleurAjaxmodifierpraticien.php
Normal file
36
Controleur/ControleurAjaxmodifierpraticien.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Medecin.php';
|
||||
require_once 'Modele/Specialite.php';
|
||||
require_once 'Modele/Sexe.php';
|
||||
|
||||
class ControleurAjaxmodifierpraticien extends Controleur
|
||||
{
|
||||
private $medecin;
|
||||
private $specialite;
|
||||
private $sexe;
|
||||
|
||||
public function __construct() {
|
||||
$this->medecin = new Medecin();
|
||||
$this->specialite = new Specialite();
|
||||
$this->sexe = (new Sexe())->getListe();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$idMedecin = $this->requete->getParametreFormulaire("id");
|
||||
|
||||
$medecin = $this->medecin->getunmedecin($idMedecin);
|
||||
|
||||
$specialite = $this->specialite->getListe();
|
||||
|
||||
$corporation = $this->specialite->getListeMetier();
|
||||
|
||||
$this->genererVueAjax(array('medecin' => $medecin,
|
||||
'specialite' => $specialite,
|
||||
'sexe' => $this->sexe,
|
||||
'corporation' => $corporation
|
||||
));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user