radiantproduction/Vue/Consulteractureclassique/index.php

103 lines
5.4 KiB
PHP

<?php
$this->titre = "INTER-SANTE - Facture classique : Consultation";
?>
<div id="div_facture">
<div id="div_entete_facture">
<input class="sr-only" type="text" id="regle" name="regle" value="<?= $this->nettoyer($facture['regle']) ?>" >
<input class="sr-only" type="text" id="prixActe" name="prixActe" value="<?= $this->nettoyer($facture['fraisRetenu']) ?>" >
<input class="sr-only" type="text" id="cout" name="cout" value="<?= $this->nettoyer($facture['fraisReel']) ?>" >
<input class="sr-only" type="text" id="montantTm" name="montantTm" value="<?= $this->nettoyer($facture['montantTm']) ?>" >
<input class="sr-only" type="text" id="montantArembourser" name="montantArembourser" value="<?= $this->nettoyer($facture['montantArembourser']) ?>" >
<input style='text-align:center; font-size:11pt;' class="form-control" type="text"
value= "Informations sur la facture à rembourser hors tiers payant" readonly >
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td width="8%" > <?= _("Frais") ?> </td>
<td><INPUT style='font-size:10pt; text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($facture['fraisReel'])) ?>" readonly ></td>
<td width="7%" align="center" > <?= _("T M") ?> </td>
<td><INPUT style='font-size:10pt; color:red; text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($facture['montantTm'])) ?>" readonly ></td>
<td width="7%" align="center" > <?= _("A Remb") ?> </td>
<td> <INPUT style='font-size:10pt; text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($facture['montantArembourser'])) ?>" readonly ></td>
<td width="7%" align="center" > <?= _("Dépas") ?> </td>
<td><INPUT style='font-size:10pt; color:red; text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($facture['fraisExclu'])) ?>" readonly ></td>
<td width="7%" align="center"> <?= _("Retenu") ?> </td>
<td><INPUT style='font-size:10pt; color:blue; text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($facture['fraisRetenu'])) ?>" readonly ></td>
</tr>
<tr>
<td> <?= _("Prestataire") ?> </td>
<td colspan="5"><INPUT style='font-size:10pt;' class="form-control" TYPE="text" id="prestataire" NAME="prestataire" value="<?= $this->nettoyer($facture['prestataire']) ?>" readonly ></td>
<td align="center" > <?= _("No Fact") ?> </td>
<td><INPUT class="form-control" style='font-size:10pt; text-align:center;' TYPE="text" id="numeroFacture" NAME="numeroFacture" value="<?= $this->nettoyer($facture['numeroFacture']) ?>" readonly ></td>
<td align="center" > <?= _("Date Fact") ?> </td>
<td><INPUT style='font-size:10pt; text-align:center;' class="form-control datepicker" TYPE="text" id="dateFacture" NAME="dateFacture" value="<?= dateLang($this->nettoyer($facture['dateFacture'])) ?>" readonly ></td>
<tr>
<tr>
<td > Observat </td>
<td colspan="5"><INPUT style='font-size:10pt;' id="observations" name="observations" class="form-control" TYPE="text" value="<?= $this->nettoyer($facture['observations']) ?>" readonly></td>
<td align="center"> <?= _("T M") ?> </td>
<td>
<INPUT id="tmFacture" name="tmFacture" style='font-size:10pt; text-align:center; color:red;' class="form-control" type="number" value="<?= $this->nettoyer($facture['tm']) ?>" readonly>
</td>
<td align="center"> Hospit </td>
<td><INPUT class="form-control" style='font-size:10pt; text-align:center;' TYPE="text" id="hospit" NAME="hospit" value="<?= $this->nettoyer($facture['hospit']) ?>" readonly ></td>
<tr>
</tbody>
</table>
</div>
<div id ="div_wait">
</div>
<div id="div_prestations">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:9pt;">
<thead>
<tr>
<th style="text-align:center"> <?= _("Actes") ?> </th>
<th width="15%" style="text-align:center"> <?= _("Frais") ?> </th>
<th width="10%" style="text-align:center"> <?= _("T M") ?> </th>
<th width="15%" style="text-align:center"> <?= _("A Remb") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($prestations as $prestation):
$ententePrealable=$this->nettoyer($prestation['ententePrealable']);
$autorisation=$this->nettoyer($prestation['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 align='center'> <?= $this->nettoyer($prestation['libelleActe']) ?> </td>
<td align='center'> <?= format_N($this->nettoyer($prestation['fraisReel'])) ?> </td>
<td align='center' style='color:red;'> <?= format_N($this->nettoyer($prestation['montantTm'])) ?> </td>
<td align='center'> <?= format_N($this->nettoyer($prestation['montantArembourser'])) ?> </td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>