df
This commit is contained in:
parent
5656e81cfc
commit
c98391c74e
|
|
@ -1,33 +1,69 @@
|
||||||
<form id="formData">
|
<form id="formData" class="container-fluid p-0">
|
||||||
<legend id="titre_formData"><?= _("Ajouter des données") ?></legend>
|
<div class="card border-0 shadow-sm border-start border-4 border-primary" style="border-radius: var(--radius-md);">
|
||||||
<table class="table table-responsive table-condensed">
|
<div class="card-header bg-white py-3 border-bottom">
|
||||||
<tbody>
|
<h6 class="mb-0 fw-bold text-uppercase text-success small">
|
||||||
<tr>
|
<i class="fas fa-calendar-plus me-2"></i><?= _("Ajouter un nouveau jour férié") ?>
|
||||||
<td width="6%" align="center" class="required"><?= _("Libellé Fr") ?></td>
|
</h6>
|
||||||
<td width="30%" ><INPUT class="form-control" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF" ></td>
|
</div>
|
||||||
|
|
||||||
<td width="5%" align="center"><?= _("Libellé Eng") ?></td>
|
<div class="card-body bg-light-50 p-4">
|
||||||
<td colspan="3" ><INPUT class="form-control" TYPE="text" id="libelleEng" NAME="libelleEng"></td>
|
<div class="row g-3 mb-4">
|
||||||
</tr>
|
<div class="col-md-6">
|
||||||
|
<label class="form-label small fw-bold text-muted required"><?= _("Libellé (FR)") ?></label>
|
||||||
<tr>
|
<div class="input-group shadow-xs">
|
||||||
<td width="5%" align="center" class="required">Date</td>
|
<span class="input-group-text bg-white border-2 border-end-0">
|
||||||
<td width="20%" ><INPUT class="form-control datepicker" TYPE="text" id="dateFerier" NAME="dateFerier" required AUTOCOMPLETE="OFF" ></td>
|
<i class="fas fa-tag text-muted"></i>
|
||||||
|
</span>
|
||||||
<td width="5%" align="center" class="required"><?= _("Pays") ?></td>
|
<input type="text" class="form-control border-2 border-start-0" id="libelle" name="libelle" required autocomplete="off">
|
||||||
<td width="20%">
|
</div>
|
||||||
<SELECT onChange="afficheDonneesTableChoisie('Ajaxtblisterjoursferiers');" class="form-select" id="codePays" NAME="codePays" required AUTOCOMPLETE="OFF">
|
</div>
|
||||||
<?php liste_options($pays,$_SESSION['codePaysSociete']); ?>
|
|
||||||
</SELECT>
|
<div class="col-md-6">
|
||||||
</td>
|
<label class="form-label small fw-bold text-muted"><?= _("Libellé (EN)") ?></label>
|
||||||
|
<div class="input-group shadow-xs">
|
||||||
<td width="10%" align="center"><?= _("Demi-journée ?") ?></td>
|
<span class="input-group-text bg-white border-2 border-end-0">
|
||||||
<td width="5%">
|
<i class="fas fa-language text-muted"></i>
|
||||||
<select name="demiJournee" id="demiJournee" class="form-select">
|
</span>
|
||||||
<?= liste_options($ouinonoptionnelle,'1',true) ?>
|
<input type="text" class="form-control border-2 border-start-0" id="libelleEng" name="libelleEng" autocomplete="off">
|
||||||
</select>
|
</div>
|
||||||
</td>
|
</div>
|
||||||
</tr>
|
</div>
|
||||||
</tbody>
|
|
||||||
</table>
|
<div class="row g-3">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<label class="form-label small fw-bold text-muted required"><?= _("Date de l'événement") ?></label>
|
||||||
|
<div class="input-group shadow-xs">
|
||||||
|
<span class="input-group-text bg-white border-2 border-end-0">
|
||||||
|
<i class="fas fa-calendar-alt text-muted"></i>
|
||||||
|
</span>
|
||||||
|
<input type="text" class="form-control border-2 border-start-0 datepicker" id="dateFerier" name="dateFerier" required autocomplete="off">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-5">
|
||||||
|
<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" disabled>
|
||||||
|
<?php liste_options($pays, $_SESSION['codePaysSociete'], true); ?>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-3">
|
||||||
|
<label class="form-label small fw-bold text-muted"><?= _("Demi-journée ?") ?></label>
|
||||||
|
<div class="input-group shadow-xs">
|
||||||
|
<span class="input-group-text bg-white border-2 border-end-0">
|
||||||
|
<i class="fas fa-adjust text-muted"></i>
|
||||||
|
</span>
|
||||||
|
<select name="demiJournee" id="demiJournee" class="form-control selectpicker border-2 border-start-0">
|
||||||
|
<?= liste_options($ouinonoptionnelle, '1', true) ?>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
@ -1,20 +1,40 @@
|
||||||
<form id="formData">
|
<form id="formData" class="container-fluid p-0">
|
||||||
<legend id="titre_formData"><?= _("Ajouter des données") ?></legend>
|
<div class="card border-0 shadow-sm border-start border-4 border-primary" style="border-radius: var(--radius-md);">
|
||||||
<table class="table table-responsive table-condensed">
|
<div class="card-header bg-white py-3 border-bottom">
|
||||||
<tbody>
|
<h6 class="mb-0 fw-bold text-uppercase text-success small">
|
||||||
<tr>
|
<i class="fas fa-plus-circle me-2"></i><?= _("Ajouter un nouveau territoire") ?>
|
||||||
|
</h6>
|
||||||
|
</div>
|
||||||
<td width="5%" align="center" class="required"><?= _("Libellé") ?></td>
|
|
||||||
<td width="30%"><INPUT class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF"></td>
|
<div class="card-body bg-light-50 p-4">
|
||||||
|
<div class="row g-4 align-items-end">
|
||||||
<td width="5%" align="center" class="required"><?= _("Pays") ?>
|
<div class="col-md-7">
|
||||||
<td width="20%">
|
<label class="form-label small fw-bold text-muted required"><?= _("Nom du territoire") ?></label>
|
||||||
<select name="codePays" id="codePays" class="form-select" required AUTOCOMPLETE="OFF">
|
<div class="input-group shadow-xs">
|
||||||
<?= liste_options($pays,'',false) ?>
|
<span class="input-group-text bg-white border-2 border-end-0">
|
||||||
</select>
|
<i class="fas fa-city text-muted"></i>
|
||||||
</td>
|
</span>
|
||||||
</tr>
|
<input type="text"
|
||||||
</tbody>
|
class="form-control border-2 border-start-0 majuscule"
|
||||||
</table>
|
id="libelle"
|
||||||
|
name="libelle"
|
||||||
|
required
|
||||||
|
autocomplete="off">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-5">
|
||||||
|
<label class="form-label small fw-bold text-muted required"><?= _("Pays de rattachement") ?></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 name="codePays" id="codePays" class="form-control selectpicker border-2 border-start-0" required>
|
||||||
|
<?= liste_options($pays, $_SESSION['codePaysSociete'], false) ?>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
@ -1,128 +1,120 @@
|
||||||
<?php
|
<div class="card border-0 shadow-sm overflow-hidden" style="border-radius: 12px;">
|
||||||
$nbreTotal = count($tabjoursferiers);
|
<div class="card-header bg-white py-3 border-bottom d-flex justify-content-between align-items-center">
|
||||||
|
<div class="d-flex align-items-center" style="flex: 1;">
|
||||||
if($nbreTotal < 10){
|
<h6 class="mb-0 fw-bold text-uppercase text-primary small">
|
||||||
$nbreTotal = '0'.$nbreTotal;
|
<i class="fas fa-calendar-alt me-2"></i><?= _("Calendrier des Jours Fériés") ?>
|
||||||
}else{
|
</h6>
|
||||||
$nbreTotal = format_N($nbreTotal);
|
<span class="badge bg-primary-ghost text-primary ms-3 px-3 py-2 rounded-pill fw-bold" id="badge-total">
|
||||||
}
|
0 <?= _("Lignes") ?>
|
||||||
|
</span>
|
||||||
if (est_anglophone()){
|
</div>
|
||||||
if($existeselection){
|
|
||||||
$libbouton = "Uncheck all";
|
<div class="d-flex justify-content-center align-items-center" style="flex: 1;">
|
||||||
}else{
|
<div class="input-group shadow-xs" style="width: 160px;">
|
||||||
$libbouton = "Check all";
|
<span class="input-group-text bg-white border-2 border-end-0 text-muted small fw-bold">
|
||||||
}
|
<i class="fas fa-filter"></i>
|
||||||
}else{
|
</span>
|
||||||
if($existeselection){
|
<input type="number"
|
||||||
$libbouton = "Décocher tous";
|
class="form-control border-2 border-start-0 fw-bold text-primary text-center"
|
||||||
}else{
|
id="annee"
|
||||||
$libbouton = "Cocher tous";
|
name="annee"
|
||||||
}
|
value="<?= $annee_selectionnee ?? date('Y'); ?>"
|
||||||
}
|
min="2020"
|
||||||
|
max="<?= date('Y'); ?>"
|
||||||
?>
|
step="1"
|
||||||
|
onchange="changerAnneeFiltre(this.value);">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="table-buttons" class="d-flex gap-2 justify-content-end" style="flex: 1;"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<?php $superUser = $_SESSION['superUser']; ?>
|
<div class="card-body p-0">
|
||||||
|
<div class="table-responsive">
|
||||||
|
<table id="tableLister" class="table table-hover align-middle mb-0" style="width:100%">
|
||||||
|
<thead class="bg-light text-muted small text-uppercase">
|
||||||
|
<tr>
|
||||||
|
<th class="ps-4 border-0" style="width: 15%;"><?= _("Centre") ?></th>
|
||||||
|
<th class="border-0" style="width: 25%;"><?= _("Date") ?></th>
|
||||||
|
<th class="border-0"><?= _("Libellé du jour") ?></th>
|
||||||
|
<th class="border-0 text-center pe-4" style="width: 15%;"><?= _("Actions") ?></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<?php foreach ($tabjoursferiers as $v):
|
||||||
|
$idData = $this->nettoyer($v['id']);
|
||||||
|
$isDemi = ($this->nettoyer($v['demiJournee']) == "1");
|
||||||
|
|
||||||
|
$libelleBase = est_anglophone() ? $this->nettoyer($v['libelleEng']) : $this->nettoyer($v['libelle']);
|
||||||
|
$dateFerier = $this->nettoyer($v['dateFerier']);
|
||||||
|
$ladate = date('d/m/Y', strtotime($dateFerier));
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
<td class="ps-4 fw-medium text-muted small">
|
||||||
|
<i class="fas fa-building me-1 opacity-50"></i> <?= $this->nettoyer($v['codeSociete']); ?>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<div class="d-flex align-items-center">
|
||||||
|
<div class="bg-primary-ghost text-primary rounded-3 p-2 me-3 text-center" style="min-width: 45px;">
|
||||||
|
<span class="d-block lh-1 fw-bold" style="font-size: 1.1rem;"><?= date('d', strtotime($dateFerier)) ?></span>
|
||||||
|
<span class="small text-uppercase" style="font-size: 0.65rem;"><?= date('M', strtotime($dateFerier)) ?></span>
|
||||||
|
</div>
|
||||||
|
<span class="fw-bold text-dark"><?= $ladate ?></span>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<span class="fw-medium text-dark"><?= $libelleBase ?></span>
|
||||||
|
<?php if($isDemi): ?>
|
||||||
|
<span class="badge rounded-pill bg-warning-subtle text-warning border border-warning-subtle ms-2 small">
|
||||||
|
<i class="fas fa-adjust me-1"></i><?= est_anglophone() ? "Half day" : "Demi-journée" ?>
|
||||||
|
</span>
|
||||||
|
<?php endif; ?>
|
||||||
|
</td>
|
||||||
|
<td class="text-center pe-4">
|
||||||
|
<button type="button"
|
||||||
|
class="btn btn-outline-primary btn-sm px-3 rounded-pill fw-bold shadow-xs"
|
||||||
|
onclick="formModifTableRef(<?= $idData ?>);">
|
||||||
|
<i class="fas fa-edit me-1"></i> <?= _("Modifier") ?>
|
||||||
|
</button>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<table style="margin: auto; width:50%;" class="table-responsive">
|
<script>
|
||||||
<tbody>
|
$(document).ready(function() {
|
||||||
<tr>
|
// Initialisation avec le nom d'export standard
|
||||||
<td width="3%" align="center"><?= _("Année") ?></td>
|
initDataTableReference('#tableLister', 'Jours_Feriers_<?= date("Y") ?>');
|
||||||
<td width="7%" ><INPUT class="form-control" TYPE="number" min="2020" step="1" id="annee" NAME="annee" value="<?= date('Y'); ?>" onchange="afficheDonneesTableChoisie('Ajaxtblisterjoursferiers');"></td>
|
});
|
||||||
|
</script>
|
||||||
<td align="center" width="3%" > <?= _("Pays") ?> </td>
|
|
||||||
<td width="20%">
|
|
||||||
<SELECT onChange="afficheDonneesTableChoisie('Ajaxtblisterjoursferiers');" class="form-select" id="codePays" NAME="codePays">
|
|
||||||
<?php liste_options($pays,$_SESSION['codePaysSociete']); ?>
|
|
||||||
</SELECT>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr style="height:20px;">
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<div id="div_liste_jour">
|
<style>
|
||||||
<table style="margin: auto" class="table-responsive">
|
.bg-primary-ghost { background-color: rgba(33, 46, 83, 0.08) !important; }
|
||||||
<tbody>
|
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
|
||||||
<td><input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbreTotal" name="nbreTotal" value="<?= _("Lignes Total").": ". $nbreTotal; ?>" readonly> </td>
|
|
||||||
</tbody>
|
#tableLister thead th {
|
||||||
</table>
|
padding-top: 15px;
|
||||||
<input type="hidden" id="total" value="<?= $nbreTotal; ?>">
|
padding-bottom: 15px;
|
||||||
<input type="hidden" id="selectionne" value="<?= $existeselection ? 'true' : 'false'; ?>">
|
background-color: #f8fafc;
|
||||||
<table id="tableLister" class="table table-striped table-bordered table-hover table-condensed table-responsive">
|
border-bottom: 2px solid #edf2f7 !important;
|
||||||
<thead>
|
}
|
||||||
<tr>
|
|
||||||
<th class="text-center"><?= _("Centre gestion") ?></th>
|
#tableLister tbody td {
|
||||||
<th class="text-center">ID</th>
|
height: 60px; /* Règle d'or Neutral Pro */
|
||||||
<th class="text-center">Date</th>
|
border-bottom: 1px solid #f1f4f6;
|
||||||
<th class="text-center"><?= _("Libellé") ?></th>
|
}
|
||||||
<!--
|
|
||||||
<th class="text-center">
|
/* Style spécifique pour l'input d'année dans le header */
|
||||||
<button type="button" style="font-size:10pt; font-weight: bold; width:100%; background-color:#4caf50; color: white;" class="form-control btn" onclick="javascript:cocherDecocherTout($('#fichier_lister').val());" > <?= $libbouton; ?> </button>
|
#annee.form-control {
|
||||||
</th>
|
border-color: #dee2e6;
|
||||||
-->
|
transition: all 0.2s;
|
||||||
<th class="text-center"><?= _("Modifier") ?></th>
|
}
|
||||||
<!--
|
#annee.form-control:focus {
|
||||||
<th class="text-center">Supprimer</th>
|
border-color: #212e53;
|
||||||
-->
|
box-shadow: none;
|
||||||
</tr>
|
}
|
||||||
</thead>
|
.text-primary { color: #212e53 !important; }
|
||||||
<tbody>
|
</style>
|
||||||
<?php foreach ($tabjoursferiers as $v):
|
|
||||||
$idData = $this->nettoyer($v['id']);
|
|
||||||
|
|
||||||
if (est_anglophone()){
|
|
||||||
if($this->nettoyer($v['demiJournee'])=="1"){
|
|
||||||
$libelle = $this->nettoyer($v['libelleEng'])." (half day)";
|
|
||||||
}else{
|
|
||||||
$libelle = $this->nettoyer($v['libelleEng']);
|
|
||||||
}
|
|
||||||
|
|
||||||
}else{
|
|
||||||
if($this->nettoyer($v['demiJournee'])=="1"){
|
|
||||||
$libelle = $this->nettoyer($v['libelle'])." (demi-journée)";
|
|
||||||
}else{
|
|
||||||
$libelle = $this->nettoyer($v['libelle']);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
$dateFerier = $this->nettoyer($v['dateFerier']);
|
|
||||||
$day = jour_fr(date('D', strtotime($dateFerier)));
|
|
||||||
$jour = date('d', strtotime($dateFerier));
|
|
||||||
$mois = mois_court_fr(date('F', strtotime($dateFerier)));
|
|
||||||
$ladate = $day." ".$jour."-".$mois."-".date('Y', strtotime($dateFerier));
|
|
||||||
?>
|
|
||||||
<tr valign="top">
|
|
||||||
<td class="text-center" width="5%"><?= $this->nettoyer($v['codeSociete']);; ?></td>
|
|
||||||
<td class="text-center" width="5%"><?= $this->nettoyer($v['id']);; ?></td>
|
|
||||||
<td class="text-center" width="15%"><?= $ladate; ?></td>
|
|
||||||
<td class="text-left" width="55%"><?= $libelle; ?></td>
|
|
||||||
<!--
|
|
||||||
<td class="text-center" width="10%">
|
|
||||||
<?php
|
|
||||||
if($this->nettoyer($v['choix'] == '0')){
|
|
||||||
$check ='';
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
$check = 'checked';
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<INPUT TYPE="checkbox" class="custom-control-input" style="width: 2rem;height: 2rem;" id="choix" NAME="choix" value="<?=(($this->nettoyer($v['choix'])==0)? 0 : 1);?>" onclick="if (this.checked) this.value=1; else this.value=0;cocherDecocherUn($('#fichier_lister').val(),<?= $idData; ?>);" <?= $check;?>>
|
|
||||||
</td>
|
|
||||||
-->
|
|
||||||
<td class="text-center" width="10%">
|
|
||||||
<button style="width:100%" class ="form-control btn btn-primary" type="button" id="btn-editer" name="Modifier"
|
|
||||||
onclick="JAVASCRIPT:formModifTableRef(<?= $idData; ?>);" ><?= _("Modifier") ?></button>
|
|
||||||
</td>
|
|
||||||
<!--
|
|
||||||
<td class="text-center" width="10%">
|
|
||||||
<button style="width:100%" class = "form-control btn btn-danger" type="button" id="btn-supprimer" name="Supprimer"
|
|
||||||
onclick="JAVASCRIPT:supprimeLigneListe(<?= $idData; ?>,'<?= $superUser; ?>')">Supprimer</button>
|
|
||||||
</td>
|
|
||||||
-->
|
|
||||||
</tr>
|
|
||||||
<?php endforeach; ?>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
|
|
@ -1,86 +1,62 @@
|
||||||
<?php
|
<div class="card border-0 shadow-sm overflow-hidden" style="border-radius: var(--radius-md);">
|
||||||
$nbreTotal = count($ville);
|
<div class="card-header bg-white py-3 border-bottom d-flex justify-content-between align-items-center">
|
||||||
|
<div class="d-flex align-items-center">
|
||||||
if($nbreTotal < 10){
|
<h6 class="mb-0 fw-bold text-uppercase text-primary small">
|
||||||
$nbreTotal = '0'.$nbreTotal;
|
<i class="fas fa-city me-2"></i><?= _("Référentiel des Territoires") ?>
|
||||||
}else{
|
</h6>
|
||||||
$nbreTotal = format_N($nbreTotal);
|
<span class="badge bg-primary-ghost text-primary ms-3 px-3 py-2 rounded-pill fw-bold" id="badge-total">
|
||||||
}
|
0 <?= _("Lignes") ?>
|
||||||
|
</span>
|
||||||
if (est_anglophone()){
|
</div>
|
||||||
if($existeselection){
|
<div id="table-buttons" class="d-flex gap-2"></div>
|
||||||
$libbouton = "Uncheck all";
|
</div>
|
||||||
}else{
|
|
||||||
$libbouton = "Check all";
|
|
||||||
}
|
|
||||||
}else{
|
|
||||||
if($existeselection){
|
|
||||||
$libbouton = "Décocher tous";
|
|
||||||
}else{
|
|
||||||
$libbouton = "Cocher tous";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<?php $superUser = $_SESSION['superUser']; ?>
|
<div class="card-body p-0">
|
||||||
|
<div class="table-responsive">
|
||||||
|
<table id="tableLister" class="table table-hover align-middle mb-0" style="width:100%">
|
||||||
|
<thead class="bg-light text-muted small text-uppercase">
|
||||||
|
<tr>
|
||||||
|
<th class="ps-4 border-0"><?= _("Centre") ?></th>
|
||||||
|
<th class="border-0 text-center"><?= _("Code") ?></th>
|
||||||
|
<th class="border-0"><?= _("Nom de la Ville") ?></th>
|
||||||
|
<th class="border-0"><?= _("Pays") ?></th>
|
||||||
|
<th class="border-0 text-center pe-4"><?= _("Actions") ?></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<?php foreach ($ville as $v):
|
||||||
|
$idData = $this->nettoyer($v['id']);
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
<td class="ps-4 fw-medium text-muted small"><?= $this->nettoyer($v['codeSociete']) ?></td>
|
||||||
|
<td class="text-center">
|
||||||
|
<span class="badge bg-light text-dark border fw-bold small"><?= $this->nettoyer($v['codeVille']) ?></span>
|
||||||
|
</td>
|
||||||
|
<td class="fw-bold text-dark"><?= $this->nettoyer($v['libelle']) ?></td>
|
||||||
|
<td>
|
||||||
|
<i class="fas fa-globe-africa me-1 text-secondary opacity-50 small"></i>
|
||||||
|
<?= $this->nettoyer($v['pays']) ?>
|
||||||
|
</td>
|
||||||
|
<td class="text-center pe-4">
|
||||||
|
<button type="button"
|
||||||
|
class="btn btn-outline-primary btn-sm px-3 rounded-pill fw-bold shadow-xs"
|
||||||
|
onclick="formModifTableRef(<?= $idData ?>);">
|
||||||
|
<i class="fas fa-edit me-1"></i> <?= _("Modifier") ?>
|
||||||
|
</button>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<table style="margin: auto" class="table-responsive">
|
<style>
|
||||||
<tbody>
|
/* Styles spécifiques Neutral Pro pour la cohérence */
|
||||||
<td><input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbreTotal" name="nbreTotal" value="<?= _("Lignes Total").": ". $nbreTotal; ?>" readonly> </td>
|
.bg-primary-ghost { background-color: rgba(33, 46, 83, 0.08) !important; }
|
||||||
</tbody>
|
#tableLister thead th { padding-top: 15px; padding-bottom: 15px; font-size: 0.75rem; letter-spacing: 0.5px; }
|
||||||
</table>
|
#tableLister tbody td { border-color: #f1f4f6; height: 60px; }
|
||||||
<input type="hidden" id="total" value="<?= $nbreTotal; ?>">
|
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
|
||||||
<table id="tableLister" class="table table-striped table-bordered table-hover table-condensed table-responsive compact">
|
.text-primary { color: #212e53 !important; }
|
||||||
<thead>
|
</style>
|
||||||
<tr>
|
|
||||||
<th class="text-center"><?= _("Centre gestion") ?></th>
|
|
||||||
<th class="text-center">Code</th>
|
|
||||||
<th class="text-center"><?= _("Nom") ?></th>
|
|
||||||
<th class="text-center"><?= _("Pays") ?></th>
|
|
||||||
<!--
|
|
||||||
<th class="text-center">
|
|
||||||
<button type="button" style="font-size:10pt; font-weight: bold; width:100%; background-color:#4caf50; color: white;" class="form-control btn" onclick="javascript:cocherDecocherTout($('#fichier_lister').val());" > <?= $libbouton; ?> </button>
|
|
||||||
</th>
|
|
||||||
-->
|
|
||||||
<th class="text-center"><?= _("Modifier") ?></th>
|
|
||||||
<!--
|
|
||||||
<th class="text-center">Supprimer</th>
|
|
||||||
-->
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<?php foreach ($ville as $v):
|
|
||||||
$idData = $this->nettoyer($v['id']);
|
|
||||||
?>
|
|
||||||
<tr valign="top">
|
|
||||||
<td class="text-center" width="15%"><?= $this->nettoyer($v['codeSociete']) ?></td>
|
|
||||||
<td class="text-center" width="10%"><?= $this->nettoyer($v['codeVille']) ?></td>
|
|
||||||
<td class="text-left" width="35%"><?= $this->nettoyer($v['libelle']) ?></td>
|
|
||||||
<td class="text-left" width="35%"><?= $this->nettoyer($v['pays']) ?></td>
|
|
||||||
<!--
|
|
||||||
<td class="text-center" width="10%">
|
|
||||||
<?php
|
|
||||||
if($this->nettoyer($v['choix'] == '0')){
|
|
||||||
$check ='';
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
$check = 'checked';
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<INPUT TYPE="checkbox" class="custom-control-input" style="width: 2rem;height: 2rem;" id="choix" NAME="choix" value="<?=(($this->nettoyer($v['choix'])==0)? 0 : 1);?>" onclick="if (this.checked) this.value=1; else this.value=0;cocherDecocherUn($('#fichier_lister').val(),<?= $idData; ?>);" <?= $check;?>>
|
|
||||||
</td>
|
|
||||||
-->
|
|
||||||
<td class="text-center" width="10%">
|
|
||||||
<button style="width:100%" class ="form-control btn btn-primary" type="button" id="btn-editer" name="Modifier"
|
|
||||||
onclick="JAVASCRIPT:formModifTableRef(<?= $idData; ?>);" ><?= _("Modifier") ?></button>
|
|
||||||
</td>
|
|
||||||
<!--
|
|
||||||
<td class="text-center" width="10%">
|
|
||||||
<button style="width:100%" class = "form-control btn btn-danger" type="button" id="btn-supprimer" name="Supprimer"
|
|
||||||
onclick="JAVASCRIPT:supprimeLigneListe(<?= $idData; ?>,'<?= $superUser; ?>')">Supprimer</button>
|
|
||||||
</td>
|
|
||||||
-->
|
|
||||||
</tr>
|
|
||||||
<?php endforeach; ?>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
|
|
@ -1,35 +1,77 @@
|
||||||
<form id="formData">
|
<form id="formData" class="container-fluid p-0">
|
||||||
<legend id="titre_formData"><?= _("Modification des données") ?></legend>
|
<input type="hidden" id="id" name="id" value="<?= $joursferiers['id'] ?>">
|
||||||
<INPUT class="sr-only" TYPE="text" id = "id" name = "id" value="<?=$joursferiers['id']?>">
|
|
||||||
<table class="table table-responsive table-condensed">
|
<div class="card border-0 shadow-sm border-start border-4 border-primary" style="border-radius: var(--radius-md);">
|
||||||
<tbody>
|
<div class="card-header bg-white py-3 border-bottom">
|
||||||
<tr>
|
<h6 class="mb-0 fw-bold text-uppercase text-warning small">
|
||||||
<td width="6%" align="center" class="required"><?= _("Libellé Fr") ?></td>
|
<i class="fas fa-calendar-check me-2"></i><?= _("Modification des données du Jour Férié") ?>
|
||||||
<td width="30%" ><INPUT class="form-control" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF" autofocus value="<?= $this->nettoyer($joursferiers['libelle']); ?>"></td>
|
</h6>
|
||||||
|
</div>
|
||||||
<td width="5%" align="center"><?= _("Libellé Eng") ?></td>
|
|
||||||
<td colspan="3" ><INPUT class="form-control" TYPE="text" id="libelleEng" NAME="libelleEng" value="<?= $this->nettoyer($joursferiers['libelleEng']); ?>"></td>
|
<div class="card-body bg-light-50 p-4">
|
||||||
</tr>
|
<div class="row g-3 mb-4">
|
||||||
|
<div class="col-md-6">
|
||||||
<tr>
|
<label class="form-label small fw-bold text-muted required"><?= _("Libellé (FR)") ?></label>
|
||||||
<td width="5%" align="center" class="required">Date</td>
|
<div class="input-group shadow-xs">
|
||||||
<td width="20%" ><INPUT class="form-control datepicker" TYPE="text" id="dateFerier" NAME="dateFerier" required AUTOCOMPLETE="OFF" value="<?= dateLang($this->nettoyer($joursferiers['dateFerier'])) ?>"></td>
|
<span class="input-group-text bg-white border-2 border-end-0">
|
||||||
|
<i class="fas fa-tag text-muted"></i>
|
||||||
<td width="5%" align="center" class="required"><?= _("Pays") ?></td>
|
</span>
|
||||||
<td width="20%">
|
<input type="text" class="form-control border-2 border-start-0"
|
||||||
<SELECT onChange="afficheDonneesTableChoisie('Ajaxtblisterjoursferiers');" class="form-select" id="codePays" NAME="codePays" required AUTOCOMPLETE="OFF">
|
id="libelle" name="libelle" required autocomplete="off"
|
||||||
<?php liste_options($pays,$joursferiers['codePays']); ?>
|
value="<?= $this->nettoyer($joursferiers['libelle']); ?>">
|
||||||
</SELECT>
|
</div>
|
||||||
</td>
|
</div>
|
||||||
|
|
||||||
<td width="10%" align="center"><?= _("Demi-journée ?") ?></td>
|
<div class="col-md-6">
|
||||||
<td width="5%">
|
<label class="form-label small fw-bold text-muted"><?= _("Libellé (EN)") ?></label>
|
||||||
<select name="demiJournee" id="demiJournee" class="form-select">
|
<div class="input-group shadow-xs">
|
||||||
<?= liste_options($ouinonplafondmodifiable,$this->nettoyer($joursferiers['demiJournee']),true) ?>
|
<span class="input-group-text bg-white border-2 border-end-0">
|
||||||
</select>
|
<i class="fas fa-language text-muted"></i>
|
||||||
</td>
|
</span>
|
||||||
|
<input type="text" class="form-control border-2 border-start-0"
|
||||||
</tr>
|
id="libelleEng" name="libelleEng" autocomplete="off"
|
||||||
</tbody>
|
value="<?= $this->nettoyer($joursferiers['libelleEng']); ?>">
|
||||||
</table>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row g-3">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<label class="form-label small fw-bold text-muted required"><?= _("Date de l'événement") ?></label>
|
||||||
|
<div class="input-group shadow-xs">
|
||||||
|
<span class="input-group-text bg-white border-2 border-end-0">
|
||||||
|
<i class="fas fa-calendar-alt text-muted"></i>
|
||||||
|
</span>
|
||||||
|
<input type="text" class="form-control border-2 border-start-0 datepicker"
|
||||||
|
id="dateFerier" name="dateFerier" required autocomplete="off"
|
||||||
|
value="<?= dateLang($this->nettoyer($joursferiers['dateFerier'])) ?>">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-5">
|
||||||
|
<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" disabled>
|
||||||
|
<?php liste_options($pays, $joursferiers['codePays'], true); ?>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-3">
|
||||||
|
<label class="form-label small fw-bold text-muted"><?= _("Demi-journée ?") ?></label>
|
||||||
|
<div class="input-group shadow-xs">
|
||||||
|
<span class="input-group-text bg-white border-2 border-end-0">
|
||||||
|
<i class="fas fa-adjust text-muted"></i>
|
||||||
|
</span>
|
||||||
|
<select name="demiJournee" id="demiJournee" class="form-control selectpicker border-2 border-start-0">
|
||||||
|
<?= liste_options($ouinonplafondmodifiable, $this->nettoyer($joursferiers['demiJournee']), true) ?>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
@ -1,22 +1,58 @@
|
||||||
<form id="formData">
|
<form id="formData" class="container-fluid p-0">
|
||||||
<legend id="titre_formData"><?= _("Modification des données") ?></legend>
|
<input type="hidden" id="id" name="id" value="<?= $ville['id'] ?>">
|
||||||
<INPUT class="sr-only" TYPE="text" id = "id" name = "id" value="<?=$ville['id']?>">
|
|
||||||
<table class="table table-responsive table-condensed">
|
<div class="card border-0 shadow-sm border-start border-4 border-primary" style="border-radius: var(--radius-md);">
|
||||||
<tbody>
|
<div class="card-header bg-white py-3 border-bottom">
|
||||||
<tr>
|
<h6 class="mb-0 fw-bold text-uppercase text-warning small">
|
||||||
<td width="5%" align="center">Code</td>
|
<i class="fas fa-edit me-2"></i><?= _("Modification des données du Territoire") ?>
|
||||||
<td width="10%" ><INPUT class="form-control majuscule" TYPE="text" id="codeVille" NAME="codeVille" value="<?= $this->nettoyer($ville['codeVille']); ?>" disabled></td>
|
</h6>
|
||||||
|
</div>
|
||||||
<td width="5%" align="center" class="required"><?= _("Libellé") ?></td>
|
|
||||||
<td width="30%" ><INPUT class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF" value="<?= $this->nettoyer($ville['libelle']); ?>" autofocus></td>
|
<div class="card-body bg-light-50 p-4">
|
||||||
|
<div class="row g-4 align-items-end">
|
||||||
|
<div class="col-md-2">
|
||||||
|
<label class="form-label small fw-bold text-muted"><?= _("Code") ?></label>
|
||||||
|
<div class="input-group shadow-xs">
|
||||||
|
<span class="input-group-text bg-light border-2 border-end-0">
|
||||||
|
<i class="fas fa-barcode text-muted"></i>
|
||||||
|
</span>
|
||||||
|
<input type="text"
|
||||||
|
class="form-control border-2 border-start-0 majuscule fw-bold text-center"
|
||||||
|
id="codeVille"
|
||||||
|
name="codeVille"
|
||||||
|
value="<?= $this->nettoyer($ville['codeVille']); ?>"
|
||||||
|
disabled>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<td width="5%" align="center" class="required">Type</td>
|
<div class="col-md-5">
|
||||||
<td width="20%">
|
<label class="form-label small fw-bold text-muted required"><?= _("Nom du Territoire") ?></label>
|
||||||
<select name="codePays" id="codePays" class="form-select" required AUTOCOMPLETE="OFF">
|
<div class="input-group shadow-xs">
|
||||||
<?= liste_options($pays,$this->nettoyer($ville['codePays']),true) ?>
|
<span class="input-group-text bg-white border-2 border-end-0">
|
||||||
</select>
|
<i class="fas fa-city text-muted"></i>
|
||||||
</td>
|
</span>
|
||||||
</tr>
|
<input type="text"
|
||||||
</tbody>
|
class="form-control border-2 border-start-0 majuscule"
|
||||||
</table>
|
id="libelle"
|
||||||
|
name="libelle"
|
||||||
|
required
|
||||||
|
autocomplete="off"
|
||||||
|
value="<?= $this->nettoyer($ville['libelle']); ?>">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-5">
|
||||||
|
<label class="form-label small fw-bold text-muted required"><?= _("Pays de rattachement") ?></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 name="codePays" id="codePays" class="form-control selectpicker border-2 border-start-0" required>
|
||||||
|
<?= liste_options($pays, $this->nettoyer($ville['codePays']), true) ?>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
Loading…
Reference in New Issue
Block a user