41 lines
1.0 KiB
PHP
Executable File
41 lines
1.0 KiB
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Tarifsmedicaments.php';
|
|
|
|
class ControleurAjaxnouveautarifmedicament extends Controleur {
|
|
private $tarif;
|
|
|
|
public function __construct() {
|
|
$this->tarif = new Tarifsmedicaments();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
}
|
|
|
|
public function enregistrermodif()
|
|
{
|
|
$idTarif = $this->requete->getParametreFormulaire("idTarif");
|
|
$libelle = $this->requete->getParametreFormulaire("libelle");
|
|
$libelleEng = $this->requete->getParametreFormulaire("libelleEng");
|
|
|
|
$this->tarif->enregistrermodif($idTarif, $libelle, $libelleEng);
|
|
}
|
|
|
|
public function creertarifmedicaments()
|
|
{
|
|
$libelle = $this->requete->getParametreFormulaire("libelle");
|
|
$libelleEng = $this->requete->getParametreFormulaire("libelleEng");
|
|
|
|
$this->tarif->creertarifmedicaments($libelle, $libelleEng);
|
|
}
|
|
|
|
|
|
public function supprimer()
|
|
{
|
|
$idTarif = $this->requete->getParametreFormulaire("idTarif");
|
|
|
|
$this->tarif->supprimer($idTarif);
|
|
}
|
|
|
|
} |