830 lines
40 KiB
PHP
Executable File
830 lines
40 KiB
PHP
Executable File
<?php
|
|
$this->titre = "INTER-SANTE - Livraison verres et montures";
|
|
$numeroBonOptique = $_SESSION['p_numeroBonOptique_C'];
|
|
$numeroOptique = $_SESSION['p_numeroOptique_C'] ;
|
|
//var_dump($numeroOptique);
|
|
|
|
$nbActesVerres = 0;
|
|
$nbActesMonture = 0;
|
|
|
|
$modeSaisieFacture = $_SESSION['p_modeSaisieFacture'];
|
|
|
|
$accesAjoutVerres = ($_SESSION['p_accesAjoutVerres_C']==1) ;
|
|
$ajoutPrescriptionOptique = ($_SESSION['p_ajoutPrescriptionOptique_C']==1) ;
|
|
|
|
$idOptique = $_SESSION['idOptique'];
|
|
|
|
$codeReponseEntentePrealable;
|
|
|
|
$msg = isset($motifStatut) ? $motifStatut['libelle'] : "";
|
|
|
|
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US")
|
|
{
|
|
$msg = $motifStatut['libelleEng'];
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
</script>
|
|
<legend><?= _("Opticien") ?></legend>
|
|
|
|
<input class="sr-only" id="numeroBonOptique" name="numeroBonOptique" type="text" value= "<?= $numeroBonOptique ?>" >
|
|
|
|
<?php if($numeroBonOptique=="-1") : ?>
|
|
<div id="opticien" onkeypress="javascript:ctrlkeypressordopt(event);">
|
|
<input class="sr-only" id="bonCaduc" name="bonCaduc" type="text" value= "0" >
|
|
<input class="sr-only" id="codeTypePrestataire" name="codeTypePrestataire" type="text" value= "<?= $_SESSION['p_codeTypePrestataire_C'] ?>" >
|
|
|
|
<input class="sr-only" id="codeLienParente" name="codeLienParente" type="text" value= "<?= $_SESSION['p_codeLienParente_C'] ?>" >
|
|
|
|
<div id="prestation" onkeypress="javascript:ctrlkeypressordopt(event);">
|
|
<input class="sr-only" type="text" id="idPrestationactes" name="idPrestationactes" >
|
|
|
|
<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="number" id="numeroBonOptique" name="numeroBonOptique"
|
|
onChange="chercher_ordonnance_opt(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 ($numeroOptique>" " && $contestation=="0") : ?>
|
|
|
|
<?php
|
|
$idPrestationactes = $this->nettoyer($prescription['idPrestationactes']);
|
|
$agePrescription = $this->nettoyer($prescription['agePrescription']);
|
|
$bonCaduc = $this->nettoyer($prescription['bonCaduc']);
|
|
|
|
?>
|
|
|
|
<!-- nbActesMonture : <?= $nbActesMonture ?> -->
|
|
|
|
<div id="opticien">
|
|
<input class="sr-only" id="nomForm" name="nomForm" type="text" value= "frmopticien" >
|
|
|
|
<input class="sr-only" type="text" id="idDemandeAccord" name="idDemandeAccord" value="<?= $idDemandeAccord ?>" >
|
|
<input class="sr-only" id="bonCaduc" name="bonCaduc" type="text" value= "<?= $bonCaduc ?>" >
|
|
|
|
<div id="div_reponse">
|
|
<input class="sr-only" id="codeReponseEntentePrealable" name="codeReponseEntentePrealable" type="text" value= "<?= $codeReponseEntentePrealable ?>" >
|
|
</div>
|
|
|
|
<div id="prestation" onkeypress="javascript:ctrlkeypressordopt(event);">
|
|
<input class="sr-only" type="text" id="idPrestationactes" name="idPrestationactes" value="<?= $idPrestationactes ?>" >
|
|
|
|
<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="number" id="numeroBonOptique" name="numeroBonOptique"
|
|
value="<?= $numeroBonOptique ?>" onChange="chercher_ordonnance_opt(this.value);"
|
|
autofocus required AUTOCOMPLETE="OFF" >
|
|
</td>
|
|
|
|
|
|
<td width="10%" align="center" ><?= _("Prescrit le") ?> </td>
|
|
<td width="10%" > <INPUT id="datePrescription" name="datePrescription" class="form-control" TYPE="text" value="<?= dateLang($this->nettoyer($prescription['datePrescription'])) ?>" disabled 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']) ?>" disabled 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']) ?>" disabled style='font-size:9pt;'> </td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<input class="sr-only" id="dateSurvenance" name="dateSurvenance" type="text" value= "<?= datefr($this->nettoyer($prescription['datePrescription'])) ?>" >
|
|
|
|
<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="" disabled >
|
|
</td>
|
|
|
|
<td width="5%" align="center" > <?= _("Adh.") ?> </td>
|
|
<td width="20%" > <INPUT class="form-control" TYPE="text" value="<?= $_SESSION['p_adherent_C']; ?>" disabled 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']; ?>" disabled 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']; ?>" disabled 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="taux" name="taux"
|
|
value="<?= 'TAUX DE COUVERTURE : '.$tauxCouverture ?>" onChange="" disabled >
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="alert alert-danger" style="height:30px; padding:5px; margin:5px; " >
|
|
<H4 align="center" > <?= _("Prescrit à").": ".$this->nettoyer($prescription['prestataire']) ?></H4>
|
|
<input class="sr-only" id="codePrestatairePrescription" name="codePrestatairePrescription" type="text" value= "<?= $this->nettoyer($prescription['codePrestatairePrescription']) ?>" >
|
|
</div>
|
|
|
|
<div id="verres">
|
|
<div >
|
|
<input class="form-control" style="text-align: center; font-size: 12pt;font-weight: bold;" type="text" value="<?= _("Prescription du Médecin") ?>" readonly > </td>
|
|
</div>
|
|
<table class="table table-condensed table-responsive table-bordered" style="font-size:10pt;">
|
|
<thead>
|
|
<tr>
|
|
<td style='text-align:center;background-color: #fff;color: #fff;font-size:11pt;font-weight: bold;border-top : none;border-bottom : none;'> </td>
|
|
|
|
<td colspan="3" style='text-align:center;font-size:10pt;background-color: #eeeeee;color: #000;font-weight: bold;'> <?= _("Œil Droit (OD)") ?> </td>
|
|
<td width="1%" style='text-align:center;background-color: #fff;color: #fff;font-size:11pt;font-weight: bold;border-top : none;border-bottom : none; border-right : none;'> </td>
|
|
<td style='text-align:center;background-color: #fff;color: #fff;font-size:11pt;font-weight: bold;border-top : none;border-bottom : none;border-left : none;'> </td>
|
|
|
|
<td colspan="3" style='text-align:center;font-size:10pt;font-weight: bold;background-color: #eeeeee;color: #000;'> <?= _("Œil Gauche (OG)") ?> </td>
|
|
<td width="1%" style='text-align:center;background-color: #fff;color: #fff;font-size:11pt;font-weight: bold;border-top : none;border-bottom : none; border-right : none;'> </td>
|
|
<td style='text-align:center;background-color: #fff;color: #fff;font-size:11pt;font-weight: bold;border-top : none;border-bottom : none; border-left : none; border-right : none;'> </td>
|
|
<td style='text-align:center;background-color: #fff;color: #fff;font-size:11pt;font-weight: bold; border-left : none;'> </td>
|
|
</tr>
|
|
<tr>
|
|
<th style='text-align:center;background-color: #fff;color: #fff;font-size:11pt;font-weight: bold;border-top : none;'></th>
|
|
<th style='text-align:center'> <?= _("Axe") ?> </th>
|
|
<th style='text-align:center'> <?= _("Cylindre") ?> </th>
|
|
<th style='text-align:center'> <?= _("Sphère") ?> </th>
|
|
<th style='text-align:center;background-color: #fff;color: #fff;font-size:11pt;font-weight: bold;border-top : none;border-bottom : none; border-right : none;'></th>
|
|
<th style='text-align:center;background-color: #fff;color: #fff;font-size:11pt;font-weight: bold;border-top : none;border-bottom : none; border-left : none;'></th>
|
|
<th style='text-align:center'> <?= _("Axe") ?> </th>
|
|
<th style='text-align:center'> <?= _("Cylindre") ?> </th>
|
|
<th style='text-align:center'> <?= _("Sphère") ?> </th>
|
|
<th style='text-align:center;background-color: #fff;color: #fff;font-size:11pt;font-weight: bold;border-top : none;border-bottom : none; border-right : none;'></th>
|
|
<th style='text-align:center;background-color: #fff;color: #fff;font-size:11pt;font-weight: bold;border-top : none;border-bottom : none; border-left : none;'></th>
|
|
<th style='text-align:center;'> <?= _("Distance Interpupillaire") ?> </th>
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
<tr>
|
|
<td align='center' style='text-align:center;font-size:10pt;color: #000;'><?= _("Vision éloignée") ?></td>
|
|
<td align='center'>
|
|
<INPUT class="form-control text-center" id="axeVisionLoinDroit" name="axeVisionLoinDroit" TYPE="text" style="font-size:10pt;" value="<?=$prescription['axeVisionLoinDroit'];?>" placeholder="0°" disabled>
|
|
</td>
|
|
<td align='center'>
|
|
<INPUT class="form-control text-center" id="verreCylindriqueDroit" name="verreCylindriqueDroit" TYPE="text" style="font-size:10pt;" value="<?=$prescription['verreCylindriqueDroit'];?>" placeholder="+0.00" disabled>
|
|
</td>
|
|
<td align='center'>
|
|
<INPUT class="form-control text-center" id="verreSpheriqueDroit" name="verreSpheriqueDroit" TYPE="text" style="font-size:10pt;" value="<?=$prescription['verreSpheriqueDroit'];?>" placeholder="+0.00" disabled>
|
|
</td>
|
|
<td width="1%" style='text-align:center;background-color: #fff;color: #fff;font-size:11pt;font-weight: bold;border-top : none;border-bottom : none;border-left : none;'> </td>
|
|
<td align='center' style='text-align:center;font-size:10pt;color: #000;'><?= _("Vision éloignée") ?></td>
|
|
<td align='center'>
|
|
<INPUT class="form-control text-center" id="axeVisionLoinGauche" name="axeVisionLoinGauche" TYPE="text" style="font-size:10pt;" value="<?=$prescription['axeVisionLoinGauche'];?>" placeholder="0°" disabled>
|
|
</td>
|
|
<td align='center'>
|
|
<INPUT class="form-control text-center" id="verreCylindriqueGauche" name="verreCylindriqueGauche" TYPE="text" style="font-size:10pt;" value="<?=$prescription['verreCylindriqueGauche'];?>" placeholder="+0.00" disabled>
|
|
</td>
|
|
<td align='center'>
|
|
<INPUT class="form-control text-center" id="verreSpheriqueGauche" name="verreSpheriqueGauche" TYPE="text" style="font-size:10pt;" value="<?=$prescription['verreSpheriqueGauche'];?>" placeholder="+0.00" disabled>
|
|
</td>
|
|
<td width="1%" style='text-align:center;background-color: #fff;color: #fff;font-size:11pt;font-weight: bold;border-top : none;border-bottom : none;'> </td>
|
|
<td align='center' style='text-align:center;font-size:10pt;color: #000;'><?= _("Vision éloignée") ?></td>
|
|
<td align='center'>
|
|
<INPUT class="form-control text-center" id="distanceInterpupillaireVisionLoin" name="distanceInterpupillaireVisionLoin" TYPE="text" style="font-size:10pt;" value="<?=$prescription['distanceInterpupillaireVisionLoin'];?>" placeholder="+0.00" disabled>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align='center' style='text-align:center;font-size:10pt;color: #000;'><?= _("Vision de près / Addition") ?></td>
|
|
<td align='center'>
|
|
<INPUT class="form-control text-center" id="axeVisionPresDroit" name="axeVisionPresDroit" style="font-size:10pt;" TYPE="text" value="<?=$prescription['axeVisionPresDroit'];?>" placeholder="0°" disabled>
|
|
</td>
|
|
<td align='center' style="">
|
|
</td>
|
|
<td align='center' style="">
|
|
</td>
|
|
<td width="1%" style='text-align:center;background-color: #fff;color: #fff;font-size:11pt;font-weight: bold;border-top : none;border-bottom : none;'> </td>
|
|
<td align='center' style='text-align:center;font-size:10pt;color: #000;'><?= _("Vision de près / Addition") ?></td>
|
|
<td align='center'>
|
|
<INPUT class="form-control text-center" id="axeVisionPresGauche" name="axeVisionPresGauche" style="font-size:10pt;" TYPE="text" value="<?=$prescription['axeVisionPresGauche'];?>" placeholder="0°" disabled>
|
|
</td>
|
|
<td align='center' style="">
|
|
</td>
|
|
<td align='center' style="">
|
|
</td>
|
|
<td width="1%" style='text-align:center;background-color: #fff;color: #fff;font-size:11pt;font-weight: bold;border-top : none;border-bottom : none;'> </td>
|
|
<td align='center' style='text-align:center;font-size:10pt;color: #000;'><?= _("Vision de près / Addition") ?></td>
|
|
<td align='center'>
|
|
<INPUT class="form-control text-center" id="distanceInterpupillaireVisionPres" name="distanceInterpupillaireVisionPres" style="font-size:10pt;" TYPE="text" value="<?=$prescription['distanceInterpupillaireVisionPres'];?>" placeholder="+0.00" disabled>
|
|
</td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
<table class="table table-condensed table-responsive table-bordered" style="font-size:10pt;">
|
|
<thead>
|
|
<tr>
|
|
<td colspan="4" style='text-align:center;font-size:10pt;background-color: #eeeeee;color: #000;font-weight: bold;'> <?= _("Type") ?> </td>
|
|
<td width="1%" style='text-align:center;background-color: #fff;color: #fff;font-size:11pt;font-weight: bold;border-top : none;border-bottom : none; border-right : none;'> </td>
|
|
<td style='text-align:center;background-color: #fff;color: #fff;font-size:11pt;font-weight: bold;border-top : none;border-bottom : none;border-left : none;'> </td>
|
|
<td colspan="5" style='text-align:center;font-size:10pt;background-color: #eeeeee;color: #000;font-weight: bold;'> <?= _("Traitement") ?> </td>
|
|
</tr>
|
|
<tr>
|
|
<th colspan="2" style='text-align:center'> <?= _("Double Foyer") ?> </th>
|
|
<th colspan="2" style='text-align:center'> <?= _("Progressif") ?> </th>
|
|
<th style='text-align:center;background-color: #fff;color: #fff;font-size:11pt;font-weight: bold;border-top : none;border-bottom : none; border-right : none;'></th>
|
|
<th style='text-align:center;background-color: #fff;color: #fff;font-size:11pt;font-weight: bold;border-top : none;border-bottom : none; border-left : none;'></th>
|
|
<th style='text-align:center'> <?= _("A") ?> </th>
|
|
<th style='text-align:center'> <?= _("AB") ?> </th>
|
|
<th style='text-align:center'> <?= _("B") ?> </th>
|
|
<th style='text-align:center'> <?= _("C") ?> </th>
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
<tr>
|
|
<td align='center' colspan="2" rowspan="2" style='text-align:center;font-size:10pt;color: #000;'>
|
|
<SELECT class="form-control" id="doubleFoyer" NAME="doubleFoyer" style='font-size:10pt; text-align:center;' disabled>
|
|
<?php liste_options($doubleFoyer, $prescription['doubleFoyer'], true); ?>
|
|
</SELECT>
|
|
</td>
|
|
<td align='center' colspan="2" rowspan="2" style='text-align:center;font-size:10pt;color: #000;'>
|
|
<SELECT class="form-control" id="progressif" NAME="progressif" style='font-size:10pt; text-align:center;' disabled>
|
|
<?php liste_options($progressif, $prescription['progressif'], true); ?>
|
|
</SELECT>
|
|
</td>
|
|
<td width="1%" style='text-align:center;background-color: #fff;color: #fff;font-size:11pt;font-weight: bold;border-top : none;border-bottom : none;border-left : none;'> </td>
|
|
<td align='center' rowspan="2" style='text-align:center;font-size:10pt;color: #000;'>
|
|
<?= _("Teinte") ?>
|
|
|
|
</td>
|
|
<td align='center'>
|
|
<SELECT class="form-control" id="teinteA" NAME="teinteA" style='font-size:10pt; text-align:center;' disabled>
|
|
<?php liste_options($teinteA, $prescription['teinteA'], true); ?>
|
|
</SELECT>
|
|
</td>
|
|
<td align='center'>
|
|
<SELECT class="form-control" id="teinteAB" NAME="teinteAB" style='font-size:10pt; text-align:center;' disabled>
|
|
<?php liste_options($teinteAB, $prescription['teinteAB'], true); ?>
|
|
</SELECT>
|
|
</td>
|
|
<td align='center'>
|
|
<SELECT class="form-control" id="teinteB" NAME="teinteB" style='font-size:10pt; text-align:center;' disabled>
|
|
<?php liste_options($teinteB, $prescription['teinteB'], true); ?>
|
|
</SELECT>
|
|
</td>
|
|
<td align='center'>
|
|
<SELECT class="form-control" id="teinteC" NAME="teinteC" style='font-size:10pt; text-align:center;' disabled>
|
|
<?php liste_options($teinteC, $prescription['teinteC'], true); ?>
|
|
</SELECT>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="1%" style='text-align:center;background-color: #fff;color: #fff;font-size:11pt;font-weight: bold;border-top : none;border-bottom : none;border-left : none;'> </td>
|
|
|
|
<td align='center' style="">
|
|
<?= _("Photogray") ?>
|
|
</td>
|
|
<td align='center' >
|
|
<SELECT class="form-control" id="photogray" NAME="photogray" style='font-size:10pt; text-align:center;' disabled>
|
|
<?php liste_options($photogray, $prescription['photogray'], true); ?>
|
|
</SELECT>
|
|
</td>
|
|
|
|
<td align='center' style="">
|
|
<?= _("Antireflet") ?>
|
|
</td>
|
|
|
|
<td >
|
|
<SELECT class="form-control" id="antireflet" NAME="antireflet" style='font-size:10pt; text-align:center;' disabled>
|
|
<?php liste_options($antireflet, $prescription['antireflet'], true); ?>
|
|
</SELECT>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<table class="table table-bordered table-condensed table-responsive" style="font-size:10pt;">
|
|
<thead>
|
|
<tr>
|
|
<td colspan="9" style='text-align:center;font-size:10pt;background-color: #eeeeee;color: #000;font-weight: bold;'> <?= _("Filtres") ?> </td>
|
|
</tr>
|
|
<tr>
|
|
<th colspan="3" style='text-align:center'> <?= _("Photochromique") ?> </th>
|
|
<th style='text-align:center'> <?= _("Anti-UV") ?> </th>
|
|
<th colspan="2" style='text-align:center'> <?= _("Transition") ?> </th>
|
|
<th style='text-align:center'> <?= _("Antibuée") ?> </th>
|
|
<th colspan="2" style='text-align:center'> <?= _("Filtre Bleu") ?> </th>
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
<tr>
|
|
<td align='center' colspan="3" >
|
|
<SELECT class="form-control" id="photochromique" NAME="photochromique" style='font-size:10pt; text-align:center;' disabled>
|
|
<?php liste_options($photochromique, $prescription['photochromique'], true); ?>
|
|
</SELECT>
|
|
</td>
|
|
<td align='center' >
|
|
<SELECT class="form-control" id="antiUV" NAME="antiUV" style='font-size:10pt; text-align:center;' disabled>
|
|
<?php liste_options($antiUV, $prescription['antiUV'], true); ?>
|
|
</SELECT>
|
|
</td>
|
|
<td align='center' colspan="2">
|
|
<SELECT class="form-control" id="transition" NAME="transition" style='font-size:10pt; text-align:center;' disabled>
|
|
<?php liste_options($transition, $prescription['transition'], true); ?>
|
|
</SELECT>
|
|
</td>
|
|
<td align='center'>
|
|
<SELECT class="form-control" id="antiBuee" NAME="antiBuee" style='font-size:10pt; text-align:center;' disabled>
|
|
<?php liste_options($antiBuee, $prescription['antiBuee'], true); ?>
|
|
</SELECT>
|
|
</td>
|
|
<td align='center' colspan="2">
|
|
<SELECT class="form-control" id="filtreBleu" NAME="filtreBleu" style='font-size:10pt; text-align:center;' disabled>
|
|
<?php liste_options($filtreBleu, $prescription['filtreBleu'], true); ?>
|
|
</SELECT>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
|
|
<input class="sr-only" type="text" id="idFacture" name="idFacture" value="<?= $this->nettoyer($prescription['idFacture']) ?>" >
|
|
<?php if($idPrestationactes>"0") : ?>
|
|
<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_opt();">
|
|
<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>
|
|
<?php else: ?>
|
|
<?php if($this->nettoyer($prescription['bonCaduc'])=="0") : ?>
|
|
<?php if($statutGarantie=="1"):?>
|
|
<?php if ($idDemandeAccord == "0") :?>
|
|
<table class="table table-responsive table-condensed" style='font-size:10pt;' >
|
|
<tbody>
|
|
<tr>
|
|
<td > <button type="button" class="form-control btn btn-primary" data-bs-toggle="modal" data-bs-target="#popAjoutVerre" style='font-size:12pt;' > <?= _("Sélectionner un acte...") ?> </button> </td>
|
|
<td width="2%"></td>
|
|
<td width="35%"> <INPUT class="form-control btn btn-info" value="<?= _("GED Optique...") ?>" onclick="javascript:pop_ged_optique();" style='font-size:10pt;' ></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<?php endif; ?>
|
|
<?php else: ?>
|
|
<marquee behavior="scroll" direction="left" scrollamount="15" style="background-color:red;color:white; font-weight:bold; font-size:14pt">
|
|
<?= $msg ?>
|
|
</marquee>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
|
|
<div id="div_facture_definitive">
|
|
</div>
|
|
|
|
<div id ="div_wait">
|
|
</div>
|
|
|
|
<div id="ordonnance">
|
|
</div>
|
|
|
|
<div id="livraison">
|
|
|
|
<?php
|
|
$nbActesMonture = $this->nettoyer($prescription['nbActesMonture']);
|
|
|
|
$agePrescription = $this->nettoyer($prescription['agePrescription']);
|
|
$bonCaduc = $this->nettoyer($prescription['bonCaduc']);
|
|
|
|
?>
|
|
|
|
<?php if($bonCaduc=="0" or $modeSaisieFacture==1) : ?>
|
|
<div id="recap">
|
|
<?php if($idPrestationactes=="0" || $codeReponseEntentePrealable == "1"): ?>
|
|
<table class="table table-responsive table-condensed" style='font-size:12pt;' >
|
|
<tbody>
|
|
<tr>
|
|
<td align="center"width="10%" style="font-weight:bold;"> <?= _("Réclamé") ?> </td>
|
|
<td > <INPUT class="form-control" TYPE="text" value="<?= format_N($prescription['fraisReelLivre']) ?>" readonly style="text-align: center; font-size:12pt; font-weight:bold;" > </td>
|
|
|
|
<td align="center" width="13%" style="font-weight:bold;"> <?= _("Part Assuré") ?> </td>
|
|
<td > <INPUT class="form-control" TYPE="text" value="<?= format_N($prescription['fraisAssure']) ?>" readonly style="text-align: center; font-size:12pt; 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($prescription['fraisRetenuLivre']) ?>" readonly style="text-align: center; font-size:12pt; font-weight:bold; " > </td>
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<?php endif; ?>
|
|
</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="livre">
|
|
<?php $nbLivre = 0; ?>
|
|
<div >
|
|
<input class="form-control" style="text-align: center; font-size: 12pt;font-weight: bold;" type="text" value="<?= _("Facturation") ?>" readonly > </td>
|
|
</div>
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:10pt;'>
|
|
<thead>
|
|
<tr>
|
|
<th colspan="4" style="text-align:center"> <?= _("Actes") ?> </th>
|
|
<th style="text-align:center" class="sr-only"> <?= _("Solde Plafond") ?> </th>
|
|
<th style="text-align:center;" width="5%"> <?= _("Accord") ?> </th>
|
|
<th style="text-align:center;" width="15%"> <?= _("Prix Unitaire") ?> </th>
|
|
<!--<th style="text-align:center"> <?= _("Quantité") ?> </th>-->
|
|
<th style="text-align:center;background-color:blue;color:white;"> <?= _("Total") ?> </th>
|
|
<th style="text-align:center"> <?= _("TM") ?> </th>
|
|
<th style="text-align:center"> <?= _("Montant TM") ?> </th>
|
|
<th style="text-align:center"> <?= _("A Rembourser") ?> </th>
|
|
<th style="text-align:center;background-color:red;color:white;"> <?= _("Dépassement") ?> </th>
|
|
<th style="text-align:center"> <?= _("Motif") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="6" align='center'> Total </td>
|
|
<td align='center'><?= format_N($this->nettoyer($detail_total['fraisReel'])) ?></td>
|
|
<td > </td>
|
|
<td align='center'><?= format_N($this->nettoyer($detail_total['montantTm'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($detail_total['montantArembourser'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($detail_total['depassement'])) ?></td>
|
|
<td ></td>
|
|
</tr>
|
|
</tfoot>
|
|
|
|
<tbody>
|
|
<?php
|
|
$i = 0;
|
|
foreach ($detaillivres as $v):
|
|
$idDetail = $this->nettoyer($v['id']);
|
|
$idDetailOptique= $this->nettoyer($v['idDetailOPtique']);
|
|
|
|
|
|
$libelleActe = $this->nettoyer($v['libelleActe']);
|
|
|
|
$plafond = format_N($this->nettoyer($v['plafond']));
|
|
|
|
$soldeNew = format_N($this->nettoyer($v['soldeNew']));
|
|
|
|
$ententePrealable = $this->nettoyer($v['ententePrealable']);
|
|
|
|
$codeMotifDepassement = $this->nettoyer($v['codeMotifDepassement']);
|
|
|
|
$motif = $this->nettoyer($v['motif']);
|
|
$motifEng = $this->nettoyer($v['motifEng']);
|
|
?>
|
|
|
|
<tr valign="top">
|
|
<?php if($idDemandeAccord == "0"): ?>
|
|
<td align='center'>
|
|
<button type="button" class="form-control btn btn-danger" onClick="javascript:supprimer_acte_opticien('<?= $idDetail ?>','<?= $codeReponseEntentePrealable ?>');">
|
|
<i class="fa fa-times" aria-hidden="true"></i>
|
|
</button>
|
|
</td>
|
|
<?php else: ?>
|
|
<td ></td>
|
|
<?php endif; ?>
|
|
<td align='center' colspan="3">
|
|
<!--<INPUT class="form-control" TYPE="text" value="<?= $libelleActe; ?>" disabled style='font-size:10pt;'> -->
|
|
<?= $libelleActe; ?>
|
|
</td>
|
|
<td align='center' width="13%" class="sr-only">
|
|
<!--<INPUT class="form-control text-center" TYPE="text" value="<?= $plafond; ?>" disabled style='font-size:10pt;'>-->
|
|
<?= $plafond; ?>
|
|
</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; ?>
|
|
|
|
<?php if($ententePrealable=='3' || $ententePrealable=='0' || $ententePrealable=='2' || $ententePrealable=='1'): ?>
|
|
<?php if ($idDemandeAccord != "0") :?>
|
|
<td align='center' width="10%">
|
|
<!--<INPUT class="form-control text-center" id="valeurActe" name="valeurActe" TYPE="text" value="<?= format_N($this->nettoyer($v['valeurActe'])) ?>"
|
|
disabled style='font-size:10pt;'>-->
|
|
<?= format_N($this->nettoyer($v['valeurActe'])) ?>
|
|
</td>
|
|
<?php else: ?>
|
|
<td align='center' width="10%">
|
|
<INPUT class="form-control text-center" id="valeurActe" name="valeurActe" TYPE="text" value="<?= format_N($this->nettoyer($v['valeurActe'])) ?>"
|
|
onkeyup="controle_numerique(this);" onblur="formatMonetaire(this);" onfocus="formatNumerique(this)"
|
|
onChange="ajax_maj_valeurActe_detailoptique('<?= $idDetail?>', this.value, this);" style='font-size:10pt;'>
|
|
</td>
|
|
<?php endif; ?>
|
|
|
|
<?php elseif($ententePrealable=='9'): ?>
|
|
<td colspan="2" align='center' width="8%">
|
|
<INPUT TYPE="button" class="form-control" style="background-color:red; color:#fff;" value="Accord refusé" style='font-size:10pt;'>
|
|
</td>
|
|
<?php endif; ?>
|
|
|
|
|
|
<td align='center' width="10%">
|
|
<!-- <INPUT class="form-control text-center" TYPE="text" value="<?= format_N($this->nettoyer($v['fraisReel'])) ?>" disabled style='font-size:10pt;'>-->
|
|
<?= format_N($this->nettoyer($v['fraisReel'])) ?>
|
|
</td>
|
|
|
|
<td align='center' width="6%">
|
|
<!-- <INPUT class="form-control text-center" TYPE="text" value="<?= $this->nettoyer($v['tm']) ?>" disabled style='font-size:10pt;'>-->
|
|
<?= $this->nettoyer($v['tm']) ?>
|
|
</td>
|
|
|
|
<td align='center' width="10%">
|
|
<!-- <INPUT class="form-control text-center" TYPE="text" value="<?= format_N($this->nettoyer($v['montantTm'])) ?>" disabled style='font-size:10pt;'>-->
|
|
<?= format_N($this->nettoyer($v['montantTm'])) ?>
|
|
</td>
|
|
<td align='center' width="10%">
|
|
<!-- <INPUT class="form-control text-center" TYPE="text" value="<?= format_N($this->nettoyer($v['montantArembourser'])) ?>" disabled style='font-size:10pt;'>-->
|
|
<?= format_N($this->nettoyer($v['montantArembourser'])) ?>
|
|
</td>
|
|
|
|
<td align='center' width="10%" >
|
|
<!-- <INPUT class="form-control text-center" TYPE="text" value="<?= format_N($this->nettoyer($v['depassement'])) ?>" disabled style='font-size:10pt;'>-->
|
|
<?= format_N($this->nettoyer($v['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>
|
|
|
|
<tr>
|
|
<?php if ($idDemandeAccord == "0") :?>
|
|
<td colspan="12">
|
|
<INPUT TYPE="button" class="form-control btn btn-info" style="font-weight:bold; font-size:12pt;" id="btn-demande-accord" name="btn-demande-accord" value="<?= _("Envoyer une demande d'accord préalable...") ?>"
|
|
onclick="javascript:demander_accord_opt('<?= $idDetailOptique ?>','<?= $codeReponseEntentePrealable ?>');">
|
|
</td>
|
|
<?php elseif ($codeReponseEntentePrealable != "1") :?>
|
|
<td colspan="12">
|
|
<marquee behavior="scroll" direction="left" scrollamount="10" style="color:red; background-color:yellow; font-size:14pt">
|
|
<?= _("Veuillez patienter, la demande sera traitée dans un instant! Merci.") ?>
|
|
</marquee>
|
|
<INPUT TYPE="button" class="form-control btn btn-primary" style="font-weight:bold; font-size:12pt;" id="btn-demande-accord" name="btn-demande-accord" value="<?= _("Modifier votre prix unitaire") ?>"
|
|
onclick="javascript:modifier_prix_opt('<?= $idDetailOptique ?>');">
|
|
</td>
|
|
<?php else: ?>
|
|
<td colspan="12"></td>
|
|
<?php endif; ?>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
|
|
</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 align="center" > Age => <?= $this->nettoyer($prescription['agePrescription']) . " "._("jours") . " => " . _("BON CADUC") ?> </H4>
|
|
</div>
|
|
<?php endif; ?>
|
|
</div>
|
|
|
|
</div>
|
|
<?php else: ?>
|
|
<div id="opticien" onkeypress="javascript:ctrlkeypressordopt(event);">
|
|
|
|
<input class="sr-only" id="bonCaduc" name="bonCaduc" type="text" value= "0" >
|
|
|
|
<div id="prestation" onkeypress="javascript:ctrlkeypressordopt(event);">
|
|
<input class="sr-only" type="text" id="idPrestationactes" name="idPrestationactes" >
|
|
|
|
<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="number" id="numeroBonOptique" name="numeroBonOptique"
|
|
onChange="chercher_ordonnance_opt(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 id ="msgErreur" class="alert alert-danger" style="height:38px; padding:5px;" >
|
|
<H4><?= _("Dossier médical contesté! Impossible de prescrire des verres au patient.") ?></H4>
|
|
</div>
|
|
<?php else: ?>
|
|
<div id ="msgErreur" class="alert alert-danger" style="height:38px; padding:5px;" >
|
|
<H4><?= _("Numéro de Bon") . " " .$numeroBonOptique. " "._("introuvable"). " !" ?></H4>
|
|
</div>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
|
|
<!--
|
|
<div id="content">
|
|
<?php include 'flexcode/include/global.php'; ?>
|
|
</div>
|
|
-->
|
|
|
|
<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>
|
|
|
|
<div class="modal fade" id="popAjoutVerre" role="dialog">
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
<button id="btn_close_pop_verre" name="btn_close_pop_verre" type="button" class="close" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
|
|
<h3 class="modal-title"> <?= _("Ajouter un acte") ?> </h3>
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
<div id="div_ajout_chambre">
|
|
<form id="frmchambre" name="frmchambre" method="post" >
|
|
|
|
<input class="sr-only" type="text" id="codeTypePrestation" name="codeTypePrestation" value="OPT">
|
|
|
|
<table class="table table-responsive table-condensed table-bordered" style='font-size:12pt;'>
|
|
<tbody>
|
|
<tr>
|
|
<td width="20%" align='center'> <?= _("Désignation") ?> </td>
|
|
<td >
|
|
<div id="listeacte">
|
|
<SELECT class="form-control selectpicker" data-live-search="true" id="codeActe" NAME="codeActe" onChange="ajaxplafondacteoptique();" style='font-size:9pt; height:27px !important;' required AUTOCOMPLETE="OFF" autofocus >
|
|
<?php liste_options($acte,""); ?>
|
|
</SELECT>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div id="div_plafond">
|
|
</div>
|
|
|
|
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
|
<tbody>
|
|
<tr>
|
|
<td width="75%">
|
|
<input type="button" class = "form-control btn btn-primary" style='font-size:10pt;' value="<?= _("Enregistrer") ?>" onclick="javascript:prescrire_acte_opt();" />
|
|
</td>
|
|
<td >
|
|
</td>
|
|
<td >
|
|
<input type="button" class = "form-control btn btn-info" style='font-size:10pt;' value="<?= _("Réinitialiser") ?>" onclick="javascript:reinitialiser_plafond();" />
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</form>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-default" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<button id="btn_pop_ged_optique" NAME="btn_pop_ged_optique" type="button" class="sr-only" data-bs-toggle="modal" data-bs-target="#popGed">Afficher la GED optique...</button>
|
|
|
|
<div class="modal fade" id="popGed" role="dialog">
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
<button id="btn_close_pop_ged_optique" name="btn_close_pop_ged_optique" type="button" class="close" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
|
|
<h4 class="modal-title"> <?= _("GED Ordonnance...") ?> </h4>
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<form enctype="multipart/form-data" action="Ajaxlistegedoptique/chargerged" method="post">
|
|
<div >
|
|
<input class="form-control" style="text-align: center; font-size: 12pt;font-weight: bold;" type="text" value="<?= _("Gestion Electronique des Documents (GED)") ?>" readonly >
|
|
</div>
|
|
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
|
<tbody>
|
|
<tr>
|
|
<td> <?= _("Document") ?> </td>
|
|
<td> <input style="font-size: 15px; height: 40px" class="form-control btn btn-info" name="fichier_upload" type="file" id="fichier_upload" /> </td>
|
|
|
|
<td> </td>
|
|
<td> <input style='font-size:10pt;' class="form-control btn btn-primary" type="submit" name="submit" value="<?= _("Envoyer") ?>" /> </td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
</table>
|
|
</form>
|
|
|
|
<div id="div_ged">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-default" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|