radiantprestation/Vue/Opticien/index.php

657 lines
28 KiB
PHP

<?php
$this->titre = "INTER-SANTE - Livraison verres et montures";
$numeroBonOptique = $_SESSION['p_numeroBonOptique_C'];
$numeroOptique = $_SESSION['p_numeroOptique_C'] ;
$nbActesVerres = 0;
$nbActesMonture = 0;
$modeSaisieFacture = $_SESSION['p_modeSaisieFacture'];
$accesAjoutVerres = ($_SESSION['p_accesAjoutVerres_C']==1) ;
$ajoutPrescriptionOptique = ($_SESSION['p_ajoutPrescriptionOptique_C']==1) ;
$controlerPlafondAdherent = ($_SESSION['p_controlerPlafondAdherent']>0);
$controlerPlafondBeneficiaire = ($_SESSION['p_controlerPlafondBeneficiaire']>0);
$college_couvert = $_SESSION['p_college_couvert_C'];
$derogation_en_cours = $_SESSION['p_derogation_en_cours_C'];
?>
<script type="text/javascript">
</script>
<?php if($numeroBonOptique=="-1") : ?>
<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="20%" align="center"> <?= _("No Ordonnance") ?> </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 >
</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>" ") : ?>
<?php
$idPrestationactes = $this->nettoyer($prescription['idPrestationactes']);
// $nbActesVerres = $this->nettoyer($prescription['nbActesVerres']);
// $nbActesMonture = $this->nettoyer($prescription['nbActesMonture']);
$agePrescription = $this->nettoyer($prescription['agePrescription']);
$bonCaduc = $this->nettoyer($prescription['bonCaduc']);
?>
<!-- nbActesMonture : <?= $nbActesMonture ?> -->
<div id="opticien">
<input class="sr-only" id="bonCaduc" name="bonCaduc" type="text" value= "<?= $bonCaduc ?>" >
<?php if ($college_couvert<"1" && $derogation_en_cours<"1") : ?>
<div id ="msgErreur" class="alert alert-danger" style="height:30px; padding:5px;" >
<H4><?= _("Cette personne n'a pas accès à") . " " . $_SESSION['p_prestataire_C'] ?></H4>
</div>
<input class="sr-only" type="text" id="prixActe" name="prixActe" 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="20%" align="center"> <?= _("No Ordonnance") ?> </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 >
</td>
<td > </td>
</tr>
</tbody>
</table>
</div>
<div id="ordonnance">
</div>
<div id="livraison">
<div id="non_livre">
</div>
<div id="livre">
</div>
</div>
<?php else: ?>
<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="7%" > <?= _("Ordon") ?> </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 >
</td>
<td width="10%" align="center" > Date Prescr </td>
<td width="10%" > <INPUT class="form-control" TYPE="text" value="<?= dateLang($this->nettoyer($prescription['datePrescription'])) ?>" readonly style="text-align: center; font-size:9pt;" > </td>
<td width="7%" align="center"> <?= _("Médecin") ?> </td>
<td> <INPUT class="form-control" TYPE="text" value="<?= $this->nettoyer($prescription['medecinPrescription']) ?>" readonly style='font-size:9pt;'> </td>
<td width="7%" align="center"> <?= _("Tél Méd") ?> </td>
<td width="15%"> <INPUT class="form-control" TYPE="text" value="<?= $this->nettoyer($prescription['telephoneMedecin']) ?>" readonly style='font-size:9pt;'> </td>
</tr>
</tbody>
</table>
</div>
<div class="alert alert-danger" style="height:30px; padding: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="content">
<?php include 'flexcode/include/global.php'; ?>
</div>
<?php if($idPrestationactes>"0") : ?>
<div id ="msgErreur" class="alert alert-danger" style="height:30px; padding:5px;" >
<H4 align="center" ><?= _("Dejà facturée !").' => '._('No Facture').' => '. $this->nettoyer($prescription['idFacture']) ?></H4>
</div>
<?php else: ?>
<?php if($this->nettoyer($prescription['bonCaduc'])=="0" or $modeSaisieFacture==1) : ?>
<table class="table table-responsive table-condensed" style='font-size:10pt;' >
<tbody>
<tr>
<?php if($ajoutPrescriptionOptique) : ?>
<td> <button type="button" class="form-control btn btn-primary" data-toggle="modal" data-target="#popAjoutVerre" style='font-size:10pt;' > <?= _("Ajouter des verres...") ?> </button> </td>
<?php else: ?>
<td> <button type="button" class="form-control btn btn-primary" style='font-size:10pt;' disabled ><?= _("Ajouter des verres...") ?></button> </td>
<?php endif; ?>
<td width="10%" > </td>
<?php if($accesAjoutVerres) : ?>
<td> <button type="button" class="form-control btn btn-primary" data-toggle="modal" data-target="#popCreerVerres" style='font-size:10pt;' ><?= _("Créer verres...") ?></button> </td>
<?php else: ?>
<td> <button type="button" class="form-control btn btn-primary" style='font-size:10pt;' disabled ><?= _("Créer verres...") ?></button> </td>
<?php endif; ?>
</tr>
</tbody>
</table>
<?php endif; ?>
<?php endif; ?>
<div id ="div_wait">
</div>
<div id="ordonnance">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:8pt;'>
<thead>
<tr>
<th style="text-align:center"> <?= _("Verres prescrits") ?> </th>
<th style="text-align:center" > <?= _("Accord") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($detailprescriptions as $detailprescription):
$livre = $this->nettoyer($detailprescription['livre']);
$ententePrealable1=$this->nettoyer($detailprescription['ententePrealable']);
?>
<!--
<?php if($livre=="1") : ?>
<tr valign="top" style="color:blue">
<?php else: ?>
<tr valign="top">
<?php endif; ?>
-->
<?php if($ententePrealable1=='2' || $ententePrealable1=='3'): ?>
<tr valign="top" style="background-color: yellow;">
<?php elseif($ententePrealable1=='1'): ?>
<tr valign="top" style="background-color: #00ff00;">
<?php elseif($ententePrealable1=='9'): ?>
<tr valign="top" style="background-color: red;color:white;">
<?php else: ?>
<tr valign="top">
<?php endif; ?>
<td align='center'> <?= $this->nettoyer($detailprescription['libelleOptique']) ?> </td>
<?php if($ententePrealable1<>"0"): ?>
<td align='center'> <input type="checkbox" checked disabled></td>
<?php else: ?>
<td align='center'> <input type="checkbox" disabled></td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</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="non_livre">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:8pt;'>
<thead>
<tr>
<?php if($idPrestationactes=="0") : ?>
<th width="5%" style="text-align:center" > + + </th>
<th style="text-align:center"> <?= _("Non livrés") ?> </th>
<?php else: ?>
<th style="text-align:center"> <?= _("Non livrés") ?> </th>
<?php endif; ?>
<th width="7%" style="text-align:center"> <?= _("Frais") ?> </th>
<th width="5%" style="text-align:center"> <?= _("T M") ?> </th>
<th width="7%" style="text-align:center"> <?= _("A Remb") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($detailnonlivres as $detailnonlivre):
$idNonLivre=$this->nettoyer($detailnonlivre['id']);
$valeurActe = $this->nettoyer($detailnonlivre['valeurActe']);
$ententePrealable2=$this->nettoyer($detailnonlivre['ententePrealable']);
?>
<?php if($ententePrealable2=='2' || $ententePrealable2=='3'): ?>
<tr valign="top" style="background-color: yellow;">
<?php elseif($ententePrealable2=='1'): ?>
<tr valign="top" style="background-color: #00ff00;">
<?php elseif($ententePrealable2=='9'): ?>
<tr valign="top" style="background-color: red;color:white;">
<?php else: ?>
<tr valign="top">
<?php endif; ?>
<?php if($idPrestationactes=="0") : ?>
<?php if($valeurActe=="0") : ?>
<td width="5%" align='center'> </td>
<?php else: ?>
<?php if($ententePrealable2=='2'): ?>
<td width="5%" align='center'> <input type="button" value=" ? " onClick="javascript:demander_accord_opt('<?= $idNonLivre ?>');"></td>
<?php elseif($ententePrealable2=='3'): ?>
<td width="5%" align='center'> W </td>
<?php elseif($ententePrealable2=='9'): ?>
<td width="5%" align='center'> R </td>
<?php else: ?>
<td width="5%" align='center'> <input type="button" value=" + " onClick="javascript:ajouterverre_opt('<?= $idNonLivre ?>');"></td>
<?php endif; ?>
<?php endif; ?>
<td> <?= $this->nettoyer($detailnonlivre['libelleOptique']) ?> </td>
<?php else: ?>
<td> <?= $this->nettoyer($detailnonlivre['libelleOptique']) ?> </td>
<?php endif; ?>
<td align='center'> <?= format_N($this->nettoyer($detailnonlivre['fraisReel'])) ?> </td>
<td align='center'> <?= format_N($this->nettoyer($detailnonlivre['montantTm'])) ?> </td>
<td align='center'> <?= format_N($this->nettoyer($detailnonlivre['montantArembourser'])) ?> </td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<div id="livre">
<?php $nbLivre = 0; ?>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:8pt;'>
<thead>
<tr>
<?php if($idPrestationactes=="0") : ?>
<th width="5%" style="text-align:center" > <input class="form-control btn btn-primary" type="button" value=" - - " onClick="javascript:retirerverre_opt_tous();" style='font-size:8pt;' > </th>
<th style="text-align:center"> <?= _("A Livrer") ?> </th>
<th width="7%" style="text-align:center"> <?= _("Verres") ?> </th>
<th colspan="2" width="14%" style="text-align:center"> <?= _("Monture") ?> </th>
<?php else: ?>
<th > <?= _("Livrés") ?> </th>
<th width="7%" style="text-align:center"> <?= _("Verres") ?> </th>
<th width="7%" style="text-align:center"> <?= _("Monture") ?> </th>
<?php endif; ?>
<th width="7%" style="text-align:center"> <?= _("Frais") ?> </th>
<th width="5%" style="text-align:center"> <?= _("T M") ?> </th>
<th width="7%" style="text-align:center"> <?= _("A Remb") ?> </th>
</tr>
</thead>
<tfoot>
<tr>
<?php if($idPrestationactes=="0") : ?>
<td colspan="5" style='text-align:center'> Total </td>
<?php else: ?>
<td colspan="3" style='text-align:center'> Total </td>
<?php endif; ?>
<td align='center'><?= format_N($this->nettoyer($prescription['fraisReelLivre'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($prescription['montantTmLivre'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($prescription['montantArembourserLivre'])) ?></td>
</tr>
</tfoot>
<tbody>
<?php foreach ($detaillivres as $detaillivre):
$idLivre=$this->nettoyer($detaillivre['id']);
$typeSysteme = $this->nettoyer($detaillivre['typeSysteme']);
$nbLivre++;
?>
<?php if($typeSysteme=="1") : ?>
<tr valign="top" style="background-color: red; color:white;">
<?php else: ?>
<tr valign="top">
<?php endif; ?>
<?php if($idPrestationactes=="0") : ?>
<td align='center'> <input type="button" value=" - " onClick="javascript:retirerverre_opt_tous();" ></td>
<td> <?= $this->nettoyer($detaillivre['libelleOptique']) ?> </td>
<td align='center'> <?= format_N($this->nettoyer($detaillivre['valeurActe'])) ?> </td>
<?php if($nbActesMonture>0) : ?>
<td colspan="2" align='center' style="background-color: red;color:white;"> <?= _("Livré") ?> </td>
<?php else: ?>
<td align='center'> <?= format_N($this->nettoyer($detaillivre['monture'])) ?> </td>
<td width="7%"><INPUT class="form-control" style='text-align:center' TYPE="number" value="<?= $this->nettoyer($detaillivre['monture']) ?>"
onChange="this.value=supprimer_espace_nombre(this.value);if(controle_numerique(this)){maj_monture_temp('<?=$idLivre?>', this.value);}">
</td>
<?php endif; ?>
<?php else: ?>
<td> <?= $this->nettoyer($detaillivre['libelleOptique']) ?> </td>
<td align='center'> <?= format_N($this->nettoyer($detaillivre['valeurActe'])) ?> </td>
<td align='center'> <?= format_N($this->nettoyer($detaillivre['monture'])) ?> </td>
<?php endif; ?>
<td align='center'> <?= format_N($this->nettoyer($detaillivre['fraisReel'])) ?> </td>
<td align='center'> <?= format_N($this->nettoyer($detaillivre['montantTm'])) ?> </td>
<td align='center'> <?= format_N($this->nettoyer($detaillivre['montantArembourser'])) ?> </td>
</tr>
<?php endforeach; ?>
<tr style='background-color:white'>
<td colspan="8" height="3"></td>
</tr>
</tbody>
</table>
<div id="recap">
<table class="table table-responsive table-condensed" style='font-size:12pt;' >
<tbody>
<tr>
<td > <?= _("Dépas") ?> </td>
<td > <INPUT class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($prescription['fraisExcluLivre'])) ?>" readonly style="text-align: center; font-size:12pt; color:red;" > </td>
<td align="center" > <?= _("Retenu") ?> </td>
<td > <INPUT class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($prescription['fraisRetenuLivre'])) ?>" readonly style="text-align: center; font-size:12pt; color:blue;" > </td>
<td align="center" > <?= _("Part Assuré") ?> </td>
<td > <INPUT class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($prescription['fraisAssure'])) ?>" readonly style="text-align: center; font-size:12pt; color:red;" > </td>
</tr>
</tbody>
</table>
</div>
<?php if($idPrestationactes=="0") : ?>
<table class="table table-bordered table-condensed table-responsive" style="font-size:9pt;">
<tbody>
<tr>
<?php if($controlerPlafondAdherent): ?>
<td width="8%"> <?= _("Limite Fam") ?> </td>
<td><INPUT style='text-align:center; background-color:blue;color:white; font-size:9pt;' class="form-control" TYPE="text" value="<?= format_N($limite_beneficiaire['plafondAdherent']) ?>" readonly ></td>
<td align="center"> <?= _("Anc Solde") ?> </td>
<td><INPUT style='text-align:center; background-color:rgba(255, 0, 127);color:white; font-size:9pt;' class="form-control" TYPE="text" value="<?= format_N($limite_beneficiaire['soldeAdherentOld']) ?>" readonly ></td>
<td align="center"> <?= _("Nv Solde") ?> </td>
<td> <INPUT style='text-align:center; background-color:green;color:white; font-size:9pt;' class="form-control" TYPE="text" value="<?= format_N($limite_beneficiaire['soldeAdherentNew']) ?>" readonly ></td>
<?php endif; ?>
<?php if($controlerPlafondBeneficiaire): ?>
<td align="center" width="8%"> <?= _("Limite Indiv") ?> </td>
<td><INPUT style='text-align:center; background-color:blue;color:white; font-size:9pt;' class="form-control" TYPE="text" value="<?= format_N($limite_beneficiaire['plafondBeneficiaire']) ?>" readonly ></td>
<td align="center"> <?= _("Anc Solde") ?> </td>
<td><INPUT style='text-align:center; background-color:rgba(255, 0, 127);color:white; font-size:9pt;' class="form-control" TYPE="text" value="<?= format_N($limite_beneficiaire['soldeBeneficiaireOld']) ?>" readonly ></td>
<td align="center"> <?= _("Nv Solde") ?> </td>
<td><INPUT style='text-align:center; background-color:green;color:white; font-size:9pt;' class="form-control" TYPE="text" value="<?= format_N($limite_beneficiaire['soldeBeneficiaireNew']) ?>" readonly ></td>
<?php endif; ?>
</tr>
</tbody>
</table>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:9pt;">
<thead>
<tr>
<th rowspan="2" style="text-align:center"> <?= _("Limites de la famille : Garanties") ?> </th>
<th rowspan="2" style="text-align:center"> <?= _("Limites") ?> </th>
<th rowspan="2" style="text-align:center"> <?= _("Solde Ant") ?> </th>
<th colspan="2" style="text-align:center;background-color:blue;color:white;"> <?= _("Nouvelles Consommations") ?> </th>
<th rowspan="2" style="text-align:center;background-color:red;color:white;"> <?= _("Dépassement") ?> </th>
<th rowspan="2" style="text-align:center"> <?= _("Retenu") ?> </th>
<th rowspan="2" style="text-align:center"> <?= _("Nouv Solde") ?> </th>
<th rowspan="2" style="text-align:center"> <?= _("Par tête?") ?> </th>
</tr>
<tr>
<th style="text-align:center;background-color:blue;color:white;" > <?= _("Garanties") ?> </th>
<th style="text-align:center;background-color:blue;color:white;" > <?= _("Sous Gar") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($garantieadherent_temp as $garantieadherent):
$champApplication = $this->nettoyer($garantieadherent['champApplication']);
?>
<tr valign="top">
<td align='center'> <?= $this->nettoyer($garantieadherent['garantie'])?> </td>
<td align='center'><?= format_N($this->nettoyer($garantieadherent['plafond'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($garantieadherent['soldeOld'])) ?></td>
<td align='center' style='background-color:blue;color:white;'><?= format_N($this->nettoyer($garantieadherent['consommationNew'])) ?></td>
<td align='center' style='background-color:blue;color:white;'><?= format_N($this->nettoyer($garantieadherent['consommationSousGarantie'])) ?></td>
<td align='center' style='background-color:red;color:white;'><?= format_N($this->nettoyer($garantieadherent['fraisExclu'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($garantieadherent['fraisRetenu'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($garantieadherent['soldeNew'])) ?></td>
<?php if($champApplication=='1'): ?>
<td align='center'> <input type="checkbox" checked value="<?php echo $champApplication ; ?>" disabled ></td>
<?php else: ?>
<td align='center'> <input type="checkbox" value="<?php echo $champApplication ; ?>" disabled ></td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php endif; ?>
<input class="sr-only" type="text" id="nbLivre" name="nbLivre" value="<?= $nbLivre ?>" >
<input class="sr-only" type="text" id="prixActe" name="prixActe" value="<?= $this->nettoyer($prescription['fraisRetenuLivre']) ?>" >
<input class="sr-only" type="text" id="cout" name="cout" value="<?= $this->nettoyer($prescription['fraisReelLivre']) ?>" >
<input class="sr-only" type="text" id="montantTm" name="montantTm" value="<?= $this->nettoyer($prescription['montantTmLivre']) ?>" >
<input class="sr-only" type="text" id="cout_f" name="cout_f" value="<?= format_N($this->nettoyer($prescription['fraisReelLivre'])) ?>" >
<input class="sr-only" type="text" id="montantTm_f" name="montantTm_f" value="<?= format_N($this->nettoyer($prescription['montantTmLivre'])) ?>" >
</div>
<?php else: ?>
<div class="alert alert-danger" style="height:30px; padding:5px; text-align:center;" >
<H4 align="center" > Age => <?= $this->nettoyer($prescription['agePrescription']) . " "._("jours") . " => " . _("BON CADUC") ?> </H4>
</div>
<?php endif; ?>
</div>
<?php endif; ?>
</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="20%" align="center"> <?= _("No Ordonnance") ?> </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 >
</td>
<td > </td>
</tr>
</tbody>
</table>
</div>
<div id="ordonnance">
</div>
<div id="livraison">
<div id="non_livre">
</div>
<div id="livre">
</div>
</div>
</div>
<div id ="msgErreur" class="alert alert-danger" style="height:30px; padding:5px;" >
<H4><?= _("Ordonnance") . " " .$numeroBonOptique. " "._("introuvable"). " !" ?></H4>
</div>
<?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-dismiss="modal"> <?= _("Fermer") ?> </button>
<h3 class="modal-title"> <?= _("Ajouter des verres") ?> </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" style='font-size:10pt;'>
<tbody>
<tr>
<td>
<div id="listeacte">
<SELECT class="form-control selectpicker" data-live-search="true" id="codeOptique" NAME="codeOptique" required style='font-size:10pt;' required autofocus >
<?php liste_options($acte,""); ?>
</SELECT>
</div>
</td>
</tr>
<tr>
<td colspan="3"><input id="btn_enreg" name="btn_enreg" class = "form-control btn btn-primary" type="button" value="<?= _("Enregistrer") ?>" onClick="prescrire_verre_opt();" style='font-size:10pt;' ></td>
</tr>
</tbody>
</table>
</form>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"> <?= _("Fermer") ?> </button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="popCreerVerres" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button id="btn_close_pop_new_verre" name="btn_close_pop" type="button" class="close" data-dismiss="modal"> <?= _("Fermer") ?> </button>
<h4 class="modal-title"><?= _("Créer Verres") ?></h4>
</div>
<div class="modal-body">
<div id="div_new_medicament">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:10pt;'>
<tbody>
<tr>
<td width="15%" > <?= _("Désignation") ?> </td>
<td colspan="4"> <input type="text" class="form-control" id="libelleOptique" name="libelleOptique" autofocus style='font-size:10pt;' ></td>
</tr>
<tr>
<td> <?= _("Prix") ?> </td>
<td align='center' width="25%">
<input class="form-control"style="text-align: center; font-size:10pt;" type="number" id="prixVerre" name="prixVerre" value="0"
onBlur="controle_numerique(this);" >
</td>
<td> <input type="button" class = "form-control btn btn-info" style='font-size:10pt;' value="<?= _("Enregistrer") ?>" onclick="javascript:enregistrer_nv_verres();" /></td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"> <?= _("Fermer") ?> </button>
</div>
</div>
</div>
</div>
<?php
$_SESSION['p_nbActesVerres'] = $nbActesVerres;
$_SESSION['p_nbActesMonture'] = $nbActesMonture;
?>
<!--
nbActesMonture : <?= $nbActesMonture ?>
<input class="sr-only" type="text" id="nbActesVerres" name="nbActesVerres" value= "<?= $nbActesVerres ?>" >
<input class="sr-only" type="text" id="nbActesMonture" name="nbActesMonture" value= "<?= $nbActesMonture ?>" >
-->