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

750 lines
33 KiB
PHP
Executable File

<?php
$this->titre = "INTER-SANTE - Labo et imageries";
$numeroBonExamen = $_SESSION['p_numeroBonExamen_C'];
$numeroExamen = $_SESSION['p_numeroExamen_C'] ;
$ajoutPrescriptionExam = ($_SESSION['p_ajoutPrescriptionExam_C']==1) ;
$modeSaisieFacture = $_SESSION['p_modeSaisieFacture'];
$actVisible = $_SESSION['p_actVisible'];
?>
<script type="text/javascript">
</script>
<legend><?= _("Biologie et Radiologie") ?></legend>
<?php if($numeroBonExamen=="-1") : ?>
<div id="laboratoire" onkeypress="javascript:ctrlkeypressordlab(event);">
<input class="sr-only" id="bonCaduc" name="bonCaduc" type="text" value= "0" >
<div id="prestation" onkeypress="javascript:ctrlkeypressordlab(event);">
<input class="sr-only" type="text" id="facture" name="facture" >
<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="numeroBonExamen" name="numeroBonExamen"
onChange="javascript:chercher_ordonnance_lab(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 ($numeroExamen>" " && $contestation=="0") : ?>
<?php
$facture = $this->nettoyer($prescription['facture']);
$agePrescription = $this->nettoyer($prescription['agePrescription']);
$bonCaduc = $this->nettoyer($prescription['bonCaduc']);
?>
<div id="laboratoire">
<input class="sr-only" id="bonCaduc" name="bonCaduc" type="text" value= "<?= $bonCaduc ?>" >
<div id="prestation" onkeypress="javascript:ctrlkeypressordlab(event);">
<input class="sr-only" type="text" id="facture" name="facture" value="<?= $facture ?>" >
<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="numeroBonExamen" name="numeroBonExamen"
value="<?= $numeroBonExamen ?>" onChange="javascript:chercher_ordonnance_lab(this.value);"
autofocus required AUTOCOMPLETE="OFF" >
</td>
<td width="10%" align="center" > <?= _("Prescrit le") ?> </td>
<td width="10%" > <INPUT class="form-control" TYPE="text" id="dateSurvenance" name="dateSurvenance" 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édecin") ?> </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:11pt;' >
<tbody>
<!--
<tr>
<td width="5%" > <?= _("Souscrip.") ?> </td>
<td width="20%">
<INPUT style='text-align:center; font-size:11pt;' class="form-control" TYPE="text" id="nomClient" name="nomClient"
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:11pt;" > </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:11pt;'> </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:11pt;'> </td>
</tr>
-->
<tr>
<td colspan="9pt">
<INPUT style='font-size:12pt; font-weight: bold; background-color:#f5deb3 !important; color:#a0522d; text-align:center;' class="form-control" TYPE="text" id="nomClient" name="nomClient"
value="<?= 'TAUX DE COUVERTURE : '.$tauxCouverture ?>" onChange="" readonly >
</td>
</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>
<input class="sr-only" id="codePrestatairePrescription" name="codePrestatairePrescription" type="text" value= "<?= $this->nettoyer($prescription['codePrestatairePrescription']) ?>" >
<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:11pt;">
<thead>
<tr>
<th style="text-align:center"> Date </th>
<th style="text-align:center"> <?= _("Facture No") ?> </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épass") ?> </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['depassement'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($factures_toal['fraisRetenu'])) ?></td>
</tr>
</tfoot>
<tbody>
<?php foreach ($factures as $une_facture):?>
<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'><?= format_N($this->nettoyer($une_facture['fraisReel'])) ?></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($facture>"0") : ?>
<input class="sr-only" type="text" id="idFacture" name="idFacture" value="<?= $this->nettoyer($prescription['idFacture']) ?>" >
<div id ="msgErreur" class="alert alert-danger" style="height:40px; padding:5px;" >
<H4 align="center" ><?= _("Dejà facturée !").' => '._('No Facture').' => '?>
<a title='<?= _("Imprimer Facture...") ?>' href="javascript:imprimer_facture_definitive();">
<span style="color:red; background-color:#eeeeee; border:1px solid #000; border-radius:3px; padding-left:5px; padding-right:5px;">
<?= $this->nettoyer($prescription['idFacture']) ?>
</span>
</a>
</H4>
</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($prescription['fraisReelLivre'])) ?>" 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($prescription['montantTmLivre']+$prescription['depassementLivre'])) ?>" 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($prescription['fraisRetenuLivre'])) ?>" readonly style="text-align: center; font-size:14pt; font-weight:bold; "> </td>
</tr>
</tbody>
</table>
</div>
<div id="div_facture_definitive">
</div>
<?php else: ?>
<?php if($actVisible=="1"): ?>
<?php if($this->nettoyer($prescription['bonCaduc'])=="0" or $modeSaisieFacture==1) : ?>
<?php if($ajoutPrescriptionExam) : ?>
<button type="button" class="form-control btn btn-primary" onClick="javascript:selectionexamens_lab();" style='font-size:10pt;' > <?= _("Ajouter Examen...") ?> </button>
<?php else: ?>
<!--<button type="button" class="form-control btn btn-primary" disabled style='font-size:10pt;' > <?= _("Ajouter Examen...") ?> </button>-->
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<div id ="div_wait">
</div>
<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="ordonnance">
<div >
<input class="form-control" style="text-align: center; font-size: 12pt;font-weight: bold;" type="text" value="<?= _("Liste des examens prescrits") ?>" readonly >
</div>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:11pt;'>
<thead>
<tr>
<th style="text-align:center"> <?= _("Examens prescrits") ?> </th>
<th style="text-align:center"> <?= _("Garanties") ?> </th>
<th width ="5%" style="text-align:center"> <?= _("Accord") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($detailprescriptions as $detailprescription):
$livre = $this->nettoyer($detailprescription['livre']);
$ajLabo = $this->nettoyer($detailprescription['ajLabo']);
$ententePrealable = $this->nettoyer($detailprescription['ententePrealable']);
$libelleActe = $this->nettoyer($detailprescription['libelleActe']);
$codeActe = $this->nettoyer($detailprescription['codeActe']);
$garantie = $this->nettoyer($detailprescription['garantie']);
?>
<?php if($livre=="1") : ?>
<tr valign="top" style="color:blue">
<?php else: ?>
<tr valign="top">
<?php endif; ?>
<td align='center' >
<?php if($actVisible=="1"): ?>
<?= $libelleActe ?>
<?php else: ?>
<?= $codeActe ?>
<?php endif; ?>
</td>
<td align='center' >
<?= $garantie ?>
</td>
<?php if($ententePrealable<>"0"): ?>
<?php if($ententePrealable=='2'): ?>
<td align='center' style="background-color: yellow;"> <input type="checkbox" checked disabled> </td>
<?php elseif($ententePrealable=='1'): ?>
<td align='center' style="background-color: #00ff00;"> <input type="checkbox" checked disabled> </td>
<?php elseif($ententePrealable=='9'): ?>
<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="livraison">
<!--
<input class="sr-only" id="statutBIO" name="statutBIO" type="text" value= "<?= $statutBIO ?>">
<input class="sr-only" id="statutIMA" name="statutIMA" type="text" value= "<?= $statutIMA ?>">
<input class="sr-only" id="statutEXA" name="statutEXA" type="text" value= "<?= $statutEXA ?>">
-->
<?php if($this->nettoyer($prescription['bonCaduc'])=="0" || $modeSaisieFacture==1) : ?>
<?php if($facture == "0") : ?>
<div id="div_messages">
</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($prescription['fraisReelLivre'])) ?>" 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($prescription['montantTmLivre']+$prescription['depassementLivre'])) ?>" 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($prescription['fraisRetenuLivre'])) ?>" readonly style="text-align: center; font-size:14pt; font-weight:bold;"> </td>
</tr>
</tbody>
</table>
</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 examens à facturer") ?>" readonly >
</div>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:11pt;'>
<thead>
<tr>
<?php if($facture=="0") : ?>
<th width="5%" style="text-align:center" >
<?php if($actVisible=="1"): ?>
<input class="form-control btn btn-primary" type="button" value=" + + " onClick="javascript:ajouterexamen_lab_tous();" style='font-size:9pt;' >
<?php else: ?>
<input class="form-control btn btn-primary" type="button" value=" + + " disabled style='font-size:9pt;' >
<?php endif; ?>
</th>
<th width="35%" > <?= _("Examens à facturer") ?> </th>
<?php else: ?>
<th width="35%" > <?= _("Examens à facturer") ?> </th>
<?php endif; ?>
<th width="10%" style="text-align:center"> <?= _("Garantie") ?> </th>
<th width="10%" 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"> <?= _("Accord") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($detailnonlivres as $detailnonlivre):
$idNonLivre=$this->nettoyer($detailnonlivre['id']);
$valeurActe = $this->nettoyer($detailnonlivre['valeurActe']);
$ententePrealable = $this->nettoyer($detailnonlivre['ententePrealable']);
$codeActe = $this->nettoyer($detailnonlivre['codeActe']);
$libelleActe = $this->nettoyer($detailnonlivre['libelleActe']);
$codeGarantie = $this->nettoyer($detailnonlivre['codeGarantie']);
$tarif = $this->nettoyer($detailnonlivre['tarif']);
?>
<tr valign="top">
<?php if($facture=="0") : ?>
<?php if($valeurActe=="0") : ?>
<td width="5%" align='center'> </td>
<?php else: ?>
<?php if($ententePrealable=='2'): ?>
<td align='center' style="background-color: yellow;" > W </td>
<?php elseif($ententePrealable=='1'): ?>
<td align='center' style="background-color: #00ff00;" >
<?php if($actVisible=="1"): ?>
<input type="button" value=" + " onClick="javascript:ajouterexamen_lab('<?= $idNonLivre ?>', '<?= $ententePrealable ?>', '<?= $codeActe ?>', '<?= $codeGarantie ?>');">
<?php else: ?>
<input type="button" value=" + " disabled >
<?php endif; ?>
</td>
<?php elseif($ententePrealable=='9'): ?>
<td align='center' style="background-color: red; color:white;" > R </td>
<?php else: ?>
<td width="5%" align='center'>
<?php if($actVisible=="1"): ?>
<input type="button" value=" + " onClick="javascript:ajouterexamen_lab('<?= $idNonLivre ?>', '<?= $ententePrealable ?>', '<?= $codeActe ?>', '<?= $codeGarantie ?>');">
<?php else: ?>
<input type="button" value=" + " disabled >
<?php endif; ?>
</td>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<td>
<?php if($actVisible=="1"): ?>
<?= $libelleActe ?>
<?php else: ?>
<?= $codeActe ?>
<?php endif; ?>
</td>
<td align='center' > <?= $codeGarantie ?> </td>
<td align='center'>
<button type="button" class="span_link" title="<?= _("Voir le tarif appliqué") ?>" onClick='javascript:tarif_applique("<?= $tarif ?>");'>
<?= format_N($this->nettoyer($detailnonlivre['valeurActe'])) ?>
</button>
</td>
<td align='center' > <?= $this->nettoyer($detailnonlivre['quantite']) ?> </td>
<td align='center' > <?= format_N($this->nettoyer($detailnonlivre['fraisReel'])) ?> </td>
<?php if($ententePrealable<>"0"): ?>
<?php if($ententePrealable=='2'): ?>
<td align='center' style="background-color: yellow;"> <input type="checkbox" checked disabled> </td>
<?php elseif($ententePrealable=='1'): ?>
<td align='center' style="background-color: #00ff00;"> <input type="checkbox" checked disabled> </td>
<?php elseif($ententePrealable=='9'): ?>
<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 >
<input class="form-control" style="text-align: center; font-size: 12pt;font-weight: bold;" type="text" value="<?= _("Liste des examens effectués") ?>" readonly >
</div>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:11pt;'>
<thead>
<tr>
<?php if($facture=="0") : ?>
<th width="5%" style="text-align:center" >
<?php if($actVisible=="1"): ?>
<input class="form-control btn btn-primary" type="button" value=" - - " onClick="javascript:retirerexamen_lab_tous();" style='font-size:9pt;' >
<?php else: ?>
<input class="form-control btn btn-primary" type="button" value=" - - " disabled style='font-size:9pt;' >
<?php endif; ?>
</th>
<th > <?= _("Examens effectués") ?> </th>
<?php else: ?>
<th colspan="2"> <?= _("Examens effectués") ?> </th>
<?php endif; ?>
<th width="10%" 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"> <?= _("Taux") ?> </th>
<th width="10%" style="text-align:center"> <?= _("Montant TM") ?> </th>
<th width="10%" style="text-align:center"> <?= _("Remb") ?> </th>
<th width="10%" style="text-align:center"> <?= _("Dépass") ?> </th>
<th width ="5%" style="text-align:center"> <?= _("Motif") ?> </th>
</tr>
</thead>
<tfoot>
<tr>
<?php if($facture=="0") : ?>
<td colspan="4" style='text-align:center'> Total </td>
<td align='center'><?= format_N($this->nettoyer($prescription['fraisReelLivre'])) ?></td>
<td> </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['depassementLivre'])) ?></td>
<td> </td>
<?php else: ?>
<td colspan="4" style='text-align:center'> Total </td>
<td align='center'><?= format_N($this->nettoyer($prescription['fraisReelLivre'])) ?></td>
<td> </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['depassementLivre'])) ?></td>
<td> </td>
<?php endif; ?>
</tr>
</tfoot>
<tbody>
<?php foreach ($detaillivres as $detaillivre):
$idLivre=$this->nettoyer($detaillivre['id']);
$ententePrealable = $this->nettoyer($detaillivre['ententePrealable']);
$libelleActe = $this->nettoyer($detaillivre['libelleActe']);
$codeActe = $this->nettoyer($detaillivre['codeActe']);
$ajLabo = $this->nettoyer($detaillivre['ajLabo']);
$typeSysteme = $this->nettoyer($detaillivre['typeSysteme']);
$tm = $this->nettoyer($detaillivre['tm']);
$taux = (100-$tm)."%";
$codeMotifDepassement = $this->nettoyer($detaillivre['codeMotifDepassement']);
$motif = $this->nettoyer($detaillivre['motif']);
$motifEng = $this->nettoyer($detaillivre['motifEng']);
$tarif = $this->nettoyer($detaillivre['tarif']);
$nbLivre++;
?>
<?php if($typeSysteme=="1") : ?>
<tr valign="top" style="background-color: red; color:white;">
<?php else: ?>
<tr valign="top">
<?php endif; ?>
<?php if($facture=="0") : ?>
<td align='center'>
<?php if($actVisible=="1"): ?>
<input type="button" value=" - " onClick="javascript:retirerexamen_lab('<?= $idLivre ?>');">
<?php else: ?>
<input type="button" value=" - " disabled >
<?php endif; ?>
</td>
<td>
<?php if($actVisible=="1"): ?>
<?= $libelleActe ?>
<?php else: ?>
<?= $codeActe ?>
<?php endif; ?>
</td>
<?php else: ?>
<td colspan="2">
<?php if($actVisible=="1"): ?>
<?= $libelleActe ?>
<?php else: ?>
<?= $codeActe ?>
<?php endif; ?>
<?php endif; ?>
<td align='center'>
<button type="button" class="span_link" title="<?= _("Voir le tarif appliqué") ?>" onClick='javascript:tarif_applique("<?= $tarif ?>");'>
<?= format_N($this->nettoyer($detaillivre['valeurActe'])) ?>
</button>
</td>
<td align='center' > <?= format_N($this->nettoyer($detaillivre['quantite'])) ?> </td>
<td align='center' > <?= format_N($this->nettoyer($detaillivre['fraisReel'])) ?> </td>
<td align='center'> <?= $taux ?> </td>
<td align='center' > <?= format_N($this->nettoyer($detaillivre['montantTm'])) ?> </td>
<td align='center' > <?= format_N($this->nettoyer($detaillivre['montantArembourser'])) ?> </td>
<td align='center' > <?= format_N($this->nettoyer($detaillivre['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 ?>","<?= $motifEng ?>");'>
<?= $codeMotifDepassement ?>
</button>
</td>
<?php else: ?>
<td > </td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
<tr style='background-color:white'>
<td colspan="10" height="5"></td>
</tr>
</tbody>
</table>
<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>
<?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>
</div>
<?php if($facture=="1" || $bonCaduc=="1"): ?>
<div id="div_ged_0"></div>
<?php else: ?>
<div id="div_ged_0" style="margin-top:20px;">
<form enctype="multipart/form-data" action="Laboratoire" 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 >
</div>
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td width="10%"> <?= _("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; ?>
<?php else: ?>
<div id="laboratoire" onkeypress="javascript:ctrlkeypressordlab(event);">
<input class="sr-only" id="bonCaduc" name="bonCaduc" type="text" value= "0" >
<div id="prestation" onkeypress="javascript:ctrlkeypressordlab(event);">
<input class="sr-only" type="text" id="facture" name="facture" >
<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="numeroBonExamen" name="numeroBonExamen"
onChange="javascript:chercher_ordonnance_lab(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 faire les examens prescrits au patient.") ?></H4>
</div>
<?php else: ?>
<div id ="msgErreur" class="alert alert-danger" style="height:38px; padding:5px;" >
<H4><?= _("Numéro de Bon") . " " .$numeroBonExamen. " "._("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>
<!-- pour ajouter un nouvel examen -->
<div class="modal fade" id="popRechercheActe" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button id="btn_close_pop_acte" name="btn_close_pop" type="button" class="close" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
<h4 class="modal-title"> <?= _("Rechercher un Acte...") ?> </h4>
</div>
<div class="modal-body">
<div id="div_liste_actes_possibles" onkeypress="javascript:ctrlkeypress_examens_possibles_lab(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"> Code </th>
<th style="text-align:center"> <?= _("Famille") ?> </th>
<th style="text-align:center" > <?= _("Acte") ?> </th>
<th style="text-align:center" > <?= _("Prix") ?> </th>
<th style="text-align:center" > <?= _("Accord") ?> </th>
<th style="text-align:center" > <?= _("Exclu") ?> </th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="3"><input type="text" class="form-control" id="libelleActeSearch" name="libelleActeSearch" 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_examens_possibles_lab();" /></td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="modal-footer">
<button id="close_pop_acte" name="close_pop_acte" type="button" class="btn btn-default" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
</div>
</div>
</div>
</div>