668 lines
28 KiB
PHP
668 lines
28 KiB
PHP
<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";
|
|
|
|
// Fonction pour générer les options des listes déroulantes
|
|
function genererOptions($options) {
|
|
foreach ($options as $value => $label) {
|
|
echo "<option value=\"$value\">$label</option>";
|
|
}
|
|
}
|
|
?>
|
|
|
|
<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>
|
|
</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="3"><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="3"><input id="motifOptique" name="motifOptique" style="font-size:10pt;" class="form-control" value="" type="text" onChange="javascript:verification_contestation();" autofocus required placeholder="<?= _("Entrer ici un motif pour enregistrer la prescription..."); ?>" ></td>
|
|
<?php else: ?>
|
|
<td width="15%" class="required"> <?= _("Renseignement clinique") ?> </td>
|
|
<td colspan="3"><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 else: ?>
|
|
<!--
|
|
<?php if ($facture=="1"): ?>
|
|
<input id="btn_enreg" name="btn_enreg" class = "form-control btn btn-primary" type="button" value="<?= _("Enregistrer") ?>" disabled style='font-size:10pt;' >
|
|
<?php elseif($bonCaduc!="1"): ?>
|
|
<input id="btn_enreg" name="btn_enreg" class = "form-control btn btn-primary" type="button" value="<?= _("Enregistrer") ?>" onClick="javascript:enregistreroptique();" 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 ($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 class="form-section">
|
|
<div class="card mb-4">
|
|
<div class="card-header">
|
|
<h3 class="card-title">Acuité Visuelle</h3>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<h4 class="card-subtitle">Œil Droit (OD)</h4>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="form-group">
|
|
<label for="od_loin">Loin:</label>
|
|
<input type="text" class="form-control" id="od_loin" name="od_loin" placeholder="ex: 10/10">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="od_pres">Près:</label>
|
|
<input type="text" class="form-control" id="od_pres" name="od_pres" placeholder="ex: P2">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<h4 class="card-subtitle">Œil Gauche (OG)</h4>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="form-group">
|
|
<label for="og_loin">Loin:</label>
|
|
<input type="text" class="form-control" id="og_loin" name="og_loin" placeholder="ex: 10/10">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="og_pres">Près:</label>
|
|
<input type="text" class="form-control" id="og_pres" name="og_pres" placeholder="ex: P2">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card mb-4">
|
|
<div class="card-header">
|
|
<h3 class="card-title">Refraction</h3>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<h4 class="card-subtitle">Œil Droit (OD)</h4>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="form-group">
|
|
<label for="od_sphere">Sphère:</label>
|
|
<input type="text" class="form-control" id="od_sphere" name="od_sphere" placeholder="ex: +1.50">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="od_cylindre">Cylindre:</label>
|
|
<input type="text" class="form-control" id="od_cylindre" name="od_cylindre" placeholder="ex: -0.75">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="od_axe">Axe:</label>
|
|
<input type="text" class="form-control" id="od_axe" name="od_axe" placeholder="ex: 90">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<h4 class="card-subtitle">Œil Gauche (OG)</h4>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="form-group">
|
|
<label for="og_sphere">Sphère:</label>
|
|
<input type="text" class="form-control" id="og_sphere" name="og_sphere" placeholder="ex: +1.50">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="og_cylindre">Cylindre:</label>
|
|
<input type="text" class="form-control" id="og_cylindre" name="og_cylindre" placeholder="ex: -0.75">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="og_axe">Axe:</label>
|
|
<input type="text" class="form-control" id="og_axe" name="og_axe" placeholder="ex: 90">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row mt-3">
|
|
<div class="col-md-6">
|
|
<div class="form-group">
|
|
<label for="add_vp">Addition VP:</label>
|
|
<input type="text" class="form-control" id="add_vp" name="add_vp" placeholder="ex: +1.50">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Section Prescription -->
|
|
<div class="form-section">
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<h2 class="card-title">Prescription</h2>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<div class="form-group">
|
|
<label for="type_verres">Type de verres:</label>
|
|
<select class="form-control" id="type_verres" name="type_verres" required>
|
|
<option value="">-- Sélectionnez --</option>
|
|
<?php genererOptions([
|
|
'unifocaux' => 'Unifocaux',
|
|
'progressifs' => 'Progressifs',
|
|
'bifocaux' => 'Bifocaux',
|
|
'lentilles' => 'Lentilles de contact'
|
|
]); ?>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
<div class="form-group">
|
|
<label for="duree_validite">Durée de validité:</label>
|
|
<select class="form-control" id="duree_validite" name="duree_validite" required>
|
|
<?php genererOptions([
|
|
'1' => '1 an',
|
|
'2' => '2 ans',
|
|
'3' => '3 ans',
|
|
'5' => '5 ans (enfant < 16 ans)'
|
|
]); ?>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Options spécifiques selon le type de verres -->
|
|
<div id="options_unifocaux" class="verres-options mt-3">
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<h5 class="card-subtitle">Options pour verres unifocaux</h5>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="form-group">
|
|
<label for="traitement_unifocaux">Traitement:</label>
|
|
<select class="form-control" id="traitement_unifocaux" name="traitement_unifocaux">
|
|
<option value="standard">Standard</option>
|
|
<option value="antireflet">Anti-reflet</option>
|
|
<option value="photochromique">Photochromique</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="options_progressifs" class="verres-options mt-3">
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<h5 class="card-subtitle">Options pour verres progressifs</h5>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="form-group">
|
|
<label for="gamme_progressifs">Gamme:</label>
|
|
<select class="form-control" id="gamme_progressifs" name="gamme_progressifs">
|
|
<option value="entree">Entrée de gamme</option>
|
|
<option value="milieu">Milieu de gamme</option>
|
|
<option value="haut">Haut de gamme</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group mt-3">
|
|
<label for="observations">Observations / Recommandations:</label>
|
|
<textarea class="form-control" id="observations" name="observations" rows="4"></textarea>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<div class="card">
|
|
<div class="card-header bg-light text-center font-weight-bold">ŒIL DROIT</div>
|
|
<div class="card-body">
|
|
<h6 class="text-primary">Vision éloignée</h6>
|
|
<div class="form-group row">
|
|
<label class="col-sm-4 col-form-label">Axe</label>
|
|
<div class="col-sm-8"><input type="text" class="form-control" name="axeVisionLoinDroit" value="<?= $optique['axeVisionLoinDroit']; ?>"></div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label class="col-sm-4 col-form-label">Cylindrique</label>
|
|
<div class="col-sm-8"><input type="text" class="form-control" name="verreCylindriqueDroit" value="<?= $optique['verreCylindriqueDroit']; ?>"></div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label class="col-sm-4 col-form-label">Sphérique</label>
|
|
<div class="col-sm-8"><input type="text" class="form-control" name="verreSpheriqueDroit" value="<?= $optique['verreSpheriqueDroit']; ?>"></div>
|
|
</div>
|
|
|
|
<h6 class="text-primary mt-3">Vision de près / Addition</h6>
|
|
<div class="form-group row">
|
|
<label class="col-sm-4 col-form-label">Axe</label>
|
|
<div class="col-sm-8"><input type="text" class="form-control" name="axeVisionPresDroit" value="<?= $optique['axeVisionPresDroit']; ?>"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Œil gauche
|
|
<div class="col-md-6">
|
|
<div class="card">
|
|
<div class="card-header bg-light text-center font-weight-bold">ŒIL GAUCHE</div>
|
|
<div class="card-body">
|
|
<h6 class="text-primary">Vision éloignée</h6>
|
|
<div class="form-group row">
|
|
<label class="col-sm-4 col-form-label">Axe</label>
|
|
<div class="col-sm-8"><input type="text" class="form-control" name="axeVisionLoinGauche" value="<?= $optique['axeVisionLoinGauche']; ?>"></div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label class="col-sm-4 col-form-label">Cylindrique</label>
|
|
<div class="col-sm-8"><input type="text" class="form-control" name="verreCylindriqueGauche" value="<?= $optique['verreCylindriqueGauche']; ?>"></div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<label class="col-sm-4 col-form-label">Sphérique</label>
|
|
<div class="col-sm-8"><input type="text" class="form-control" name="verreSpheriqueGauche" value="<?= $optique['verreSpheriqueGauche']; ?>"></div>
|
|
</div>
|
|
|
|
<h6 class="text-primary mt-3">Vision de près / Addition</h6>
|
|
<div class="form-group row">
|
|
<label class="col-sm-4 col-form-label">Axe</label>
|
|
<div class="col-sm-8"><input type="text" class="form-control" name="axeVisionPresGauche" value="<?= $optique['axeVisionPresGauche']; ?>"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card mt-3">
|
|
<div class="card-header text-center font-weight-bold bg-light">Distance Interpupillaire</div>
|
|
<div class="card-body row">
|
|
<div class="col-md-6">
|
|
<label>Vision éloignée</label>
|
|
<input type="text" class="form-control" name="distanceInterpupillaireVisionLoin" value="<?= $optique['distanceInterpupillaireVisionLoin']; ?>">
|
|
</div>
|
|
<div class="col-md-6">
|
|
<label>Vision de près</label>
|
|
<input type="text" class="form-control" name="distanceInterpupillaireVisionPres" value="<?= $optique['distanceInterpupillaireVisionPres']; ?>">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card mt-3">
|
|
<div class="card-header text-center font-weight-bold bg-light">Type & Traitements</div>
|
|
<div class="card-body row">
|
|
<div class="col-md-4">
|
|
<label>Double Foyer</label>
|
|
<select class="form-control" name="doubleFoyer">
|
|
<?php liste_options($doubleFoyer, $optique['doubleFoyer'], true); ?>
|
|
</select>
|
|
|
|
<label class="mt-2">Progressif</label>
|
|
<select class="form-control" name="progressif">
|
|
<?php liste_options($progressif, $optique['progressif'], true); ?>
|
|
</select>
|
|
</div>
|
|
|
|
<div class="col-md-8">
|
|
<div class="row">
|
|
<?php
|
|
$teintes = ['teinteA', 'teinteAB', 'teinteB', 'teinteC'];
|
|
foreach ($teintes as $teinte): ?>
|
|
<div class="col-sm-6 col-md-3">
|
|
<label><?= strtoupper($teinte) ?></label>
|
|
<select class="form-control" name="<?= $teinte ?>">
|
|
<?php liste_options($$teinte, $optique[$teinte], true); ?>
|
|
</select>
|
|
</div>
|
|
<?php endforeach; ?>
|
|
<div class="col-md-6 mt-3">
|
|
<label>Photogray</label>
|
|
<select class="form-control" name="photogray">
|
|
<?php liste_options($photogray, $optique['photogray'], true); ?>
|
|
</select>
|
|
</div>
|
|
<div class="col-md-6 mt-3">
|
|
<label>Antireflet</label>
|
|
<select class="form-control" name="antireflet">
|
|
<?php liste_options($antireflet, $optique['antireflet'], true); ?>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
-->
|
|
|
|
|
|
|
|
<?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">
|
|
<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>
|
|
|
|
<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; ?>
|
|
|