130 lines
5.5 KiB
PHP
Executable File
130 lines
5.5 KiB
PHP
Executable File
<div id="medicaments">
|
|
<?php
|
|
$numeroBonOrdonnance = $prescription['numeroBonOrdonnance'];
|
|
if ($numeroBonOrdonnance>"0") :
|
|
?>
|
|
<legend> Médicaments prescrits / Prescribed </legend>
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
|
|
<thead>
|
|
<tr>
|
|
<th width="40%"> Libellé </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="5%" style="text-align:center"> TM </th>
|
|
<th width="10%" style="text-align:center"> A Rembours. </th>
|
|
<th width="5%" style="text-align:center"> Suppr </th>
|
|
<th width="5%" style="text-align:center"> Bon </th>
|
|
<th width="5%" style="text-align:center"> Rempl </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>
|
|
<td> </td>
|
|
<td> </td>
|
|
<td> </td>
|
|
</tr>
|
|
</tfoot>
|
|
|
|
<tbody>
|
|
<?php foreach ($detailprescriptions as $detailprescription):
|
|
$idMedicament=$this->nettoyer($detailprescription['id']);
|
|
$livre=$this->nettoyer($detailprescription['livre']);
|
|
|
|
$substituable = $this->nettoyer($detailprescription['substituable']);
|
|
$substitue = $this->nettoyer($detailprescription['substitue']);
|
|
|
|
$nomSubstitut = $this->nettoyer($detailprescription['nomSubstitut']);
|
|
$libelleMedicament = $this->nettoyer($detailprescription['libelleMedicament']);
|
|
$ajPharmacie = $this->nettoyer($detailprescription['ajPharmacie']);
|
|
?>
|
|
<?php if($ajPharmacie=="1") : ?>
|
|
<tr valign="top" style="background-color: rgb(0, 142, 142);">
|
|
<?php else: ?>
|
|
<tr valign="top">
|
|
<?php endif; ?>
|
|
|
|
<?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['unite']) ?> </td>
|
|
<td align='center'> <?= format_N($this->nettoyer($detailprescription['valeurActe'])) ?> </td>
|
|
|
|
<td align='center'>
|
|
<?php if ($livre!="1" && $ajPharmacie<>"1") : ?>
|
|
<INPUT style='text-align:center' class="form-control" TYPE="text" value="<?= $this->nettoyer($detailprescription['quantite']) ?>"
|
|
onBlur="ajax_maj_qte_medicament('<?=$idMedicament?>', this.value, this);">
|
|
<?php else: ?>
|
|
<INPUT style='text-align:center' class="form-control" TYPE="text" value="<?= $this->nettoyer($detailprescription['quantite']) ?>" readonly >
|
|
<?php endif; ?>
|
|
</td>
|
|
|
|
<td align='center'> <?= format_N($this->nettoyer($detailprescription['fraisReel'])) ?> </td>
|
|
<td align='center'> <?= format_N($this->nettoyer($detailprescription['montantTm'])) ?> </td>
|
|
<td align='center'> <?= format_N($this->nettoyer($detailprescription['montantArembourser'])) ?> </td>
|
|
|
|
<?php if ($livre!="1" && $ajPharmacie<>"1") : ?>
|
|
<td> <input class = "form-control btn btn-danger" type="button" value="X" onClick="javascript:supprimer_medicament('<?= $idMedicament ?>');"> </td>
|
|
<?php else: ?>
|
|
<td> </td>
|
|
<?php endif; ?>
|
|
|
|
<td align='center'> <?= $this->nettoyer($detailprescription['numeroBonOrdonnance']) ?> </td>
|
|
<td align='center'> <?= $this->nettoyer($detailprescription['numeroRemplacement']) ?> </td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
<tr style='background-color:white'>
|
|
<td colspan="10" height="8"></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="modal fade" id="popRechercheMedicament" role="dialog">
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
<button id="btn_close_pop" name="btn_close_pop" type="button" class="close" data-bs-dismiss="modal">Fermer / Close</button>
|
|
<h4 class="modal-title">Rechercher un médicament... / Search a drug...</h4>
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
<div id="div_listemedicament" onkeypress="javascript:ctrlkeypress(event);">
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:10pt;'>
|
|
<thead>
|
|
<tr>
|
|
<th style="text-align:center" width="10%" > Code </th>
|
|
<th style="text-align:center" >Nom contenant... / Name containing...</th>
|
|
<th style="text-align:center" > Prix / Price</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td colspan="2"><input type="text" class="form-control" id="nomsearch" name="nomsearch" autofocus style='font-size:10pt;'></td>
|
|
<td><input type="button" class = "form-control btn btn-info" style='font-size:10pt;' value="Rechercher... / Search..." onclick="javascript:afficher_pop_recherche_medicament();" /></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-default" data-bs-dismiss="modal">Fermer / Close</button>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
</div>
|