109 lines
4.8 KiB
PHP
Executable File
109 lines
4.8 KiB
PHP
Executable File
<?php
|
|
|
|
$actVisible = $_SESSION['p_actVisible'];
|
|
?>
|
|
|
|
<input class="sr-only" id="nbreSelec" name="nbreSelec" type="text" value= "<?= $nbreSelec ?>" >
|
|
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
|
|
<thead>
|
|
<tr>
|
|
<th></th>
|
|
<th width="10%" style="text-align:center"> Date </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"> <?= _("Base Remb.") ?> </th>
|
|
<th width="7%" style="text-align:center"> <?= _("Prix Unitaire") ?> </th>
|
|
<th width="3%" style="text-align:center"> <?= _("Qté") ?> </th>
|
|
<th width="7%" style="text-align:center"> <?= _("Prix Total") ?> </th>
|
|
<th width="5%" style="text-align:center"> <?= _("T M") ?> </th>
|
|
<th width="7%" style="text-align:center"> <?= _("A Remb") ?> </th>
|
|
<th width="7%" style="text-align:center"> <?= _("Dépass.") ?> </th>
|
|
<th width="3%" style="text-align:center"> </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<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']);
|
|
|
|
$numeroFeuilleMaladie = $this->nettoyer($prestation['numeroFeuilleMaladie']);
|
|
|
|
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']);
|
|
$codeGarantie = $this->nettoyer($prestation['codeGarantie']);
|
|
|
|
if($actVisible!="1")
|
|
{
|
|
$libelleActe = $codeActe;
|
|
}
|
|
|
|
$idProlongation = $this->nettoyer($prestation['idProlongation']);
|
|
|
|
if($idProlongation > "0"){
|
|
$libelleActe = $libelleActe." - "."PROROGATION";
|
|
}
|
|
|
|
$prixBase = $prestation['prixBase'];
|
|
|
|
if ($prixBase == "0"){
|
|
$prixBase = $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($codeTypePrestation=='HOSP'): ?>
|
|
<td></td>
|
|
<?php else: ?>
|
|
<?php if($prestation['choix']=='1'): ?>
|
|
<td align='center'> <input type="checkbox" checked value="<?php echo $prestation['choix']; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};select_prestatation_a_facturer(this.value, <?= $idPrestationactes ?>);"></td>
|
|
<?php else: ?>
|
|
<td align='center'> <input type="checkbox" value="<?php echo $prestation['choix']; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};select_prestatation_a_facturer(this.value, <?= $idPrestationactes ?>);"></td>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
<td align='center'> <?= dateheureLang($this->nettoyer($prestation['dateSysteme'])) ?> </td>
|
|
<td align='center'> <?= $codeGarantie ?> </td>
|
|
<td align='center'> <?= $libelleActe ?> </td>
|
|
<td align='center'> <?= $this->nettoyer($prestation['medecinActe']) ?> </td>
|
|
<td align='center'> <?= format_N($prixBase) ?></td>
|
|
<td align='center'> <?= format_N($prestation['valeurActe']) ?></td>
|
|
<td align='center'> <?= $this->nettoyer($prestation['quantite']) ?></td>
|
|
<td align='center'> <?= format_N($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>
|
|
<?php if($prestation['choix']=='0'): ?>
|
|
<td><button class = "form-control " onClick="javascript:imprimerfacturepartielle('<?= $idPrestationactes ?>','<?= $codeTypePrestation ?>');"><i class="fa fa-print" style="font-size:24px;color:blue;margin-top:-6px;"></i></button></td>
|
|
<?php else: ?>
|
|
<td></td>
|
|
<?php endif; ?>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
<tr style='background-color:white'>
|
|
<td colspan="13" height="8"></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|