dfg
This commit is contained in:
parent
f1bf5807f2
commit
99e9874433
|
|
@ -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);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user