radiantprestation/Vue/Prescription/index.php

600 lines
28 KiB
PHP

<?php
$this->titre = "INTER-SANTE - Prescription";
$numeroBonOrdonnance = $prescription['numeroBonOrdonnance'];
$facture = $prescription['facture'];
$_SESSION['p_numeroBonOrdonnance_C'] = $numeroBonOrdonnance;
$nbMedicamentSaisie = $prescription['nbMedicamentSaisie'];
$badcodeGestionBon = "1";
$tab_gestion_bon = array("0", "1", "2");
if (in_array($codeGestionBon, $tab_gestion_bon))
{
$badcodeGestionBon = "0";
}
$actVisible = $_SESSION['p_actVisible'];
$hospitalisation = $_SESSION['p_hospitalisation_C'];
$fusionConsOrd = $_SESSION['p_fusionConsOrd'];
$agePrescription = $this->nettoyer($prescription['agePrescription']);
$bonCaduc = $this->nettoyer($prescription['bonCaduc']);
$modeSaisieFacture = $_SESSION['p_modeSaisieFacture'];
if($modeSaisieFacture=="1")
{
$bonCaduc = "0";
}
?>
<script type="text/javascript">
</script>
<input class="sr-only" id="badcodeGestionBon" name="badcodeGestionBon" type="text" value= "<?= $badcodeGestionBon ?>" >
<input class="sr-only" id="bonCaduc" name="bonCaduc" type="text" value= "<?= $bonCaduc ?>" >
<?php if ($numeroBonOrdonnance<="0" && $badcodeGestionBon=="1") : ?>
<div class="alert alert-danger" style="height:30px; padding:5px; text-align:center;" >
<H4> <?= _("REVOIR LE TYPE DE GESTION DES BONS") ?> </H4>
</div>
<?php else: ?>
<input class="sr-only" id="facture" name="facture" type="text" value= "<?= $facture ?>" >
<input class="sr-only" id="numeroBonOrdonnance" name="numeroBonOrdonnance" type="text" value= "<?= $numeroBonOrdonnance ?>" >
<input class="sr-only" id="codeMedecin" name="codeMedecin" type="text" value= "<?= $prescription['codeMedecin'] ?>">
<input class="sr-only" type="text" id="numOrd" name="numOrd" value= "<?= $numeroBonOrdonnance ?>" >
<input class="sr-only" type="text" id="noPrescription" name="noPrescription" value="<?= $this->nettoyer($prescription['noPrescription']) ?>" >
<input class="sr-only" type="text" id="nbMedicamentMax" name="nbMedicamentMax" value="<?= $_SESSION['p_nbMedicamentMax'] ?>" >
<button id="btn_add_drug" name="btn_add_drug" type="button" class="sr-only" btn btn-primary" data-toggle="modal" data-target="#popRechercheMedicament" > </button>
<button id="btn_remplacer_medicament" name="btn_remplacer_medicament" type="button" class="sr-only" btn btn-primary" data-toggle="modal" data-target="#popRechercheMedicamentRemplacment" ><?= _("Remplacer Médicament...") ?></button>
<input class="sr-only" type="text" id="nbBonsOrd" name="nbBonsOrd" Value="<?= $nbBonsOrd ?>" >
<input class="sr-only" type="text" id="codeGestionBon" name="codeGestionBon" Value="<?= $codeGestionBon ?>" >
<legend><?= _("Prescription Médicale") ?></legend>
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td width="10%" > Date Prescription </td>
<td width="24%" > <INPUT class="form-control" TYPE="text" value="<?= dateLang($this->nettoyer($prescription['datePrescription'])) ?>" readonly style="text-align: center; font-size:10pt;" > </td>
<td width="15%" align="center"> <?= _("Médecin") ?> </td>
<td>
<?php if ($numeroBonOrdonnance>"0" or $facture=="1") : ?>
<INPUT class="form-control" TYPE="text" value="<?= $this->nettoyer($prescription['medecinPrescription']) ?>" readonly style='font-size:10pt;'>
<?php else: ?>
<button type="button" class="form-control btn btn-primary" data-toggle="modal" data-target="#popRechercheMedecin" style='font-size:10pt;' ><span id="nomMedecin" name="nomMedecin"> <?= $this->nettoyer($prescription['medecinPrescription']) ?> </span></button>
<?php endif; ?>
</td>
</tr>
</tbody>
</table>
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td width="10%" > <?= _("Bons Disponibles") ?> </td>
<td width="24%" > <input class="form-control" style="text-align: center; font-size:10pt;" Value="<?= $nbBonsOrd ?>" readonly > </td>
<td width="15%" align="center" > <?= _("Gestion") ?> </td>
<td>
<?php if($badcodeGestionBon=="1") : ?>
<input class="form-control" style="text-align: center; font-size:10pt; background-color: red;color:white;" Value="<?= _("INCONNU") ?>" readonly >
<?php else: ?>
<input class="form-control" style="text-align: center; font-size:10pt;" Value="<?= $typeGestionbon ?>" readonly >
<?php endif; ?>
</td>
</tr>
</tbody>
</table>
<div id="infosbon">
<?php if($fusionConsOrd=="1"): ?>
<?php if ($numeroBonOrdonnance>"0") : ?>
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td width="10%" > <?= _("No Ordonnance") ?> </td>
<td width="24%" > <input class="form-control" style="text-align: center; font-size:10pt; background-color:blue;color:white;" type="number" id="numeroBon" name="numeroBon" value="<?= $numeroBonOrdonnance ?>" readonly > </td>
<td width="15%" > </td>
<?php if ($facture=="1"): ?>
<td align='center' class="alert alert-danger" style="height:30px; padding:5px;" > <?= _("Dejà facturée !") ?> </td>
<?php else: ?>
<?php if ($nbMedicamentSaisie>=$_SESSION['p_nbMedicamentMax'] && $hospitalisation!="1"): ?>
<div class="alert alert-danger" style="height:30px; padding:5px;">
<H4> <?= _("Attention! Maximum de médicaments atteint!") ?></H4>
</div>
<?php else: ?>
<td>
<?php if($actVisible=="1" && $bonCaduc!="1"): ?>
<input class="form-control btn btn-primary" type="button" value="<?= _("Ajouter Médicament")."..." ?>" onClick="javascript:click_btn_add_drug();" style='font-size:10pt;'>
<?php else: ?>
<input class="form-control btn btn-primary" type="button" value="<?= _("Ajouter Médicament")."..." ?>" disabled style='font-size:10pt;'>
<?php endif; ?>
</td>
<?php endif; ?>
<?php endif; ?>
</tr>
</tbody>
</table>
<?php else: ?>
<input class="sr-only" type="text" id="codeEtatBon" name="codeEtatBon" value="1">
<input class="sr-only" type="text" id="numeroBonSave" name="numeroBonSave" value="1">
<input class="sr-only" type="text" id="numeroBon" name="numeroBon" value="1">
<?php if($bonCaduc!="1") : ?>
<input id="btn_enreg" name="btn_enreg" class = "form-control btn btn-primary" type="button" value="<?= _("Enregistrer") ?>" onClick="javascript:enregistrerprescription();" style='font-size:10pt;' >
<?php endif; ?>
<?php endif; ?>
<?php else: ?>
<?php if($codeGestionBon!="0"): ?>
<?php if ($numeroBonOrdonnance>"0") : ?>
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td width="10%" > <?= _("No Ordonnance") ?> </td>
<td width="24%" > <input class="form-control" style="text-align: center; font-size:10pt; background-color:blue;color:white;" type="number" id="numeroBon" name="numeroBon" value="<?= $numeroBonOrdonnance ?>" readonly > </td>
<td width="15%" > </td>
<?php if ($facture=="1"): ?>
<td align='center' class="alert alert-danger" style="height:30px; padding:5px;" > <?= _("Dejà facturée !") ?> </td>
<?php else: ?>
<?php if ($nbMedicamentSaisie>=$_SESSION['p_nbMedicamentMax'] && $hospitalisation!="1"): ?>
<div class="alert alert-danger" style="height:30px; padding:5px;">
<H4> <?= _("Attention! Maximum de médicaments atteint!") ?></H4>
</div>
<?php else: ?>
<td>
<?php if($actVisible=="1" && $bonCaduc!="1"): ?>
<input class="form-control btn btn-primary" type="button" value="<?= _("Ajouter Médicament")."..." ?>" onClick="javascript:click_btn_add_drug();" style='font-size:10pt;'>
<?php else: ?>
<input class="form-control btn btn-primary" type="button" value="<?= _("Ajouter Médicament")."..." ?>" disabled style='font-size:10pt;'>
<?php endif; ?>
</td>
<?php endif; ?>
<?php endif; ?>
</tr>
</tbody>
</table>
<?php else: ?>
<input class="sr-only" type="text" id="codeEtatBon" name="codeEtatBon" value="1">
<input class="sr-only" type="text" id="numeroBonSave" name="numeroBonSave" value="1">
<input class="sr-only" type="text" id="numeroBon" name="numeroBon" value="1">
<?php if($codeGestionBon=="1" && $nbBonsOrd<1): ?>
<div class="alert alert-danger" style="height:30px; padding:5px; text-align:center;" >
<H4> <?= _("STOCK DE BON EPUISE") ?> </H4>
</div>
<?php else: ?>
<input id="btn_enreg" name="btn_enreg" class = "form-control btn btn-primary" type="button" value="<?= _("Enregistrer") ?>" onClick="javascript:enregistrerprescription();" style='font-size:10pt;' >
<?php endif; ?>
<?php endif; ?>
<?php else: ?>
<input class="sr-only" type="text" id="codeEtatBon" name="codeEtatBon" value="">
<input class="sr-only" type="text" id="numeroBonSave" name="numeroBonSave" value="0">
<?php if ($numeroBonOrdonnance>"0") : ?>
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td width="10%" > <?= _("No Ordonnance") ?> </td>
<td width="24%" > <input class="form-control" style="text-align: center; font-size:10pt; background-color:blue;color:white;" type="number" id="numeroBon" name="numeroBon" value="<?= $numeroBonOrdonnance ?>" readonly > </td>
<td width="15%" > </td>
<?php if ($facture=="1"): ?>
<td align='center' class="alert alert-danger" style="height:30px; padding:5px;" > <?= _("Dejà facturée !") ?> </td>
<?php else: ?>
<?php if ($nbMedicamentSaisie>=$_SESSION['p_nbMedicamentMax'] && $hospitalisation!="1"): ?>
<div class="alert alert-danger" style="height:30px; padding:5px;">
<H4> <?= _("Attention! Maximum de médicaments atteint!") ?></H4>
</div>
<?php else: ?>
<td>
<?php if($actVisible=="1" && $bonCaduc!="1"): ?>
<input class="form-control btn btn-primary" type="button" value="<?= _("Ajouter Médicament")."..." ?>" onClick="javascript:click_btn_add_drug();" style='font-size:10pt;'>
<?php else: ?>
<input class="form-control btn btn-primary" type="button" value="<?= _("Ajouter Médicament")."..." ?>" disabled style='font-size:10pt;'>
<?php endif; ?>
</td>
<?php endif; ?>
<?php endif; ?>
</tr>
</tbody>
</table>
<?php else: ?>
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<?php if($nbBonsOrd<1): ?>
<tr>
<input class="sr-only" type="number" id="numeroBon" name="numeroBon" required >
<td>
<div class="alert alert-danger" style="height:30px; padding:5px; text-align:center;" >
<H4> <?= _("STOCK DE BON EPUISE") ?> </H4>
</div>
</td>
</tr>
<?php else: ?>
<tr>
<td width="10%" > <?= _("No Ordonnance") ?> </td>
<?php if ($facture=="1"): ?>
<td width="24%" > <input class="form-control" style="text-align: center; font-size:10pt; background-color:blue;color:white;" type="number" id="numeroBon" name="numeroBon" value="<?= $numeroBonOrdonnance ?>" readonly > </td>
<?php elseif($bonCaduc!="1"): ?>
<td width="24%" > <input class="form-control" style="text-align: center; font-size:10pt;" type="number" id="numeroBon" name="numeroBon" required
onChange="javascript:ajaxinfosbonprescription();" onkeypress="javascript:ctrlkeypress_numeroBon(event);" autofocus ></td>
<?php else: ?>
<td width="24%" > <input class="form-control" style="text-align: center; font-size:10pt;" type="number" id="numeroBon" name="numeroBon" readonly ></td>
<?php endif; ?>
<td width="15%" > </td>
<td><input id="btn_enreg" name="btn_enreg" class = "form-control btn btn-primary" type="button" value="<?= _("Enregistrer") ?>" disabled style='font-size:10pt;' ></td>
</tr>
<?php endif; ?>
</tbody>
</table>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<?php if (isset($msgErreur)): ?>
<div id ="msgErreur" class="alert alert-danger" style="height:30px; padding:5px;" >
<H4><?= $msgErreur ?></H4>
</div>
<?php endif; ?>
</div>
<?php if($bonCaduc=="1") : ?>
<div class="alert alert-danger" style="height:30px; padding:5px; text-align:center; margin-bottom:5px;" >
<H4> <?= " Age => ".$agePrescription . " "._("jours") . " => " . _("BON CADUC") ?> </H4>
</div>
<?php endif; ?>
<?php if ($numeroBonOrdonnance>"0") : ?>
<div id="medicaments">
<input class="sr-only" type="text" id="nbMedicamentSaisie" name="nbMedicamentSaisie" value="<?= $nbMedicamentSaisie ?>" >
<legend> <?= _("Médicaments prescrits") ?> </legend>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th style="text-align:center"> <?= _("Libellé") ?> </th>
<th width="5%" style="text-align:center"> <?= _("Unité") ?> </th>
<th width="10%" style="text-align:center"> <?= _("Valeur") ?> </th>
<th width="5%" style="text-align:center"> <?= _("Qté") ?> </th>
<th width="10%" style="text-align:center"> <?= _("Frais") ?> </th>
<th width="5%" style="text-align:center"> <?= _("T M") ?> </th>
<th width="10%" style="text-align:center"> <?= _("A Remb") ?> </th>
<th width="5%" style="text-align:center"> <?= _("Suppr") ?> </th>
<th width="5%" style="text-align:center"> <?= _("Bon") ?> </th>
<th width="5%" style="text-align:center"> <?= _("Rempl") ?> </th>
<th style="text-align:center" > <?= _("Accord") ?> </th>
<th colspan="2" width="8%" style="text-align:center"> <?= _("Rempl") ?> </th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="4" style='text-align:center'> Total</td>
<td align='center'><?= format_N($this->nettoyer($prescription['fraisReel'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($prescription['montantTm'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($prescription['montantArembourser'])) ?></td>
<td colspan="6"> </td>
</tr>
</tfoot>
<tbody>
<?php foreach ($detailprescriptions as $detailprescription):
$idMedicament = $this->nettoyer($detailprescription['id']);
$livre = $this->nettoyer($detailprescription['livre']);
$substituable = $this->nettoyer($detailprescription['substituable']);
$substitue = $this->nettoyer($detailprescription['substitue']);
$nomSubstitut = $this->nettoyer($detailprescription['nomSubstitut']);
$libelleMedicament = $this->nettoyer($detailprescription['libelleMedicament']);
$codeMedicament = $this->nettoyer($detailprescription['codeMedicament']);
$ajPharmacie = $this->nettoyer($detailprescription['ajPharmacie']);
$ententePrealable = $this->nettoyer($detailprescription['ententePrealable']);
$medicamentRemplace = $this->nettoyer($detailprescription['medicamentRemplace']);
if($actVisible!="1")
{
$libelleMedicament = $codeMedicament;
}
?>
<?php if($ajPharmacie=="1") : ?>
<tr valign="top" style="background-color: rgb(0, 142, 142);">
<?php else: ?>
<tr valign="top">
<?php endif; ?>
<?php if($ententePrealable=='2' || $ententePrealable=='3'): ?>
<td align='center' style="background-color: yellow;"> <?= $libelleMedicament ?> </td>
<?php elseif($ententePrealable=='1'): ?>
<td align='center' style="background-color: #00ff00;"> <?= $libelleMedicament ?> </td>
<?php elseif($ententePrealable=='9'): ?>
<td align='center' style="background-color: red;color:white;"> <?= $libelleMedicament ?> </td>
<?php else: ?>
<td align='center'> <?= $libelleMedicament ?> </td>
<?php endif; ?>
<td align='center'> <?= $this->nettoyer($detailprescription['unite']) ?> </td>
<td align='center'> <?= format_N($this->nettoyer($detailprescription['valeurActe'])) ?> </td>
<td align='center'>
<?php if ($livre!="1" && $ajPharmacie<>"1" && $bonCaduc!="1") : ?>
<INPUT style='text-align:center' class="form-control" TYPE="text" value="<?= $this->nettoyer($detailprescription['quantite']) ?>"
onBlur="ajax_maj_qte_medicament('<?=$idMedicament?>', this.value, this);">
<?php else: ?>
<INPUT style='text-align:center' class="form-control" TYPE="text" value="<?= $this->nettoyer($detailprescription['quantite']) ?>" readonly >
<?php endif; ?>
</td>
<td align='center'> <?= format_N($this->nettoyer($detailprescription['fraisReel'])) ?> </td>
<td align='center'> <?= format_N($this->nettoyer($detailprescription['montantTm'])) ?> </td>
<td align='center'> <?= format_N($this->nettoyer($detailprescription['montantArembourser'])) ?> </td>
<?php if ($facture=="1"): ?>
<td> </td>
<?php else: ?>
<?php if ($livre!="1" && $ajPharmacie<>"1" && $bonCaduc!="1") : ?>
<td> <input class = "form-control btn btn-danger" type="button" value="X" onClick="javascript:supprimer_medicament('<?= $idMedicament ?>');"> </td>
<?php else: ?>
<td> </td>
<?php endif; ?>
<?php endif; ?>
<td align='center'> <?= $this->nettoyer($detailprescription['numeroBonOrdonnance']) ?> </td>
<td align='center'> <?= $this->nettoyer($detailprescription['numeroRemplacement']) ?> </td>
<?php if($ententePrealable<>"0"): ?>
<td align='center'> <input type="checkbox" checked disabled></td>
<?php else: ?>
<td align='center'> <input type="checkbox" disabled></td>
<?php endif; ?>
<?php if ($facture!="1"): ?>
<td colspan="2"> </td>
<?php else: ?>
<?php if ($medicamentRemplace=="1") : ?>
<td> <input class = "form-control btn btn-primary" type="button" value="Cons" onClick="javascript:consulter_remplacer_medicament('<?= $numeroBonOrdonnance ?>');"> </td>
<?php else: ?>
<td> </td>
<?php endif; ?>
<?php if ($livre!="1" && $bonCaduc!="1") : ?>
<td> <input class = "form-control btn btn-warning" type="button" value="Rempl" onClick="javascript:init_remplacer_medicament('<?= $idMedicament ?>');"> </td>
<?php else: ?>
<td> </td>
<?php endif; ?>
<?php endif; ?>
</tr>
<?php endforeach; ?>
<tr style='background-color:white'>
<td colspan="13" height="8"></td>
</tr>
</tbody>
</table>
<div class="modal fade" id="popRechercheMedicament" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button id="btn_close_pop" name="btn_close_pop" type="button" class="close" data-dismiss="modal"> <?= _("Fermer") ?> </button>
<h4 class="modal-title"><?= _("Rechercher un médicament...") ?></h4>
</div>
<div class="modal-body">
<div id="div_listemedicament" onkeypress="javascript:ctrlkeypress(event);">
<?php if ($nbMedicamentSaisie>=$_SESSION['p_nbMedicamentMax'] && $hospitalisation!="1"): ?>
<div class="alert alert-danger" style="height:30px; padding:5px;">
<H4> <?= _("Attention! Maximum de médicaments atteint!") ?></H4>
</div>
<?php else: ?>
<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" > Instructions </th>
<th style="text-align:center" > <?= _("Prix") ?> </th>
<th style="text-align:center" > Unit </th>
<th style="text-align:center" > <?= _("Accord") ?> </th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="2"> <input type="text" class="form-control" id="nomsearch" name="nomsearch" autofocus style='font-size:10pt;' ></td>
<td colspan="4"> <input type="button" class = "form-control btn btn-info" style='font-size:10pt;' value="<?= _("Rechercher...") ?>" onclick="javascript:afficher_pop_recherche_medicament();" /></td>
</tr>
</tbody>
</table>
<?php endif; ?>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"> <?= _("Fermer") ?> </button>
</div>
</div>
</div>
</div>
</div>
<div id="div_ged_0">
<form enctype="multipart/form-data" action="Prescription" method="post">
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td> <?= _("Document") ?> </td>
<td> <input style="font-size: 15px; height: 40px" class="form-control btn btn-info" name="fichier_upload" type="file" id="fichier_upload" /> </td>
<td> </td>
<td> <input style='font-size:10pt;' class="form-control btn btn-primary" type="submit" name="submit" value="<?= _("Envoyer") ?>" /> </td>
<td> </td>
<td > <button style='font-size:10pt;' type="button" class="form-control btn btn-primary" onclick="javascript:prescription_medicament();"><?= _("Actualiser...") ?></button> </td>
</tr>
</tbody>
</table>
</form>
<?php if((isset($msgErreurGed)) && ($msgErreurGed>" ")) : ?>
<INPUT style='font-size:12pt; color:red; text-align:center;' class="form-control" type="text" value="<?= $msgErreurGed ?>" readonly >
<?php endif; ?>
<table class="table table-striped table-hover table-condensed table-responsive" style="font-size:9pt;" >
<thead>
<th width="12%" style='text-align:center'> Date </th>
<th style='text-align:center'> <?= _("Document GED") ?></th>
<th width="11%" style='text-align:center'> <?= _("Télécharger") ?> </th>
</thead>
<tbody>
<?php foreach ($geds as $ged):
$idGed=$this->nettoyer($ged['idGed']);
$cheminFichier = $this->nettoyer($ged['cheminFichier']);
?>
<tr valign="top">
<td align='center'><?= dateheureLang($this->nettoyer($ged['dateSysteme'])) ?></td>
<td align='center'><?= $this->nettoyer($ged['nomOrigine']) ?></td>
<td align="center">
<a style="font-size:10pt;" href="<?= $cheminFichier ?>" target="_blank" > <?= _("Télécharger") ?> </a>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<?php endif; ?>
<div class="modal fade" id="popRechercheMedecin" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button id="btn_close_pop" name="btn_close_pop" type="button" class="close" data-dismiss="modal"> <?= _("Fermer") ?> </button>
<h4 class="modal-title"><?= _("Rechercher un Médecin...") ?></h4>
</div>
<div class="modal-body">
<div id="div_listemedecins" onkeypress="javascript:ctrlkeypress_medecin(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="15%" > Code </th>
<th width="50%" style="text-align:center" > <?= _("Nom contenant...") ?> </th>
<th style="text-align:center" > <?= _("Spécialité") ?> </th>
</tr>
</thead>
<tbody>
<tr>
<td><input type="text" class="form-control" id="noOrdreMedecin" name="noOrdreMedecin" autofocus style='font-size:10pt;' ></td>
<td><input type="text" class="form-control" id="nomsearch" name="nomsearch" autofocus style='font-size:10pt;' ></td>
<td><input type="button" class = "form-control btn btn-info" style='font-size:10pt;' value="<?= _("Rechercher...") ?>" onclick="javascript:afficher_pop_recherche_medecin();" /></td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="modal-footer">
<button id="close_pop" name="close_pop" type="button" class="btn btn-default" data-dismiss="modal"> <?= _("Fermer") ?> </button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="popRechercheMedicamentRemplacment" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button id="btn_close_pop_rempl" name="btn_close_pop_rempl" type="button" class="close" data-dismiss="modal"> <?= _("Fermer") ?> </button>
<h4 class="modal-title"><?= _("Remplacer un médicament...") ?></h4>
</div>
<div class="modal-body">
<div id="div_listemedicament_rempl" onkeypress="javascript:ctrlkeypress_medicament_remplacement(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" > Instructions </th>
<th style="text-align:center" > <?= _("Prix") ?> </th>
<th style="text-align:center" > Unit </th>
<th style="text-align:center" > <?= _("Accord") ?> </th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="2"> <input type="text" class="form-control" id="nomsearchrempl" name="nomsearchrempl" autofocus style='font-size:10pt;' ></td>
<td colspan="4"> <input type="button" class = "form-control btn btn-info" style='font-size:10pt;' value="<?= _("Rechercher...") ?>" onclick="javascript:afficher_pop_recherche_medicament_remplacement();" /></td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"> <?= _("Fermer") ?> </button>
</div>
</div>
</div>
</div>
<div id="content">
<?php include 'flexcode/include/global.php'; ?>
</div>
<?php endif; ?>
<button id="btn_medicaments_remplaces" name="btn_medicaments_remplaces" type="button" class="sr-only" btn btn-primary" data-toggle="modal" data-target="#po_liste_medicaments_remplaces" > </button>
<div class="modal fade" id="po_liste_medicaments_remplaces" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"> <?= _("Fermer") ?> </button>
<h4 class="modal-title"><?= _("Médicaments remplacés") ?></h4>
</div>
<div class="modal-body">
<div id="div_liste_medicaments_remplaces" >
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"> <?= _("Fermer") ?> </button>
</div>
</div>
</div>
</div>