34 lines
1.1 KiB
PHP
Executable File
34 lines
1.1 KiB
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Tabmotifecxlusionprestation.php';
|
|
|
|
class ControleurAjaxtbmodifiermotifecxlusionprestation extends Controleur {
|
|
private $motif;
|
|
|
|
public function __construct() {
|
|
$this->motif = new Tabmotifecxlusionprestation();
|
|
}
|
|
|
|
public function index() {
|
|
$id = $this->requete->getParametreFormulaire("id");
|
|
$motifecxlusionprestation = $this->motif->getmotifecxlusionprestation($id);
|
|
|
|
$this->genererVueAjax(array(
|
|
'motifecxlusionprestation' => $motifecxlusionprestation
|
|
));
|
|
}
|
|
|
|
public function modifier(){
|
|
$id = $this->requete->getParametreFormulaire("id");
|
|
|
|
$codeMotifExclusion = $this->requete->getParametreFormulaire("codeMotifExclusion");
|
|
$libelle = $this->requete->getParametreFormulaire("libelle");
|
|
$libelleEng = $this->requete->getParametreFormulaire("libelleEng");
|
|
|
|
$this->motif->modifiermotifecxlusionprestation($codeMotifExclusion,$libelle,$libelleEng,$id);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|