41 lines
1.0 KiB
PHP
41 lines
1.0 KiB
PHP
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Tarifsactes.php';
|
|
|
|
class ControleurAjaxnouveautarifacte extends Controleur {
|
|
private $tarif;
|
|
|
|
public function __construct() {
|
|
$this->tarif = new Tarifsactes();
|
|
}
|
|
|
|
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 creertarifactes()
|
|
{
|
|
$libelle = $this->requete->getParametreFormulaire("libelle");
|
|
$libelleEng = $this->requete->getParametreFormulaire("libelleEng");
|
|
|
|
$this->tarif->creertarifactes($libelle, $libelleEng);
|
|
}
|
|
|
|
|
|
public function supprimer()
|
|
{
|
|
$idTarif = $this->requete->getParametreFormulaire("idTarif");
|
|
|
|
$this->tarif->supprimer($idTarif);
|
|
}
|
|
|
|
} |