fr
This commit is contained in:
parent
e1ea7b215e
commit
fa53dcc64c
97
Vue/Plafondadherent/index.php
Normal file
97
Vue/Plafondadherent/index.php
Normal file
|
|
@ -0,0 +1,97 @@
|
|||
<?php $this->titre = "INTER-SANTE - Limites Famille"; ?>
|
||||
|
||||
<div id="div_adherent" class="container-fluid py-1 animate__animated animate__fadeIn">
|
||||
<div class="card shadow-sm mb-4 border-0">
|
||||
<div class="card-header bg-white py-3">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-md-7">
|
||||
<h4 class="mb-0 text-primary">
|
||||
<i class="fa-solid fa-users-rectangle me-2"></i>
|
||||
<?= _("Limites de la famille") ?>
|
||||
</h4>
|
||||
<span class="badge bg-light text-dark border mt-2">
|
||||
<i class="fa-solid fa-id-card me-1"></i> <?= $_SESSION['numeroAdherent_C'] ?> | <?= $_SESSION['nomAdherent_C'] ?>
|
||||
</span>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<div class="input-group">
|
||||
<span class="input-group-text bg-primary text-white border-primary">
|
||||
<i class="fa-solid fa-calendar-check me-2"></i> <?= _("Exercice") ?>
|
||||
</span>
|
||||
<select class="form-select border-primary fw-bold" id="idEntetecontrat" name="idEntetecontrat" autofocus onChange="afficher_garantieadherent_entete_contrat();">
|
||||
<?php liste_options($entecontrats, $_SESSION['idEntetecontrat']); ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="div_gar_exo">
|
||||
<div class="card shadow-sm border-0">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover align-middle mb-0">
|
||||
<thead class="table-dark">
|
||||
<tr>
|
||||
<th class="ps-3 fw-normal small text-uppercase"><?= _("Garantie") ?></th>
|
||||
<th class="text-center fw-normal small text-uppercase"><?= _("Contrat (Annuel)") ?></th>
|
||||
<th class="text-center fw-normal small text-uppercase"><?= _("Taux Inc.") ?></th>
|
||||
<th class="text-center fw-normal small text-uppercase"><?= _("Limite en vigueur") ?></th>
|
||||
<th class="text-center fw-normal small text-uppercase"><?= _("Consommé") ?></th>
|
||||
<th class="text-end pe-4 fw-normal small text-uppercase"><?= _("Solde Disponible") ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($garantieadherents as $garantieadherent):
|
||||
$solde = $this->nettoyer($garantieadherent['solde']);
|
||||
$statusClass = ($solde <= 0) ? 'text-danger fw-bold' : 'text-success fw-bold';
|
||||
$rowClass = ($solde <= 0) ? 'table-danger' : '';
|
||||
?>
|
||||
<tr class="<?= $rowClass ?>">
|
||||
<td class="ps-3 fw-bold text-secondary">
|
||||
<?= $this->nettoyer($garantieadherent['garantie']) ?>
|
||||
<div class="text-muted extra-small" style="font-size: 0.75rem;">
|
||||
Réf: <?= $this->nettoyer($garantieadherent['exercieReference']) ?>
|
||||
</div>
|
||||
</td>
|
||||
<td class="text-center text-monospace">
|
||||
<?= format_N($this->nettoyer($garantieadherent['plafondAnnuel'])) ?>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<span class="badge rounded-pill bg-info text-dark">
|
||||
<?= $this->nettoyer($garantieadherent['tauxAvenant']) ?> %
|
||||
</span>
|
||||
</td>
|
||||
<td class="text-center fw-bold">
|
||||
<?= format_N($this->nettoyer($garantieadherent['plafond'])) ?>
|
||||
</td>
|
||||
<td class="text-center text-primary">
|
||||
<?= format_N($this->nettoyer($garantieadherent['consommation'])) ?>
|
||||
</td>
|
||||
<td class="text-end pe-4 <?= $statusClass ?>">
|
||||
<?php if($solde <= 0): ?>
|
||||
<i class="fa-solid fa-circle-exclamation me-1"></i>
|
||||
<?php endif; ?>
|
||||
<?= format_N($solde) ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="card-footer bg-light py-3">
|
||||
<div id="div_export_a" class="d-flex justify-content-end gap-2">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="div_test"></div>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.text-monospace { font-family: 'Courier New', Courier, monospace; }
|
||||
.extra-small { font-size: 0.7rem; }
|
||||
.table-hover tbody tr:hover { background-color: rgba(0, 123, 255, 0.05); }
|
||||
</style>
|
||||
Loading…
Reference in New Issue
Block a user