114 lines
6.0 KiB
PHP
Executable File
114 lines
6.0 KiB
PHP
Executable File
<?php
|
|
|
|
|
|
?>
|
|
|
|
<div class="modal-dialog modal-lg" style="max-width: 80%;" role="document">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-bs-dismiss="modal">×</button>
|
|
<legend class="modal-title" id="user" style="text-align:center;"><?= _('Barèmes des actes plafonnés'); ?></legend>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div id="div_bareme" >
|
|
<div id="div_legende_couleur" style="width:100%; margin: 5px; background-color: #f8f8ff;" class="tab-container">
|
|
<table class="table-responsive" style="width:100%; margin:auto; background-color: #f8f8ff; font-size:12pt;">
|
|
<tbody>
|
|
<tr>
|
|
<td style="font-weight:bold; text-align:right; background-color: #f8f8ff; text-decoration-line: underline;"> <?= _("Légende").":"; ?></td>
|
|
<td style="font-weight:bold; text-align:right; background-color: #f8f8ff;"> <?= _("Consommation")." >= 50%"; ?></td>
|
|
<td width="1%" style="background-color: #f8f8ff"></td>
|
|
<td width="4%" style="background-color:#726a57"></td >
|
|
<td width="2%" style="background-color: #f8f8ff"></td>
|
|
<td style="font-weight:bold; text-align:right; background-color: #f8f8ff;"><?= _("Consommation")." >= 80%"; ?></td>
|
|
<td width="1%" style="background-color: #f8f8ff"></td>
|
|
<td width="4%" style="background-color: orange"></td >
|
|
<td width="1%" style="background-color: #f8f8ff"></td>
|
|
<td style="font-weight:bold; text-align:right; background-color: #f8f8ff;" ><?= _("Consommation")." = 100% / ". _("Transaction")." = 100%"; ?></td>
|
|
<td style="background-color: #f8f8ff"></td>
|
|
<td width="4%" style="background-color: red;"></td >
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt; white-space: nowrap;" >
|
|
<thead >
|
|
<tr>
|
|
<th rowspan="2" style='text-align:center' > <?= _("Actes"); ?> </th>
|
|
<th rowspan="2" style='text-align:center' width="8%"> <?= _("Autorisé à"); ?> </th>
|
|
<th rowspan="2" style='text-align:center'> <?= _("Taux") ?> </th>
|
|
|
|
<th colspan="4" style='text-align:center'> <?= _("Plafond") ?> </th>
|
|
<th colspan="2" style='text-align:center'> <?= _("Nbre Sinistre") ?> </th>
|
|
<th colspan="2" style='text-align:center'> <?= _("Consommations") ?> </th>
|
|
<th colspan="2" style='text-align:center'> <?= _("Soldes") ?> </th>
|
|
</tr>
|
|
<tr>
|
|
<th style='text-align:center' width="10%"> <?= _("Valeur") ?> </th>
|
|
<th style='text-align:center'> <?= _("Transaction") ?> </th>
|
|
<th style='text-align:center'> <?= _("Périodicité") ?> </th>
|
|
|
|
<th style='text-align:center' width="7%"> <?= _("Famille") ?> </th>
|
|
<th style='text-align:center' width="7%"> <?= _("Bénéficiaire") ?> </th>
|
|
<th style='text-align:center' width="7%"> <?= _("Famille") ?> </th>
|
|
<th style='text-align:center' width="7%"> <?= _("Bénéficiaire") ?> </th>
|
|
<th style='text-align:center' width="7%"> <?= _("Famille") ?> </th>
|
|
<th style='text-align:center' width="7%"> <?= _("Bénéficiaire") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody style="overflow:auto; height:150px;">
|
|
<?php foreach ($actes as $v):
|
|
$libelle = $this->nettoyer($v['libelle']);
|
|
$garantie = $this->nettoyer($v['garantie']);
|
|
$codeGarantie = $this->nettoyer($v['codeGarantie']);
|
|
$periodicite = $this->nettoyer($v['codePeriodicite']);
|
|
$codeLienParente = $this->nettoyer($v['codeLienParente']);
|
|
$lienParente = $this->nettoyer($v['lienparente']);
|
|
|
|
if (est_anglophone())
|
|
{
|
|
$libelle = $this->nettoyer($v['libelleEng']);
|
|
$garantie = $this->nettoyer($v['garantieEng']);
|
|
$lienParente = $this->nettoyer($v['lienparenteEng']);
|
|
}
|
|
$pourcentConsoFamille = $this->nettoyer($v['pourcentConsoFamille']);
|
|
$pourcentConso = $this->nettoyer($v['pourcentConso']);
|
|
$transactionFamille = $this->nettoyer($v['transactionFamille']);
|
|
$transactionBeneficiaire = $this->nettoyer($v['transactionBeneficiaire']);
|
|
$idBeneficiaire = $this->nettoyer($v['idBeneficiaire']);
|
|
$codeActe = $this->nettoyer($v['codeActe']);
|
|
$exercieReference = $this->nettoyer($v['exercieReference']);
|
|
?>
|
|
<?php if($pourcentConso>='50' && $pourcentConso<'80'): ?>
|
|
<tr style="background-color: #726a57;" valign="top">
|
|
<?php elseif($pourcentConso>='80' && $pourcentConso <'100'): ?>
|
|
<tr style="background-color: orange;" valign="top">
|
|
<?php elseif($pourcentConso >='100' || $transactionBeneficiaire=="1"): ?>
|
|
<tr style="background-color: red; color:white" valign="top">
|
|
<?php else: ?>
|
|
<tr valign="top">
|
|
<?php endif; ?>
|
|
<td ><?= $libelle ?></td>
|
|
<td align='center'><?= $lienParente ?></td>
|
|
<td align='center'><?= $this->nettoyer($v['tauxPlafond'])?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($v['forfaitPlafond']))?></td>
|
|
<td align='center'><?= $this->nettoyer($v['nbreTransaction'])?></td>
|
|
<td align='center'><?= $periodicite; ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($v['comptePrestationFamille'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($v['comptePrestation'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($v['consommationFamille'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($v['consommation'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($v['soldeActeFamille'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($v['soldeActe'])) ?></td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" id="" class="btn btn-default" data-bs-dismiss="modal"><?= _("Fermer"); ?></button>
|
|
</div>
|
|
</div>
|
|
</div>
|