40 lines
1.3 KiB
PHP
Executable File
40 lines
1.3 KiB
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Tabjoursferiers.php';
|
|
|
|
class ControleurAjaxtbmodifierjoursferiers extends Controleur {
|
|
private $joursferiers;
|
|
|
|
public function __construct() {
|
|
$this->joursferiers = new Tabjoursferiers();
|
|
}
|
|
|
|
public function index() {
|
|
$id = $this->requete->getParametreFormulaire("id");
|
|
|
|
$joursferiers = $this->joursferiers->getid($id);
|
|
|
|
$pays = $this->joursferiers->getListePays($joursferiers['codePays']);
|
|
|
|
$this->genererVueAjax(array(
|
|
'joursferiers' => $joursferiers,
|
|
'pays' => $pays
|
|
));
|
|
}
|
|
|
|
public function modifier(){
|
|
$id = $this->requete->getParametreFormulaire("id");
|
|
|
|
$codePays = $this->requete->getParametreFormulaire("codePays");
|
|
$dateFerier = $this->requete->getParametreDate("dateFerier");
|
|
$libelle = $this->requete->getParametreFormulaire("libelle");
|
|
$libelleEng = $this->requete->getParametreFormulaire("libelleEng");
|
|
$demiJournee = $this->requete->getParametreFormulaire("demiJournee");
|
|
|
|
$this->joursferiers->modifierjoursferiers($codePays,$libelle,$libelleEng,$dateFerier,$demiJournee,$id);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|