117 lines
5.1 KiB
PHP
117 lines
5.1 KiB
PHP
<?php $this->titre = "INTER-SANTE - Livraison Médicaments";
|
|
$numeroBonOrdonnance = $_SESSION['numeroBonOrdonnance_C'];
|
|
$prestataireLivraison = $this->nettoyer($prescription['prestataireLivraison']);
|
|
$_SESSION['idFacture_C'] = $this->nettoyer($prescription['idFacture']);
|
|
|
|
?>
|
|
|
|
<script type="text/javascript">
|
|
|
|
</script>
|
|
|
|
|
|
<input style='text-align:center; font-size:11pt;' class="form-control" type="text" value= "Informations sur Livraison de médicaments
|
|
=> Prestataire : <?= $prestataireLivraison ?> => Feuille Maladie : <?= $_SESSION['numeroFeuilleMaladie_C'] ?>" readonly >
|
|
|
|
|
|
<table class="table table-responsive table-condensed" style='font-size:9pt;' >
|
|
<tbody>
|
|
<tr>
|
|
<td width="7%" > <?= _("No Ordonn") ?> </td>
|
|
<td width="10%"> <INPUT style='text-align:center; font-size:11pt; background-color:blue;color:white;' class="form-control" TYPE="text" id="numeroBonOrdonnance"
|
|
name="numeroBonOrdonnance" value="<?= $numeroBonOrdonnance ?>" readonly >
|
|
</td>
|
|
|
|
|
|
<td width="10%" align="center" > <?= _("Date Prescription") ?> </td>
|
|
<td width="10%" > <INPUT class="form-control" TYPE="text" value="<?= dateLang($this->nettoyer($prescription['datePrescription'])) ?>" readonly style="text-align: center; font-size:9pt;" > </td>
|
|
|
|
<td width="7%" align="center"> <?= _("Médecin") ?> </td>
|
|
<td> <INPUT class="form-control" TYPE="text" value="<?= $this->nettoyer($prescription['medecinPrescription']) ?>" readonly style='font-size:9pt;'> </td>
|
|
|
|
<td width="7%" align="center"> <?= _("Tél Méd") ?> </td>
|
|
<td width="15%"> <INPUT class="form-control" TYPE="text" value="<?= $this->nettoyer($prescription['telephoneMedecin']) ?>" readonly style='font-size:9pt;'> </td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="alert alert-danger" style="height:40px" >
|
|
<H4><?= "Prescrit à : ". $_SESSION['prestataire_C'] ?></H4>
|
|
</div>
|
|
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:9pt;'>
|
|
<thead>
|
|
<tr>
|
|
<th width="50%" > <?= _("Médicament") ?> </th>
|
|
<th width="5%" style="text-align:center"> <?= _("Unité") ?> </th>
|
|
<th width="10%" style="text-align:center"> <?= _("Valeur") ?> </th>
|
|
<th width="5%" style="text-align:center"> <?= _("Qtité") ?> </th>
|
|
<th width="10%" style="text-align:center"> <?= _("Frais") ?> </th>
|
|
<th width="10%" style="text-align:center"> <?= _("T M") ?> </th>
|
|
<th width="10%" style="text-align:center"> <?= _("A Remb") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="4" style='text-align:center'> Total </td>
|
|
<td align='center'><?= format_N($this->nettoyer($prescription['fraisReel'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($prescription['montantTm'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($prescription['montantArembourser'])) ?></td>
|
|
</tr>
|
|
</tfoot>
|
|
|
|
<tbody>
|
|
|
|
<?php foreach ($detaillivres as $detaillivre):
|
|
$idLivre=$this->nettoyer($detaillivre['id']);
|
|
$substituable = $this->nettoyer($detaillivre['substituable']);
|
|
$substitue = $this->nettoyer($detaillivre['substitue']);
|
|
$ajPharmacie = $this->nettoyer($detaillivre['ajPharmacie']);
|
|
$typeSysteme = $this->nettoyer($detaillivre['typeSysteme']);
|
|
?>
|
|
|
|
<?php if($ajPharmacie=="1") : ?>
|
|
<tr valign="top" style="background-color: rgb(0, 142, 142);">
|
|
<?php else: ?>
|
|
<?php if($typeSysteme=="1") : ?>
|
|
<tr valign="top" style="background-color: red; color:white;">
|
|
<?php else: ?>
|
|
<tr valign="top">
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
|
|
<?php if($substitue=="1") : ?>
|
|
<td style="background-color: yellow;"> <?= $this->nettoyer($detaillivre['nomSubstitut']) ?> </td>
|
|
<?php else: ?>
|
|
<td> <?= $this->nettoyer($detaillivre['libelleMedicament']) ?> </td>
|
|
<?php endif; ?>
|
|
|
|
<td align='center'> <?= $this->nettoyer($detaillivre['unite']) ?> </td>
|
|
<td align='center'> <?= format_N($this->nettoyer($detaillivre['valeurActe'])) ?> </td>
|
|
<td align='center'> <?= $this->nettoyer($detaillivre['quantite']) ?> </td>
|
|
<td align='center'> <?= format_N($this->nettoyer($detaillivre['fraisReel'])) ?> </td>
|
|
<td align='center'> <?= format_N($this->nettoyer($detaillivre['montantTm'])) ?> </td>
|
|
<td align='center'> <?= format_N($this->nettoyer($detaillivre['montantArembourser'])) ?> </td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
<tr style='background-color:white'>
|
|
<td colspan="7" height="5"></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div id="recap">
|
|
<table class="table table-responsive table-condensed" style='font-size:12pt;' >
|
|
<tbody>
|
|
<tr>
|
|
<td > <?= _("Dépas") ?> </td>
|
|
<td > <INPUT class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($prescription['fraisExclu'])) ?>" readonly style="text-align: center; font-size:12pt; color:red;" > </td>
|
|
|
|
<td align="center" > <?= _("Ret") ?> </td>
|
|
<td > <INPUT class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($prescription['fraisRetenu'])) ?>" readonly style="text-align: center; font-size:12pt; color:blue;" > </td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|