63 lines
2.6 KiB
PHP
Executable File
63 lines
2.6 KiB
PHP
Executable File
<?php
|
|
$adminSin = $_SESSION['adminSin'];
|
|
?>
|
|
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive tabspeciale compact" style="font-size:9pt; paddind:0px;">
|
|
<thead>
|
|
<tr>
|
|
<th width="5%" style='text-align:center'> <?= _("Code") ?> </th>
|
|
<th width="45%" style='text-align:center'> <?= _("Médicament") ?> </th>
|
|
<th width="25%" style='text-align:center'> <?= _("Forme") ?> </th>
|
|
<th width="5%" style='text-align:center'> <?= _("Acc?") ?> </th>
|
|
<th width="5%" style='text-align:center'> <?= _("Exclu?") ?> </th>
|
|
<th width="5%" style='text-align:center'> <?= _("Actif?") ?> </th>
|
|
<th width="10%" style='text-align:center'> <?= _("Modif") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<?php foreach ($medicaments as $medicament):
|
|
$idMedicament = $this->nettoyer($medicament['id']);
|
|
$codeMedicament = $medicament['codeMedicament'];
|
|
$ententePrealable = $medicament['ententePrealable'];
|
|
$exclu = $medicament['exclu'];
|
|
$actif = $medicament['actif'];
|
|
$libelleMedicament = $this->nettoyer($medicament['libelle']);
|
|
$forme = $this->nettoyer($medicament['forme']);
|
|
if (est_anglophone()){
|
|
$forme = $this->nettoyer($medicament['formeEng']);
|
|
|
|
}
|
|
?>
|
|
<tr valign="top">
|
|
<td width="10%" align='center'><?= $codeMedicament ?></td>
|
|
<td><?= $this->nettoyer($libelleMedicament) ?></td>
|
|
<td ><?= $forme ?></td>
|
|
<?php if ($ententePrealable=="1"): ?>
|
|
<td align='center'> <input type="checkbox" checked disabled style='font-size:8pt;' ></td>
|
|
<?php else: ?>
|
|
<td align='center'> <input type="checkbox" disabled style='font-size:8pt;' ></td>
|
|
<?php endif; ?>
|
|
|
|
<?php if ($exclu=="1"): ?>
|
|
<td align='center'> <input type="checkbox" checked disabled style='font-size:8pt;' ></td>
|
|
<?php else: ?>
|
|
<td align='center'> <input type="checkbox" disabled style='font-size:8pt;' ></td>
|
|
<?php endif; ?>
|
|
|
|
<?php if ($actif=="1"): ?>
|
|
<td align='center'> <input type="checkbox" checked disabled style='font-size:8pt;' ></td>
|
|
<?php else: ?>
|
|
<td align='center'> <input type="checkbox" disabled style='font-size:8pt;' ></td>
|
|
<?php endif; ?>
|
|
|
|
<?php if($adminSin=="1") : ?>
|
|
<td> <input class = "form-control btn btn-info" type="button" value="<?= _("Modif") ?>" onClick="javascript:modifier_un_medicament(<?= $idMedicament ?>);" style='font-size:8pt;' > </td>
|
|
<?php else: ?>
|
|
<td> <input class = "form-control btn btn-info" type="button" value="<?= _("Modif") ?>" disabled style='font-size:8pt;' > </td>
|
|
<?php endif; ?>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|