Import initial du projet prestation
This commit is contained in:
35
Controleur/ControleurAjaxtbmodifiertypeaffection.php
Normal file
35
Controleur/ControleurAjaxtbmodifiertypeaffection.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Tabtypeaffection.php';
|
||||
|
||||
class ControleurAjaxtbmodifiertypeaffection extends Controleur {
|
||||
private $typea;
|
||||
|
||||
public function __construct() {
|
||||
$this->typea = new Tabtypeaffection();
|
||||
}
|
||||
|
||||
public function index() {
|
||||
$id = $this->requete->getParametreFormulaire("id");
|
||||
$typea = $this->typea->gettypeaffection($id);
|
||||
|
||||
$this->genererVueAjax(array(
|
||||
'typeaffection' => $typea
|
||||
));
|
||||
}
|
||||
|
||||
public function modifier(){
|
||||
$id = $this->requete->getParametreFormulaire("id");
|
||||
|
||||
$codeTypeAffection = strtoupper($this->requete->getParametreFormulaire("codeTypeAffection"));
|
||||
$libelle = strtoupper($this->requete->getParametreFormulaire("libelle"));
|
||||
$libelleEng = $this->requete->getParametreFormulaire("libelleEng");
|
||||
$maladieChronique = $this->requete->getParametreFormulaire("maladieChronique");
|
||||
|
||||
$this->typea->modifiertypeaffection($codeTypeAffection,$libelle,$libelleEng,$maladieChronique,$id);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user