This commit is contained in:
KONE SOREL 2026-03-07 15:23:45 +00:00
parent 5d9f12f719
commit 091162c6c5
2 changed files with 139 additions and 65 deletions

View File

@ -1,33 +1,65 @@
<form id="formData">
<legend id="titre_formData"><?= _("Ajouter des données") ?></legend>
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="10%" align="center" class="required">Code</td>
<td width="10%" ><INPUT class="form-control majuscule" TYPE="text" id="codeTitre" NAME="codeTitre" required AUTOCOMPLETE="OFF" autofocus ></td>
<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" ></td>
<td width="10%" align="center">Titre Courrier FR</td>
<td width="15%" ><INPUT class="form-control majuscule" TYPE="text" id="titreCourrier" NAME="titreCourrier"></td>
</tr>
<tr>
<td width="10%" align="center"> <?= _("Type Personne") ?> </td>
<td width="10%" >
<select class="form-select" id="codeTypePersonne" NAME="codeTypePersonne" autofocus>
<?php liste_options($typepersonne,""); ?>
</SELECT>
</td>
<td width="10%" align="center"><?= _("Libellé Eng") ?></td>
<td width="20%" ><INPUT class="form-control majuscule" TYPE="text" id="libelleEng" NAME="libelleEng"></td>
<td width="10%" align="center">Titre Courrier ENG</td>
<td width="15%" ><INPUT class="form-control majuscule" TYPE="text" id="titreCourrierEng" NAME="titreCourrierEng"></td>
</tr>
</tbody>
</table>
<form id="formData" class="container-fluid p-0">
<div class="card border-0 shadow-sm border-start border-4 border-primary" style="border-radius: var(--radius-md);">
<div class="card-header bg-white py-3 border-bottom">
<h6 class="mb-0 fw-bold text-uppercase text-primary small">
<i class="fas fa-plus-circle me-2"></i><?= _("Ajouter un nouveau titre / civilité") ?>
</h6>
</div>
<div class="card-body bg-light-50 p-4">
<div class="row g-3 mb-4">
<div class="col-md-2">
<label class="form-label small fw-bold text-muted required"><?= _("Code") ?></label>
<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>
<input type="text" class="form-control border-2 border-start-0 majuscule fw-bold" id="codeTitre" name="codeTitre" required autocomplete="off">
</div>
</div>
<div class="col-md-5">
<label class="form-label small fw-bold text-muted required"><?= _("Libellé (FR)") ?></label>
<div class="input-group shadow-xs">
<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">
</div>
</div>
<div class="col-md-5">
<label class="form-label small fw-bold text-muted"><?= _("Titre 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">
</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 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>

View File

@ -1,34 +1,76 @@
<form id="formData">
<legend id="titre_formData"><?= _("Modification des données") ?></legend>
<INPUT class="sr-only" TYPE="text" id = "id" name = "id" value="<?=$titre['id']?>">
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="10%" align="center" >Code</td>
<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>
<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>
<td width="10%" align="center">Titre Courrier FR</td>
<td width="15%" ><INPUT class="form-control majuscule" TYPE="text" id="titreCourrier" NAME="titreCourrier" value="<?= $this->nettoyer($titre['titreCourrier']); ?>"></td>
</tr>
<tr>
<td width="10%"> <?= _("Type Personne") ?> </td>
<td width="10%" >
<select class="form-select" id="codeTypePersonne" NAME="codeTypePersonne" autofocus>
<?php liste_options($typepersonne,$this->nettoyer($titre['codeTypePersonne']),true); ?>
</SELECT>
</td>
<td width="10%" align="center"><?= _("Libellé Eng") ?></td>
<td width="20%" ><INPUT class="form-control majuscule" TYPE="text" id="libelleEng" NAME="libelleEng" value="<?= $this->nettoyer($titre['libelleEng']); ?>"></td>
<td width="10%" align="center">Titre Courrier ENG</td>
<td width="15%" ><INPUT class="form-control majuscule" TYPE="text" id="titreCourrierEng" NAME="titreCourrierEng" value="<?= $this->nettoyer($titre['titreCourrierEng']); ?>"></td>
</tr>
</tbody>
</table>
<form id="formData" class="container-fluid p-0">
<input type="hidden" id="id" name="id" value="<?= $titre['id'] ?>">
<div class="card border-0 shadow-sm border-start border-4 border-primary" style="border-radius: var(--radius-md);">
<div class="card-header bg-white py-3 border-bottom">
<h6 class="mb-0 fw-bold text-uppercase text-primary small">
<i class="fas fa-edit me-2"></i><?= _("Modification du titre / civilité") ?>
</h6>
</div>
<div class="card-body bg-light-50 p-4">
<div class="row g-3 mb-4">
<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="codeTitre" name="codeTitre" value="<?= $this->nettoyer($titre['codeTitre']); ?>" readonly>
</div>
</div>
<div class="col-md-5">
<label class="form-label small fw-bold text-muted required"><?= _("Libellé (FR)") ?></label>
<div class="input-group shadow-xs">
<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"
value="<?= $this->nettoyer($titre['libelle']); ?>">
</div>
</div>
<div class="col-md-5">
<label class="form-label small fw-bold text-muted"><?= _("Titre 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 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>