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(){
$codePays = $this->requete->getParametreFormulaire("codePays");
$codePays = $_SESSION['codePaysSociete']; // $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->ajouterjoursferiers($codePays,$libelle,$libelleEng,$dateFerier,$demiJournee);
}
}

View File

@ -13,28 +13,28 @@ class ControleurAjaxtbmodifierjoursferiers extends Controleur {
}
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(
'ouinonoptionnelle' => $this->ouinonoptionnelle,
'ouinonplafondmodifiable' => $this->ouinonplafondmodifiable,
'joursferiers' => $joursferiers,
'pays' => $pays
));
$this->genererVueAjax(array(
'ouinonoptionnelle' => $this->ouinonoptionnelle,
'ouinonplafondmodifiable' => $this->ouinonplafondmodifiable,
'joursferiers' => $joursferiers,
'pays' => $pays
));
}
public function modifier(){
$id = $this->requete->getParametreFormulaire("id");
$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");
$codePays = $_SESSION['codePaysSociete']; // $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);

View File

@ -41,12 +41,12 @@
</div>
<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">
<span class="input-group-text bg-white border-2 border-end-0">
<i class="fas fa-globe-africa text-muted"></i>
</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); ?>
</select>
</div>

View File

@ -49,14 +49,12 @@
</div>
<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">
<span class="input-group-text bg-white border-2 border-end-0">
<i class="fas fa-globe-africa text-muted"></i>
</span>
<select class="form-control selectpicker border-2 border-start-0"
id="codePays" name="codePays" required
onchange="afficheDonneesTableChoisie('Ajaxtblisterjoursferiers');">
<select class="form-control selectpicker border-2 border-start-0" disabled>
<?php liste_options($pays, $joursferiers['codePays'], true); ?>
</select>
</div>