58 lines
2.3 KiB
PHP
58 lines
2.3 KiB
PHP
<?php
|
|
$adminSin = $_SESSION['adminSin'];
|
|
?>
|
|
|
|
<legend> <?= _("Nouveau médicament") ?> </legend>
|
|
|
|
<table class="table table-responsive table-condensed" style="font-size:10pt;">
|
|
<tbody>
|
|
<tr>
|
|
<td width="7%" > <?= _("Désignation") ?> </td>
|
|
<td colspan="3" width="50%" ><INPUT style="font-size:10pt;" class="form-control" TYPE="text" id="libelle" NAME="libelle" required autofocus ></td>
|
|
|
|
<td width="7%" align="center" > <?= _("Unité") ?> </td>
|
|
<td colspan="3"><INPUT style="font-size:10pt;" class="form-control" TYPE="text" id="unite" NAME="unite" ></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td> <?= _("Accord?") ?> </td>
|
|
<td>
|
|
<SELECT class="form-control" id="ententePrealable" NAME="ententePrealable" style='font-size:10pt; text-align:center;' >
|
|
<?php liste_options($medicament_ententePrealable, '0', true); ?>
|
|
</SELECT>
|
|
</td>
|
|
|
|
<td align="center" > <?= _("Exclu?") ?> </td>
|
|
<td>
|
|
<SELECT class="form-control" id="exclu" NAME="exclu" style='font-size:10pt; text-align:center;' >
|
|
<?php liste_options($medicament_exclu, '0', true); ?>
|
|
</SELECT>
|
|
</td>
|
|
|
|
<td align="center" > <?= _("Actif?") ?> </td>
|
|
<td width="10%" >
|
|
<SELECT class="form-control" id="actif" NAME="actif" style='font-size:10pt; text-align:center;' >
|
|
<?php liste_options($medicament_actif, '1', true); ?>
|
|
</SELECT>
|
|
</td>
|
|
|
|
<td align="center"> <?= _("Instructions") ?> </td>
|
|
<td > <INPUT style='font-size:10pt;' class="form-control" TYPE="text" id="instructions" NAME="instructions" ></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
<td> </td>
|
|
<?php if($adminSin=="1") : ?>
|
|
<td colspan="3"> <input id="btn_enreg" name="btn_enreg" class = "form-control btn btn-primary" type="button" value="<?= _("Enregistrer") ?>" onClick="javascript:enregistrer_nouvel_medicament();" style='font-size:10pt;' > </td>
|
|
<?php else: ?>
|
|
<td colspan="3"> <input id="btn_enreg" name="btn_enreg" class = "form-control btn btn-primary" type="button" value="<?= _("Enregistrer") ?>" disabled style='font-size:10pt;' > </td>
|
|
<?php endif; ?>
|
|
|
|
<td> </td>
|
|
<td colspan="3"> <input class = "form-control btn btn-warning" type="button" value="<?= _("Annuler") ?>" onClick="javascript:retour_liste_medicaments();" style='font-size:10pt;' > </td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
</table>
|