58 lines
3.1 KiB
PHP
Executable File
58 lines
3.1 KiB
PHP
Executable File
<?php
|
|
$nbreTotal = count($baremes);
|
|
$displayTotal = ($nbreTotal < 10) ? '0'.$nbreTotal : format_N($nbreTotal);
|
|
?>
|
|
|
|
<div class="d-flex justify-content-center mb-3">
|
|
<span class="badge bg-primary-ghost text-primary px-4 py-2 rounded-pill border shadow-sm fs-6">
|
|
<i class="fas fa-list-ol me-2"></i><?= _("Total enregistré :") ?> <span class="fw-bold"><?= $displayTotal; ?></span>
|
|
</span>
|
|
</div>
|
|
|
|
<div class="card border-0 shadow-sm overflow-hidden">
|
|
<div class="table-responsive">
|
|
<table class="table table-hover align-middle mb-0" style="font-size: 9.5pt;">
|
|
<thead class="bg-light border-bottom">
|
|
<tr>
|
|
<th class="text-center ps-3 py-3" width="80px">ID</th>
|
|
<th><?= _("Libellé du Barème") ?></th>
|
|
<th><?= _("Garant") ?></th>
|
|
<th class="text-center"><?= _("Taux (%)") ?></th>
|
|
<th class="text-center"><?= _("Territoire") ?></th>
|
|
<th class="text-center py-3" width="220px"><?= _("Actions") ?></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach ($baremes as $v):
|
|
$id = $this->nettoyer($v['id']);
|
|
$libelle = !empty($v['observationBareme']) ? $v['observationBareme'] : $v['libelle'];
|
|
$territoire = est_anglophone() ? $v['territoireEng'] : $v['territoire'];
|
|
?>
|
|
<tr>
|
|
<td class="text-center"><span class="badge bg-light text-muted border"><?= $id ?></span></td>
|
|
<td class="fw-bold text-dark"><?= $this->nettoyer($libelle) ?></td>
|
|
<td><span class="small text-muted"><?= $this->nettoyer($v['garant']) ?></span></td>
|
|
<td class="text-center">
|
|
<span class="badge bg-success-light text-success fs-6 rounded-pill">
|
|
<?= $this->nettoyer($v['tauxRemboursement']) ?>
|
|
</span>
|
|
</td>
|
|
<td class="text-center">
|
|
<span class="small"><i class="fas fa-globe-africa me-1 text-muted"></i><?= $this->nettoyer($territoire) ?></span>
|
|
</td>
|
|
<td class="text-center">
|
|
<div class="btn-group gap-2">
|
|
<button class="btn btn-sm btn-outline-primary rounded-pill px-3 fw-bold" onclick="modifier_baremepriseencharge(<?= $id ?>);">
|
|
<i class="fas fa-edit me-1"></i> <?= _("Modifier") ?>
|
|
</button>
|
|
<button class="btn btn-sm btn-success rounded-pill px-3 fw-bold" onclick="detail_baremepriseencharge(<?= $id ?>);">
|
|
<i class="fas fa-cogs me-1"></i> <?= _("Configurer") ?>
|
|
</button>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|