This commit is contained in:
KONE SOREL 2026-03-10 16:28:48 +00:00
parent f1bf5807f2
commit 99e9874433
4 changed files with 20 additions and 23 deletions

View File

@ -28,14 +28,13 @@ class ControleurAjaxtbajouterjoursferiers extends Controleur {
public function ajouter(){ public function ajouter(){
$codePays = $this->requete->getParametreFormulaire("codePays"); $codePays = $_SESSION['codePaysSociete']; // $this->requete->getParametreFormulaire("codePays");
$dateFerier = $this->requete->getParametreDate("dateFerier"); $dateFerier = $this->requete->getParametreDate("dateFerier");
$libelle = $this->requete->getParametreFormulaire("libelle"); $libelle = $this->requete->getParametreFormulaire("libelle");
$libelleEng = $this->requete->getParametreFormulaire("libelleEng"); $libelleEng = $this->requete->getParametreFormulaire("libelleEng");
$demiJournee = $this->requete->getParametreFormulaire("demiJournee"); $demiJournee = $this->requete->getParametreFormulaire("demiJournee");
$this->joursferiers->ajouterjoursferiers($codePays,$libelle,$libelleEng,$dateFerier,$demiJournee); $this->joursferiers->ajouterjoursferiers($codePays,$libelle,$libelleEng,$dateFerier,$demiJournee);
} }
} }

View File

@ -13,28 +13,28 @@ class ControleurAjaxtbmodifierjoursferiers extends Controleur {
} }
public function index() { public function index() {
$id = $this->requete->getParametreFormulaire("id"); $id = $this->requete->getParametreFormulaire("id");
$joursferiers = $this->joursferiers->getid($id); $joursferiers = $this->joursferiers->getid($id);
$pays = $this->joursferiers->getListePays($joursferiers['codePays']); $pays = $this->joursferiers->getListePays($joursferiers['codePays']);
$this->genererVueAjax(array( $this->genererVueAjax(array(
'ouinonoptionnelle' => $this->ouinonoptionnelle, 'ouinonoptionnelle' => $this->ouinonoptionnelle,
'ouinonplafondmodifiable' => $this->ouinonplafondmodifiable, 'ouinonplafondmodifiable' => $this->ouinonplafondmodifiable,
'joursferiers' => $joursferiers, 'joursferiers' => $joursferiers,
'pays' => $pays 'pays' => $pays
)); ));
} }
public function modifier(){ public function modifier(){
$id = $this->requete->getParametreFormulaire("id"); $id = $this->requete->getParametreFormulaire("id");
$codePays = $this->requete->getParametreFormulaire("codePays"); $codePays = $_SESSION['codePaysSociete']; // $this->requete->getParametreFormulaire("codePays");
$dateFerier = $this->requete->getParametreDate("dateFerier"); $dateFerier = $this->requete->getParametreDate("dateFerier");
$libelle = $this->requete->getParametreFormulaire("libelle"); $libelle = $this->requete->getParametreFormulaire("libelle");
$libelleEng = $this->requete->getParametreFormulaire("libelleEng"); $libelleEng = $this->requete->getParametreFormulaire("libelleEng");
$demiJournee = $this->requete->getParametreFormulaire("demiJournee"); $demiJournee = $this->requete->getParametreFormulaire("demiJournee");
$this->joursferiers->modifierjoursferiers($codePays,$libelle,$libelleEng,$dateFerier,$demiJournee,$id); $this->joursferiers->modifierjoursferiers($codePays,$libelle,$libelleEng,$dateFerier,$demiJournee,$id);

View File

@ -41,12 +41,12 @@
</div> </div>
<div class="col-md-5"> <div class="col-md-5">
<label class="form-label small fw-bold text-muted required"><?= _("Pays") ?></label> <label class="form-label small fw-bold text-muted"><?= _("Pays") ?></label>
<div class="input-group shadow-xs"> <div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"> <span class="input-group-text bg-white border-2 border-end-0">
<i class="fas fa-globe-africa text-muted"></i> <i class="fas fa-globe-africa text-muted"></i>
</span> </span>
<select class="form-select border-2 border-start-0" id="codePays" name="codePays" disabled> <select class="form-select border-2 border-start-0" disabled>
<?php liste_options($pays, $_SESSION['codePaysSociete'], true); ?> <?php liste_options($pays, $_SESSION['codePaysSociete'], true); ?>
</select> </select>
</div> </div>

View File

@ -49,14 +49,12 @@
</div> </div>
<div class="col-md-5"> <div class="col-md-5">
<label class="form-label small fw-bold text-muted required"><?= _("Pays") ?></label> <label class="form-label small fw-bold text-muted"><?= _("Pays") ?></label>
<div class="input-group shadow-xs"> <div class="input-group shadow-xs">
<span class="input-group-text bg-white border-2 border-end-0"> <span class="input-group-text bg-white border-2 border-end-0">
<i class="fas fa-globe-africa text-muted"></i> <i class="fas fa-globe-africa text-muted"></i>
</span> </span>
<select class="form-control selectpicker border-2 border-start-0" <select class="form-control selectpicker border-2 border-start-0" disabled>
id="codePays" name="codePays" required
onchange="afficheDonneesTableChoisie('Ajaxtblisterjoursferiers');">
<?php liste_options($pays, $joursferiers['codePays'], true); ?> <?php liste_options($pays, $joursferiers['codePays'], true); ?>
</select> </select>
</div> </div>