radiantprestation/Vue/Laboratoire/index.php

657 lines
28 KiB
PHP

<?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'];
$controlerPlafondAdherent = ($_SESSION['p_controlerPlafondAdherent']>0);
$controlerPlafondBeneficiaire = ($_SESSION['p_controlerPlafondBeneficiaire']>0);
?>
<script type="text/javascript">
</script>
<?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(this.value);" autofocus required >
</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:8pt;' >
<tbody>
<tr>
<td width="7%" > <?= _("Ordon") ?> </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 >
</td>
<td width="10%" align="center" > Date Prescr </td>
<td width="10%" > <INPUT class="form-control" TYPE="text" value="<?= dateLang($this->nettoyer($prescription['datePrescription'])) ?>" readonly style="text-align: center; font-size:8pt;" > </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:8pt;'> </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:8pt;'> </td>
</tr>
</tbody>
</table>
</div>
<INPUT style='font-size:12pt; color:red; text-align:center;' class="form-control" type="text" value="<?= _("Prescrit à : ").$this->nettoyer($prescription['prestataire']) ?>" readonly >
<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:9pt;">
<thead>
<tr>
<th style="text-align:center"> Date </th>
<th style="text-align:center"> <?= _("Facture") ?> </th>
<th style="text-align:center"> <?= _("Frais") ?> </th>
<th style="text-align:center"> <?= _("T M") ?> </th>
<th style="text-align:center"> <?= _("A Remb") ?> </th>
<th style="text-align:center"> <?= _("Dépas") ?> </th>
<th style="text-align:center"> <?= _("Retenu") ?> </th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="2" align='center'> Total </td>
<td align='center'><?= format_N($this->nettoyer($factures_toal['fraisReel'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($factures_toal['montantTm'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($factures_toal['montantArembourser'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($factures_toal['fraisExclu'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($factures_toal['fraisRetenu'])) ?></td>
</tr>
</tfoot>
<tbody>
<?php foreach ($factures as $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['fraisExclu'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($une_facture['fraisRetenu'])) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php if($facture>"0") : ?>
<div id ="msgErreur" class="alert alert-danger" style="height:30px; padding:5px;" >
<H4><?= _("Dejà facturée !") ?></H4>
</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="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:8pt;'>
<thead>
<tr>
<th style="text-align:center"> <?= _("Examens prescrits") ?> </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']);
?>
<?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>
<?php elseif($ententePrealable=='1'): ?>
<td align='center' style="background-color: #00ff00;" >
<?php if($actVisible=="1"): ?>
<?= $libelleActe ?>
<?php else: ?>
<?= $codeActe ?>
<?php endif; ?>
</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>
<?php else: ?>
<td align='center' >
<?php if($actVisible=="1"): ?>
<?= $libelleActe ?>
<?php else: ?>
<?= $codeActe ?>
<?php endif; ?>
</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">
<?php if($this->nettoyer($prescription['bonCaduc'])=="0" or $modeSaisieFacture==1) : ?>
<div id="non_livre">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:8pt;'>
<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:8pt;' >
<?php else: ?>
<input class="form-control btn btn-primary" type="button" value=" + + " disabled style='font-size:8pt;' >
<?php endif; ?>
</th>
<th width="60%" > <?= _("Examens en attente") ?> </th>
<?php else: ?>
<th width="65%" > <?= _("Examens en attente") ?> </th>
<?php endif; ?>
<th width="10%" style="text-align:center"> <?= _("Valeur") ?> </th>
<th width="10%" style="text-align:center"> <?= _("T M") ?> </th>
<th width="10%" style="text-align:center"> <?= _("A Remb") ?> </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']);
?>
<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 ?>');">
<?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 ?>');">
<?php else: ?>
<input type="button" value=" + " disabled >
<?php endif; ?>
</td>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<?php if($ententePrealable=='2'): ?>
<td align='center' style="background-color: yellow;" >
<?php if($actVisible=="1"): ?>
<?= $libelleActe ?>
<?php else: ?>
<?= $codeActe ?>
<?php endif; ?>
</td>
<?php elseif($ententePrealable=='1'): ?>
<td align='center' style="background-color: #00ff00;" >
<?php if($actVisible=="1"): ?>
<?= $libelleActe ?>
<?php else: ?>
<?= $codeActe ?>
<?php endif; ?>
</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>
<?php else: ?>
<td align='center' > <?= $libelleActe ?> </td>
<?php endif; ?>
<td align='center'> <?= format_N($this->nettoyer($detailnonlivre['valeurActe'])) ?> </td>
<td align='center'> <?= format_N($this->nettoyer($detailnonlivre['montantTm'])) ?> </td>
<td align='center'> <?= format_N($this->nettoyer($detailnonlivre['montantArembourser'])) ?> </td>
<?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="livre">
<?php $nbLivre = 0; ?>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:8pt;'>
<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:8pt;' >
<?php else: ?>
<input class="form-control btn btn-primary" type="button" value=" - - " disabled style='font-size:8pt;' >
<?php endif; ?>
</th>
<th width="60%" > <?= _("Examens effectués") ?> </th>
<?php else: ?>
<th width="65%" > <?= _("Examens effectués") ?> </th>
<?php endif; ?>
<th width="10%" style="text-align:center"> <?= _("Valeur") ?> </th>
<th width="10%" style="text-align:center"> <?= _("T M") ?> </th>
<th width="10%" style="text-align:center"> <?= _("A Remb") ?> </th>
<th width ="5%" style="text-align:center"> <?= _("Accord") ?> </th>
</tr>
</thead>
<tfoot>
<tr>
<?php if($facture=="0") : ?>
<td colspan="2" style='text-align:center'> Total </td>
<?php else: ?>
<td colspan="1" style='text-align:center'> Total </td>
<?php endif; ?>
<td align='center'><?= format_N($this->nettoyer($prescription['fraisReelLivre'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($prescription['montantTmLivre'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($prescription['montantArembourserLivre'])) ?></td>
<td> </td>
</tr>
</tfoot>
<tbody>
<?php foreach ($detaillivres as $detaillivre):
$idLivre=$this->nettoyer($detaillivre['id']);
$ententePrealable = $this->nettoyer($detaillivre['ententePrealable']);
$codeActe = $this->nettoyer($detaillivre['codeActe']);
$libelleActe = $this->nettoyer($detaillivre['libelleActe']);
$ajLabo = $this->nettoyer($detaillivre['ajLabo']);
$typeSysteme = $this->nettoyer($detaillivre['typeSysteme']);
$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>
<?php if($actVisible=="1"): ?>
<?= $libelleActe ?>
<?php else: ?>
<?= $codeActe ?>
<?php endif; ?>
</td>
<?php endif; ?>
<td align='center'> <?= format_N($this->nettoyer($detaillivre['valeurActe'])) ?> </td>
<td align='center'> <?= format_N($this->nettoyer($detaillivre['montantTm'])) ?> </td>
<td align='center'> <?= format_N($this->nettoyer($detaillivre['montantArembourser'])) ?> </td>
<?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; ?>
<tr style='background-color:white'>
<td colspan="6" height="5"></td>
</tr>
</tbody>
</table>
<div id="recap">
<table class="table table-responsive table-condensed" style='font-size:12pt;' >
<tbody>
<tr>
<td > <?= _("Dépas") ?> </td>
<td > <INPUT class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($prescription['fraisExcluLivre'])) ?>" readonly style="text-align: center; font-size:12pt; color:red;" > </td>
<td align="center" > <?= _("Retenu") ?> </td>
<td > <INPUT class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($prescription['fraisRetenuLivre'])) ?>" readonly style="text-align: center; font-size:12pt; color:blue;" > </td>
</tr>
</tbody>
</table>
</div>
<?php if($facture=="0") : ?>
<table class="table table-bordered table-condensed table-responsive" style="font-size:9pt;">
<tbody>
<tr>
<?php if($controlerPlafondAdherent): ?>
<td width="8%"> <?= _("Limite Fam") ?> </td>
<td><INPUT style='text-align:center; background-color:blue;color:white; font-size:9pt;' class="form-control" TYPE="text" value="<?= format_N($limite_beneficiaire['plafondAdherent']) ?>" readonly ></td>
<td align="center"> <?= _("Anc Solde") ?> </td>
<td><INPUT style='text-align:center; background-color:rgba(255, 0, 127);color:white; font-size:9pt;' class="form-control" TYPE="text" value="<?= format_N($limite_beneficiaire['soldeAdherentOld']) ?>" readonly ></td>
<td align="center"> <?= _("Nv Solde") ?> </td>
<td> <INPUT style='text-align:center; background-color:green;color:white; font-size:9pt;' class="form-control" TYPE="text" value="<?= format_N($limite_beneficiaire['soldeAdherentNew']) ?>" readonly ></td>
<?php endif; ?>
<?php if($controlerPlafondBeneficiaire): ?>
<td align="center" width="8%"> <?= _("Limite Indiv") ?> </td>
<td><INPUT style='text-align:center; background-color:blue;color:white; font-size:9pt;' class="form-control" TYPE="text" value="<?= format_N($limite_beneficiaire['plafondBeneficiaire']) ?>" readonly ></td>
<td align="center"> <?= _("Anc Solde") ?> </td>
<td><INPUT style='text-align:center; background-color:rgba(255, 0, 127);color:white; font-size:9pt;' class="form-control" TYPE="text" value="<?= format_N($limite_beneficiaire['soldeBeneficiaireOld']) ?>" readonly ></td>
<td align="center"> <?= _("Nv Solde") ?> </td>
<td><INPUT style='text-align:center; background-color:green;color:white; font-size:9pt;' class="form-control" TYPE="text" value="<?= format_N($limite_beneficiaire['soldeBeneficiaireNew']) ?>" readonly ></td>
<?php endif; ?>
</tr>
</tbody>
</table>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th rowspan="2" style="text-align:center"> <?= _("Limites de la famille : Garanties") ?> </th>
<th rowspan="2" style="text-align:center"> <?= _("Limites") ?> </th>
<th rowspan="2" style="text-align:center"> <?= _("Solde Ant") ?> </th>
<th colspan="2" style="text-align:center;background-color:blue;color:white;"> <?= _("Nouvelles Consommations") ?> </th>
<th rowspan="2" style="text-align:center;background-color:red;color:white;"> <?= _("Dépassement") ?> </th>
<th rowspan="2" style="text-align:center"> <?= _("Retenu") ?> </th>
<th rowspan="2" style="text-align:center"> <?= _("Nouv Solde") ?> </th>
<th rowspan="2" style="text-align:center"> <?= _("Par tête?") ?> </th>
</tr>
<tr>
<th style="text-align:center;background-color:blue;color:white;" > <?= _("Garanties") ?> </th>
<th style="text-align:center;background-color:blue;color:white;" > <?= _("Sous Gar") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($garantieadherent_temp as $garantieadherent):
$champApplication = $this->nettoyer($garantieadherent['champApplication']);
?>
<tr valign="top">
<td align='center'> <?= $this->nettoyer($garantieadherent['garantie'])?> </td>
<td align='center'><?= format_N($this->nettoyer($garantieadherent['plafond'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($garantieadherent['soldeOld'])) ?></td>
<td align='center' style='background-color:blue;color:white;'><?= format_N($this->nettoyer($garantieadherent['consommationNew'])) ?></td>
<td align='center' style='background-color:blue;color:white;'><?= format_N($this->nettoyer($garantieadherent['consommationSousGarantie'])) ?></td>
<td align='center' style='background-color:red;color:white;'><?= format_N($this->nettoyer($garantieadherent['fraisExclu'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($garantieadherent['fraisRetenu'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($garantieadherent['soldeNew'])) ?></td>
<?php if($champApplication=='1'): ?>
<td align='center'> <input type="checkbox" checked value="<?php echo $champApplication ; ?>" disabled ></td>
<?php else: ?>
<td align='center'> <input type="checkbox" value="<?php echo $champApplication ; ?>" disabled ></td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php endif; ?>
<input class="sr-only" type="text" id="nbLivre" name="nbLivre" value="<?= $nbLivre ?>" >
<input class="sr-only" type="text" id="prixActe" name="prixActe" value="<?= $this->nettoyer($prescription['fraisRetenuLivre']) ?>" >
<input class="sr-only" type="text" id="cout" name="cout" value="<?= $this->nettoyer($prescription['fraisReelLivre']) ?>" >
<input class="sr-only" type="text" id="montantTm" name="montantTm" value="<?= $this->nettoyer($prescription['montantTmLivre']) ?>" >
<input class="sr-only" type="text" id="cout_f" name="cout_f" value="<?= format_N($this->nettoyer($prescription['fraisReelLivre'])) ?>" >
<input class="sr-only" type="text" id="montantTm_f" name="montantTm_f" value="<?= format_N($this->nettoyer($prescription['montantTmLivre'])) ?>" >
</div>
<?php else: ?>
<div class="alert alert-danger" style="height:30px; 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(this.value);" autofocus required >
</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:30px; 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-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-dismiss="modal"> <?= _("Fermer") ?> </button>
</div>
</div>
</div>
</div>