59 lines
3.0 KiB
PHP
Executable File
59 lines
3.0 KiB
PHP
Executable File
<div id="div_liste_medicament" onkeypress="javascript:ctrlkeypress_sub(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...") ?> </th>
|
|
<th style="text-align:center" > Forme </th>
|
|
<th style="text-align:center" > <?= _("Prix Unitaire") ?> </th>
|
|
<th style="text-align:center" > <?= _("Accord") ?> </th>
|
|
<th style="text-align:center" > <?= _("Exclu") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<?php foreach ($mdedicaments_pop as $mdedicament_pop):
|
|
$idMedicament = $this->nettoyer($mdedicament_pop['idMedicament']);
|
|
$codeMedicament = $this->nettoyer($mdedicament_pop['codeMedicament']);
|
|
$libelleMedicament = $this->echapper($mdedicament_pop['libelleMedicament']);
|
|
$prix = $this->nettoyer($mdedicament_pop['prix']);
|
|
$ententePrealable = $this->nettoyer($mdedicament_pop['ententePrealable']);
|
|
$exclu = $this->nettoyer($mdedicament_pop['exclu']);
|
|
$forme = $this->nettoyer($mdedicament_pop['forme']);
|
|
if (est_anglophone()){
|
|
$forme = $this->nettoyer($mdedicament_pop['formeEng']);
|
|
}
|
|
?>
|
|
<?php if ($exclu=="1"): ?>
|
|
<tr valign="top" style="background-color: red;color:white;">
|
|
<?php elseif($ententePrealable=='1'): ?>
|
|
<tr style="background-color: yellow;" onclick="javascript:selectionner_medicament_sub('<?=$idMedicament?>','<?=$codeMedicament?>','<?=$libelleMedicament?>','<?=$prix?>')" ondblclick="" valign="top">
|
|
<?php else: ?>
|
|
<tr onclick="javascript:selectionner_medicament_sub('<?=$idMedicament?>','<?=$codeMedicament?>','<?=$libelleMedicament?>','<?=$prix?>')" ondblclick="" valign="top">
|
|
<?php endif; ?>
|
|
<?php if ($exclu=="1"): ?>
|
|
<td align="center"> <input type="text" class = "form-control" value="<?= $codeMedicament ?>" style='font-size:10pt;' disabled> </td>
|
|
<?php else: ?>
|
|
<td align="center"> <input type="button" class = "form-control btn btn-primary" value="<?= $codeMedicament ?>" style='font-size:10pt;' onclick="javascript:selectionner_medicament_sub('<?=$idMedicament?>','<?=$codeMedicament?>','<?=$libelleMedicament?>','<?=$prix?>')"> </td>
|
|
<?php endif; ?>
|
|
<td> <?= $this->dechapper($libelleMedicament) ?> </td>
|
|
|
|
<td align="center"> <?= $this->nettoyer($mdedicament_pop['forme']) ?> </td>
|
|
<td align="center"> <?= $prix ?> </td>
|
|
<?php if ($ententePrealable=="1"): ?>
|
|
<td align='center'> <input type="checkbox" checked disabled></td>
|
|
<?php else: ?>
|
|
<td align='center'> <input type="checkbox" disabled></td>
|
|
<?php endif; ?>
|
|
|
|
<?php if ($exclu=="1"): ?>
|
|
<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>
|