sd
This commit is contained in:
parent
de5a9c3a25
commit
5656e81cfc
|
|
@ -1,33 +1,65 @@
|
||||||
<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 titre / civilité") ?>
|
||||||
<td width="10%" align="center" class="required">Code</td>
|
</h6>
|
||||||
<td width="10%" ><INPUT class="form-control majuscule" TYPE="text" id="codeTitre" NAME="codeTitre" required AUTOCOMPLETE="OFF" autofocus ></td>
|
</div>
|
||||||
|
|
||||||
<td width="10%" align="center" class="required"><?= _("Libellé Fr") ?></td>
|
<div class="card-body bg-light-50 p-4">
|
||||||
<td width="20%" ><INPUT class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF" ></td>
|
<div class="row g-3 mb-4">
|
||||||
|
<div class="col-md-2">
|
||||||
<td width="10%" align="center">Titre Courrier FR</td>
|
<label class="form-label small fw-bold text-muted required"><?= _("Code") ?></label>
|
||||||
<td width="15%" ><INPUT class="form-control majuscule" TYPE="text" id="titreCourrier" NAME="titreCourrier"></td>
|
<div class="input-group shadow-xs">
|
||||||
|
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-barcode text-muted"></i></span>
|
||||||
</tr>
|
<input type="text" class="form-control border-2 border-start-0 majuscule fw-bold" id="codeTitre" name="codeTitre" required autocomplete="off">
|
||||||
<tr>
|
</div>
|
||||||
<td width="10%" align="center"> <?= _("Type Personne") ?> </td>
|
</div>
|
||||||
<td width="10%" >
|
|
||||||
<select class="form-select" id="codeTypePersonne" NAME="codeTypePersonne" autofocus>
|
<div class="col-md-5">
|
||||||
<?php liste_options($typepersonne,""); ?>
|
<label class="form-label small fw-bold text-muted required"><?= _("Libellé (FR)") ?></label>
|
||||||
</SELECT>
|
<div class="input-group shadow-xs">
|
||||||
</td>
|
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-user-tag text-muted"></i></span>
|
||||||
|
<input type="text" class="form-control border-2 border-start-0 majuscule" id="libelle" name="libelle" required autocomplete="off">
|
||||||
<td width="10%" align="center"><?= _("Libellé Eng") ?></td>
|
</div>
|
||||||
<td width="20%" ><INPUT class="form-control majuscule" TYPE="text" id="libelleEng" NAME="libelleEng"></td>
|
</div>
|
||||||
|
|
||||||
<td width="10%" align="center">Titre Courrier ENG</td>
|
<div class="col-md-5">
|
||||||
<td width="15%" ><INPUT class="form-control majuscule" TYPE="text" id="titreCourrierEng" NAME="titreCourrierEng"></td>
|
<label class="form-label small fw-bold text-muted"><?= _("Titre sur Courrier (FR)") ?></label>
|
||||||
|
<div class="input-group shadow-xs">
|
||||||
</tr>
|
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-envelope-open-text text-muted"></i></span>
|
||||||
</tbody>
|
<input type="text" class="form-control border-2 border-start-0 majuscule" id="titreCourrier" name="titreCourrier" autocomplete="off">
|
||||||
</table>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row g-3">
|
||||||
|
<div class="col-md-2">
|
||||||
|
<label class="form-label small fw-bold text-muted"><?= _("Type Personne") ?></label>
|
||||||
|
<div class="input-group shadow-xs">
|
||||||
|
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-users text-muted"></i></span>
|
||||||
|
<select class="form-control selectpicker border-2 border-start-0" id="codeTypePersonne" name="codeTypePersonne">
|
||||||
|
<?php liste_options($typepersonne, ""); ?>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-5">
|
||||||
|
<label class="form-label small fw-bold text-muted"><?= _("Libellé (EN)") ?></label>
|
||||||
|
<div class="input-group shadow-xs">
|
||||||
|
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-language text-muted"></i></span>
|
||||||
|
<input type="text" class="form-control border-2 border-start-0 majuscule" id="libelleEng" name="libelleEng" autocomplete="off">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-5">
|
||||||
|
<label class="form-label small fw-bold text-muted"><?= _("Titre sur Courrier (EN)") ?></label>
|
||||||
|
<div class="input-group shadow-xs">
|
||||||
|
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-envelope text-muted"></i></span>
|
||||||
|
<input type="text" class="form-control border-2 border-start-0 majuscule" id="titreCourrierEng" name="titreCourrierEng" autocomplete="off">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
@ -1,90 +1,61 @@
|
||||||
<?php
|
<div class="card border-0 shadow-sm overflow-hidden" style="border-radius: var(--radius-md);">
|
||||||
$nbreTotal = count($titre);
|
<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-user-tag me-2"></i><?= _("Référentiel des Titres / Civilité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){
|
<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"><?= _("Libellé") ?></th>
|
||||||
|
<th class="border-0"><?= _("Titre Courrier") ?></th>
|
||||||
|
<th class="border-0 text-center pe-4"><?= _("Actions") ?></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<?php foreach ($titre as $v):
|
||||||
|
$idData = $this->nettoyer($v['id']);
|
||||||
|
$libelle = est_anglophone() ? $this->nettoyer($v['libelleEng']) : $this->nettoyer($v['libelle']);
|
||||||
|
?>
|
||||||
|
<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"><?= $this->nettoyer($v['codeTitre']) ?></span>
|
||||||
|
</td>
|
||||||
|
<td class="fw-bold text-dark"><?= $libelle ?></td>
|
||||||
|
<td class="text-muted italic"><?= $this->nettoyer($v['titreCourrier']) ?></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 */
|
||||||
<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">
|
.italic { font-style: italic; }
|
||||||
<thead>
|
.text-primary { color: #212e53 !important; }
|
||||||
<tr>
|
</style>
|
||||||
<th class="text-center"><?= _("Centre gestion") ?></th>
|
|
||||||
<th class="text-center">Code</th>
|
|
||||||
<th class="text-center"><?= _("Libellé") ?></th>
|
|
||||||
<th class="text-center"><?= _("Titre Courrier") ?></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 ($titre as $v):
|
|
||||||
$idData = $this->nettoyer($v['id']);
|
|
||||||
$libelle = $this->nettoyer($v['libelle']);
|
|
||||||
if (est_anglophone()){
|
|
||||||
$libelle = $this->nettoyer($v['libelleEng']);
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<tr valign="top">
|
|
||||||
<td class="text-center" width="15%"><?= $this->nettoyer($v['codeSociete']) ?></td>
|
|
||||||
<td class="text-center" width="10%"><?= $this->nettoyer($v['codeTitre']) ?></td>
|
|
||||||
<td class="text-left" width="35%"><?= $libelle ?></td>
|
|
||||||
<td class="text-left" width="35%"><?= $this->nettoyer($v['titreCourrier']) ?></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,34 +1,76 @@
|
||||||
<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="<?= $titre['id'] ?>">
|
||||||
<INPUT class="sr-only" TYPE="text" id = "id" name = "id" value="<?=$titre['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="10%" align="center" >Code</td>
|
<i class="fas fa-edit me-2"></i><?= _("Modification des données du titre / civilité") ?>
|
||||||
<td width="10%" ><INPUT class="form-control majuscule" TYPE="text" id="codeTitre" NAME="codeTitre" required AUTOCOMPLETE="OFF" value="<?= $this->nettoyer($titre['codeTitre']); ?>" autofocus readonly></td>
|
</h6>
|
||||||
|
</div>
|
||||||
<td width="10%" align="center" class="required"><?= _("Libellé Fr") ?></td>
|
|
||||||
<td width="20%" ><INPUT class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF" value="<?= $this->nettoyer($titre['libelle']); ?>"></td>
|
<div class="card-body bg-light-50 p-4">
|
||||||
|
<div class="row g-3 mb-4">
|
||||||
<td width="10%" align="center">Titre Courrier FR</td>
|
<div class="col-md-2">
|
||||||
<td width="15%" ><INPUT class="form-control majuscule" TYPE="text" id="titreCourrier" NAME="titreCourrier" value="<?= $this->nettoyer($titre['titreCourrier']); ?>"></td>
|
<label class="form-label small fw-bold text-muted"><?= _("Code") ?></label>
|
||||||
|
<div class="input-group shadow-xs">
|
||||||
</tr>
|
<span class="input-group-text bg-light border-2 border-end-0"><i class="fas fa-barcode text-muted"></i></span>
|
||||||
<tr>
|
<input type="text" class="form-control border-2 border-start-0 majuscule fw-bold text-center"
|
||||||
<td width="10%"> <?= _("Type Personne") ?> </td>
|
id="codeTitre" name="codeTitre" value="<?= $this->nettoyer($titre['codeTitre']); ?>" readonly>
|
||||||
<td width="10%" >
|
</div>
|
||||||
<select class="form-select" id="codeTypePersonne" NAME="codeTypePersonne" autofocus>
|
</div>
|
||||||
<?php liste_options($typepersonne,$this->nettoyer($titre['codeTypePersonne']),true); ?>
|
|
||||||
</SELECT>
|
<div class="col-md-5">
|
||||||
</td>
|
<label class="form-label small fw-bold text-muted required"><?= _("Libellé (FR)") ?></label>
|
||||||
|
<div class="input-group shadow-xs">
|
||||||
<td width="10%" align="center"><?= _("Libellé Eng") ?></td>
|
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-user-tag text-muted"></i></span>
|
||||||
<td width="20%" ><INPUT class="form-control majuscule" TYPE="text" id="libelleEng" NAME="libelleEng" value="<?= $this->nettoyer($titre['libelleEng']); ?>"></td>
|
<input type="text" class="form-control border-2 border-start-0 majuscule"
|
||||||
|
id="libelle" name="libelle" required autocomplete="off"
|
||||||
<td width="10%" align="center">Titre Courrier ENG</td>
|
value="<?= $this->nettoyer($titre['libelle']); ?>">
|
||||||
<td width="15%" ><INPUT class="form-control majuscule" TYPE="text" id="titreCourrierEng" NAME="titreCourrierEng" value="<?= $this->nettoyer($titre['titreCourrierEng']); ?>"></td>
|
</div>
|
||||||
|
</div>
|
||||||
</tr>
|
|
||||||
</tbody>
|
<div class="col-md-5">
|
||||||
</table>
|
<label class="form-label small fw-bold text-muted"><?= _("Titre sur Courrier (FR)") ?></label>
|
||||||
|
<div class="input-group shadow-xs">
|
||||||
|
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-envelope-open-text text-muted"></i></span>
|
||||||
|
<input type="text" class="form-control border-2 border-start-0 majuscule"
|
||||||
|
id="titreCourrier" name="titreCourrier" autocomplete="off"
|
||||||
|
value="<?= $this->nettoyer($titre['titreCourrier']); ?>">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row g-3">
|
||||||
|
<div class="col-md-2">
|
||||||
|
<label class="form-label small fw-bold text-muted"><?= _("Type Personne") ?></label>
|
||||||
|
<div class="input-group shadow-xs">
|
||||||
|
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-users text-muted"></i></span>
|
||||||
|
<select class="form-control selectpicker border-2 border-start-0" id="codeTypePersonne" name="codeTypePersonne">
|
||||||
|
<?php liste_options($typepersonne, $this->nettoyer($titre['codeTypePersonne']), true); ?>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-5">
|
||||||
|
<label class="form-label small fw-bold text-muted"><?= _("Libellé (EN)") ?></label>
|
||||||
|
<div class="input-group shadow-xs">
|
||||||
|
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-language text-muted"></i></span>
|
||||||
|
<input type="text" class="form-control border-2 border-start-0 majuscule"
|
||||||
|
id="libelleEng" name="libelleEng" autocomplete="off"
|
||||||
|
value="<?= $this->nettoyer($titre['libelleEng']); ?>">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-5">
|
||||||
|
<label class="form-label small fw-bold text-muted"><?= _("Titre sur Courrier (EN)") ?></label>
|
||||||
|
<div class="input-group shadow-xs">
|
||||||
|
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-envelope text-muted"></i></span>
|
||||||
|
<input type="text" class="form-control border-2 border-start-0 majuscule"
|
||||||
|
id="titreCourrierEng" name="titreCourrierEng" autocomplete="off"
|
||||||
|
value="<?= $this->nettoyer($titre['titreCourrierEng']); ?>">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
Loading…
Reference in New Issue
Block a user