production/Vue/Paramlienparente/index.php
2025-12-01 16:12:12 +00:00

63 lines
1.9 KiB
PHP
Executable File

<?php $this->titre = "INTER SANTE - Durée de vie des bons"; ?>
<script type="text/javascript">
</script>
<legend> <?= _("PARAMETRES DE GESTION DES LIENS DE PARENTE") ?> </legend>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:10pt;">
<thead>
<tr>
<th style="text-align:center" width="10%"> <?= _("Code") ?> </th>
<th style="text-align:center" > <?= _("Désignation") ?> </th>
<th width="10%" style="text-align:center" > <?= _("Actif") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($liensparente as $v):
$idLien = $this->nettoyer($v['id']);
$codeLienParente = $this->nettoyer($v['codeLienParente']);
$libelle = $this->nettoyer($v['libelle']);
$enVigueur = $this->nettoyer($v['enVigueur']);
$actif = ($enVigueur == "1") ? "Oui" : "Non";
$btnVisible = ($codeLienParente=="A" || $codeLienParente=="C" || $codeLienParente=="E") ? "1" : "0";
if (est_anglophone()){
$libelle = $this->nettoyer($v['libelleEng']);
$actif = ($enVigueur == "1") ? "Yes" : "No";
}
?>
<tr valign="top">
<td align="center"> <?= $codeLienParente ?></td>
<td ><?= $libelle ?></td>
<td align="center">
<?php if($enVigueur == "1"):?>
<?php if($btnVisible == "0"):?>
<input style="font-size:10pt;" class = "form-control btn btn-primary" type="button" value="<?= $actif ?>"
onClick="javascript:modifier_lien_parente(<?= $idLien ?>)">
<?php else: ?>
<?= $actif ?>
<?php endif; ?>
<?php else: ?>
<input style="font-size:10pt;" class = "form-control btn btn-danger" type="button" value="<?= $actif ?>"
onClick="javascript:modifier_lien_parente(<?= $idLien ?>)">
<?php endif; ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<div id="div_maj_lien">
</div>