102 lines
6.0 KiB
PHP
Executable File
102 lines
6.0 KiB
PHP
Executable File
<?php
|
|
$adminProd = $_SESSION['adminProd'];
|
|
?>
|
|
|
|
<?php if(count($acteslienparente) > 0): ?>
|
|
<div class="table-responsive shadow-sm rounded border">
|
|
<table class="table table-sm table-hover align-middle mb-0 text-nowrap">
|
|
<thead class="table-light">
|
|
<tr class="text-center small fw-bold text-uppercase">
|
|
<th rowspan="2" class="border-end bg-white text-center" style="min-width: 150px;"><?= _("Acte") ?></th>
|
|
<th rowspan="2" class="border-end text-center"><?= _("Effet") ?></th>
|
|
<th rowspan="2" class="border-end text-center"><?= _("Lien") ?></th>
|
|
<th colspan="4" class="bg-info bg-opacity-10 text-info border-bottom border-info text-center"><?= _("Limites & Plafonds") ?></th>
|
|
<th rowspan="2" class="border-start text-center"><?= _("Remboursement") ?></th>
|
|
<th rowspan="2" class="text-center"><?= _("Carence") ?></th>
|
|
<th colspan="2" class="bg-light border-bottom text-center"><?= _("TM / Forfait") ?></th>
|
|
<th colspan="2" class="bg-light border-bottom text-center"><?= _("Âges") ?></th>
|
|
<th rowspan="2" class="text-center"><?= _("Actif") ?></th>
|
|
<th rowspan="2" class="bg-white text-center"><?= _("Supprimer") ?></th>
|
|
</tr>
|
|
<tr class="text-center small bg-light-subtle" style="font-size: 0.7rem;">
|
|
<th class="border-start"><?= _("Plafond") ?></th>
|
|
<th><?= _("Fréq. Plafond") ?></th>
|
|
<th><?= _("Quota") ?></th>
|
|
<th class="border-end"><?= _("Fréq. Quota") ?></th>
|
|
|
|
<th class="border-start"><?= _("Taux %") ?></th>
|
|
<th class="border-end"><?= _("Montant") ?></th>
|
|
|
|
<th><?= _("Min") ?></th>
|
|
<th class="border-end"><?= _("Max") ?></th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<?php foreach ($acteslienparente as $v):
|
|
$idActe = $this->nettoyer($v['id']);
|
|
$supprime = $v['supprime'];
|
|
$libelle = est_anglophone() ? $this->nettoyer($v['libelleEng']) : $this->nettoyer($v['libelle']);
|
|
$isActif = ($this->nettoyer($v['actif']) == "1");
|
|
|
|
$plafond = ($this->nettoyer($v['forfaitPlafond'])=="9999999999") ? _("Illimité"): format_N($this->nettoyer($v['forfaitPlafond']));
|
|
$transac = ($this->nettoyer($v['nbreTransaction'])=="999") ? _("Illimité"): format_N($this->nettoyer($v['nbreTransaction']));
|
|
|
|
$lienparente = est_anglophone() ? $this->nettoyer($v['lienparenteEng']) : $this->nettoyer($v['lienparente']);
|
|
$periodicitePlafond = est_anglophone() ? $this->nettoyer($v['periodicitePlafondEng']) : $this->nettoyer($v['periodicitePlafond']);
|
|
$periodicite = est_anglophone() ? $this->nettoyer($v['periodiciteEng']) : $this->nettoyer($v['periodicite']);
|
|
?>
|
|
|
|
<tr class="<?= ($supprime == '1') ? 'table-danger opacity-50' : ''; ?>">
|
|
<td class="ps-3 fw-bold text-dark small border-end"><?= $libelle ?></td>
|
|
<td class="text-center text-nowrap"><?= dateLang($this->nettoyer($v['dateEffet']), $_SESSION['lang']); ?></td>
|
|
<td class="text-center border-end">
|
|
<span class="badge bg-secondary bg-opacity-10 text-secondary border px-2"><?= $lienparente;?></span>
|
|
</td>
|
|
|
|
<td class="text-center fw-bold text-info border-start"><?= $plafond;?></td>
|
|
<td class="text-center text-muted small"><?= $periodicitePlafond;?></td>
|
|
<td class="text-center fw-bold"><?= $transac;?></td>
|
|
<td class="text-center text-muted small border-end"><?= $periodicite; ?></td>
|
|
|
|
<td class="text-center fw-bold text-primary border-start"><?= $this->nettoyer($v['codeTypeRemboursement']); ?></td>
|
|
<td class="text-center"><?= $this->nettoyer($v['delaiCarenceActe']);?> m</td>
|
|
<td class="text-center fw-bold"><?= intval($this->nettoyer($v['ticketModerateur']));?>%</td>
|
|
<td class="text-center border-end"><?= format_N($this->nettoyer($v['forfaitTm']));?></td>
|
|
|
|
<td class="text-center small"><?= $this->nettoyer($v['ageMinimum']);?></td>
|
|
<td class="text-center border-end small"><?= $this->nettoyer($v['ageMaximum']);?></td>
|
|
<td class="text-center">
|
|
<i class="fas <?= $isActif ? 'fa-check-circle text-success' : 'fa-times-circle text-muted' ?>"></i>
|
|
</td>
|
|
|
|
<td class="text-center bg-white border-start">
|
|
<?php if($supprime == '0'): ?>
|
|
<button type="button" class="btn btn-link text-danger p-0"
|
|
onclick="javascript:supprimer_baremeactelienparente('<?= $adminProd?>', <?= $idActe ?>);"
|
|
title="<?= _("Supprimer") ?>">
|
|
<i class="fas fa-trash-alt"></i>
|
|
</button>
|
|
<?php else: ?>
|
|
<span class="badge bg-secondary text-uppercase" style="font-size: 0.6rem;"><?= _("OFF") ?></span>
|
|
<?php endif; ?>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<?php else: ?>
|
|
<div class="alert alert-warning border-dashed text-center p-4 text-uppercase">
|
|
<i class="fas fa-info-circle fa-2x mb-2 d-block opacity-50"></i>
|
|
<?= _("Aucune règle sur Acte médical par Lien de parenté enregistrée.") ?>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<style>
|
|
.opacity-50 { text-decoration: line-through rgba(220, 53, 69, 0.4); }
|
|
.table-hover tbody tr:hover { background-color: rgba(13, 110, 253, 0.05) !important; }
|
|
.table td {font-size:0.75rem !important;}
|
|
.border-dashed { border: 2px dashed #dee2e6 !important; background: none; }
|
|
</style>
|