newdesigngestionnaire/Vue/Ajaxparamlienparente/index.php
2026-04-03 17:16:09 +00:00

77 lines
3.7 KiB
PHP
Executable File

<?php
$codeLienParente = $this->nettoyer($lienparente['codeLienParente']);
$libelle = $this->nettoyer($lienparente['libelle']);
$enVigueur = $this->nettoyer($lienparente['enVigueur']);
$actif = ($enVigueur == "1") ? "Oui" : "Non";
if (est_anglophone()){
$libelle = $this->nettoyer($lienparente['libelleEng']);
$actif = ($enVigueur == "1") ? "Yes" : "No";
}
?>
<div class="modal-dialog modal-dialog-centered shadow-lg">
<div class="modal-content border-0">
<div class="modal-header border-bottom-0 pb-3 pt-4 px-4 border-start border-warning border-5" style="background-color: #212e53; border-top-left-radius: var(--radius-md); border-top-right-radius: var(--radius-md);">
<div class="d-flex align-items-center">
<div class="icon-shape bg-warning text-white rounded-circle me-3" style="width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 4px rgba(0,0,0,0.2);">
<i class="fas fa-edit"></i>
</div>
<div>
<h5 class="modal-title fw-bold mb-0" style="color: #ffffff !important; letter-spacing: -0.5px; font-size: 1.1rem;">
<?= _("Parametrage du lien de parenté") ?>
</h5>
</div>
</div>
<button type="button" class="btn p-2 border-0 shadow-none d-flex align-items-center justify-content-center"
data-bs-dismiss="modal" aria-label="Close"
style="background: transparent; transition: transform 0.2s ease;">
<i class="fas fa-times text-white fs-4"></i>
</button>
</div>
<div class="modal-body p-4 bg-white">
<input class="sr-only" type="text" id="idLien" name="idLien" value="<?= $this->nettoyer($lienparente['id']) ?>">
<table class="table table-responsive table-condensed" style="font-size:10pt;">
<tbody>
<tr>
<td "5%" align="center" > <?= _("Code") ?> </td>
<td width="5%"> <INPUT style="font-size:10pt; text-align:center;" class="form-control" TYPE="text" value="<?= $codeLienParente ?>" readonly ></td>
<td width="8%" align="center" > <?= _("Désignation") ?> </td>
<td> <INPUT style="font-size:10pt; text-align:center" class="form-control" TYPE="text" value="<?= $libelle ?>" readonly></td>
</tr>
<tr>
<td > <?= _("Actif") ?> </td>
<td colspan="3">
<SELECT style="font-size:10pt; text-align:center;" class="form-select" id="enVigueur" NAME="enVigueur" autofocus>
<?php liste_options($enVigueurOuiNon, $lienparente['enVigueur'],true); ?>
</SELECT>
</td>
</tr>
</tbody>
</table>
</div>
<div class="modal-footer border-0 p-3" style="background-color: #faf9f8; border-bottom-left-radius: var(--radius-lg); border-bottom-right-radius: var(--radius-lg);">
<button type="button" class="btn btn-light btn-sm px-3 fw-bold" style="color: var(--text-muted); border: 1px solid var(--border-light);" data-bs-dismiss="modal">
<?= _("Annuler") ?>
</button>
<?php if($enVigueur == "1"):?>
<button type="button" class="btn btn-danger btn-sm px-4 fw-bold shadow-sm" onclick="javascript:enregistrer_modif_lien_parente();">
<i class="fas fa-check-circle me-1"></i> <?= _("Désactiver") ?>
</button>
<?php else: ?>
<button type="button" class="btn btn-warning btn-sm px-4 fw-bold shadow-sm" onclick="javascript:enregistrer_modif_lien_parente();">
<i class="fas fa-check-circle me-1"></i> <?= _("Activer") ?>
</button>
<?php endif; ?>
</div>
</div>
</div>