51 lines
615 B
PHP
Executable File
51 lines
615 B
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Prescription.php';
|
|
|
|
class ControleurAjaxchargermedicamentsubstitution extends Controleur {
|
|
private $prescription;
|
|
|
|
public function __construct() {
|
|
$this->prescription = new Prescription();
|
|
}
|
|
|
|
public function index() {
|
|
|
|
$libelle = $this->requete->getParametreFormulaire("libelle");
|
|
|
|
|
|
$medicaments = $this->prescription->getmedicamentfiltreSubstitution($libelle);
|
|
|
|
|
|
$this->genererVueAjax(array('medicaments' => $medicaments));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|