prestation/Vue/Modifiermedicament/index.php
2025-12-05 10:42:46 +00:00

63 lines
2.7 KiB
PHP
Executable File

<?php
$idMedicament = $this->nettoyer($medicament['id']);
$codeMedicament = $medicament['codeMedicament'];
$ententePrealable = $medicament['ententePrealable'];
$exclu = $medicament['exclu'];
$actif = $medicament['actif'];
?>
<input class="sr-only" type="text" id="idMedicament" name="idMedicament" value="<?= $idMedicament ?>" >
<input class="sr-only" type="text" id="codeMedicament" name="codeMedicament" value="<?= $codeMedicament ?>" >
<table class="table table-responsive table-condensed" style="font-size:10pt;">
<tbody>
<tr>
<td width="7%" class="required"> <?= _("Désignation") ?> </td>
<td colspan="3" width="50%" ><INPUT style="font-size:10pt;" class="form-control" TYPE="text" id="libelle" NAME="libelle" value="<?=$this->nettoyer( $medicament['libelle'])?>" required AUTOCOMPLETE="OFF" autofocus ></td>
<td width="7%" align="center" class="required"> <?= _("Forme") ?> </td>
<td colspan="3">
<select name="codeForme" id="codeForme" class="form-control" required AUTOCOMPLETE="OFF" >
<?= liste_options($forme,$this->nettoyer( $medicament['codeForme']),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, $ententePrealable, 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, $exclu, 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, $actif, true); ?>
</SELECT>
</td>
<td align="center"> <?= _("Instructions") ?> </td>
<td > <INPUT style='font-size:10pt;' class="form-control" TYPE="text" id="instructions" NAME="instructions" value="<?=$this->nettoyer( $medicament['instructions'])?>"></td>
</tr>
<tr>
<td> </td>
<td colspan="3"> <input id="btn_enreg" name="btn_enreg" class = "form-control btn btn-primary" type="button" value="<?= _("Enregistrer") ?>" onClick="javascript:enregistrer_modif_un_medicament();" style='font-size:10pt;' > </td>
<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>