563 lines
30 KiB
PHP
Executable File
563 lines
30 KiB
PHP
Executable File
<INPUT class="sr-only" TYPE="text" id="todDay" NAME="todDay" value="<?= date('d/m/Y') ?>">
|
|
<?php
|
|
$this->titre = "INTER-SANTE - Prescription Optique";
|
|
$numeroBonOptique = $optique['numeroBonOptique'];
|
|
$numeroOptique = $optique['numeroOptique'];
|
|
$facture = $optique['facture'];
|
|
$_SESSION['p_numeroBonOptique_C'] = $numeroBonOptique;
|
|
$_SESSION['p_numeroOptique_C'] = $numeroOptique;
|
|
|
|
//highlight_string("<?php\n\$datas =\n" . var_export($_SESSION, true) . ";\n>");
|
|
|
|
$badcodeGestionBon = "1";
|
|
$tab_gestion_bon = array("0", "1", "2");
|
|
if (in_array($codeGestionBon, $tab_gestion_bon))
|
|
{
|
|
$badcodeGestionBon = "0";
|
|
}
|
|
|
|
$prescrireVerres = ($_SESSION['p_prescrireVerres_C']==1) ;
|
|
|
|
$agePrescription = $this->nettoyer($optique['agePrescription']);
|
|
$bonCaduc = $this->nettoyer($optique['bonCaduc']);
|
|
|
|
$modeSaisieFacture = $_SESSION['p_modeSaisieFacture'];
|
|
|
|
if($modeSaisieFacture=="1")
|
|
{
|
|
$bonCaduc = "0";
|
|
}
|
|
|
|
$motifOptique = $optique['motifOptique'];
|
|
|
|
//$nbVerres_0=="0" && $prescrireVerres && $bonCaduc!="1"
|
|
|
|
$accordAssureur = "1";
|
|
|
|
$garantieOptique = "1970-01-01";
|
|
|
|
?>
|
|
|
|
<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 ?>" >
|
|
<input class="sr-only" id="nomForm" name="nomForm" type="text" value= "Optique" >
|
|
<input class="sr-only" id="codePrestataire" name="codePrestataire" type="text" value= "<?= $_SESSION['p_codePrestataire_C'] ?>" >
|
|
<INPUT class="sr-only" TYPE="text" id="garantieOptique" NAME="garantieOptique" value="<?= $garantieOptique ?>">
|
|
<INPUT class="sr-only" TYPE="text" id="finCarenceOptique" NAME="finCarenceOptique" value="<?= datefr($garantieOptique) ?>">
|
|
|
|
<input class="sr-only" type="text" id="prescriptionSiCritereBareme" name="prescriptionSiCritereBareme" value="<?= $_SESSION['p_prescriptionSiCritereBareme_C'] ?>" >
|
|
<INPUT class="sr-only" id="statut" name="statut" type="text" value="<?= $statut;?>">
|
|
<INPUT class="sr-only" id="libelleMotif" name="libelleMotif" type="text" value="<?= $motif['libelle'];?>">
|
|
<INPUT class="sr-only" id="libelleMotifEng" name="libelleMotifEng" type="text" value="<?= $motif['libelleEng'];?>">
|
|
|
|
<div id="div_contestation"></div>
|
|
|
|
<?php if ($numeroBonOptique<="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: ?>
|
|
<input class="sr-only" id="facture" name="facture" type="text" value= "<?= $facture ?>" >
|
|
<input class="sr-only" id="numeroBonOptique" name="numeroBonOptique" type="text" value= "<?= $numeroBonOptique ?>" >
|
|
<input class="sr-only" id="codeMedecin" name="codeMedecin" type="text" value= "<?= $optique['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 ($numeroBonOptique>"0") : ?>
|
|
<legend> <?= _("Prescription Optique") ?> </legend>
|
|
<?php else: ?>
|
|
<legend> <?= _("Nouvelle prescription Optique") ?> </legend>
|
|
<?php endif; ?>
|
|
|
|
<table class="table table-responsive table-condensed" style='font-size:9pt;' >
|
|
<tbody>
|
|
<!--
|
|
<tr>
|
|
<td width="5%" > <?= _("Souscripteur") ?> </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érent") ?> </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"> <?= _("Patient") ?> </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 Patient") ?> </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 id="div_infos_baremegarantie">
|
|
|
|
</div>
|
|
|
|
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
|
<tbody>
|
|
<tr>
|
|
<td width="15%" > Date </td>
|
|
<td width="20%" > <INPUT id="datePrescription" name="datePrescription" class="form-control" TYPE="text" value="<?= dateLang($this->nettoyer($optique['datePrescription'])) ?>" readonly style="text-align: center; font-size:10pt;" > </td>
|
|
|
|
<td width="7%" align="center"> <?= _("Médecin") ?> </td>
|
|
<td >
|
|
<?php if ($numeroBonOptique>"0" or $facture=="1") : ?>
|
|
<INPUT class="form-control" TYPE="text" value="<?= $this->nettoyer($optique['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($optique['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,$optique['codeMedecin'],true); ?>
|
|
</SELECT>
|
|
|
|
<?php endif; ?>
|
|
</td>
|
|
|
|
<td width="5%" align="center"> <?= _("No Bon") ?> </td>
|
|
<td width="10%" > <input class="form-control" style="text-align: center; font-size:10pt; background-color:blue !important;color:white;" type="number" id="numeroBon" name="numeroBon" value="<?= $numeroBonOptique ?>" readonly > </td>
|
|
|
|
</tr>
|
|
<!--
|
|
<tr>
|
|
<td > <?= _("Bons Disponible") ?> </td>
|
|
<td width="20%" > <input class="form-control" style="text-align: center; font-size:10pt;" Value="<?= $nbBonsOrd ?>" readonly > </td>
|
|
|
|
<td 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($facture=="1" || $bonCaduc=="1"): ?>
|
|
<td width="15%" class="required"> <?= _("Renseignement clinique") ?> </td>
|
|
<td colspan="5"><input id="motifOptique" name="motifOptique" style="font-size:10pt;" class="form-control" value="<?= $motifOptique ?>" type="text" disabled></td>
|
|
<?php elseif(empty($motifOptique) || $numeroBonOptique=="0") : ?>
|
|
<td width="15%" class="required"> <?= _("Renseignement clinique") ?> </td>
|
|
<td colspan="5"><input id="motifOptique" name="motifOptique" style="font-size:10pt;" class="form-control" value="" type="text" onChange="javascript:verification_contestation();" autofocus required placeholder="<?= _("Obligatoire pour enregistrer la prescription..."); ?>" ></td>
|
|
<?php else: ?>
|
|
<td width="15%" class="required"> <?= _("Renseignement clinique") ?> </td>
|
|
<td colspan="5"><input id="motifOptique" name="motifOptique" style="font-size:10pt;" class="form-control" value="<?= $motifOptique ?>" type="text" onChange="javascript:majmotifOptique();" required ></td>
|
|
<?php endif; ?>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
<div id="infosbon">
|
|
|
|
<!-- debut new -->
|
|
<?php if($codeGestionBon!="0"): ?>
|
|
<?php if ($numeroBonOptique>"0") : ?>
|
|
<?php if($statut=="1" || $_SESSION['p_prescriptionSiCritereBareme_C']=="1"): ?>
|
|
<!--
|
|
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
|
<tbody>
|
|
<tr>
|
|
<td width="5%" > <?= _("No Bon") ?> </td>
|
|
<td width="20%" > <input class="form-control" style="text-align: center; font-size:10pt; background-color:blue !important;color:white;" type="number" id="numeroBon" name="numeroBon" value="<?= $numeroBonOptique ?>" readonly > </td>
|
|
|
|
<td width="5%" > </td>
|
|
|
|
<?php if ($facture=="1"): ?>
|
|
<td align='center' class="alert alert-danger" style="height:38px; padding:5px;" > <?= _("Dejà facturée !") ?> </td>
|
|
<?php else: ?>
|
|
<?php if ($nbVerres_0=="0" && $prescrireVerres && $bonCaduc!="1"): ?>
|
|
<td> <button disabled type="button" class="form-control btn btn-primary" data-bs-toggle="modal" data-bs-target="#popAjoutVerre" style='font-size:10pt;' > </button> </td>
|
|
<?php else: ?>
|
|
<td> <button disabled type="button" class="form-control btn btn-primary" data-bs-toggle="modal" data-bs-target="#popAjoutVerre" style='font-size:10pt;' > </button> </td>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
</tr>
|
|
</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 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 ($numeroBonOptique>"0") : ?>
|
|
<table class="table table-responsive table-condensed " style='font-size:10pt;'>
|
|
<tbody>
|
|
<tr>
|
|
<td width="5%" > <?= _("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="<?= $numeroBonOptique ?>" readonly > </td>
|
|
|
|
<td width="5%" > </td>
|
|
<?php if ($facture=="1"): ?>
|
|
<td align='center' class="alert alert-danger" style="height:38px; padding:5px;" > <?= _("Dejà facturée !") ?> </td>
|
|
<?php else: ?>
|
|
<?php if ($nbVerres_0=="0" && $prescrireVerres && $bonCaduc!="1"): ?>
|
|
<td> <button disabled type="button" class="form-control btn btn-primary" data-bs-toggle="modal" data-bs-target="#popAjoutVerre" style='font-size:10pt;' > <?= _("Ajouter des verres...") ?> </button> </td>
|
|
<?php else: ?>
|
|
<td> <button disabled type="button" class="form-control btn btn-primary" data-bs-toggle="modal" data-bs-target="#popAjoutVerre" style='font-size:10pt;' > <?= _("Ajouter des verres...") ?> </button> </td>
|
|
<?php endif; ?>
|
|
<?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="5%" > <?= _("No Bon") ?> </td>
|
|
<?php if ($facture=="1"): ?>
|
|
<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="<?= $numeroBonOptique ?>" readonly > </td>
|
|
<?php elseif($bonCaduc!="1"): ?>
|
|
<td width="20%" > <input class="form-control" style="text-align: center; font-size:10pt;" type="number" id="numeroBon" name="numeroBon" required AUTOCOMPLETE="OFF"
|
|
onChange="ajaxinfosbonoptique();" onkeypress="javascript:ctrlkeypress_numeroBon(event);" autofocus ></td>
|
|
<?php else: ?>
|
|
<td width="20%" > <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="div_messages" style="margin-top:10px;">
|
|
|
|
</div>
|
|
|
|
|
|
<div id="verres">
|
|
<?php if ($numeroBonOptique>"0") : ?>
|
|
<?php if($statut=="1" || $_SESSION['p_prescriptionSiCritereBareme_C']=="1"): ?>
|
|
<div >
|
|
<input class="form-control" style="text-align: center; font-size: 12pt;font-weight: bold;" type="text" value="<?= _("Correction visuelle") ?>" 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="<?=$optique['axeVisionLoinDroit'];?>" placeholder="0°" autofocus>
|
|
</td>
|
|
<td align='center'>
|
|
<INPUT class="form-control text-center" id="verreCylindriqueDroit" name="verreCylindriqueDroit" TYPE="text" style="font-size:10pt;" value="<?=$optique['verreCylindriqueDroit'];?>" placeholder="+0.00">
|
|
</td>
|
|
<td align='center'>
|
|
<INPUT class="form-control text-center" id="verreSpheriqueDroit" name="verreSpheriqueDroit" TYPE="text" style="font-size:10pt;" value="<?=$optique['verreSpheriqueDroit'];?>" placeholder="+0.00">
|
|
</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="<?=$optique['axeVisionLoinGauche'];?>" placeholder="0°">
|
|
</td>
|
|
<td align='center'>
|
|
<INPUT class="form-control text-center" id="verreCylindriqueGauche" name="verreCylindriqueGauche" TYPE="text" style="font-size:10pt;" value="<?=$optique['verreCylindriqueGauche'];?>" placeholder="+0.00">
|
|
</td>
|
|
<td align='center'>
|
|
<INPUT class="form-control text-center" id="verreSpheriqueGauche" name="verreSpheriqueGauche" TYPE="text" style="font-size:10pt;" value="<?=$optique['verreSpheriqueGauche'];?>" placeholder="+0.00">
|
|
</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="<?=$optique['distanceInterpupillaireVisionLoin'];?>" placeholder="+0.00">
|
|
</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="<?=$optique['axeVisionPresDroit'];?>" placeholder="0°">
|
|
</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="<?=$optique['axeVisionPresGauche'];?>" placeholder="0°">
|
|
</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="<?=$optique['distanceInterpupillaireVisionPres'];?>" placeholder="+0.00">
|
|
</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-select" id="doubleFoyer" NAME="doubleFoyer" style='font-size:10pt; text-align:center;' >
|
|
<?php liste_options($doubleFoyer, $optique['doubleFoyer'], true); ?>
|
|
</SELECT>
|
|
</td>
|
|
<td align='center' colspan="2" rowspan="2" style='text-align:center;font-size:10pt;color: #000;'>
|
|
<SELECT class="form-select" id="progressif" NAME="progressif" style='font-size:10pt; text-align:center;'>
|
|
<?php liste_options($progressif, $optique['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-select" id="teinteA" NAME="teinteA" style='font-size:10pt; text-align:center;' >
|
|
<?php liste_options($teinteA, $optique['teinteA'], true); ?>
|
|
</SELECT>
|
|
</td>
|
|
<td align='center'>
|
|
<SELECT class="form-select" id="teinteAB" NAME="teinteAB" style='font-size:10pt; text-align:center;' >
|
|
<?php liste_options($teinteAB, $optique['teinteAB'], true); ?>
|
|
</SELECT>
|
|
</td>
|
|
<td align='center'>
|
|
<SELECT class="form-select" id="teinteB" NAME="teinteB" style='font-size:10pt; text-align:center;' >
|
|
<?php liste_options($teinteB, $optique['teinteB'], true); ?>
|
|
</SELECT>
|
|
</td>
|
|
<td align='center'>
|
|
<SELECT class="form-select" id="teinteC" NAME="teinteC" style='font-size:10pt; text-align:center;' >
|
|
<?php liste_options($teinteC, $optique['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-select" id="photogray" NAME="photogray" style='font-size:10pt; text-align:center;' >
|
|
<?php liste_options($photogray, $optique['photogray'], true); ?>
|
|
</SELECT>
|
|
</td>
|
|
|
|
<td align='center' style="">
|
|
<?= _("Antireflet") ?>
|
|
</td>
|
|
|
|
<td >
|
|
<SELECT class="form-select" id="antireflet" NAME="antireflet" style='font-size:10pt; text-align:center;' >
|
|
<?php liste_options($antireflet, $optique['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-select" id="photochromique" NAME="photochromique" style='font-size:10pt; text-align:center;'>
|
|
<?php liste_options($photochromique, $optique['photochromique'], true); ?>
|
|
</SELECT>
|
|
</td>
|
|
<td align='center' >
|
|
<SELECT class="form-select" id="antiUV" NAME="antiUV" style='font-size:10pt; text-align:center;' >
|
|
<?php liste_options($antiUV, $optique['antiUV'], true); ?>
|
|
</SELECT>
|
|
</td>
|
|
<td align='center' colspan="2">
|
|
<SELECT class="form-select" id="transition" NAME="transition" style='font-size:10pt; text-align:center;' >
|
|
<?php liste_options($transition, $optique['transition'], true); ?>
|
|
</SELECT>
|
|
</td>
|
|
<td align='center'>
|
|
<SELECT class="form-select" id="antiBuee" NAME="antiBuee" style='font-size:10pt; text-align:center;' >
|
|
<?php liste_options($antiBuee, $optique['antiBuee'], true); ?>
|
|
</SELECT>
|
|
</td>
|
|
<td align='center' colspan="2">
|
|
<SELECT class="form-select" id="filtreBleu" NAME="filtreBleu" style='font-size:10pt; text-align:center;' >
|
|
<?php liste_options($filtreBleu, $optique['filtreBleu'], true); ?>
|
|
</SELECT>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
|
|
<?php if($facture=="1" || $bonCaduc=="1"): ?>
|
|
<div id="div_ged_0"></div>
|
|
<?php else: ?>
|
|
<div id="div_ged_0" style="margin-top:20px;">
|
|
<form enctype="multipart/form-data" action="Optique" 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 > </td>
|
|
</div>
|
|
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
|
<tbody>
|
|
<tr>
|
|
<td width="15%"> <?= _("Document") ?> </td>
|
|
<td> <input style="font-size: 15px; height: 40px" class="form-control btn btn-info" name="fichier_upload" type="file" id="fichier_upload" /> </td>
|
|
|
|
<td> </td>
|
|
<td> <input style='font-size:10pt;' class="form-control btn btn-primary" type="submit" name="submit" value="<?= _("Envoyer") ?>" /> </td>
|
|
|
|
<td> </td>
|
|
<td > <button style='font-size:10pt;' type="button" class="form-control btn btn-primary" onclick="javascript:prescription_optique();"><?= _("Actualiser...") ?></button> </td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
</table>
|
|
</form>
|
|
|
|
<?php if((isset($msgErreurGed)) && ($msgErreurGed>" ")) : ?>
|
|
<INPUT style='font-size:12pt; color:red; text-align:center;' class="form-control" type="text" value="<?= $msgErreurGed ?>" readonly >
|
|
<?php endif; ?>
|
|
|
|
<table class="table table-striped table-hover table-condensed table-responsive" style="font-size:9pt;" >
|
|
<thead>
|
|
<th width="12%" style='text-align:center'> Date </th>
|
|
<th style='text-align:center'> <?= _("Document GED") ?></th>
|
|
<th width="11%" style='text-align:center'> <?= _("Télécharger") ?> </th>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<?php foreach ($geds as $ged):
|
|
$idGed=$this->nettoyer($ged['idGed']);
|
|
$cheminFichier = $this->nettoyer($ged['cheminFichier']);
|
|
?>
|
|
<tr valign="top">
|
|
<td align='center'><?= dateheureLang($this->nettoyer($ged['dateSysteme'])) ?></td>
|
|
<td align='center'><?= $this->nettoyer($ged['nomOrigine']) ?></td>
|
|
<td align="center">
|
|
<a style="font-size:10pt;" href="<?= $cheminFichier ?>" target="_blank" > <?= _("Télécharger") ?> </a>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<?php endif; ?>
|
|
|