141 lines
5.6 KiB
PHP
141 lines
5.6 KiB
PHP
<div id="div_prestations">
|
|
<?php
|
|
$actVisible = $_SESSION['p_actVisible'];
|
|
|
|
$bonCaduc = $_SESSION['p_bonCaduc'];
|
|
$facture = $_SESSION['p_facture'];
|
|
?>
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
|
|
<thead>
|
|
<tr>
|
|
<th width="5%" style='text-align:center'> <= </th>
|
|
<th colspan="2" style="text-align:center"> <?= _("Acte")." (".count($prestations).")" ?> </th>
|
|
<th style="text-align:center"> <?= _("PU") ?> </th>
|
|
<th width="10%" style="text-align:center"> <?= _("Qté") ?> </th>
|
|
|
|
<th style="text-align:center"> <?= _("PT") ?> </th>
|
|
<th style="text-align:center"> <?= _("TM") ?> </th>
|
|
<th style="text-align:center"> <?= _("Mont. TM") ?> </th>
|
|
<th style="text-align:center"> <?= _("A Remb") ?> </th>
|
|
<th style="text-align:center"> <?= _("Dépass") ?> </th>
|
|
<th style="text-align:center"> <?= _("Motif") ?> </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></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>
|
|
<td></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']);
|
|
|
|
$codeGarantie = $this->nettoyer($prestation['codeGarantie']);
|
|
|
|
|
|
$valeurActe = $this->nettoyer($prestation['valeurActe']);
|
|
$codeFamilleActe = $this->nettoyer($prestation['codeFamilleActe']);
|
|
|
|
|
|
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;
|
|
}
|
|
|
|
$prixBase = ($ententePrealable=='2') ? "0" : $this->nettoyer($prestation['prixBase']);
|
|
|
|
$codeMotifDepassement = $this->nettoyer($prestation['codeMotifDepassement']);
|
|
|
|
$motif = $this->nettoyer($prestation['motif']);
|
|
$motifEng = $this->nettoyer($prestation['motifEng']);
|
|
|
|
$tm = $this->nettoyer($prestation['tm']);
|
|
|
|
$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; ?>
|
|
|
|
<?php if ($facture || $bonCaduc || $ententePrealable=='1'): ?>
|
|
<td> </td>
|
|
<?php else: ?>
|
|
<td> <input class = "form-control btn btn-danger" type="button" value="<=" onClick="javascript:supprimer_acte_medical_selection('<?= $idPrestationactes ?>', '<?= $codeTypePrestation ?>');"> </td>
|
|
<?php endif; ?>
|
|
<td align='center'> <?= $codeGarantie ?> </td>
|
|
<td > <?= $libelleActe ?> </td>
|
|
<td align='center'>
|
|
<button type="button" class="span_link" title="<?= _("Voir le tarif appliqué") ?>" onClick='javascript:tarif_applique("<?= $tarif ?>");'>
|
|
<?= format_N($this->nettoyer($prestation['valeurActe'])) ?>
|
|
</button>
|
|
</td>
|
|
|
|
<?php if ($facture || $bonCaduc || $ententePrealable=='1' || $autorisation=='1' || $ententePrealable=='9' || $autorisation=='9'): ?>
|
|
<td align='center'><?= $this->nettoyer($prestation['quantite']) ?></td>
|
|
<?php else: ?>
|
|
<td align='center'>
|
|
<INPUT style='text-align:center' class="form-control" TYPE="text" value="<?= $this->nettoyer($prestation['quantite']) ?>"
|
|
onChange="ajax_maj_qte_acte('<?=$idPrestationactes?>', this.value, this);" onkeyup="controle_numerique(this);" onblur="formatMonetaire(this);">
|
|
</td>
|
|
<?php endif; ?>
|
|
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['fraisReel'])) ?></td>
|
|
<td align='center'> <?= $this->nettoyer($prestation['tm'])?></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($codeMotifDepassement!=''): ?>
|
|
<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="11" height="8"></td>
|
|
</tr>
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|