69 lines
3.0 KiB
PHP
Executable File
69 lines
3.0 KiB
PHP
Executable File
<?php
|
|
$this->titre = "INTER-SANTE - Consultation Prescription Médicaments";
|
|
|
|
$numeroBonOrdonnance = $prescription['numeroBonOrdonnance'];
|
|
$facture = $prescription['facture'];
|
|
?>
|
|
|
|
<script type="text/javascript">
|
|
|
|
</script>
|
|
|
|
<input class="sr-only" id="facture" name="facture" type="text" value= "<?= $facture ?>" >
|
|
|
|
<legend><?= _("Prescription Médicale") ?></legend>
|
|
|
|
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
|
<tbody>
|
|
<tr>
|
|
<td width="10%" > Date Prescription </td>
|
|
<td width="15%" > <INPUT class="form-control" TYPE="text" value="<?= dateLang($this->nettoyer($prescription['datePrescription'])) ?>" readonly style="text-align: center; font-size:10pt;" > </td>
|
|
|
|
<td width="10%" align="center"> <?= _("No Ordonnance") ?> </td>
|
|
<td width="15%" > <input class="form-control" style="text-align: center; font-size:10pt; background-color:blue;color:white;" type="number" id="numeroBon" name="numeroBon" value="<?= $numeroBonOrdonnance ?>" readonly > </td>
|
|
|
|
<td width="10%" align="center"> <?= _("Médecin") ?> </td>
|
|
<td> <INPUT class="form-control" TYPE="text" value="<?= $this->nettoyer($prescription['medecinPrescription']) ?>" readonly style='font-size:10pt;'> </td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div id="medicaments">
|
|
<legend> <?= _("Médicaments prescrits") ?> </legend>
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:9pt;">
|
|
<thead>
|
|
<tr>
|
|
<th width="60%"> <?= _("Libellé") ?> </th>
|
|
<th width="10%" style="text-align:center"> Instructions </th>
|
|
<th width="10%" style="text-align:center"> Unit </th>
|
|
<th width="10%" style="text-align:center"> <?= _("Qté") ?> </th>
|
|
<th width="5%" style="text-align:center"> <?= _("Bon") ?> </th>
|
|
<th width="5%" style="text-align:center"> <?= _("Rempl") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<?php foreach ($detailprescriptions as $detailprescription):
|
|
$substituable = $this->nettoyer($detailprescription['substituable']);
|
|
$substitue = $this->nettoyer($detailprescription['substitue']);
|
|
|
|
$nomSubstitut = $this->nettoyer($detailprescription['nomSubstitut']);
|
|
$libelleMedicament = $this->nettoyer($detailprescription['libelleMedicament']);
|
|
?>
|
|
<tr valign="top">
|
|
<?php if($substituable=="1") : ?>
|
|
<td style="background-color: yellow;"> <?= $libelleMedicament . " => " . $nomSubstitut ?> </td>
|
|
<?php else: ?>
|
|
<td> <?= $libelleMedicament ?> </td>
|
|
<?php endif; ?>
|
|
<td align='center'> <?= $this->nettoyer($detailprescription['instructions']) ?> </td>
|
|
<td align='center'> <?= $this->nettoyer($detailprescription['unite']) ?> </td>
|
|
<td align='center'> <?= $this->nettoyer($detailprescription['quantite']) ?> </td>
|
|
<td align='center'> <?= $this->nettoyer($detailprescription['numeroBonOrdonnance']) ?> </td>
|
|
<td align='center'> <?= $this->nettoyer($detailprescription['numeroRemplacement']) ?> </td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|