30 lines
799 B
PHP
Executable File
30 lines
799 B
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Prescription_temp.php';
|
|
|
|
class ControleurAjaxsubstitutionmedicament extends Controleur {
|
|
private $prescription;
|
|
|
|
public function __construct() {
|
|
$this->prescription = new Prescription_temp();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
$idMedicament = $this->requete->getParametreFormulaire("idMedicament");
|
|
|
|
$medicament = $this->prescription->getmedicament($idMedicament);
|
|
|
|
$this->genererVueAjax(array('medicament' => $medicament));
|
|
}
|
|
|
|
public function substituermedicament()
|
|
{
|
|
$idMedicament = $this->requete->getParametreFormulaire("idMedicament");
|
|
|
|
$this->prescription->annulersubstitutionmedicament($idMedicament);
|
|
|
|
// $this->executerAction("index");
|
|
}
|
|
|
|
} |