a
This commit is contained in:
parent
a195d1b38a
commit
8b6c6a8b73
|
|
@ -283,23 +283,12 @@
|
|||
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:9pt; white-space:nowrap;">
|
||||
<thead class="table-dark">
|
||||
<tr>
|
||||
<th rowspan="2" width="5%" style="text-align:center"> <?= _("Exercice") ?> </th>
|
||||
<th rowspan="2" width="20%" style="text-align:center"> <?= _("Garantie") ?> </th>
|
||||
<th rowspan="2" style='border-right:1px solid #ddd !important; text-align:center' width="5%"> <?= _("Taux") ?> </th>
|
||||
|
||||
<th colspan="4" style='border-right:1px solid #ddd !important;' class="bg-success text-center"> <?= _("Consommations") ?> </th>
|
||||
<th colspan="4" style='border-right:1px solid #ddd !important;' class="bg-secondary text-center"> <?= _("Prestations") ?> </th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style='border-right:1px solid #ddd !important;' width="10%" class="bg-success text-center"> <?= _("Plafond") ?> </th>
|
||||
<th style='border-right:1px solid #ddd !important;' width="10%" class="bg-success text-center"> <?= _("Périodicité") ?> </th>
|
||||
<th style='border-right:1px solid #ddd !important;' width="10%" class="bg-success text-center"> <?= _("Dépenses") ?> </th>
|
||||
<th style='border-right:1px solid #ddd !important;' width="10%" class="bg-success text-center"> <?= _("Solde") ?> </th>
|
||||
|
||||
<th style='border-right:1px solid #ddd !important;' width="10%" class="bg-secondary text-center"> <?= _("Nb Transaction") ?> </th>
|
||||
<th style='border-right:1px solid #ddd !important;' width="10%" class="bg-secondary text-center"> <?= _("Périodicité") ?> </th>
|
||||
<th style='border-right:1px solid #ddd !important;' width="10%" class="bg-secondary text-center"> <?= _("Nbre Prestation") ?> </th>
|
||||
<th style='border-right:1px solid #ddd !important;' width="10%" class="bg-success text-center"> <?= _("Exercice") ?> </th>
|
||||
<th style='border-right:1px solid #ddd !important;' width="10%" class="bg-success text-center"> <?= _("Garantie") ?> </th>
|
||||
<th style='border-right:1px solid #ddd !important;' width="10%" class="bg-success text-center"> <?= _("Limites") ?> </th>
|
||||
<th style='border-right:1px solid #ddd !important;' width="10%" class="bg-secondary text-center"> <?= _("Consommations") ?> </th>
|
||||
<th style='border-right:1px solid #ddd !important;' width="10%" class="bg-secondary text-center"> <?= _("Solde") ?> </th>
|
||||
<th style='border-right:1px solid #ddd !important;' width="10%" class="bg-secondary text-center"> <?= _("Parent") ?> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
|
|
@ -307,27 +296,24 @@
|
|||
<?php foreach ($garantieadherents as $v):
|
||||
$champApplication = $this->nettoyer($v['champApplication']);
|
||||
$pourcentConsoFamille = $this->nettoyer($v['pourcentConsoFamille']);
|
||||
$transactionFamille = $this->nettoyer($v['transactionFamille']);
|
||||
$soldeTransactionFamille = $this->nettoyer($v['soldeTransactionFamille']);
|
||||
$idAdherent = $this->nettoyer($v['idAdherent']);
|
||||
$codeGarantie = $this->nettoyer($v['codeGarantie']);
|
||||
$exercieReference = $this->nettoyer($v['exercieReference']);
|
||||
$plafondFamille = format_N($this->nettoyer($v['plafondFamille']));
|
||||
$nbreTransactionFamille = $this->nettoyer($v['nbreTransactionFamille']);
|
||||
?>
|
||||
<?php if($pourcentConsoFamille>='50' && $pourcentConsoFamille<'80'): ?>
|
||||
<tr class="color-1" valign="top">
|
||||
<?php elseif($pourcentConsoFamille>='80' && $pourcentConsoFamille <'100'): ?>
|
||||
<tr class="color-2" valign="top">
|
||||
<?php elseif($pourcentConsoFamille >='100' || $transactionFamille=="1"): ?>
|
||||
<?php elseif($pourcentConsoFamille >='100'): ?>
|
||||
<tr class="color-3"valign="top">
|
||||
<?php else: ?>
|
||||
<tr valign="top">
|
||||
<?php endif; ?>
|
||||
<td align='center'> <?= $this->nettoyer($v['exercieReference'])?> </td>
|
||||
<td align='center'>
|
||||
<?php if($pourcentConsoFamille >='95' || $transactionFamille=="1"): ?>
|
||||
<a title="<?= _("Plafond ou nombre de transaction atteint pour cette garantie.")?>" href="javascript:alert('Plafond ou nombre de transaction atteint pour cette garantie!');">
|
||||
<?php if($pourcentConsoFamille >='95'): ?>
|
||||
<a title="<?= _("Plafond atteint pour cette garantie.")?>" href="javascript:alert('Plafond atteint pour cette garantie!');">
|
||||
<span style="color:blue; background-color:#eeeeee; border:1px solid #000; border-radius:3px;">
|
||||
<?= $this->nettoyer($v['garantie'])?>
|
||||
</span>
|
||||
|
|
@ -336,17 +322,9 @@
|
|||
<?= $this->nettoyer($v['garantie'])?>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td align='center'><?= $this->nettoyer($v['tauxPlafond']).'%'; ?></td>
|
||||
|
||||
<td align='center' ><?= $plafondFamille ?></td>
|
||||
<td align='center'><?= $v['periodicitePlafondFamille'] ?></td>
|
||||
<td align='center'><?= format_N($this->nettoyer($v['consommationFamille'])) ?></td>
|
||||
<td align='center' ><?= format_N($this->nettoyer($v['soldeGarantieFamille'])) ?></td>
|
||||
|
||||
<td align='center'><?= $this->nettoyer($v['nbreTransactionFamille']) ?></td>
|
||||
<td align='center'><?= $v['periodiciteFamille'] ?></td>
|
||||
<td align='center'><?= $this->nettoyer($v['comptePrestationFamille']) ?></td>
|
||||
<td align='center'><?= $this->nettoyer($v['soldeTransactionFamille']) ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
|
|
@ -357,17 +335,12 @@
|
|||
<?php foreach ($garantieadherents as $v):
|
||||
$champApplication = $this->nettoyer($v['champApplication']);
|
||||
$pourcentConsoFamille = $this->nettoyer($v['pourcentConsoFamille']);
|
||||
$transactionFamille = $this->nettoyer($v['transactionFamille']);
|
||||
$soldeTransactionFamille = $this->nettoyer($v['soldeTransactionFamille']);
|
||||
$idAdherent = $this->nettoyer($v['idAdherent']);
|
||||
$codeGarantie = $this->nettoyer($v['codeGarantie']);
|
||||
$exercieReference = $this->nettoyer($v['exercieReference']);
|
||||
$plafondFamille = format_N($this->nettoyer($v['plafondFamille']));
|
||||
$nbreTransactionFamille = $this->nettoyer($v['nbreTransactionFamille']);
|
||||
|
||||
$garantie = $this->nettoyer($v['garantie']);
|
||||
$exercice = $this->nettoyer($v['exercieReference']);
|
||||
$taux = $this->nettoyer($v['tauxPlafond']).'%';
|
||||
?>
|
||||
<div class="container mt-5">
|
||||
<div class="card mb-3 shadow-sm">
|
||||
|
|
@ -378,14 +351,13 @@
|
|||
<span class="badge me-2 color-1"><?= $garantie ?></span>
|
||||
<?php elseif($pourcentConsoFamille>='80' && $pourcentConsoFamille <'100'): ?>
|
||||
<span class="badge me-2 color-2"><?= $garantie ?></span>
|
||||
<?php elseif($pourcentConsoFamille >='100' || $transactionFamille=="1"): ?>
|
||||
<?php elseif($pourcentConsoFamille >='100'): ?>
|
||||
<a title="<?= _("Plafond ou nombre de transaction atteint pour cette garantie.")?>" href="javascript:alert_limite('G');">
|
||||
<span class="badge me-2 color-3"><?= $garantie ?></span>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<span class="badge bg-success me-2" ><?= $garantie ?></span>
|
||||
<?php endif; ?>
|
||||
<strong style="font-size:1.8rem !important;"><?= $taux ?></strong>
|
||||
</div>
|
||||
<small class="text-muted exercice"><?= $exercice ?></small>
|
||||
</div>
|
||||
|
|
@ -399,13 +371,6 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-6">
|
||||
<div class="d-flex justify-content-between align-items-center">
|
||||
<span class="text-muted small"><?= _("Période") ?></span>
|
||||
<span class="fw-bold text-success"><?= $v['periodicitePlafondFamille'] ?></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-6">
|
||||
<div class="d-flex justify-content-between align-items-center">
|
||||
<span class="text-muted small"><?= _("Dépenses") ?></span>
|
||||
|
|
@ -432,38 +397,6 @@
|
|||
<i class="bi bi-chevron-down me-2"></i><?= _("Plus de détails...") ?>
|
||||
</button>
|
||||
</h2>
|
||||
<div id="collapse<?= $codeGarantie ?>" class="accordion-collapse collapse"
|
||||
aria-labelledby="heading<?= $codeGarantie ?>" data-bs-parent="#accordionGarantie<?= $codeGarantie ?>">
|
||||
<div class="accordion-body">
|
||||
<!-- Contenu détaillé -->
|
||||
<div class="row">
|
||||
<div class="col-6 mb-1">
|
||||
<div class="d-flex justify-content-between">
|
||||
<span class="text-muted small"><?= _("Transaction") ?></span>
|
||||
<span><?= $this->nettoyer($v['nbreTransactionFamille']) ?></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6 mb-1">
|
||||
<div class="d-flex justify-content-between">
|
||||
<span class="text-muted small"><?= _("Période") ?></span>
|
||||
<span><?= $v['periodiciteFamille'] ?></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6 mb-1">
|
||||
<div class="d-flex justify-content-between">
|
||||
<span class="text-muted small"><?= _("Prestation") ?></span>
|
||||
<span><?= $this->nettoyer($v['comptePrestationFamille']) ?></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6 mb-1">
|
||||
<div class="d-flex justify-content-between">
|
||||
<span class="text-muted small"><?= _("Solde") ?></span>
|
||||
<span><?= $this->nettoyer($v['soldeTransactionFamille']) ?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user