prestation/Vue/Optiquedec/index.php
2025-12-05 10:42:46 +00:00

63 lines
2.7 KiB
PHP
Executable File

<?php $this->titre = "INTER-SANTE - Prescription Optique";
$numeroBonOptique = $optique['numeroBonOptique'];
$numeroOptique = $optique['numeroOptique'];
?>
<script type="text/javascript">
</script>
<input style='text-align:center; font-size:11pt;' class="form-control" type="text" value= "Informations sur la prescription : <?= $numeroOptique ?>
=> Prestataire : <?= $_SESSION['prestataire_C'] ?> => Feuille Maladie : <?= $_SESSION['numeroFeuilleMaladie_C'] ?>" readonly >
<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($optique['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="<?= $numeroBonOptique ?>" readonly > </td>
<td width="10%" align="center"> <?= _("Médecin") ?> </td>
<td> <INPUT class="form-control" TYPE="text" value="<?= $this->nettoyer($optique['medecinPrescription']) ?>" readonly style='font-size:10pt;'> </td>
</tr>
</tbody>
</table>
<div id="verres">
<legend> <?= _("Verres prescrits") ?> </legend>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:10pt;">
<thead>
<tr>
<th width="65%"> <?= _("Libellé") ?> </th>
<th width="5%" style="text-align:center"> <?= _("Qtité") ?> </th>
<th style="text-align:center"> <?= _("Livré par") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($detailoptiques as $detailoptique):
$livre=$this->nettoyer($detailoptique['livre']);
$codePrestataireLivraison=$this->nettoyer($detailoptique['codePrestataireLivraison']);
$prestataireLivraison=$this->nettoyer($detailoptique['prestataireLivraison']);
?>
<tr valign="top">
<td> <?= $this->nettoyer($detailoptique['libelleOptique']) ?> </td>
<td align='center'> <?= $this->nettoyer($detailoptique['quantite']) ?> </td>
<?php if ($livre=="1") : ?>
<td> <input style="font-size:10pt;" class = "form-control btn btn-info" type="button" value="<?= $prestataireLivraison ?>" onClick="javascript:afficher_optique_dec('<?= $numeroBonOptique ?>','<?= $codePrestataireLivraison ?>');"> </td>
<?php else: ?>
<td> </td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>