53 lines
2.0 KiB
PHP
Executable File
53 lines
2.0 KiB
PHP
Executable File
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:12pt;">
|
|
<thead>
|
|
<tr>
|
|
<th style="text-align:center" rowspan="2"> <?= _("Libelle") ?> </th>
|
|
<th style="text-align:center" rowspan="2"> <?= _("Plafond") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
foreach ($situationHospit as $situation):
|
|
if ($situation['codePlafond'] == "GAR"){
|
|
if($situation['codeGarantie']==(is_array($groupeMED)? $groupeMED['codeGarantie'] : "")){
|
|
$conso = $groupeMED['montantArembourser_total'];
|
|
}elseif($situation['codeGarantie']==(is_array($groupeCHI)? $groupeCHI['codeGarantie'] : "")){
|
|
$conso = $groupeCHI['montantArembourser_total'];
|
|
}elseif($situation['codeGarantie']==(is_array($groupeHOS)? $groupeHOS['codeGarantie'] : "")){
|
|
$conso = $groupeHOS['montantArembourser_total'];
|
|
}else{
|
|
$conso = "0";
|
|
}
|
|
}else{
|
|
$conso = $groupeHOS['montantArembourser_total'];
|
|
}
|
|
|
|
$periodicite = $situation['periodicite'];
|
|
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US"){
|
|
$periodicite = $situation['periodiciteEng'];
|
|
}
|
|
//var_dump($soldeConsommation);
|
|
?>
|
|
<?php if(($soldeConsommation-$conso) <='0'): ?>
|
|
<tr style="background-color: red; color:white" valign="top">
|
|
<?php else: ?>
|
|
<tr valign="top">
|
|
<?php endif; ?>
|
|
<th > <?= $situation['rubrique'] ?> </th>
|
|
<td align='center'> <?= format_N($situation['plafond'])." ".$_SESSION['p_devise_C']." ".$periodicite ?> </td>
|
|
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
|
|
<?php
|
|
|
|
//var_dump($plafondHospitalisation > "0" && $plafondHospitalisation != "9999999999");
|
|
//var_dump($hospit_total['montantArembourser'] > "0" && $hospit_total['montantArembourser'] >= $plafondHospitalisation);
|
|
|
|
|
|
//var_dump($plafondHospitalisation > "0" && $plafondHospitalisation != "9999999999" && $hospit_total['montantArembourser'] > "0" && $hospit_total['montantArembourser'] >= $plafondHospitalisation)
|
|
|
|
?>
|