202 lines
8.0 KiB
PHP
Executable File
202 lines
8.0 KiB
PHP
Executable File
<?php $this->titre = "INTER SANTE - Hospitalisation";
|
|
$numeroBonHospitalisation = $_SESSION['numeroBonHospitalisation_C'];
|
|
?>
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
</script>
|
|
|
|
<input style='text-align:center; font-size:11pt;' class="form-control" type="text"
|
|
value="<?= _("Hospitalisation") . " => " . _("No Bon") . " : " . $numeroBonHospitalisation . " => " . _("Prestataire") . " : " . $_SESSION['prestataire_C'] . " => " . _("Feuille Maladie") . " : " . $_SESSION['numeroFeuilleMaladie_C'] ?>"
|
|
readonly >
|
|
|
|
|
|
<?php
|
|
|
|
//var_dump(count($prestations));
|
|
|
|
if(count($prestations) == "0"): ?>
|
|
<div id="div_chambre">
|
|
<legend> <?= _("Chambres occupées") ?> </legend>
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:9pt;">
|
|
<thead>
|
|
<tr>
|
|
<th> <?= _("Libellé") ?> </th>
|
|
<th width="7%" style="text-align:center"> <?= _("Prix") ?> </th>
|
|
<th width="7%" style="text-align:center"> <?= _("Début") ?> </th>
|
|
<th width="7%" style="text-align:center"> <?= _("Fin") ?> </th>
|
|
<th width="5%" style="text-align:center"> <?= _("Durée") ?> </th>
|
|
<th width="7%" style="text-align:center"> Total </th>
|
|
<th width="7%" style="text-align:center"> <?= _("T M") ?> </th>
|
|
<th width="7%" style="text-align:center"> <?= _("A Remb") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="4" style='text-align:center'> Total</td>
|
|
<td align='center'><?= $this->nettoyer($totalchambres['duree']) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($totalchambres['fraisReel'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($totalchambres['montantTm'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($totalchambres['montantArembourser'])) ?></td>
|
|
</tr>
|
|
</tfoot>
|
|
|
|
<tbody>
|
|
<?php foreach ($chambres as $chambre):
|
|
$idChambre=$this->nettoyer($chambre['id']);
|
|
$ententePrealable=$this->nettoyer($chambre['ententePrealable']);
|
|
$autorisation=$this->nettoyer($chambre['autorisation']);
|
|
?>
|
|
<?php if($ententePrealable=='2' || $autorisation=='2'): ?>
|
|
<tr valign="top" style="background-color: yellow;">
|
|
<?php elseif($ententePrealable=='1' || $autorisation=='1'): ?>
|
|
<tr valign="top" style="background-color: #00ff00;">
|
|
<?php elseif($ententePrealable=='9' || $autorisation=='9'): ?>
|
|
<tr valign="top" style="background-color: red;color:white;">
|
|
<?php else: ?>
|
|
<tr valign="top">
|
|
<?php endif; ?>
|
|
<td> <?= $this->nettoyer($chambre['libelleChambre']) ?> </td>
|
|
<td align='center'> <?= format_N($this->nettoyer($chambre['valeurActe'])) ?> </td>
|
|
<td align='center'> <?= dateLang($this->nettoyer($chambre['debut'])) ?> </td>
|
|
<td align='center'> <?= dateLang($this->nettoyer($chambre['fin'])) ?> </td>
|
|
<td align='center'> <?= $this->nettoyer($chambre['quantite']) ?> </td>
|
|
<td align='center'> <?= format_N($this->nettoyer($chambre['fraisReel'])) ?> </td>
|
|
<td align='center'> <?= format_N($this->nettoyer($chambre['montantTm'])) ?> </td>
|
|
<td align='center'> <?= format_N($this->nettoyer($chambre['montantArembourser'])) ?> </td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
<tr style='background-color:white'>
|
|
<td colspan="8" height="8"></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<?php else: ?>
|
|
<div id="div_prestations">
|
|
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
|
<tbody>
|
|
<tr>
|
|
<td colspan="8" align="center">
|
|
<legend > <?= _("DETAIL HOSPITALISATION") ?></legend >
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:10pt;">
|
|
<thead>
|
|
<tr>
|
|
<th style="text-align:center"> <?= _("Acte / Plafond") ?> </th>
|
|
|
|
<th style="text-align:center"> <?= _("PU Réclamé") ?> </th>
|
|
<th style="text-align:center"> <?= _("PU Appliqué") ?> </th>
|
|
<th width="5%" style="text-align:center"> <?= _("Qté") ?> </th>
|
|
<th style="text-align:center"> <?= _("PT Réclamé") ?> </th>
|
|
<th style="text-align:center"> <?= _("PT Appliqué") ?> </th>
|
|
<th style="text-align:center"> <?= _("T M") ?> </th>
|
|
<th style="text-align:center"> <?= _("A Remb") ?> </th>
|
|
<th style="text-align:center"> <?= _("Dépass") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tfoot>
|
|
<tr>
|
|
<?php
|
|
$prestation_total_reclame = $this->nettoyer($prestations_total['totalPrixManuel']);
|
|
?>
|
|
<td colspan="4" style='text-align:center'> <?= _("Total")." (".count($prestations).")" ?> </td>
|
|
<td align='center'><?= format_N($prestation_total_reclame) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($prestations_total['fraisReel'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($prestations_total['montantTm'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($prestations_total['montantArembourser'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($prestations_total['depassement'])) ?></td>
|
|
</tr>
|
|
</tfoot>
|
|
|
|
<tbody>
|
|
|
|
<?php
|
|
foreach ($prestations as $prestation):
|
|
$idPrestationactes=$this->nettoyer($prestation['id']);
|
|
$supprimable = $prestation['supprimable'];
|
|
$codeTypePrestation=$this->nettoyer($prestation['codeTypePrestation']);
|
|
$ententePrealable=$this->nettoyer($prestation['ententePrealable']);
|
|
$autorisation=$this->nettoyer($prestation['autorisation']);
|
|
$codeTarifActe=$this->nettoyer($prestation['codeTarifActe']);
|
|
|
|
$valeurActeManuel = $this->nettoyer($prestation['valeurActeManuel']);
|
|
|
|
if($valeurActeManuel == "0" ){
|
|
$valeurActeManuel = $this->nettoyer($prestation['prixPrestataire']);
|
|
}
|
|
|
|
|
|
$libelleConsommable=$this->nettoyer($prestation['libelleConsommable']);
|
|
|
|
if (isset($_SESSION['lang']) && $_SESSION['lang']=="en_US")
|
|
{
|
|
$libelleActe = substr($this->nettoyer($prestation['libelleActeEng']),0,57);
|
|
}
|
|
else
|
|
{
|
|
$libelleActe = substr($this->nettoyer($prestation['libelleActe']),0,57);
|
|
}
|
|
|
|
$codeActe = $this->nettoyer($prestation['codeActe']);
|
|
|
|
if($codeActe == "CSM"){
|
|
$libelleActe = substr($libelleConsommable,0,57);
|
|
}
|
|
|
|
|
|
$valeurActe = $this->nettoyer($prestation['valeurActe']);
|
|
|
|
$plafondActe = $this->nettoyer($prestation['plafondActe']);
|
|
|
|
|
|
$plafond = (($plafondActe == $valeurActe) && ($valeurActe > "0"))?"1":"0";
|
|
|
|
if ($plafondActe > "0" && $plafondActe !="9999999999"){
|
|
$forfaitPlafond = " / ".format_N($plafondActe);
|
|
}else{
|
|
$forfaitPlafond = "";
|
|
}
|
|
|
|
$tarif = $this->nettoyer($prestation['tarif']);
|
|
|
|
?>
|
|
|
|
<?php if($ententePrealable=='2' || $autorisation=='2'): ?>
|
|
<tr valign="top" style="background-color: yellow;">
|
|
<?php elseif($ententePrealable=='1' || $autorisation=='1'): ?>
|
|
<tr valign="top" style="background-color: #00ff00;">
|
|
<?php elseif($ententePrealable=='9' || $autorisation=='9'): ?>
|
|
<tr valign="top" style="background-color: red;color:white;">
|
|
<?php else: ?>
|
|
<tr valign="top">
|
|
<?php endif; ?>
|
|
|
|
<td > <?= $libelleActe.$forfaitPlafond ?> </td>
|
|
|
|
<td align='center'><?= format_N($valeurActeManuel) ?></td>
|
|
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['valeurActe'])) ?></td>
|
|
|
|
<td align='center'><?= $this->nettoyer($prestation['quantite']) ?></td>
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['prixManuel'])) ?></td>
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['fraisReel'])) ?></td>
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['montantTm'])) ?></td>
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['montantArembourser'])) ?></td>
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['depassement'])) ?></td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
<tr style='background-color:white'>
|
|
<td colspan="10" height="8"></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<?php endif; ?>
|