110 lines
7.0 KiB
PHP
Executable File
110 lines
7.0 KiB
PHP
Executable File
<?php
|
|
$adminProd = $_SESSION['adminProd'];
|
|
?>
|
|
|
|
<?php if(count($actes) > 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;"><?= _("Libellé Acte") ?></th>
|
|
<th rowspan="2" class="border-end text-center"><?= _("Effet") ?></th>
|
|
<th colspan="4" class="bg-primary bg-opacity-10 text-primary border-bottom border-primary text-center"><?= _("Plafonds Famille") ?></th>
|
|
<th colspan="4" class="bg-dark bg-opacity-10 text-dark border-bottom border-dark text-center"><?= _("Plafonds Bénéficiaire") ?></th>
|
|
<th rowspan="2" class="border-start text-center"><?= _("Remboursement") ?></th>
|
|
<th rowspan="2"><?= _("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><?= _("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 ($actes 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");
|
|
|
|
$plafondFamille = ($this->nettoyer($v['forfaitPlafondFamille'])=="9999999999") ? _("Illimité"): format_N($this->nettoyer($v['forfaitPlafondFamille']));
|
|
$transacFamille = ($this->nettoyer($v['nbreTransactionFamille'])=="999") ? _("Illimité"): format_N($this->nettoyer($v['nbreTransactionFamille']));
|
|
|
|
$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']));
|
|
|
|
$periodicitePlafondFamille = est_anglophone() ? $this->nettoyer($v['periodicitePlafondFamilleEng']) : $this->nettoyer($v['periodicitePlafondFamille']);
|
|
$periodiciteFamille = est_anglophone() ? $this->nettoyer($v['periodiciteFamilleEng']) : $this->nettoyer($v['periodiciteFamille']);
|
|
$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 fw-bold text-primary border-start"><?= $plafondFamille; ?></td>
|
|
<td class="text-center text-muted small"><?= $periodicitePlafondFamille;?></td>
|
|
<td class="text-center"><?= $transacFamille;?></td>
|
|
<td class="text-center text-muted small border-end"><?= $periodiciteFamille;?></td>
|
|
|
|
<td class="text-center fw-bold"><?= $plafond;?></td>
|
|
<td class="text-center text-muted small"><?= $periodicitePlafond;?></td>
|
|
<td class="text-center"><?= $transac;?></td>
|
|
<td class="text-center text-muted small border-end"><?= $periodicite; ?></td>
|
|
|
|
<td class="text-center fw-bold text-uppercase text-secondary border-start"><?= $this->nettoyer($v['codeTypeRemboursement']); ?></td>
|
|
<td class="text-center"><?= $this->nettoyer($v['delaiCarenceActe']);?> m</td>
|
|
<td class="text-center fw-bold text-danger"><?= intval($this->nettoyer($v['ticketModerateur']));?>%</td>
|
|
<td class="text-center border-end"><?= format_N($this->nettoyer($v['forfaitTm']));?></td>
|
|
|
|
<td class="text-center"><?= $this->nettoyer($v['ageMinimum']);?></td>
|
|
<td class="text-center border-end"><?= $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_baremeacte('<?= $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 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(0, 136, 207, 0.05) !important; }
|
|
.table td {font-size:0.75rem !important;}
|
|
.border-dashed { border: 2px dashed #dee2e6 !important; background: none; }
|
|
</style>
|