62 lines
2.4 KiB
PHP
Executable File
62 lines
2.4 KiB
PHP
Executable File
<?php
|
|
$adminSin = $_SESSION['adminSin'];
|
|
?>
|
|
|
|
<legend> <?= _("Nouveau médicament") ?> </legend>
|
|
|
|
<table class="table table-responsive table-condensed" style="font-size:10pt;">
|
|
<tbody>
|
|
<tr>
|
|
<td width="8%" class="required"> <?= _("Désignation") ?> </td>
|
|
<td colspan="3" width="50%" ><INPUT style="font-size:10pt;" class="form-control" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF" autofocus ></td>
|
|
|
|
<td width="7%" align="center" class="required"> <?= _("Forme") ?> </td>
|
|
<td colspan="3">
|
|
<SELECT class="form-control" id="codeForme" NAME="codeForme" style='font-size:10pt;' >
|
|
<?php liste_options($forme, 'COMP', true); ?>
|
|
</SELECT>
|
|
</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"> <?= _("Unité") ?> </td>
|
|
<td > <INPUT style='font-size:10pt;' class="form-control" TYPE="text" id="unite" NAME="unite" ></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>
|