171 lines
6.4 KiB
PHP
Executable File
171 lines
6.4 KiB
PHP
Executable File
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
|
|
<thead>
|
|
<tr>
|
|
<th width="10%" style="text-align:center"> Date </th>
|
|
<th style="text-align:center" > <?= _("Prestataire") ?> </th>
|
|
<th colspan="2" style="text-align:center"> <?= _("Acte") ?> </th>
|
|
<th width="15%" style="text-align:center" > <?= _("Médecin") ?> </th>
|
|
<th width="7%" style="text-align:center"> <?= _("P U") ?> </th>
|
|
<th width="3%" style="text-align:center"> <?= _("Qté") ?> </th>
|
|
<th width="7%" style="text-align:center"> <?= _("P T") ?> </th>
|
|
<th width="3%" style="text-align:center"> <?= _("TM") ?> </th>
|
|
<th width="5%" style="text-align:center"> <?= _("M TM") ?> </th>
|
|
<th width="7%" style="text-align:center"> <?= _("A Remb") ?> </th>
|
|
<th width="7%" style="text-align:center"> <?= _("Dépass") ?> </th>
|
|
<!--<th width="7%" style="text-align:center"> <?= _("A payer") ?> </th>-->
|
|
<th width="5%" style="text-align:center"> <?= _("Motif") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tfoot>
|
|
<tr>
|
|
<?php
|
|
|
|
?>
|
|
<td colspan="7" style='text-align:center'> <?= _("Total") ?> </td>
|
|
<td align='center'><?= format_N($this->nettoyer($totalprestations['fraisReel'])) ?></td>
|
|
<td></td>
|
|
<td align='center'><?= format_N($this->nettoyer($totalprestations['montantTm'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($totalprestations['montantArembourser'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($totalprestations['depassement'])) ?></td>
|
|
<!--<td align='center' style="background-color:rgba(255, 0, 127);color:white;"><?= format_N($this->nettoyer($totalprestations['montantApayer'])) ?></td>-->
|
|
<td ></td>
|
|
</tr>
|
|
</tfoot>
|
|
|
|
<tbody>
|
|
|
|
<?php
|
|
//$quantiteModifieHospit =0;
|
|
foreach ($historiqueprestations as $prestation):
|
|
$idPrestationactes = $this->nettoyer($prestation['id']);
|
|
$supprimable = $prestation['supprimable'];
|
|
$codeTypePrestation = $this->nettoyer($prestation['codeTypePrestation']);
|
|
$codeActe = $this->nettoyer($prestation['codeActe']);
|
|
$ententePrealable = $this->nettoyer($prestation['ententePrealable']);
|
|
$autorisation = $this->nettoyer($prestation['autorisation']);
|
|
|
|
$idProlongation = $this->nettoyer($prestation['idProlongation']);
|
|
|
|
if (isset($_SESSION['lang']) && $_SESSION['lang']=="en_US")
|
|
{
|
|
if($codeTypePrestation == "PHAR" && $codeActe == "00000")
|
|
{
|
|
$libelleActe = "PHARMACIE INTERNE";
|
|
}else{
|
|
$libelleActe = $this->nettoyer($prestation['libelleActeEng']);
|
|
}
|
|
|
|
}
|
|
else
|
|
{
|
|
if($codeTypePrestation == "PHAR" && $codeActe == "00000")
|
|
{
|
|
$libelleActe = "INTERNAL PHARMACY";
|
|
}else{
|
|
$libelleActe = $this->nettoyer($prestation['libelleActe']);
|
|
}
|
|
}
|
|
|
|
$codeActe = $this->nettoyer($prestation['codeActe']);
|
|
|
|
$codeGarantie = $this->nettoyer($prestation['codeGarantie']);
|
|
|
|
$libelleConsommable = $this->nettoyer($prestation['libelleConsommable']);
|
|
|
|
if($codeTypePrestation == "CSM")
|
|
{
|
|
$libelleActe = $libelleConsommable;
|
|
}
|
|
|
|
|
|
if($idProlongation > "0"){
|
|
$libelleActe = $libelleActe." - "."PROROGATION";
|
|
}
|
|
|
|
$prixBase = $prestation['prixBase'];
|
|
|
|
if ($prixBase == "0"){
|
|
$prixBase = $prestation['valeurActe'];
|
|
}
|
|
|
|
$codeMotifDepassement = $this->nettoyer($prestation['codeMotifDepassement']);
|
|
|
|
$motif = $this->nettoyer($prestation['motif']);
|
|
$motifEng = $this->nettoyer($prestation['motifEng']);
|
|
|
|
$tarif = $this->nettoyer($prestation['tarif']);
|
|
|
|
$exclusionrecapacte = $this->nettoyer($prestation['exclusionrecapacte']);
|
|
|
|
?>
|
|
<?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($ententePrealable == '2'){
|
|
$ententePrealableenattente = 1;
|
|
}else{
|
|
$ententePrealableenattente = 0;
|
|
}
|
|
?>
|
|
<td align='center'> <?= dateheureLang($this->nettoyer($prestation['dateSysteme'])) ?> </td>
|
|
<td align='center'>
|
|
<?= $this->nettoyer($prestation['prestataire']) ?>
|
|
</td>
|
|
<td align='center'> <?= $codeGarantie ?> </td>
|
|
<td align='center'> <?= $libelleActe ?> </td>
|
|
<td align='center'> <?= $this->nettoyer($prestation['medecinActe']) ?> </td>
|
|
|
|
<?php if($exclusionrecapacte=='1'): ?>
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['valeurActe'])) ?> </td>
|
|
<?php else: ?>
|
|
<td align='center'>
|
|
<button type="button" class="span_link" title="<?= _("Voir le tarif appliqué")?>" onClick='javascript:alert_ebene("<?= $tarif ?>, <?= $tarif ?>");'>
|
|
<?= format_N($this->nettoyer($prestation['valeurActe'])) ?>
|
|
</button>
|
|
</td>
|
|
<?php endif; ?>
|
|
|
|
<td align='center'> <?= $this->nettoyer($prestation['quantite']) ?></td>
|
|
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['fraisReel'])) ?></td>
|
|
|
|
<?php if($exclusionrecapacte=='1'): ?>
|
|
<td align='center'> - </td>
|
|
<?php else: ?>
|
|
<td align='center'> <?= $this->nettoyer($prestation['tm'])?></td>
|
|
<?php endif; ?>
|
|
|
|
<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>
|
|
<!--<td align='center'> <?= format_N($this->nettoyer($prestation['montantApayer'])) ?></td>-->
|
|
|
|
<?php if($codeMotifDepassement!='' && $exclusionrecapacte=='0'): ?>
|
|
<td align='center'>
|
|
<button type="button" class="btn btn-info" title="<?= _("Voir le motif du dépassement...") ?>" onClick='javascript:alert_ebene("<?= $motif ?>","<?= $motifEng ?>");'>
|
|
<?= $codeMotifDepassement ?>
|
|
</button>
|
|
</td>
|
|
<?php else: ?>
|
|
<td > </td>
|
|
<?php endif; ?>
|
|
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
<tr style='background-color:white'>
|
|
<!--<td colspan="14" height="8"></td>-->
|
|
<td colspan="13" height="8"></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|