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