57 lines
2.4 KiB
PHP
Executable File
57 lines
2.4 KiB
PHP
Executable File
<div id="ordonnance">
|
|
<table class="table table-striped table-hover table-condensed table-responsive" style='font-size:9pt;'>
|
|
<thead>
|
|
<tr>
|
|
<th style="text-align:center"> Médicaments prescrits / Prescribed </th>
|
|
<th style="text-align:center"> Instructions </th>
|
|
<th style="text-align:center"> Unité </th>
|
|
<th style="text-align:center"> Bon </th>
|
|
<th style="text-align:center"> Rempl </th>
|
|
<th style="text-align:center" > Ent. </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach ($detailprescriptions as $detailprescription):
|
|
$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']);
|
|
$ententePrealable1=$this->nettoyer($detailprescription['ententePrealable']);
|
|
?>
|
|
|
|
<?php if($ententePrealable1=='2' || $ententePrealable1=='3'): ?>
|
|
<tr valign="top" style="background-color: yellow;">
|
|
<?php elseif($ententePrealable1=='1'): ?>
|
|
<tr valign="top" style="background-color: #00ff00;">
|
|
<?php elseif($ententePrealable1=='9'): ?>
|
|
<tr valign="top" style="background-color: red;color:white;">
|
|
<?php else: ?>
|
|
<tr valign="top">
|
|
<?php endif; ?>
|
|
|
|
<?php if($substituable=="1") : ?>
|
|
<td align='center' style="background-color: yellow;"> <?= $libelleMedicament . " => " . $nomSubstitut ?> </td>
|
|
<?php else: ?>
|
|
<td align='center'> <?= $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['numeroBonOrdonnance']) ?> </td>
|
|
<td align='center'> <?= $this->nettoyer($detailprescription['numeroRemplacement']) ?> </td>
|
|
|
|
<?php if($ententePrealable1<>"0"): ?>
|
|
<td align='center'> <input type="checkbox" checked disabled></td>
|
|
<?php else: ?>
|
|
<td align='center'> <input type="checkbox" disabled></td>
|
|
<?php endif; ?>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|