520 lines
25 KiB
PHP
520 lines
25 KiB
PHP
<?php
|
|
$this->titre = "INTER-SANTE - Prescription Examens";
|
|
|
|
$numeroBonExamen = $examen['numeroBonExamen'];
|
|
$numeroExamen = $examen['numeroExamen'];
|
|
|
|
//var_dump($numeroExamen);
|
|
|
|
$facture = $examen['facture'];
|
|
$_SESSION['p_numeroBonExamen_C'] = $numeroBonExamen;
|
|
$_SESSION['p_numeroExamen_C'] = $numeroExamen;
|
|
|
|
$badcodeGestionBon = "1";
|
|
$tab_gestion_bon = array("0", "1", "2");
|
|
if (in_array($codeGestionBon, $tab_gestion_bon))
|
|
{
|
|
$badcodeGestionBon = "0";
|
|
}
|
|
$actVisible = $_SESSION['p_actVisible'];
|
|
|
|
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US")
|
|
{
|
|
$libelleCarence = "Wait Period";
|
|
}
|
|
else
|
|
{
|
|
$libelleCarence = "Carence";
|
|
}
|
|
|
|
$agePrescription = $this->nettoyer($examen['agePrescription']);
|
|
$bonCaduc = $this->nettoyer($examen['bonCaduc']);
|
|
$modeSaisieFacture = $_SESSION['p_modeSaisieFacture'];
|
|
|
|
if($modeSaisieFacture=="1")
|
|
{
|
|
$bonCaduc = "0";
|
|
}
|
|
|
|
$motifExam = $examen['motifExamen'];
|
|
|
|
|
|
$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'];
|
|
|
|
$datePrestation = $_SESSION['datePrestation'];
|
|
$bareme_finDelaiCarence = $_SESSION['p_bareme']['bareme_finDelaiCarence'];
|
|
|
|
//var_dump($situation['soldeNbreTransactionFamille'],$situation['soldeNbreTransaction'],$situationGarantie['soldeNbreTransactionFamille'],$situationGarantie['soldeNbreTransaction']);
|
|
|
|
|
|
|
|
if ($baremeExiste=="0")
|
|
{
|
|
$v_msg="Aucun barème n'existe, veuillez en informer ".$_SESSION['p_nomSociete_C']." afin que celà soit corrigé.";
|
|
|
|
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US"){
|
|
$v_msg="No scale exists, please inform ".$_SESSION['p_nomSociete_C']." so that this can be corrected.";
|
|
}
|
|
}elseif($bareme_actif=="0"){
|
|
$v_msg="Il n'y a pas de barème de garantie actif à cette date, veuillez en informer ".$_SESSION['p_nomSociete_C']." afin que celà soit corrigé.";
|
|
|
|
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US"){
|
|
$v_msg="There is no active guarantee schedule on this date, please inform ".$_SESSION['p_nomSociete_C']." so that this can be corrected.";
|
|
}
|
|
}elseif($bareme_codeTypeRemboursement=="RDE"){
|
|
$v_msg="L'assuré est en remboursement direct pour cette garantie. Il devra entièrement payer la prestation et se faire rembourser par ".$_SESSION['p_nomSociete_C']."!";
|
|
|
|
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US"){
|
|
$v_msg="The insured is in direct reimbursement for this guarantee. He will have to fully pay for the service and be reimbursed by ".$_SESSION['p_nomSociete_C']."!";
|
|
}
|
|
}elseif(($bareme_ageMinimum > "0" && $bareme_ageMaximum > "0") && ($ageBeneficiaire < $bareme_ageMinimum || $ageBeneficiaire > $bareme_ageMaximum)){
|
|
$v_msg="L'âge de l'assuré n'est pas pris en compte dans le barème de garantie!";
|
|
|
|
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US"){
|
|
$v_msg="The age of the insured is not taken into account in the warranty schedule!";
|
|
}
|
|
}elseif($bareme_finDelaiCarence!="1970-01-01" && $datePrestation < $bareme_finDelaiCarence){
|
|
$v_msg="Le delai de carence est toujours en cours pour cet assuré, par conséquent il n'est pas pris en charge." ;
|
|
|
|
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US"){
|
|
$v_msg="The waiting period is still in progress for this insured, therefore it is not covered. Thank you for your understanding." ;
|
|
}
|
|
}elseif($situation['soldeConsommationFamille'] < "0" || $situation['soldeConsommation'] < "0" || $situationGarantie['soldeConsommationFamille'] < "0" || $situationGarantie['soldeConsommation'] < "0"){
|
|
$v_msg="Le plafond de consommation de la famille ou de l'assuré est atteint par conséquent le ticket modérateur ne sera pas appliqué. Merci pour votre compréhension." ;
|
|
|
|
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US"){
|
|
$v_msg="The consumption ceiling of the family or the insured; is reached therefore the moderator ticket will not be applied. Thank you for understanding." ;
|
|
}
|
|
}elseif($situation['soldeNbreTransactionFamille'] < "0" || $situation['soldeNbreTransaction'] < "0" || $situationGarantie['soldeNbreTransactionFamille'] < "0" || $situationGarantie['soldeNbreTransaction'] < "0"){
|
|
$v_msg="Le nombre de prestation de la famille ou de l'assuré est atteint par conséquent le ticket modérateur ne sera pas appliqué. Merci pour votre compréhension." ;
|
|
|
|
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US"){
|
|
$v_msg="The number of benefits of the family or the insured; is reached therefore the moderator ticket will not be applied. Thank you for understanding." ;
|
|
}
|
|
}elseif($situationAnnuelle['soldeConsommation'] < "0"){
|
|
$v_msg="Le plafond annuelle de consommation de l'assuré est atteint par conséquent le ticket modérateur ne sera pas appliqué. Merci pour votre compréhension." ;
|
|
|
|
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US"){
|
|
$v_msg="The insured's annual consumption ceiling has been reached, therefore the co-payment will not be applied. Thank you for understanding." ;
|
|
}
|
|
}elseif($situationFamille['soldeConsommation'] < "0"){
|
|
$v_msg="Le plafond annuelle de consommation de la famille est atteint par conséquent le ticket modérateur ne sera pas appliqué. Merci pour votre compréhension." ;
|
|
|
|
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US"){
|
|
$v_msg="The family's annual consumption limit has been reached, therefore the co-payment will not be applied. Thank you for understanding." ;
|
|
}
|
|
}else{
|
|
$v_msg="";
|
|
}
|
|
?>
|
|
<div id="div_prescription">
|
|
<script type="text/javascript">
|
|
|
|
</script>
|
|
|
|
<input class="sr-only" id="badcodeGestionBon" name="badcodeGestionBon" type="text" value= "<?= $badcodeGestionBon ?>" >
|
|
<input class="sr-only" id="bonCaduc" name="bonCaduc" type="text" value= "<?= $bonCaduc ?>" >
|
|
|
|
<?php if ($numeroBonExamen<="0" && $badcodeGestionBon=="1") : ?>
|
|
<div class="alert alert-danger" style="height:40px; padding:5px; text-align:center;" >
|
|
<H4> <?= _("REVOIR LE TYPE DE GESTION DES BONS") ?> </H4>
|
|
</div>
|
|
<?php else: ?>
|
|
<button class="sr-only" id="btn_pop_tarif" name="btn_pop_tarif" type="button" data-bs-toggle="modal" data-bs-target="#popTarif" style='font-size:10pt;' > </button>
|
|
<input class="sr-only" id="codeTypePrestation" name="codeTypePrestation" type="text" value="EXAM">
|
|
|
|
<input class="sr-only" id="facture" name="facture" type="text" value= "<?= $facture ?>" >
|
|
<input class="sr-only" id="numeroBonExamen" name="numeroBonExamen" type="text" value= "<?= $numeroBonExamen ?>" >
|
|
<input class="sr-only" id="codeMedecin" name="codeMedecin" type="text" value= "<?= $examen['codeMedecin'] ?>">
|
|
|
|
<input class="sr-only" type="text" id="nbBonsOrd" name="nbBonsOrd" Value="<?= $nbBonsOrd ?>" >
|
|
<input class="sr-only" type="text" id="codeGestionBon" name="codeGestionBon" Value="<?= $codeGestionBon ?>" >
|
|
|
|
<?php if ($numeroBonExamen>"0") : ?>
|
|
<legend><?= _("Prescription Examens") ?></legend>
|
|
<?php else: ?>
|
|
<legend> <?= _("Nouvelle prescription Examens") ?> </legend>
|
|
<?php endif; ?>
|
|
|
|
<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:9pt;' 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='text-align:center; font-size:9pt; color: red;' class="form-control" TYPE="text" id="nomClient" name="nomClient"
|
|
value="<?= 'TAUX DE COUVERTURE : '.$tauxCouverture ?>" onChange="" readonly >
|
|
</td>
|
|
</tr>
|
|
<?php if ($v_msg !="") : ?>
|
|
<tr>
|
|
<td colspan="8">
|
|
<marquee behavior="scroll" direction="left" scrollamount="15" style="background-color:red;color:white; font-weight:bold; font-size:14pt">
|
|
<?= $v_msg ?>
|
|
</marquee>
|
|
</td>
|
|
</tr>
|
|
<?php endif; ?>
|
|
</tbody>
|
|
</table>
|
|
|
|
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
|
<tbody>
|
|
<tr>
|
|
<td width="5%" > Date </td>
|
|
<td width="20%" > <INPUT class="form-control" TYPE="text" value="<?= dateLang($this->nettoyer($examen['datePrescription'])) ?>" readonly style="text-align: center; font-size:10pt;" > </td>
|
|
|
|
<td width="5%" align="center"> <?= _("Médecin") ?> </td>
|
|
<td>
|
|
<?php if ($numeroBonExamen>"0" or $facture=="1") : ?>
|
|
<INPUT class="form-control" TYPE="text" value="<?= $this->nettoyer($examen['medecinPrescription']) ?>" readonly style='font-size:10pt;'>
|
|
<?php else: ?>
|
|
<!-- <button type="button" class="form-control btn btn-primary" data-bs-toggle="modal" data-bs-target="#popRechercheMedecin" style='font-size:10pt;' ><span id="nomMedecin" name="nomMedecin"> <?= $this->nettoyer($examen['medecinPrescription']) ?> </span></button>-->
|
|
<SELECT id="medecinPrescription" class="form-control selectpicker" data-live-search="true" NAME="medecinPrescription" disabled onChange="" style='font-size:10pt;' >
|
|
<?php liste_options($medecins,$examen['codeMedecin'],true); ?>
|
|
</SELECT>
|
|
|
|
<?php endif; ?>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
|
<tbody>
|
|
<tr>
|
|
<td width="5%" > <?= _("Bons Dispo.") ?> </td>
|
|
<td width="20%" > <input class="form-control" style="text-align: center; font-size:10pt;" Value="<?= $nbBonsOrd ?>" readonly > </td>
|
|
|
|
<td width="7%" align="center"> <?= _("No Bon") ?> </td>
|
|
<td width="20%" > <input class="form-control" style="text-align: center; font-size:10pt; background-color:blue;color:white;" type="number" id="numeroBon" name="numeroBon" value="<?= $numeroBonExamen ?>" readonly > </td>
|
|
|
|
|
|
<td width="5%" align="center" > <?= _("Gestion") ?> </td>
|
|
|
|
<td>
|
|
<?php if($badcodeGestionBon=="1") : ?>
|
|
<input class="form-control" style="text-align: center; font-size:10pt; background-color: red;color:white;" Value="<?= _("INCONNU") ?>" readonly >
|
|
<?php else: ?>
|
|
<input class="form-control" style="text-align: center; font-size:10pt;" Value="<?= $typeGestionbon ?>" readonly >
|
|
<?php endif; ?>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<?php if(empty($motifExam)) : ?>
|
|
<td width="5%" class="required"> <?= _("Motif") ?> </td>
|
|
<td colspan="5"><input id="motifExamen" name="motifExamen" style="font-size:10pt;" class="form-control" value="" type="text" onChange="javascript:majMotifExamen();" onblur="chargeactesexamen();" autofocus required AUTOCOMPLETE="OFF" ></td>
|
|
<?php else: ?>
|
|
<td width="5%" class="required"> <?= _("Motif") ?> </td>
|
|
<td colspan="5"><input id="motifExamen" name="motifExamen" style="font-size:10pt;" class="form-control" value="<?= $motifExam ?>" type="text" onChange="javascript:majMotifExamen();" autofocus required AUTOCOMPLETE="OFF" ></td>
|
|
<?php endif; ?>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div id="infosbon">
|
|
|
|
<!-- debut new -->
|
|
|
|
<?php if($codeGestionBon!="0"): ?>
|
|
<?php if ($numeroBonExamen>"0") : ?>
|
|
<?php if(!empty($motifExam)) : ?>
|
|
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
|
<tbody>
|
|
|
|
<?php if ($facture!="1" && $bonCaduc!="1"): ?>
|
|
<!--<td> <button type="button" class="form-control btn btn-primary" data-bs-toggle="modal" data-bs-target="#popRechercheActe" style='font-size:10pt;' > <?= _("Rechercher Acte...") ?> </button> </td>-->
|
|
<tr>
|
|
<td align="center" style="font-size:11pt;font-weight:bold;">Sélectionnez un examen dans la liste</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="50%">
|
|
<div id="div_select_examen">
|
|
<SELECT id="codeActe" class="form-control selectpicker" data-live-search="true" NAME="codeActe" required AUTOCOMPLETE="OFF" onChange="javascript:add_selected_exam(this);" style='font-size:10pt;' >
|
|
<?php liste_options($actes,""); ?>
|
|
</SELECT>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<?php endif; ?>
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
<?php endif; ?>
|
|
|
|
<?php else: ?>
|
|
<input class="sr-only" type="text" id="codeEtatBon" name="codeEtatBon" value="1">
|
|
<input class="sr-only" type="text" id="numeroBonSave" name="numeroBonSave" value="1">
|
|
<input class="sr-only" type="text" id="numeroBon" name="numeroBon" value="1">
|
|
|
|
<?php if($codeGestionBon=="1" && $nbBonsOrd<1): ?>
|
|
<div class="alert alert-danger" style="height:40px; padding:5px; text-align:center;" >
|
|
<H4> <?= _("STOCK DE BON EPUISE") ?> </H4>
|
|
</div>
|
|
<?php else: ?>
|
|
<?php if ($facture=="1"): ?>
|
|
<div class="alert alert-danger" style="height:40px; padding:5px; text-align:center;" >
|
|
<H4> <?= _("Dejà facturée !") ?> </H4>
|
|
</div>
|
|
<?php elseif($bonCaduc!="1"): ?>
|
|
<input id="btn_enreg" name="btn_enreg" class = "form-control btn btn-primary" type="button" value="<?= _("Enregistrer") ?>" onClick="javascript:enregistrerprescriptionexamen();" style='font-size:10pt;' >
|
|
<?php else: ?>
|
|
<input id="btn_enreg" name="btn_enreg" disabled class = "form-control btn btn-primary" type="button" value="<?= _("Enregistrer") ?>" style='font-size:10pt;' >
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
<?php else: ?>
|
|
<!-- Fin new -->
|
|
<input class="sr-only" type="text" id="codeEtatBon" name="codeEtatBon" value="">
|
|
<input class="sr-only" type="text" id="numeroBonSave" name="numeroBonSave" value="0">
|
|
<?php if ($numeroBonExamen>"0") : ?>
|
|
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
|
<tbody>
|
|
<tr>
|
|
<td width="10%" > <?= _("No Bon") ?> </td>
|
|
<td width="24%" > <input class="form-control" style="text-align: center; font-size:10pt; background-color:blue;color:white;" type="number" id="numeroBon" name="numeroBon" value="<?= $numeroBonExamen ?>" readonly > </td>
|
|
|
|
|
|
<?php if ($facture=="1"): ?>
|
|
<div class="alert alert-danger" style="height:40px; padding:5px; text-align:center;" >
|
|
<H4> <?= _("Dejà facturée !") ?> </H4>
|
|
</div>
|
|
<?php elseif($bonCaduc!="1"): ?>
|
|
<!--<td> <button type="button" class="form-control btn btn-primary" data-bs-toggle="modal" data-bs-target="#popRechercheActe" style='font-size:10pt;' > <?= _("Rechercher Acte...") ?> </button> </td>-->
|
|
<tr>
|
|
<td align="center" style="font-size:12pt;font-weight:bold;">Recherche et sélection d'examen</td>
|
|
</tr>
|
|
<tr>
|
|
<td >
|
|
<div class="frmSearch">
|
|
<input id="searchInput" name="searchInput" style="font-size:10pt;" class="form-control" type="text" placeholder="Rechercher ici..." autofocus required AUTOCOMPLETE="OFF" >
|
|
<div id="div_selection">
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<?php endif; ?>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<?php else: ?>
|
|
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
|
<tbody>
|
|
<?php if($nbBonsOrd<1): ?>
|
|
<tr>
|
|
<input class="sr-only" type="number" id="numeroBon" name="numeroBon" required AUTOCOMPLETE="OFF" >
|
|
<td>
|
|
<div class="alert alert-danger" style="height:40px; padding:5px; text-align:center;" >
|
|
<H4> <?= _("STOCK DE BON EPUISE") ?> </H4>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<?php else: ?>
|
|
<tr>
|
|
<td width="10%" > <?= _("No Bon") ?> </td>
|
|
<?php if ($facture=="1"): ?>
|
|
<td width="24%" > <input class="form-control" style="text-align: center; font-size:10pt; background-color:blue;color:white;" type="number" id="numeroBon" name="numeroBon" value="<?= $numeroBonExamen ?>" readonly > </td>
|
|
<?php elseif($bonCaduc!="1"): ?>
|
|
<td width="24%" > <input class="form-control" style="text-align: center; font-size:10pt;" type="number" id="numeroBon" name="numeroBon" required AUTOCOMPLETE="OFF"
|
|
onChange="ajaxinfosbonprescriptionexamen();" onkeypress="javascript:ctrlkeypress_numeroBon(event);" autofocus ></td>
|
|
<?php else: ?>
|
|
<td width="24%" > <input class="form-control" style="text-align: center; font-size:10pt;" type="number" id="numeroBon" name="numeroBon" readonly ></td>
|
|
<?php endif; ?>
|
|
|
|
<td width="15%" > </td>
|
|
<td><input id="btn_enreg" name="btn_enreg" class = "form-control btn btn-primary" type="button" value="<?= _("Enregistrer") ?>" disabled style='font-size:10pt;' ></td>
|
|
</tr>
|
|
<?php endif; ?>
|
|
</tbody>
|
|
</table>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
|
|
<?php if (isset($msgErreur)): ?>
|
|
<div id ="msgErreur" class="alert alert-danger" style="height:38px; padding:5px;" >
|
|
<H4><?= $msgErreur ?></H4>
|
|
</div>
|
|
<?php endif; ?>
|
|
</div>
|
|
|
|
<?php if($bonCaduc=="1") : ?>
|
|
<div class="alert alert-danger" style="height:40px; padding:5px; text-align:center; margin-bottom:5px;" >
|
|
<H4> <?= " Age => ".$agePrescription . " "._("jours") . " => " . _("BON CADUC") ?> </H4>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<div id="examens">
|
|
<?php if ($numeroBonExamen>"0") : ?>
|
|
<?php if (count($detailexamens)>"0") : ?>
|
|
<table class="table table-condensed table-responsive" >
|
|
<tbody >
|
|
<tr >
|
|
<td style="padding: 3px 6px;background-color: #337ab7;color: #fff; font-weight: bold;text-transform: uppercase;font-size:13pt;">
|
|
<?= _("Examens prescrits") ?>
|
|
<input class = "form-control btn btn-success" style="width:25%;font-size:11pt;font-weight: bold; margin-left:55%;" type="button" value="Faire les examens en interne" onClick="javascript:examensmedicaux();">
|
|
</td >
|
|
</tr >
|
|
</tbody>
|
|
</table>
|
|
<?php else: ?>
|
|
<legend><?= _("Examens prescrits") ?></legend>
|
|
<?php endif; ?>
|
|
|
|
<?php $nbExamens = 0; ?>
|
|
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:10pt;">
|
|
<thead>
|
|
<tr>
|
|
<th width="50%" style="text-align:center" > <?= _("Acte") ?> </th>
|
|
<th style="text-align:center" > <?= _("Famille Actes") ?> </th>
|
|
<th width="10%" style="text-align:center"> <?= _("Suppr") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<?php foreach ($detailexamens as $detailexamen):
|
|
$idExamen = $this->nettoyer($detailexamen['id']);
|
|
$livre = $this->nettoyer($detailexamen['livre']);
|
|
$ententePrealable = $this->nettoyer($detailexamen['ententePrealable']);
|
|
$ajLabo = $this->nettoyer($detailexamen['ajLabo']);
|
|
$nbExamens++;
|
|
?>
|
|
<?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; ?>
|
|
|
|
<td align='center'>
|
|
<?php if($actVisible=="1"): ?>
|
|
<?= $this->nettoyer($detailexamen['libelleActe']) ?>
|
|
<?php else: ?>
|
|
<?= $this->nettoyer($detailexamen['codeActe']) ?>
|
|
<?php endif; ?>
|
|
</td>
|
|
|
|
<td align='center'> <?= $this->nettoyer($detailexamen['libelleFamilleActe']) ?> </td>
|
|
|
|
<?php if ($facture=="1"): ?>
|
|
<td> </td>
|
|
<?php else: ?>
|
|
<?php if ($livre!="1" && $ajLabo<>"1" && $bonCaduc!="1") : ?>
|
|
<td> <input class = "form-control btn btn-danger" type="button" value="X" onClick="javascript:supprimer_examen('<?= $idExamen ?>');"> </td>
|
|
<?php else: ?>
|
|
<td> </td>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
|
|
<input class="sr-only" type="text" id="nbExamens" name="nbExamens" value="<?= $nbExamens ?>" >
|
|
|
|
<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(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>
|
|
<th style="text-align:center" > <?=$libelleCarence?> </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="2"><input type="button" class = "form-control btn btn-info" style='font-size:8pt;' value="<?= _("AUTRES EXAMENS") ?>" onclick="javascript:afficher_pop_recherche_autres_possibles();" /></td>
|
|
<td ><input type="button" class = "form-control btn btn-info" style='font-size:8pt;' value="<?= _("BIOLOGIE") ?>" onclick="javascript:afficher_pop_recherche_bio_possibles();" /></td>
|
|
<td ><input type="button" class = "form-control btn btn-info" style='font-size:8pt;' value="<?= _("IMAGERIE") ?>" onclick="javascript:afficher_pop_recherche_ima_possibles();" /></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>
|
|
<?php endif; ?>
|
|
</div>
|
|
|
|
<div class="modal fade" id="popRechercheMedecin" role="dialog">
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
<button id="btn_close_pop" name="btn_close_pop" type="button" class="close" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
|
|
<h4 class="modal-title"><?= _("Rechercher un Médecin...") ?></h4>
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
<div id="div_listemedecins" onkeypress="javascript:ctrlkeypress_medecin(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="15%" > Code </th>
|
|
<th width="50%" style="text-align:center" > <?= _("Nom contenant...") ?> </th>
|
|
<th style="text-align:center" > <?= _("Spécialité") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><input type="text" class="form-control" id="noOrdreMedecin" name="noOrdreMedecin" autofocus style='font-size:10pt;' ></td>
|
|
<td><input type="text" class="form-control" id="nomsearch" name="nomsearch" autofocus style='font-size:10pt;' ></td>
|
|
<td><input type="button" class = "form-control btn btn-info" style='font-size:10pt;' value="<?= _("Rechercher...") ?>" onclick="javascript:afficher_pop_recherche_medecin();" /></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
<button id="close_pop" name="close_pop" type="button" class="btn btn-default" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php endif; ?>
|
|
</div>
|