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

698 lines
30 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><?= _("Laboratoire ou 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="20%" align="center"> <?= _("No Ordonnance") ?> </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_cso(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>" ") : ?>
<?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="7%" > <?= _("Ordonnance") ?> </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_cso(this.value);"
autofocus required AUTOCOMPLETE="OFF" >
</td>
<td width="10%" align="center" > <?= _("Prescrit le") ?> </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é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:9pt;' >
<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: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>
<td colspan="8">
<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="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']) ?>" >
<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") ?> </th>
<th style="text-align:center"> <?= _("Base") ?> </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"> <?= _("Retenu") ?> </th>
<th style="text-align:center"> <?= _("Dépass") ?> </th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="2" align='center'> Total </td>
<td align='center'><?= format_N($this->nettoyer($factures_toal['fraisReelBase'])) ?></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['fraisRetenu'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($factures_toal['depassement'])) ?></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'> <input style='font-size:8pt;' type="button" value="<?= $une_facture['idFacture']?>" onClick="javascript:imprimer_facture_definitive();"> </td>
<td align='center'><?= format_N($this->nettoyer($une_facture['fraisReelBase'])) ?></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['fraisRetenu'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($une_facture['depassement'])) ?></td>
</tr>
<input class="sr-only" type="text" id="idFacture" name="idFacture" value="<?= $this->nettoyer($une_facture['idFacture']) ?>" >
<?php endforeach; ?>
</tbody>
</table>
<div id="div_facture_definitive">
</div>
<?php if($facture>"0") : ?>
<div id ="msgErreur" class="alert alert-danger" style="height:38px; padding:5px;" >
<H4><?= _("Dejà facturée !") ?></H4>
</div>
<div id="recap">
<table class="table table-responsive table-condensed" style='font-size:12pt;' >
<tbody>
<tr>
<td align="center"> <?= _("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; background-color:#5f9ea0; color:white;"> </td>
<td align="center"> <?= _("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; background-color:#ba74d4; color:white;"> </td>
<td align="center"> <?= _("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; background-color:rgba(255, 0, 127); color:white;"> </td>
</tr>
</tbody>
</table>
</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();" style='font-size:10pt;' > <?= _("Ajouter Examen...") ?> </button>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<?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-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; ?>
<?php if($ententePrealable=='2'): ?>
<td align='center' style="background-color: yellow;" >
<?php if($actVisible=="1"): ?>
<?= $libelleActe ?>
<?php else: ?>
<?= $codeActe ?>
<?php endif; ?>
</td>
<td align='center' style="background-color: yellow;" >
<?= $garantie ?>
</td>
<?php elseif($ententePrealable=='1'): ?>
<td align='center' style="background-color: #00ff00;" >
<?php if($actVisible=="1"): ?>
<?= $libelleActe ?>
<?php else: ?>
<?= $codeActe ?>
<?php endif; ?>
</td>
<td align='center' style="background-color: #00ff00;" >
<?= $garantie ?>
</td>
<?php elseif($ententePrealable=='9'): ?>
<td align='center' style="background-color: red; color:white;" >
<?php if($actVisible=="1"): ?>
<?= $libelleActe ?>
<?php else: ?>
<?= $codeActe ?>
<?php endif; ?>
</td>
<td align='center' style="background-color: red; color:white;" >
<?= $garantie ?>
</td>
<?php else: ?>
<td align='center' >
<?php if($actVisible=="1"): ?>
<?= $libelleActe ?>
<?php else: ?>
<?= $codeActe ?>
<?php endif; ?>
</td>
<td align='center' >
<?= $garantie ?>
</td>
<?php endif; ?>
<?php if($ententePrealable=='2'): ?>
<td align='center' style="background-color: yellow;" > <?= $ententePrealable ?> </td>
<?php elseif($ententePrealable=='1'): ?>
<td align='center' style="background-color: #00ff00;" > <?= $ententePrealable ?> </td>
<?php elseif($ententePrealable=='9'): ?>
<td align='center' style="background-color: red; color:white;" > <?= $ententePrealable ?> </td>
<?php else: ?>
<td align='center' > <?= $ententePrealable ?> </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" or $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"> <?= _("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; background-color:#5f9ea0; color:white;"> </td>
<td align="center"> <?= _("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; background-color:#ba74d4; color:white;"> </td>
<td align="center"> <?= _("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; background-color:rgba(255, 0, 127); color:white;"> </td>
</tr>
</tbody>
</table>
</div>
<?php endif; ?>
<div id="non_livre">
<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"> <?= _("Base Remb.") ?> </th>
-->
<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="10%" style="text-align:center"> <?= _("T M") ?> </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"> <?= _("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']);
?>
<?php if($ententePrealable=='2'): ?>
<tr style="background-color: yellow;" >
<?php elseif($ententePrealable=='1'): ?>
<tr style="background-color: #00ff00;" >
<?php elseif($ententePrealable=='9'): ?>
<tr style="background-color: red; color:white;" >
<?php else: ?>
<tr valign="top">
<?php endif; ?>
<?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>
<!--
<td align='center' > <?= format_N($this->nettoyer($detailnonlivre['montantTm'])) ?> </td>
<td align='center' > <?= format_N($this->nettoyer($detailnonlivre['montantArembourser'])) ?> </td>
<td align='center' > <?= format_N($this->nettoyer($detailnonlivre['depassement'])) ?> </td>
-->
<td align='center' > <?= $ententePrealable ?> </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: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: ?>
<?php if($ententePrealable=='2'): ?>
<tr valign="top" style="background-color: yellow;">
<?php elseif($ententePrealable=='1'): ?>
<tr valign="top" style="background-color: #00ff00;">
<?php elseif($ententePrealable=='9'): ?>
<tr valign="top" style="background-color: red; color:white;">
<?php else: ?>
<tr valign="top">
<?php endif; ?>
<?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>
<?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['valeurActe'])) ?> </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'])) ?>" >
<input class="sr-only" type="text" id="fraisReelBaseLivre" name="fraisReelBaseLivre" value="<?= $this->nettoyer($prescription['fraisReelBaseLivre']) ?>" >
<input class="sr-only" type="text" id="depassementLivre" name="depassementLivre" value="<?= $this->nettoyer($prescription['depassementLivre']) ?>" >
</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 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="20%" align="center"> <?= _("No Ordonnance") ?> </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_cso(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") . " " .$numeroBonExamen. " "._("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>
<!-- 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>