110 lines
6.5 KiB
PHP
Executable File
110 lines
6.5 KiB
PHP
Executable File
<?php
|
|
$adminProd = $_SESSION['adminProd'];
|
|
?>
|
|
|
|
<input type="hidden" id="maxDateEffetGarantie" name="maxDateEffetGarantie" value="<?= $maxDateEffetGarantie; ?>">
|
|
|
|
<?php if(count($familleacte) > 0): ?>
|
|
<div class="table-responsive shadow-sm rounded">
|
|
<table class="table table-sm table-hover align-middle mb-0 text-nowrap">
|
|
<thead class="table-light border-secondary">
|
|
<tr class="text-center small">
|
|
<th rowspan="2" class="align-middle bg-light text-center border-end"><?= _("Effet") ?></th>
|
|
<th colspan="4" class="py-1 text-center border-end" style="color: #0dcaf0 !important;"><?= _("Famille (Adhérent)") ?></th>
|
|
<th colspan="4" class="py-1 text-center border-end" style="color: #ffc107 !important;"><?= _("Bénéficiaire") ?></th>
|
|
<th rowspan="2" class="align-middle bg-light text-center border-end"><?= _("Remboursement") ?></th>
|
|
<th rowspan="2" class="align-middle bg-light text-center border-end"><?= _("Carence") ?></th>
|
|
<th colspan="2" class="align-middle bg-light text-center border-end"><?= _("Ticket Modérateur") ?></th>
|
|
<th colspan="2" class="align-middle bg-light text-center border-end"><?= _("Âge") ?></th>
|
|
<th rowspan="2" class="align-middle bg-light text-center border-end"><?= _("Statut") ?></th>
|
|
<th rowspan="2" class="align-middle bg-light text-center"><?= _("Action") ?></th>
|
|
</tr>
|
|
<tr class="text-center small bg-light-subtle">
|
|
<th><?= _("Plafond") ?></th>
|
|
<th><?= _("Fréq. Plafond") ?></th>
|
|
<th><?= _("Quota") ?></th>
|
|
<th><?= _("Fréq. Quota") ?></th>
|
|
<th><?= _("Plafond") ?></th>
|
|
<th><?= _("Fréq. Plafond") ?></th>
|
|
<th><?= _("Quota") ?></th>
|
|
<th><?= _("Fréq. Quota") ?></th>
|
|
<th><?= _("Taux") ?></th>
|
|
<th><?= _("Forfait") ?></th>
|
|
<th><?= _("Min") ?></th>
|
|
<th><?= _("Max") ?></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach ($familleacte as $v):
|
|
$idGarantie = $v['id'];
|
|
$supprime = $v['supprime'];
|
|
$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="text-center <?= ($supprime == '1') ? 'table-danger opacity-50' : ''; ?>">
|
|
<td class="fw-bold border-end"><?= dateLang($this->nettoyer($v['dateEffet']), $_SESSION['lang']); ?></td>
|
|
|
|
<td class="small"><?= $plafondFamille; ?></td>
|
|
<td class="small"><?= $periodicitePlafondFamille;?></td>
|
|
<td class="small"><?= $transacFamille;?></td>
|
|
<td class="small border-end"><?= $periodiciteFamille;?></td>
|
|
|
|
<td class="small"><?= $plafond;?></td>
|
|
<td class="small"><?= $periodicitePlafond;?></td>
|
|
<td class="small"><?= $transac;?></td>
|
|
<td class="small border-end"><?= $periodicite; ?></td>
|
|
|
|
<td class="small fw-bold text-primary"><?= $this->nettoyer($v['codeTypeRemboursement']); ?></td>
|
|
<td><?= $this->nettoyer($v['delaiCarenceFamilleActe']);?> m</td>
|
|
<td class="fw-bold text-danger"><?= intval($this->nettoyer($v['ticketModerateur']));?>%</td>
|
|
<td class="border-end"><?= format_N($this->nettoyer($v['forfaitTm'])); ?></td>
|
|
<td><?= $this->nettoyer($v['ageMinimum']);?></td>
|
|
<td class="border-end"><?= $this->nettoyer($v['ageMaximum']);?></td>
|
|
|
|
<td class="border-end ">
|
|
<span class="badge <?= $isActif ? 'bg-success' : 'bg-secondary' ?> rounded-pill">
|
|
<?= $isActif ? _("Oui") : _("Non") ?>
|
|
</span>
|
|
</td>
|
|
|
|
<td>
|
|
<?php if($supprime == '0'): ?>
|
|
<button type="button" class="btn btn-outline-danger btn-sm border-0"
|
|
onclick="javascript:supprimer_baremegarantie('<?= $adminProd?>', <?= $idGarantie ?>);"
|
|
title="<?= _("Supprimer cette ligne") ?>">
|
|
<i class="fas fa-trash-alt"></i>
|
|
</button>
|
|
<?php else: ?>
|
|
<span class="text-muted small italic"><?= _("Supprimé") ?></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 Garantie enregistrée.") ?>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<style>
|
|
.table-responsive {border: 1px solid #dee2e6;}
|
|
.table thead th {font-weight: 700;letter-spacing: 0.02em; font-size:0.75rem !important;}
|
|
.table td {font-size:0.75rem !important;}
|
|
.border-dashed {border: 2px dashed #dee2e6 !important;background: transparent;}
|
|
</style>
|