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

666 lines
29 KiB
PHP
Executable File

<?php
$this->titre = "INTER-SANTE - Livraison médicaments";
$numeroBonOrdonnance = $_SESSION['p_numeroBonOrdonnance_C'];
$numeroPrescription = $_SESSION['p_numeroPrescription_C'] ;
$estRempalace = false;
$accesAjoutPh = ($_SESSION['p_accesAjoutPh_C']==1) ;
?>
<script type="text/javascript">
</script>
<button id="btn_pop" NAME="btn_pop" type="button" class="sr-only" data-bs-toggle="modal" data-bs-target="#pop_substitution_medicament"> </button>
<?php if($numeroBonOrdonnance=="-1") : ?>
<div id="pharmacien" onkeypress="javascript:ctrlkeypressord(event);">
<div id="prestation" onkeypress="javascript:ctrlkeypressord(event);">
<input class="sr-only" type="text" id="idPrestationactes" name="idPrestationactes" >
<input class="sr-only" type="text" id="numeroRemplace" name="numeroRemplace" value="0">
<table class="table table-responsive table-condensed" style='font-size:12pt;' >
<tbody>
<tr>
<td width="20%" align="center"> <?= _("No Ordonnance") ?> </td>
<td width="20%">
<INPUT style='text-align:center; font-size:12pt;' class="form-control" TYPE="text" id="numeroBonOrdonnance" name="numeroBonOrdonnance"
onChange="javascript:chercher_ordonnance(this.value);" autofocus required AUTOCOMPLETE="OFF" >
</td>
<td > </td>
</tr>
</tbody>
</table>
</div>
<div id="ordonnance">
</div>
<div id="livraison">
<div id="non_livre">
</div>
<div id="livre">
</div>
</div>
</div>
<?php else: ?>
<?php if ($numeroPrescription>" ") : ?>
<?php
$idPrestationactes = $this->nettoyer($prescription['idPrestationactes']);
$estRempalace=($prescription['numeroRemplace'] == $numeroBonOrdonnance);
?>
<div id="pharmacien">
<?php if($estRempalace) : ?>
<input class="sr-only" type="text" id="estRempalace" name="estRempalace" value="1" >
<?php else: ?>
<input class="sr-only" type="text" id="estRempalace" name="estRempalace" value="0" >
<?php endif; ?>
<div id="prestation" onkeypress="javascript:ctrlkeypressord(event);">
<input class="sr-only" type="text" id="idPrestationactes" name="idPrestationactes" value="<?= $idPrestationactes ?>" >
<input class="sr-only" type="text" id="numeroRemplace" name="numeroRemplace" value="<?= $this->nettoyer($prescription['numeroRemplace']) ?>" >
<table class="table table-responsive table-condensed" style='font-size:9pt;' >
<tbody>
<tr>
<td width="7%" > <?= _("Ordon") ?> </td>
<td width="10%">
<INPUT style='text-align:center; font-size:11pt;' class="form-control" TYPE="text" id="numeroBonOrdonnance" name="numeroBonOrdonnance"
value="<?= $numeroBonOrdonnance ?>" onChange="javascript:chercher_ordonnance(this.value);"
autofocus required AUTOCOMPLETE="OFF" >
</td>
<td width="10%" align="center" > Date Prescr </td>
<td width="10%" > <INPUT class="form-control" TYPE="text" value="<?= dateLang($this->nettoyer($prescription['datePrescription'])) ?>" readonly style="text-align: center; font-size:9pt;" > </td>
<td width="7%" align="center"> <?= _("Médecin") ?> </td>
<td> <INPUT class="form-control" TYPE="text" value="<?= $this->nettoyer($prescription['medecinPrescription']) ?>" readonly style='font-size:9pt;'> </td>
<td width="7%" align="center"> <?= _("Tél Méd") ?> </td>
<td width="15%"> <INPUT class="form-control" TYPE="text" value="<?= $this->nettoyer($prescription['telephoneMedecin']) ?>" readonly style='font-size:9pt;'> </td>
</tr>
</tbody>
</table>
</div>
<div class="alert alert-danger" style="height:38px; padding:5px;" >
<H4><?= _("Prescrit à").": ".$this->nettoyer($prescription['prestataire']) ?></H4>
<input class="sr-only" id="codePrestatairePrescription" name="codePrestatairePrescription" type="text" value= "<?= $this->nettoyer($prescription['codePrestatairePrescription']) ?>" >
</div>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:9pt;">
<thead>
<tr>
<th style="text-align:center"> Date </th>
<th style="text-align:center"> <?= _("Facture") ?> </th>
<th style="text-align:center"> <?= _("Frais") ?> </th>
<th style="text-align:center"> <?= _("T M") ?> </th>
<th style="text-align:center"> <?= _("A Remb") ?> </th>
<th style="text-align:center"> <?= _("Dépas") ?> </th>
<th style="text-align:center"> <?= _("Retenu") ?> </th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="2" align='center'> Total </td>
<td align='center'><?= format_N($this->nettoyer($factures_toal['fraisReel'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($factures_toal['montantTm'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($factures_toal['montantArembourser'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($factures_toal['fraisExclu'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($factures_toal['fraisRetenu'])) ?></td>
</tr>
</tfoot>
<tbody>
<?php foreach ($factures as $facture):?>
<tr valign="top">
<td align='center'> <?= dateheureLang($this->nettoyer($facture['dateSysteme'])) ?> </td>
<td align='center'> <?= $this->nettoyer($facture['idFacture']) ?> </td>
<td align='center'><?= format_N($this->nettoyer($facture['fraisReel'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($facture['montantTm'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($facture['montantArembourser'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($facture['fraisExclu'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($facture['fraisRetenu'])) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php if($estRempalace) : ?>
<div id ="msgErreur" class="alert alert-danger" style="height:38px; padding:5px;" >
<H4><?= _("Remplacé par") . " : " . $prescription['numeroBonOrdonnance'] ?></H4>
</div>
<?php else: ?>
<table class="table table-responsive table-condensed" style='font-size:10pt;' >
<tbody>
<tr>
<td> <button type="button" class="form-control btn btn-primary" data-bs-toggle="modal" data-bs-target="#popRechercheMedicament" style='font-size:10pt;' ><?= _("Ajouter Médicament...") ?></button> </td>
<td width="10%" > </td>
<td> <button type="button" class="form-control btn btn-primary" data-bs-toggle="modal" data-bs-target="#popCreerMedicament" style='font-size:10pt;' ><?= _("Créer Médicament...") ?></button> </td>
</tr>
</tbody>
</table>
<?php endif; ?>
<div id="content">
<?php include 'flexcode/include/global.php'; ?>
</div>
<div id ="div_wait">
</div>
<div id="ordonnance">
<table class="table table-striped table-hover table-condensed table-responsive" style='font-size:9pt;'>
<thead>
<tr>
<th style="text-align:center"> <?= _("Médicaments prescrits") ?> </th>
<th style="text-align:center"> Instructions </th>
<th style="text-align:center"> Unit </th>
<th style="text-align:center"> <?= _("Bon") ?> </th>
<th style="text-align:center"> <?= _("Rempl") ?> </th>
<th style="text-align:center" > <?= _("Accord") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($detailprescriptions as $detailprescription):
$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']);
$ajPharmacie = $this->nettoyer($detailprescription['ajPharmacie']);
$ententePrealable1=$this->nettoyer($detailprescription['ententePrealable']);
?>
<?php if($ententePrealable1=='2' || $ententePrealable1=='3'): ?>
<tr valign="top" style="background-color: yellow;">
<?php elseif($ententePrealable1=='1'): ?>
<tr valign="top" style="background-color: #00ff00;">
<?php elseif($ententePrealable1=='9'): ?>
<tr valign="top" style="background-color: red;color:white;">
<?php else: ?>
<tr valign="top">
<?php endif; ?>
<?php if($substituable=="1") : ?>
<td align='center' style="background-color: yellow;"> <?= $libelleMedicament . " => " . $nomSubstitut ?> </td>
<?php else: ?>
<td align='center'> <?= $libelleMedicament ?> </td>
<?php endif; ?>
<td align='center'> <?= $this->nettoyer($detailprescription['instructions']) ?> </td>
<td align='center'> <?= $this->nettoyer($detailprescription['unite']) ?> </td>
<td align='center'> <?= $this->nettoyer($detailprescription['numeroBonOrdonnance']) ?> </td>
<td align='center'> <?= $this->nettoyer($detailprescription['numeroRemplacement']) ?> </td>
<?php if($ententePrealable1<>"0"): ?>
<td align='center'> <input type="checkbox" checked disabled></td>
<?php else: ?>
<td align='center'> <input type="checkbox" disabled></td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<?php if($estRempalace==false) : ?>
<div id="livraison">
<div id="non_livre">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:9pt;'>
<thead>
<tr>
<?php if($idPrestationactes=="0") : ?>
<th width="5%" style="text-align:center" > <input class="form-control btn btn-primary" type="button" value=" + + " onClick="javascript:ajoutermedicament_pha_tous();" style='font-size:9pt;' > </th>
<th width="50%" > <?= _("Non livrés") ?> </th>
<?php else: ?>
<th width="55%" > <?= _("Non livrés") ?> </th>
<?php endif; ?>
<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>
</tr>
</thead>
<tbody>
<?php foreach ($detailnonlivres as $detailnonlivre):
$idNonLivre=$this->nettoyer($detailnonlivre['id']);
$valeurActe = $this->nettoyer($detailnonlivre['valeurActe']);
$substituable = $this->nettoyer($detailnonlivre['substituable']);
$substitue = $this->nettoyer($detailnonlivre['substitue']);
$nomSubstitut = $this->nettoyer($detailnonlivre['nomSubstitut']);
$libelleMedicament = $this->nettoyer($detailnonlivre['libelleMedicament']);
if($substituable=="1")
{
$libelleMedicament = $libelleMedicament . " => " . $nomSubstitut;
}
$ententePrealable2=$this->nettoyer($detailnonlivre['ententePrealable']);
?>
<?php if($ententePrealable2=='2' || $ententePrealable2=='3'): ?>
<tr valign="top" style="background-color: yellow;">
<?php elseif($ententePrealable2=='1'): ?>
<tr valign="top" style="background-color: #00ff00;">
<?php elseif($ententePrealable2=='9'): ?>
<tr valign="top" style="background-color: red;color:white;">
<?php else: ?>
<tr valign="top">
<?php endif; ?>
<?php if($idPrestationactes=="0") : ?>
<?php if($valeurActe=="0") : ?>
<td width="5%" align='center'> </td>
<?php else: ?>
<?php if($ententePrealable2=='2'): ?>
<td width="5%" align='center'> <input type="button" value=" ? " onClick="javascript:demander_accord_pha('<?= $idNonLivre ?>');"></td>
<?php elseif($ententePrealable2=='3'): ?>
<td width="5%" align='center'> W </td>
<?php elseif($ententePrealable2=='9'): ?>
<td width="5%" align='center'> R </td>
<?php else: ?>
<td width="5%" align='center'> <input type="button" value=" + " onClick="javascript:ajoutermedicament_pha('<?= $idNonLivre ?>');"></td>
<?php endif; ?>
<?php endif; ?>
<?php if($substituable=="1") : ?>
<td style="background-color: yellow;"> <?= $libelleMedicament ?> </td>
<?php else: ?>
<td> <?= $libelleMedicament ?> </td>
<?php endif; ?>
<?php else: ?>
<?php if($substituable=="1") : ?>
<td style="background-color: yellow;"> <?= $libelleMedicament ?> </td>
<?php else: ?>
<td> <?= $libelleMedicament ?> </td>
<?php endif; ?>
<?php endif; ?>
<td align='center'> <?= $this->nettoyer($detailnonlivre['unite']) ?> </td>
<td align='center'> <?= format_N($this->nettoyer($detailnonlivre['valeurActe'])) ?> </td>
<td align='center'> <?= $this->nettoyer($detailnonlivre['quantite']) ?> </td>
<td align='center'> <?= format_N($this->nettoyer($detailnonlivre['fraisReel'])) ?> </td>
<td align='center'> <?= format_N($this->nettoyer($detailnonlivre['montantTm'])) ?> </td>
<td align='center'> <?= format_N($this->nettoyer($detailnonlivre['montantArembourser'])) ?> </td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<div id="livre">
<?php $nbLivre = 0; ?>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:9pt;'>
<thead>
<tr>
<?php if($idPrestationactes=="0") : ?>
<th width="5%" style="text-align:center" > <input class="form-control btn btn-primary" type="button" value=" - - " onClick="javascript:retirermedicament_pha_tous();" style='font-size:9pt;' > </th>
<th width="50%" > <?= _("A Livrer") ?> </th>
<?php else: ?>
<th width="55%" > <?= _("Livré") ?> </th>
<?php endif; ?>
<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>
</tr>
</thead>
<tfoot>
<tr>
<?php if($idPrestationactes=="0") : ?>
<td colspan="5" style='text-align:center'> Total </td>
<?php else: ?>
<td colspan="4" style='text-align:center'> Total </td>
<?php endif; ?>
<td align='center'><?= format_N($this->nettoyer($prescription['fraisReelLivre'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($prescription['montantTmLivre'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($prescription['montantArembourserLivre'])) ?></td>
</tr>
</tfoot>
<tbody>
<?php foreach ($detaillivres as $detaillivre):
$idLivre=$this->nettoyer($detaillivre['id']);
$substituable = $this->nettoyer($detaillivre['substituable']);
$substitue = $this->nettoyer($detaillivre['substitue']);
$ajPharmacie = $this->nettoyer($detaillivre['ajPharmacie']);
$typeSysteme = $this->nettoyer($detaillivre['typeSysteme']);
$ententePrealable3=$this->nettoyer($detaillivre['ententePrealable']);
$pharmacieInterne = $this->nettoyer($detaillivre['pharmacieInterne']);
$nbLivre++;
?>
<?php if($ententePrealable3=='2' || $ententePrealable3=='3'): ?>
<tr valign="top" style="background-color: yellow;">
<?php elseif($ententePrealable3=='1'): ?>
<tr valign="top" style="background-color: #00ff00;">
<?php elseif($ententePrealable3=='9'): ?>
<tr valign="top" style="background-color: red;color:white;">
<?php else: ?>
<tr valign="top">
<?php endif; ?>
<?php if($idPrestationactes=="0") : ?>
<td align='center'> <input type="button" value=" - " onClick="javascript:retirermedicament_pha('<?= $idLivre ?>');"></td>
<td> <?= $this->nettoyer($detaillivre['libelleMedicament']) ?> </td>
<?php else: ?>
<?php if($substitue=="1") : ?>
<td style="background-color: yellow;"> <?= $this->nettoyer($detaillivre['nomSubstitut']) ?> </td>
<?php else: ?>
<td> <?= $this->nettoyer($detaillivre['libelleMedicament']) ?> </td>
<?php endif; ?>
<?php endif; ?>
<td align='center'> <?= $this->nettoyer($detaillivre['unite']) ?> </td>
<?php if($idPrestationactes=="0" && $pharmacieInterne=="1") : ?>
<td align='center'>
<INPUT style='text-align:center; font-size:9pt;' class="form-control" TYPE="text" value="<?= $this->nettoyer($detaillivre['valeurActe']) ?>"
onBlur="ajax_maj_prix_medicament_pha('<?=$idLivre?>', this.value, this);">
</td>
<?php else: ?>
<td align='center'> <?= format_N($this->nettoyer($detaillivre['valeurActe'])) ?> </td>
<?php endif; ?>
<?php if($idPrestationactes=="0" && $ajPharmacie=="1") : ?>
<td align='center'>
<INPUT style='text-align:center; font-size:9pt;' class="form-control" TYPE="text" value="<?= $this->nettoyer($detaillivre['quantite']) ?>"
onBlur="ajax_maj_qte_medicament_pha('<?=$idLivre?>', this.value, this);">
</td>
<?php else: ?>
<td align='center'> <?= $this->nettoyer($detaillivre['quantite']) ?> </td>
<?php endif; ?>
<td align='center'> <?= format_N($this->nettoyer($detaillivre['fraisReel'])) ?> </td>
<td align='center'> <?= format_N($this->nettoyer($detaillivre['montantTm'])) ?> </td>
<td align='center'> <?= format_N($this->nettoyer($detaillivre['montantArembourser'])) ?> </td>
</tr>
<?php endforeach; ?>
<tr style='background-color:white'>
<td colspan="8" height="5"></td>
</tr>
</tbody>
</table>
<div id="recap">
<table class="table table-responsive table-condensed" style='font-size:12pt;' >
<tbody>
<tr>
<td > <?= _("Dépas") ?> </td>
<td > <INPUT class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($prescription['fraisExcluLivre'])) ?>" readonly style="text-align: center; font-size:12pt; color:red;" > </td>
<td align="center" > <?= _("Retenu") ?> </td>
<td > <INPUT class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($prescription['fraisRetenuLivre'])) ?>" readonly style="text-align: center; font-size:12pt; color:blue;" > </td>
</tr>
</tbody>
</table>
</div>
<?php if($idPrestationactes=="0" && !$estRempalace) : ?>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:9pt;">
<thead>
<tr>
<th rowspan="2" style="text-align:center"> <?= _("Limites de la famille : Garanties") ?> </th>
<th rowspan="2" style="text-align:center"> <?= _("Limites") ?> </th>
<th rowspan="2" style="text-align:center"> <?= _("Solde Ant") ?> </th>
<th colspan="2" style="text-align:center;background-color:blue;color:white;"> <?= _("Nouvelles Consommations") ?> </th>
<th rowspan="2" style="text-align:center;background-color:red;color:white;"> <?= _("Dépassement") ?> </th>
<th rowspan="2" style="text-align:center"> <?= _("Retenu") ?> </th>
<th rowspan="2" style="text-align:center"> <?= _("Nouv Solde") ?> </th>
</tr>
<tr>
<th style="text-align:center;background-color:blue;color:white;" > <?= _("Garanties") ?> </th>
<th style="text-align:center;background-color:blue;color:white;" > <?= _("Sous Gar") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($garantieadherent_temp as $garantieadherent):?>
<tr valign="top">
<td align='center'> <?= $this->nettoyer($garantieadherent['garantie'])?> </td>
<td align='center'><?= format_N($this->nettoyer($garantieadherent['plafond'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($garantieadherent['soldeOld'])) ?></td>
<td align='center' style='background-color:blue;color:white;'><?= format_N($this->nettoyer($garantieadherent['consommationNew'])) ?></td>
<td align='center' style='background-color:blue;color:white;'><?= format_N($this->nettoyer($garantieadherent['consommationSousGarantie'])) ?></td>
<td align='center' style='background-color:red;color:white;'><?= format_N($this->nettoyer($garantieadherent['fraisExclu'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($garantieadherent['fraisRetenu'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($garantieadherent['soldeNew'])) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php endif; ?>
<input class="sr-only" type="text" id="nbLivre" name="nbLivre" value="<?= $nbLivre ?>" >
<input class="sr-only" type="text" id="prixActe" name="prixActe" value="<?= $this->nettoyer($prescription['fraisRetenuLivre']) ?>" >
<input class="sr-only" type="text" id="cout" name="cout" value="<?= $this->nettoyer($prescription['fraisReelLivre']) ?>" >
<input class="sr-only" type="text" id="montantTm" name="montantTm" value="<?= $this->nettoyer($prescription['montantTmLivre']) ?>" >
<input class="sr-only" type="text" id="cout_f" name="cout_f" value="<?= format_N($this->nettoyer($prescription['fraisReelLivre'])) ?>" >
<input class="sr-only" type="text" id="montantTm_f" name="montantTm_f" value="<?= format_N($this->nettoyer($prescription['montantTmLivre'])) ?>" >
</div>
</div>
<?php endif; ?>
</div>
<?php else: ?>
<div id="pharmacien" onkeypress="javascript:ctrlkeypressord(event);">
<div id="prestation" onkeypress="javascript:ctrlkeypressord(event);">
<input class="sr-only" type="text" id="idPrestationactes" name="idPrestationactes" >
<input class="sr-only" type="text" id="numeroRemplace" name="numeroRemplace" value="0" >
<table class="table table-responsive table-condensed" style='font-size:12pt;' >
<tbody>
<tr>
<td width="20%" align="center"> <?= _("No Ordonnance") ?> </td>
<td width="20%">
<INPUT style='text-align:center; font-size:12pt;' class="form-control" TYPE="text" id="numeroBonOrdonnance" name="numeroBonOrdonnance"
onChange="javascript:chercher_ordonnance(this.value);" autofocus required AUTOCOMPLETE="OFF" >
</td>
<td > </td>
</tr>
</tbody>
</table>
</div>
<div id="ordonnance">
</div>
<div id="livraison">
<div id="non_livre">
</div>
<div id="livre">
</div>
</div>
</div>
<div id ="msgErreur" class="alert alert-danger" style="height:38px; padding:5px;" >
<H4><?= _("Ordonnance") . " " .$numeroBonOrdonnance. " "._("introuvable"). " !" ?></H4>
</div>
<?php endif; ?>
<?php endif; ?>
<div id="loadingDiv" style="display: none">
<div class="ajax-mask"><div class="loading"><img src="Bootstrap/images/loading-spinner-grey.gif"/> <?= _("Veuillez patienter...") ?> </span></div></div>
</div>
<div class="modal fade" id="pop_substitution_medicament" 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-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
<h4 class="modal-title"> <?= _("Substitution de médicament") ?> </h4>
</div>
<div class="modal-body">
<div id="div_substitution">
<form id="frmmedicament" name="frmmedicament" method="post" >
<input type="text" id="prixTarif" name="prixTarif" type="number">
<input type="text" id="idMedicament" name="idMedicament" type="number">
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td width="20%" > Original </td>
<td colspan="3"> <input class="form-control" style="text-align: center; font-size:10pt;" readonly > </td>
</tr>
<tr>
<td> <?= _("Substitut") ?> </td>
<td colspan="3"> <input class="form-control" style="text-align: center; font-size:10pt;" readonly > </td>
</tr>
<tr>
<td > <?= _("Tarif Original") ?> </td>
<td> <input class="form-control" style="text-align: center; font-size:10pt;" readonly > </td>
<td align="center" > <?= _("Tarif Substitut") ?> </td>
<td> <input class="form-control" style="text-align: center; font-size:10pt;" > </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="enregistrersubstituion_medicament();" style='font-size:10pt;' ></td>
</tr>
</tbody>
</table>
</form>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
</div>
</div>
</div>
</div>
<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_medicament" name="btn_close_pop_medicament" type="button" class="close" data-bs-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_pha(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="nomsearch" name="nomsearch" autofocus style='font-size:10pt;' ></td>
<td colspan="3"> <input type="button" class = "form-control btn btn-info" style='font-size:10pt;' value="<?= _("Rechercher...") ?>" onclick="javascript:afficher_pop_recherche_medicament_pha();" /></td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="popCreerMedicament" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button id="btn_close_pop_new_med" name="btn_close_pop" type="button" class="close" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
<h4 class="modal-title"> <?= _("Créer un médicament") ?> </h4>
</div>
<div class="modal-body">
<div id="div_new_medicament">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:10pt;'>
<tbody>
<tr>
<td width="15%" > <?= _("Nom") ?> </td>
<td colspan="2"> <input type="text" class="form-control" id="libelleMedicament" name="libelleMedicament" autofocus style='font-size:10pt;' ></td>
</tr>
<tr>
<td> <?= _("Prix") ?> </td>
<td align='center' width="15%">
<input class="form-control"style="text-align: center; font-size:10pt;" type="number" id="prixMedicament" name="prixMedicament" value="0"
onBlur="controle_numerique(this);" >
</td>
<td> <input type="button" class = "form-control btn btn-info" style='font-size:10pt;' value="<?= _("Enregistrer") ?>" onclick="javascript:enregistrer_nv_medicament();" /></td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
</div>
</div>
</div>
</div>