prestation/Vue/Pharmacien/index.php
2025-12-01 18:54:33 +00:00

1083 lines
50 KiB
PHP

<?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) ;
$accesAjoutPhClient = ($_SESSION['p_accesAjoutPhClient']==1) ;
$ajoutPrescription = ($_SESSION['p_ajoutPrescription_C']==1) ;
$modeSaisieFacture = $_SESSION['p_modeSaisieFacture'];
$actVisible = $_SESSION['p_actVisible'];
$hospitalisation = $_SESSION['p_hospitalisation_C'];
//echo $prescription['bonCaduc'];
$baremeExiste = $_SESSION['p_bareme']['baremeExiste'];
$bareme_actif = $_SESSION['p_bareme']['bareme_actif'];
$bareme_ageMinimum = $_SESSION['p_bareme']['bareme_ageMinimum'];
$bareme_ageMaximum = $_SESSION['p_bareme']['bareme_ageMaximum'];
$bareme_codeTypeRemboursement = $_SESSION['p_bareme']['gar_codeTypeRemboursement'];
$ageBeneficiaire = $_SESSION['p_ageBeneficiaire_C'];
$bareme_finDelaiCarence = $_SESSION['p_bareme']['bareme_finDelaiCarence'];
//var_dump($bareme_actif);
?>
<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>
<input class="sr-only" type="text" id="nomForm" name="nomForm" value="pharmacien">
<input class="sr-only" type="text" id="devise" name="devise" value="<?= $_SESSION['p_devise_C'] ?>">
<input class="sr-only" id="codeTypePrestataire" name="codeTypePrestataire" type="text" value= "<?= $_SESSION['p_codeTypePrestataire_C'] ?>" >
<button id="btn_ordonnance" NAME="btn_ordonnance" type="button" class="sr-only" onclick="actualiseordonnancepha();"> TEST </button>
<button id="btn_livarison" NAME="btn_livarison" type="button" class="sr-only" onclick="actualise_livraisonpha_substituer();"> TEST </button>
<legend><?= _("Pharmacie") ?></legend>
<?php if($numeroBonOrdonnance=="-1") : ?>
<div id="pharmacien" onkeypress="javascript:ctrlkeypressord(event);">
<input class="sr-only" id="bonCaduc" name="bonCaduc" type="text" value= "0" >
<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="15%" align="center" class="required"> <?= _("Numéro de Bon").": " ?> </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>
<?php if (isset($_SESSION['msgErreur']) && !empty($_SESSION['msgErreur'])): ?>
<input class="sr-only" type="text" id="msgErreur" name="msgErreur" value="<?= $msgErreur ?>">
<?php endif; ?>
<div id="ordonnance">
</div>
<div id="livraison">
<div id="non_livre">
</div>
<div id="livre">
</div>
</div>
<?php else: ?>
<input class="sr-only" type="text" id="margePrixMedicament" name="margePrixMedicament" value="<?= $this->nettoyer($marges['margePrixMedicament']) ?>">
<input class="sr-only" type="text" id="appliquerMargePrixMedicament" name="appliquerMargePrixMedicament" value="<?= $this->nettoyer($marges['appliquerMargePrixMedicament']) ?>">
<input class="sr-only" type="text" id="typeMargePrixMedicament" name="typeMargePrixMedicament" value="<?= $this->nettoyer($marges['typeMargePrixMedicament']) ?>">
<?php if ($numeroPrescription>" " && $contestation=="0") : ?>
<?php
// $idPrestationactes = $this->nettoyer($prescription['idPrestationactes']);
// maj du 23/01/2020 => possibilité de factrurer plusieurs fois
//$idPrestationactes = "0";//$_SESSION['p_idPrestationactes_C'];
$estRempalace =($prescription['numeroRemplace'] == $numeroBonOrdonnance);
$agePrescription = $this->nettoyer($prescription['agePrescription']);
$bonCaduc = $this->nettoyer($prescription['bonCaduc']);
$nbMedicamentSaisie = $prescription['nbMedicamentSaisie'];
if($modeSaisieFacture=="1")
{
$bonCaduc = "0";
}
//var_dump($idPrestationactes);
?>
<input class="sr-only" id="bonCaduc" name="bonCaduc" type="text" value= "<?= $bonCaduc ?>" >
<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="10%" class="required"> <?= _("Numéro de Bon").": " ?> </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 Prescription") ?> </td>
<td width="10%" > <INPUT class="form-control" TYPE="text" value="<?= dateLang($this->nettoyer($prescription['datePrescription'])) ?>" readonly style="text-align: center; font-size:9pt;" id="dateSurvenance" name="dateSurvenance"> </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>
<table class="table table-responsive table-condensed" style='font-size:9pt;' >
<tbody>
<!--
<tr>
<td width="5%" > <?= _("Souscrip.") ?> </td>
<td width="20%">
<INPUT style='text-align:center; font-size:11pt;' class="form-control" TYPE="text"
value="<?= $_SESSION['p_nomClient_C'] ?>" onChange="" readonly >
</td>
<td width="5%" align="center" > <?= _("Adh.") ?> </td>
<td width="20%" > <INPUT class="form-control" TYPE="text" value="<?= $_SESSION['p_adherent_C']; ?>" readonly style="text-align: center; font-size:9pt;" > </td>
<td width="5%" align="center"> <?= _("Bénéf.") ?> </td>
<td width="25%"> <INPUT class="form-control" TYPE="text" value="<?= $_SESSION['p_beneficiaire_C']; ?>" readonly style='font-size:9pt;'> </td>
<td width="7%" align="center"> <?= _("Tél Bénéf.") ?> </td>
<td width="13%"> <INPUT class="form-control" TYPE="text" value="<?= $_SESSION['p_telephonePortableBeneficiaire_C']; ?>" readonly style='font-size:9pt;'> </td>
</tr>
-->
<tr>
<?php if($tmAffection =="1000"):?>
<INPUT style='font-size:12pt; font-weight: bold; background-color:#f5deb3 !important; color:#a0522d; text-align:center;' class="form-control" TYPE="text" id="taux" name="taux"
value="<?= _('TAUX DE COUVERTURE').': '.$tauxCouverture ?>" onChange="" readonly >
<?php else:?>
<INPUT style='font-size:14pt; font-weight: bold; background-color:#f5deb3; color:red; text-align:center;' class="form-control" TYPE="text" id="taux" name="taux"
value="<?= _('AFFECTION DECLAREE').': '.$Affection.' / '. _('TAUX DE COUVERTURE').': '.$tauxCouverture ?>" onChange="" readonly >
<?php endif;?>
</tr>
</tbody>
</table>
</div>
<div class="alert alert-danger" style="text-align:center; height:38px; padding:5px;" >
<H4><?= _("Prescrit à").": ".$this->nettoyer($prescription['prestataire']) ?></H4>
</div>
<div id="div_facture_definitive">
</div>
<div >
<input class="form-control" style="text-align: center; font-size: 12pt;font-weight: bold;" type="text" value="<?= _("Facturation") ?>" readonly >
</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 No") ?> </th>
<th style="text-align:center"> <?= _("Prix Total") ?> </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['prixManuel'])) ?></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['depassement'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($factures_toal['fraisRetenu'])) ?></td>
</tr>
</tfoot>
<tbody>
<?php foreach ($factures as $une_facture):?>
<input class="sr-only" type="text" id="idFacture" name="idFacture" value="<?= $this->nettoyer($une_facture['idFacture']) ?>" >
<tr valign="top">
<td align='center'> <?= dateheureLang($this->nettoyer($une_facture['dateSysteme'])) ?> </td>
<!-- <td align='center'> <?= $this->nettoyer($une_facture['idFacture']) ?> </td> -->
<td align='center'>
<input
class = "form-control btn btn-primary"
style='font-size:8pt;'
type="button"
value="<?= $une_facture['idFacture'] ?>"
onClick="javascript:imprimer_facture_definitive_pha();"
title="<?= _("Imprimer la facture") ?>"
>
</td>
<td align='center'><?= format_N($this->nettoyer($une_facture['prixManuel'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($une_facture['montantTm'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($une_facture['montantArembourser'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($une_facture['depassement'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($une_facture['fraisRetenu'])) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php if($idPrestationactes>"0") : ?>
<div id="recap">
<table class="table table-responsive table-condensed" style='font-size:12pt;' >
<tbody>
<tr>
<td align="center" style="font-weight:bold"> <?= _("Réclamé") ?> </td>
<td > <INPUT class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($factures_toal['fraisReel'])) ?>" readonly style="text-align: center; font-size:14pt; font-weight:bold;" > </td>
<td align="center" style="font-weight:bold"> <?= _("Part Assuré") ?> </td>
<td > <INPUT class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($factures_toal['montantTm'])+$this->nettoyer($factures_toal['depassement'])) ?>" readonly style="text-align: center; font-size:14pt; font-weight:bold; color:red;" > </td>
<td align="center" style="font-weight:bold"> <?= _("A Rembourser") ?> </td>
<td > <INPUT class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($factures_toal['fraisRetenu'])) ?>" readonly style="text-align: center; font-size:14pt; font-weight:bold; " > </td>
</tr>
</tbody>
</table>
</div>
<div class="alert alert-danger" style="text-align:center; height:38px; padding:5px;" >
<H4><?= _("Dejà facturée !") ?></H4>
</div>
<?php endif; ?>
<?php if($estRempalace) : ?>
<div id ="msgErreur" class="alert alert-danger" style="text-align:center; height:38px; padding:5px;" >
<H4><?= "Remplacé par : ".$prescription['numeroBonOrdonnance'] ?></H4>
</div>
<?php else: ?>
<?php endif; ?>
<!--
<div id="content">
<?php include 'flexcode/include/global.php'; ?>
</div>
-->
<div id ="div_wait">
</div>
<div id="ordonnance">
<?php if( ($this->nettoyer($prescription['bonCaduc'])=="0" or $modeSaisieFacture==1) && ($nbMedicamentSaisie<$_SESSION['p_nbMedicamentMax'] or $hospitalisation=="1") ) : ?>
<table class="table table-responsive table-condensed" style='font-size:10pt;' >
<tbody>
<tr>
<?php if($ajoutPrescription) : ?>
<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>
<?php else: ?>
<td> <button type="button" class="form-control btn btn-primary" style='font-size:10pt;' disabled ><?= _("Ajouter Médicament...") ?></button> </td>
<?php endif; ?>
<td width="10%" > </td>
<?php if($accesAjoutPh) : ?>
<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>
<?php else: ?>
<td> <button type="button" class="form-control btn btn-primary" style='font-size:10pt;' disabled ><?= _("Créer Médicament...") ?></button> </td>
<?php endif; ?>
<td width="10%" > </td>
<td> <INPUT class="form-control btn btn-info" value="<?= _("GED Ordonnance...") ?>" onclick="javascript:pop_ged_pharmacie();" style='font-size:10pt;' > </td>
</tr>
</tbody>
</table>
<?php endif; ?>
<div id="div_legende_couleur" style="width:100%; margin: 5px;">
<table class="table-responsive" style="width:50%; margin:auto;">
<tbody>
<tr>
<td style="font-weight:bold; text-align:left; background-color:#f8f8ff; text-decoration-line: underline;"> <?= _("Légende").":"; ?></td>
<td style="font-weight:bold; background-color:#f8f8ff; text-align:right;"> <?= _("Attente réponse:") ?></td>
<td width="4%" style="background-color:yellow"></td>
<td width="2%" style="background-color:#f8f8ff;"></td>
<td style="font-weight:bold; background-color:#f8f8ff; text-align:right;"><?= _("Accord assureur:") ?></td>
<td width="4%" style="background-color: #00ff00"></td>
<td width="2%" style="background-color:#f8f8ff;"></td>
<td style="font-weight:bold; background-color:#f8f8ff; text-align:right;"><?= _("Non garanti / refus:") ?></td>
<td width="4%" style="background-color: red;"></td>
</tr>
</tbody>
</table>
</div>
<div id="div_space" style="margin-bottom: 10px;">
</div>
<div >
<input class="form-control" style="text-align: center; font-size: 12pt;font-weight: bold;" type="text" value="<?= _("Liste des médicaments prescrits") ?>" readonly >
</div>
<table class="table table-striped table-hover table-bordered table-condensed table-responsive" style='font-size:9pt;'>
<thead>
<tr>
<th style="text-align:center"> <?= _("Subtitut") ?> </th>
<th style="text-align:center"> <?= _("Nom") ?> </th>
<th style="text-align:center"> <?= _("Forme") ?> </th>
<th style="text-align:center"> <?= _("Prix Unitaire") ?> </th>
<th style="text-align:center"> <?= _("Posologie") ?> </th>
<th style="text-align:center"> <?= _("Bon") ?> </th>
<th style="text-align:center"> <?= _("Accord") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($detailprescriptions as $detailprescription):
$idDetail = $this->nettoyer($detailprescription['id']);
$idMedicament = $this->nettoyer($detailprescription['idMedicament']);
$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']);
$ententePrealable1 = $this->nettoyer($detailprescription['ententePrealable']);
$barree = $this->nettoyer($detailprescription['barree']);
$tarifPublic = $this->nettoyer($detailprescription['tarifPublic']);
$tarifPublicSubstitut = $this->nettoyer($detailprescription['tarifPublicSubstitut']);
$codeMedicamentSubstitut = $this->nettoyer($detailprescription['codeMedicamentSubstitut']);
$nomMedicamentSubstitut = $this->nettoyer($detailprescription['nomMedicamentSubstitut']);
if($actVisible!="1")
{
$libelleMedicament = $codeMedicament;
$nomSubstitut = $codeMedicament;
}
$forme = $this->nettoyer($detailprescription['forme']);
$formeSubstitut = $this->nettoyer($detailprescription['formeSubstitut']);
$posologie = $this->nettoyer($detailprescription['posologie']);
if (est_anglophone()){
$forme = $this->nettoyer($detailprescription['formeEng']);
$formeSubstitut = $this->nettoyer($detailprescription['formeSubstitutEng']);
}
$idDemandeSubstitution = $this->nettoyer($detailprescription['idDemandeSubstitution']);
$nvellePosologie = $this->nettoyer($detailprescription['nvellePosologie']);
$forme = $this->nettoyer($detailprescription['forme']);
$quantite = $this->nettoyer($detailprescription['quantite']);
$excluMedicamentSubstitut = $this->nettoyer($detailprescription['excluMedicamentSubstitut']);
if($excluMedicamentSubstitut ==""){
$exclu = $this->nettoyer($detailprescription['exclu']);
}else{
$exclu = $excluMedicamentSubstitut;
}
?>
<tr valign="top">
<?php if($livre == "0") : ?>
<td width="5%" align='center'> <input type="button" value=" ... " onClick="javascript:substituer_medicament('<?= $idMedicament ?>','<?= $posologie ?>', '<?= $idDemandeSubstitution ?>','<?= $quantite ?>','<?= $codeMedicamentSubstitut ?>','<?= $idDetail ?>');"></td>
<?php else: ?>
<td width="5%" align='center'>S</td>
<?php endif; ?>
<?php if($substituable=="1") : ?>
<td align='center' style="background-color: yellow;"> <?= $libelleMedicament . " => " . $nomSubstitut ?> </td>
<?php elseif($codeMedicamentSubstitut>""): ?>
<td align='center'> <input type="button" value="<?= $nomMedicamentSubstitut ?>" onClick="javascript:alert('<?= $libelleMedicament ?>');"></td>
<td align='center'> <input type="button" value="<?= $formeSubstitut ?>" onClick="javascript:alert('<?= $forme ?>');"></td>
<td align='center'> <input type="button" value="<?= $tarifPublicSubstitut ?>" onClick="javascript:alert('<?= $tarifPublic ?>');"></td>
<?php else: ?>
<td align='center'> <?= $libelleMedicament ?> </td>
<td align='center'> <?= $forme ?> </td>
<td align='center'> <?= format_N($tarifPublic) ?> </td>
<?php endif; ?>
<?php if($nvellePosologie >""): ?>
<td align='center'> <input type="button" value="<?= $nvellePosologie ?>" onClick="javascript:alert('<?= $posologie ?>');"></td>
<?php else: ?>
<td align='center'> <?= $posologie ?> </td>
<?php endif; ?>
<td align='center'> <?= $this->nettoyer($detailprescription['numeroBonOrdonnance']) ?> </td>
<?php if($ententePrealable1<>"0"): ?>
<?php if($ententePrealable1=='2' || $ententePrealable1=='3'): ?>
<td align='center' style="background-color: yellow;"> <input type="checkbox" checked disabled> </td>
<?php elseif($ententePrealable1=='1'): ?>
<td align='center' style="background-color: #00ff00;"> <input type="checkbox" checked disabled> </td>
<?php elseif($ententePrealable1=='9' || $exclu=='1'): ?>
<td align='center' style="background-color: red;color:white;"> <input type="checkbox" checked disabled> </td>
<?php else: ?>
<td align='center'> <input type="checkbox" checked disabled> </td>
<?php endif; ?>
<?php else: ?>
<td align='center' > <input type="checkbox" disabled></td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<?php if($estRempalace==false) :
$agePrescription = $this->nettoyer($prescription['agePrescription']);
$bonCaduc = $this->nettoyer($prescription['bonCaduc']);
?>
<div id="livraison">
<?php if($bonCaduc=="0" or $modeSaisieFacture==1) : ?>
<?php if($idPrestationactes == "0") : ?>
<div id="div_statutacte">
</div>
<div id="recap">
<table class="table table-responsive table-condensed" style='font-size:12pt;' >
<tbody>
<tr>
<td align="center" style="font-weight:bold" width="10%"> <?= _("Réclamé") ?> </td>
<td > <INPUT class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($factures_toal['fraisReel'])) ?>" readonly style="text-align: center; font-size:14pt; font-weight:bold;" > </td>
<td align="center" style="font-weight:bold"> <?= _("Part Assuré") ?> </td>
<td > <INPUT class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($factures_toal['montantTm'])+$this->nettoyer($factures_toal['depassement'])) ?>" readonly style="text-align: center; font-size:14pt; font-weight:bold; color:red;" > </td>
<td align="center" style="font-weight:bold"> <?= _("A Rembourser") ?> </td>
<td > <INPUT class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($factures_toal['fraisRetenu'])) ?>" readonly style="text-align: center; font-size:14pt; font-weight:bold; " > </td>
</tr>
</tbody>
</table>
</div>
<div id="div_messages">
</div>
<?php endif; ?>
<div id="non_livre">
<div >
<input class="form-control" style="text-align: center; font-size: 12pt;font-weight: bold;" type="text" value="<?= _("Liste des médicaments non servis") ?>" readonly >
</div>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:9pt;'>
<thead>
<tr>
<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%" > <?= _("Nom") ?> </th>
<th width="5%" style="text-align:center"> <?= _("Forme") ?> </th>
<th width="12%" style="text-align:center"> <?= _("Prix Unitaire") ?> </th>
<th width="5%" style="text-align:center"> <?= _("Qté") ?> </th>
<th width="10%" style="text-align:center"> <?= _("Prix Total") ?> </th>
<th width="5%" style="text-align:center"> <?= _("T M") ?> </th>
<th width="10%" style="text-align:center"> <?= _("A Remb") ?> </th>
<th width="10%" style="text-align:center"> <?= _("Dépass") ?> </th>
<th width="5%" style="text-align:center"> <?= _("Accord") ?> </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']);
$depassement = $this->nettoyer($detailnonlivre['depassement']);
if($substituable=="1")
{
$libelleMedicament = $libelleMedicament . " => " . $nomSubstitut;
}
$ententePrealable2=$this->nettoyer($detailnonlivre['ententePrealable']);
$forme = $this->nettoyer($detailnonlivre['forme']);
if (est_anglophone()){$forme = $this->nettoyer($detailnonlivre['formeEng']);}
$exclu = $this->nettoyer($detailnonlivre['exclu']);
$substitution = $this->nettoyer($detailnonlivre['substitution']);
$valeurActe = $this->nettoyer($detailnonlivre['valeurActe']);
$fraisReel = $this->nettoyer($detailnonlivre['fraisReel']);
//var_dump($substitution);
if($exclu =="1" || $ententePrealable2=="9")
{
$montantTm = $this->nettoyer($detailnonlivre['fraisReel']);
$montantArembourser = "0";
$fraisExclu = $this->nettoyer($detailnonlivre['fraisReel']);
$depassement = $this->nettoyer($detailnonlivre['depassement']);
$fraisRetenu ="0";
$montantTmTemp = $this->nettoyer($detailnonlivre['fraisReel']);
$montantArembourserTemp = "0";
$fraisRetenuTemp = "0";
}else{
$montantTm = $this->nettoyer($detailnonlivre['montantTm']);
$montantArembourser = $this->nettoyer($detailnonlivre['montantArembourser']);
$fraisExclu = $this->nettoyer($detailnonlivre['fraisExclu']);
$depassement = $this->nettoyer($detailnonlivre['depassement']);
$fraisRetenu = $this->nettoyer($detailnonlivre['fraisRetenu']);
$montantTmTemp = $this->nettoyer($detailnonlivre['montantTmTemp']);
$montantArembourserTemp = $this->nettoyer($detailnonlivre['montantArembourserTemp']);
$fraisRetenuTemp = $this->nettoyer($detailnonlivre['fraisRetenuTemp']);
}
if($substitution=="1"){
$libelleMedicament = $this->nettoyer($detailnonlivre['libelleMedicamentSubstitut']);
$libelleMedicament = $this->nettoyer($detailnonlivre['libelleMedicament']) . " => " . $libelleMedicament;
$forme = $this->nettoyer($detailnonlivre['formeSubstitut']);
if (est_anglophone()){$forme = $this->nettoyer($detailnonlivre['formeSubstitutEng']);}
$montantTm = $this->nettoyer($detailnonlivre['montantTmMedicamentSubstitut']);
$montantArembourser = $this->nettoyer($detailnonlivre['montantArembourserMedicamentSubstitut']);
$fraisExclu = $this->nettoyer($detailnonlivre['fraisExcluMedicamentSubstitut']);
//$depassement = $this->nettoyer($detailnonlivre['depassement']);
$fraisRetenu = $this->nettoyer($detailnonlivre['montantArembourserMedicamentSubstitut']);
$montantTmTemp = $this->nettoyer($detailnonlivre['montantTmMedicamentSubstitut']);
$montantArembourserTemp = $this->nettoyer($detailnonlivre['montantArembourserMedicamentSubstitut']);
$fraisRetenuTemp = $this->nettoyer($detailnonlivre['montantArembourserMedicamentSubstitut']);
$valeurActe = $this->nettoyer($detailnonlivre['valeurMedicamentSubstitut']);
$fraisReel = $this->nettoyer($detailnonlivre['fraisReelMedicamentSubstitut']);
}
?>
<tr valign="top">
<?php if($ententePrealable2=='2'): ?>
<td width="5%" align='center'> </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: ?>
<?php if($exclu=="1"): ?>
<td width="5%" align='center'> <input type="button" style="color:black;" value=" + " onClick="javascript:ajoutermedicament_pha('<?= $idNonLivre ?>');"></td>
<?php else: ?>
<td width="5%" align='center'> <input type="button" value=" + " onClick="javascript:ajoutermedicament_pha('<?= $idNonLivre ?>');"></td>
<?php endif; ?>
<?php endif; ?>
<?php if($substitution=="1") : ?>
<td style="font-weight:bold;"> <?= $libelleMedicament ?> </td>
<?php else: ?>
<td> <?= $libelleMedicament ?> </td>
<?php endif; ?>
<td align='center'> <?= $forme ?> </td>
<td align='center'> <?= format_N($valeurActe) ?> </td>
<td align='center'> <?= $this->nettoyer($detailnonlivre['quantite']) ?> </td>
<td align='center'> <?= format_N($fraisReel) ?> </td>
<td align='center'> <?= format_N($this->nettoyer($montantTm)) ?> </td>
<td align='center'> <?= format_N($this->nettoyer($montantArembourser)) ?> </td>
<td align='center'> <?= format_N($depassement) ?> </td>
<?php if($ententePrealable2<>"0"): ?>
<?php if($ententePrealable2=='2' || $ententePrealable2=='3'): ?>
<td align='center' style="background-color: yellow;"> <input type="checkbox" checked disabled> </td>
<?php elseif($ententePrealable2=='1'): ?>
<td align='center' style="background-color: #00ff00;"> <input type="checkbox" checked disabled> </td>
<?php elseif($ententePrealable2=='9' || $exclu=='1'): ?>
<td align='center' style="background-color: red;color:white;"> <input type="checkbox" checked disabled> </td>
<?php else: ?>
<td align='center'> <input type="checkbox" checked disabled> </td>
<?php endif; ?>
<?php else: ?>
<td align='center' > <input type="checkbox" disabled></td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<div id="livre">
<?php $nbLivre = 0; ?>
<div >
<?php if($idPrestationactes=="0") : ?>
<input class="form-control" style="text-align: center; font-size: 12pt;font-weight: bold;" type="text" value="<?= _("Liste des médicaments servis") ?>" readonly >
<?php else: ?>
<input class="form-control" style="text-align: center; font-size: 12pt;font-weight: bold;" type="text" value="<?= _("Liste des médicaments facturés") ?>" readonly >
<?php endif; ?>
</div>
<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%" > <?= _("Nom") ?> </th>
<?php else: ?>
<th width="55%" > <?= _("Nom") ?> </th>
<?php endif; ?>
<th width="5%" style="text-align:center"> <?= _("Forme") ?> </th>
<th width="12%" style="text-align:center"> <?= _("Prix Pharmacie") ?> </th>
<th width="5%" style="text-align:center"> <?= _("Qté") ?> </th>
<th width="10%" style="text-align:center"> <?= _("Total Pharmacie") ?> </th>
<th width="5%" style="text-align:center"> <?= _("T M") ?> </th>
<th width="10%" style="text-align:center"> <?= _("A Remb") ?> </th>
<th width="10%" style="text-align:center"> <?= _("Dépass") ?> </th>
<th width="10%" style="text-align:center"> <?= _("Motif") ?> </th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="5" style='text-align:center'> Total </td>
<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>
<td align='center'><?= format_N($this->nettoyer($prescription['depassement'])) ?></td>
<td></td>
</tr>
</tfoot>
<?php
$gar_codePeriodicite;
$gar_periodicite;
$gar_periodiciteEng;
$act_codePeriodicite;
$act_periodicite;
$act_periodiciteEng;
$gar_nbreTransaction;
$act_nbreTransaction;
?>
<tbody>
<?php
$i=0;
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++;
$forme = $this->nettoyer($detaillivre['forme']);
$codeMotifDepassement = $this->nettoyer($detaillivre['codeMotifDepassement']);
$motif = $this->nettoyer($detaillivre['motif']);
if (est_anglophone()){
$forme = $this->nettoyer($detaillivre['formeEng']);
$motif = $this->nettoyer($detaillivre['motifEng']);
$gar_periodicitePlafond = $gar_periodicitePlafondEng;
$act_periodicitePlafond = $act_periodicitePlafondEng;
}
if($gar_codePeriodicitePlafond=="L" && $codeMotifDepassement=="PLF")
{
$motif = $motif." ".$gar_forfaitPlafond." ".$_SESSION['p_devise_C']." ".strtolower($gar_periodicitePlafond).".";
}elseif($act_codePeriodicitePlafond=="L" && $codeMotifDepassement=="PLF")
{
$motif = $motif." ".$act_forfaitPlafond." ".$_SESSION['p_devise_C']." ".strtolower($act_periodicitePlafond).".";
}else{
$motif = $motif;
}
$tarifPublic = $this->nettoyer($detaillivre['tarifPublic']);
//var_dump($tarifPublic);
$exclu = $this->nettoyer($detaillivre['exclu']);
$substitution = $this->nettoyer($detaillivre['substitution']);
$valeurActeManuel = $this->nettoyer($detaillivre['valeurActeManuel']);
$depassement = $this->nettoyer($detaillivre['depassement']);
$prixManuel = $this->nettoyer($detaillivre['prixManuel']);
$montantTmTemp = $this->nettoyer($detaillivre['montantTmTemp']);
$montantArembourserTemp = $this->nettoyer($detaillivre['montantArembourserTemp']);
if($valeurActeManuel<="0"){
$valeurActeManuel = "";
}
$libelleMedicament = $this->nettoyer($detaillivre['libelleMedicament']);
if($substitution=="1"){
$libelleMedicament = $this->nettoyer($detaillivre['libelleMedicamentSubstitut']);
$forme = $this->nettoyer($detaillivre['formeSubstitut']);
if (est_anglophone()){$forme = $this->nettoyer($detaillivre['formeSubstitutEng']);}
$montantTm = $this->nettoyer($detaillivre['montantTmMedicamentSubstitut']);
$montantArembourser = $this->nettoyer($detaillivre['montantArembourserMedicamentSubstitut']);
$fraisExclu = $this->nettoyer($detaillivre['fraisExcluMedicamentSubstitut']);
//$depassement = $this->nettoyer($detailnonlivre['depassement']);
$fraisRetenu = $this->nettoyer($detaillivre['montantArembourserMedicamentSubstitut']);
$montantTmTemp = $this->nettoyer($detaillivre['montantTmMedicamentSubstitut']);
$montantArembourserTemp = $this->nettoyer($detaillivre['montantArembourserMedicamentSubstitut']);
$fraisRetenuTemp = $this->nettoyer($detaillivre['montantArembourserMedicamentSubstitut']);
$valeurActe = $this->nettoyer($detaillivre['valeurMedicamentSubstitut']);
$fraisReel = $this->nettoyer($detaillivre['fraisReelMedicamentSubstitut']);
$valeurActeManuel = $valeurActe;
$prixManuel = $fraisReel;
}
$i++;
?>
<tr valign="top">
<?php if($idPrestationactes=="0") : ?>
<?php if($exclu=="1"): ?>
<td align='center'> <input type="button" style="color:black;" value=" - " onClick="javascript:retirermedicament_pha('<?= $idLivre ?>');"></td>
<?php else: ?>
<td align='center'> <input type="button" value=" - " onClick="javascript:retirermedicament_pha('<?= $idLivre ?>');"></td>
<?php endif; ?>
<?php if($substitution=="1") : ?>
<td style="font-weight: bold;"> <?= $libelleMedicament ?> </td>
<?php else: ?>
<td> <?= $libelleMedicament ?> </td>
<?php endif; ?>
<?php else: ?>
<?php if($substitution=="1") : ?>
<td style="font-weight: bold;"> <?= $libelleMedicament ?> </td>
<?php else: ?>
<td> <?= $libelleMedicament ?> </td>
<?php endif; ?>
<?php endif; ?>
<td align='center'> <?= $forme ?> </td>
<?php
if($pharmacieInterne=="1") : ?>
<td align='center'>
<INPUT style='text-align:center; font-size:9pt;' id="valeurActeManuel<?= $i ?>" class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($detaillivre['valeurActeManuel'])) ?>"
onBlur="ajax_maj_prix_medicament_pha('<?=$idLivre?>', '<?=$tarifPublic?>', this.value, this);" onBlur="formatMonetaire(this);" onFocus="formatNumerique(this)" onkeyup="controle_numerique(this);" required AUTOCOMPLETE="OFF" >
</td>
<?php else: ?>
<?php if( $substitution == "0") :?>
<td align='center'>
<INPUT style='text-align:center; font-size:9pt;' id="valeurActeManuel<?= $i ?>" class="form-control" TYPE="text" value="<?= format_N($valeurActeManuel) ?>"
onBlur="ajax_maj_prix_medicament_pha('<?=$idLivre?>', '<?=$tarifPublic?>', this.value, this);" onBlur="formatMonetaire(this);" onFocus="formatNumerique(this)" onkeyup="controle_numerique(this);" required AUTOCOMPLETE="OFF" >
</td>
<?php else: ?>
<td align='center'> <?= format_N($valeurActeManuel) ?> </td>
<?php endif; ?>
<?php endif; ?>
<?php if($ajPharmacie=="1") : ?>
<?php if( $substitution == "0") :?>
<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; ?>
<?php else: ?>
<td align='center'> <?= $this->nettoyer($detaillivre['quantite']); ?> </td>
<td align='center'> <?= format_N($prixManuel) ?> </td>
<td align='center'> <?= format_N($montantTmTemp) ?> </td>
<td align='center'> <?= format_N($montantArembourserTemp) ?> </td>
<td align='center'> <?= format_N($depassement) ?> </td>
<?php if($codeMotifDepassement!=''): ?>
<td align='center'>
<button type="button" class="btn btn-info" title="Voir le motif du dépassement..." onClick='javascript:alert_ebene("<?= $motif ?>","<?= $motif ?>");'>
<?= $codeMotifDepassement ?>
</button>
</td>
<?php else: ?>
<td > </td>
<?php endif; ?>
<?php endif; ?>
</tr>
<?php endforeach; ?>
<tr style='background-color:white'>
<td colspan="10" height="5"></td>
</tr>
</tbody>
</table>
<?php if( $prixZero > "0") :?>
<marquee behavior="scroll" direction="left" scrollamount="15" style="color:red; background-color:yellow; font-size:14pt">
<?= _("Veuillez entrer les prix de votre pharmacie! Merci.") ?>
</marquee>
<?php endif; ?>
<input class="sr-only" type="text" id="coutprescription" name="coutprescription" value="<?= format_N($prescription['fraisReelLivre']) ?>" >
<input class="sr-only" type="text" id="nbLivre" name="nbLivre" value="<?= $nbLivre ?>" >
<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="<?= format_N($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>
<?php else: ?>
<div class="alert alert-danger" style="height:40px; padding:5px; text-align:center;" >
<H4> Age => <?= $this->nettoyer($prescription['agePrescription']) . " "._("jours") . " => " . _("BON CADUC") ?> </H4>
</div>
<?php endif; ?>
</div>
<?php endif; ?>
</div>
<?php else: ?>
<div id="pharmacien" onkeypress="javascript:ctrlkeypressord(event);">
<input class="sr-only" id="bonCaduc" name="bonCaduc" type="text" value= "0" >
<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="15%" align="center" class="required"> <?= _("Numéro de Bon").": " ?> </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 if($contestation== "1"): ?>
<div class="alert alert-danger" style="height:38px; padding:5px;" >
<H4><?= _("Dossier médical contesté! Impossible de servir les médicaments prescrits au patient.") ?></H4>
</div>
<?php else: ?>
<div id ="msgErreur" class="alert alert-danger" style="text-align:center; height:38px; padding:5px;" >
<H4><?= _("Numéro de Bon") . " " .$numeroBonOrdonnance. " "._("introuvable"). " !" ?></H4>
</div>
<?php endif; ?>
<?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>
<button class="sr-only" id="btn_substitution_medicament" name="btn_substitution_medicament" type="button" data-bs-toggle="modal" data-bs-target="#pop_substitution_medicament" > </button>
<div class="modal fade" id="pop_substitution_medicament" role="dialog">
<div class="modal-dialog modal-lg" style="max-width: 70%;" role="document">
<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">
</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="4"> <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_test">
</div>
<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%" > <?= _("Désignation") ?> </td>
<td colspan="4"> <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 align="center"> <?= _("Quantité") ?> </td>
<td align='center' width="15%">
<input class="form-control"style="text-align: center; font-size:10pt;" type="number" id="qteMedicament" name="qteMedicament" 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>
<button id="btn_pop_ged_pharmacie" NAME="btn_pop_ged_pharmacie" type="button" class="sr-only" data-bs-toggle="modal" data-bs-target="#popGed">Afficher la GED pharmacie...</button>
<div class="modal fade" id="popGed" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button id="btn_close_pop_ged_pharmacie" name="btn_close_pop_ged_pharmacie" type="button" class="close" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
<h4 class="modal-title"> <?= _("GED Ordonnance...") ?> </h4>
</div>
<div class="modal-body">
<form enctype="multipart/form-data" action="Ajaxlistegedpharmacie/chargerged" method="post">
<div >
<input class="form-control" style="text-align: center; font-size: 12pt;font-weight: bold;" type="text" value="<?= _("Gestion Electronique des Documents (GED)") ?>" readonly > </td>
</div>
<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>
</tr>
</tbody>
</table>
</form>
<div id="div_ged">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
</div>
</div>
</div>
</div>