167 lines
6.8 KiB
PHP
Executable File
167 lines
6.8 KiB
PHP
Executable File
<?php
|
|
$actVisible = $_SESSION['p_actVisible'];
|
|
?>
|
|
|
|
<div class="row" id="totam_donnees">
|
|
<div id="div_actes" class="col-4" style="padding-right:1px;">
|
|
<div id="listeacte">
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive tabliste compact" style="font-size:7pt;">
|
|
<thead>
|
|
<tr>
|
|
<th style='text-align:center'> <?= _("Actes (").count($actes).")" ?> </th>
|
|
<th width="15%" style='text-align:center'> <?= _("Prix") ?> </th>
|
|
<th width="5%" style='text-align:center'> => </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<?php foreach ($actes as $acte):
|
|
$codeActe=$this->nettoyer($acte['codeActe']);
|
|
$act_ententePrealable=$this->nettoyer($acte['ententePrealable']);
|
|
$act_exclu=$this->nettoyer($acte['exclu']);
|
|
$act_chirurgie=$this->nettoyer($acte['chirurgie']);
|
|
$act_valeurActe=$this->nettoyer($acte['valeurActe']);
|
|
$act_prixBase=$this->nettoyer($acte['prixBase']);
|
|
$act_depassement=$this->nettoyer($acte['depassement']);
|
|
$act_montantTm=$this->nettoyer($acte['montantTm']);
|
|
$act_aRembourser=$this->nettoyer($acte['montantArembourser']);
|
|
|
|
$libelleActe = $this->nettoyer($acte['libelleActe']);
|
|
|
|
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US"){
|
|
$libelleActe = $this->nettoyer($acte['libelleActeEng']);
|
|
}
|
|
|
|
|
|
if($actVisible!="1")
|
|
{
|
|
$libelleActe = $codeActe;
|
|
}
|
|
|
|
?>
|
|
<?php if($act_ententePrealable=='1'): ?>
|
|
<tr valign="top" style="background-color: yellow;">
|
|
<?php elseif($act_exclu=='1'): ?>
|
|
<tr valign="top" style="background-color: red;color:white;">
|
|
<?php else: ?>
|
|
<tr valign="top">
|
|
<?php endif; ?>
|
|
|
|
<td > <?= $libelleActe ?></td>
|
|
<td align='center'> <?= format_N($act_valeurActe) ?></td>
|
|
<?php if ($act_exclu=="1"): ?>
|
|
<td align='center' style="background-color: red;color:white;"> Excl </td>
|
|
<?php else: ?>
|
|
<td align='center'> <input type="button" value="=>" onClick="javascript:ajouter_un_acte_selection_hospitalisation('<?=$codeActe?>', '<?=$act_prixBase?>', '<?=$act_valeurActe?>', '<?=$act_montantTm?>', '<?=$act_aRembourser?>' , '<?=$act_depassement?>', '<?=$act_ententePrealable?>');" ></td>
|
|
<?php endif; ?>
|
|
|
|
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="div_prestations" class="col-8" >
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:7pt;">
|
|
<thead>
|
|
<tr>
|
|
<th width="5%" style='text-align:center'> <= </th>
|
|
<th style="text-align:center"> <?= _("Acte")." (".count($prestations).")" ?> </th>
|
|
<th style="text-align:center"> <?= _("Base Remb") ?> </th>
|
|
<th style="text-align:center"> <?= _("Valeur") ?> </th>
|
|
<th width="10%" style="text-align:center"> <?= _("Nb / Qté") ?> </th>
|
|
<th style="text-align:center"> <?= _("Frais") ?> </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>
|
|
<td colspan="5" style='text-align:center'> <?= _("Total") ?> </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']);
|
|
|
|
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US")
|
|
{
|
|
$libelleActe = $this->nettoyer($prestation['libelleActeEng']);
|
|
}
|
|
else
|
|
{
|
|
$libelleActe = $this->nettoyer($prestation['libelleActe']);
|
|
}
|
|
|
|
$codeActe = $this->nettoyer($prestation['codeActe']);
|
|
|
|
if($actVisible!="1")
|
|
{
|
|
$libelleActe = $codeActe;
|
|
}
|
|
|
|
$prix=$this->nettoyer($prestation['valeurActe']);
|
|
|
|
?>
|
|
|
|
<?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; ?>
|
|
|
|
<?php if ($supprimable=="0" || $codeActe=="AC0001175" || $codeActe=="PHOSP" || $codeActe=="AC0000683"): ?>
|
|
<td> </td>
|
|
<?php else: ?>
|
|
<td> <input class = "form-control btn btn-danger" type="button" value="<=" onClick="javascript:supprimer_acte_medical_hospitalisation('<?= $idPrestationactes ?>', '<?= $codeTypePrestation ?>');"> </td>
|
|
<?php endif; ?>
|
|
|
|
<td > <?= $libelleActe ?> </td>
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['prixBase'])) ?></td>
|
|
<?php if($codeActe=="AC0001175" || $codeActe=="PHOSP" || $codeActe=="AC0000683"): ?>
|
|
<td align='center' width="12%">
|
|
<INPUT style='text-align:center' class="form-control" TYPE="text" value="<?= format_N($prix); ?>"
|
|
onBlur="ajax_maj_prix_acte_hospitalisation('<?=$idPrestationactes?>', this.value, this);">
|
|
</td>
|
|
<?php else: ?>
|
|
<td align='center' width="5%"> <?= format_N($prix) ?></td>
|
|
<?php endif; ?>
|
|
<td align='center'>
|
|
<INPUT style='text-align:center' class="form-control" TYPE="text" value="<?= $this->nettoyer($prestation['quantite']) ?>"
|
|
onBlur="ajax_maj_qte_acte_hospitalisation('<?=$idPrestationactes?>', this.value, this);">
|
|
</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="9" height="8"></td>
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|