prestation/Vue/Dentisterie/index.php
2026-03-11 09:17:29 +00:00

194 lines
8.5 KiB
PHP
Executable File

<?php
$this->titre = "INTER-SANTE - Dentaire";
$chirurgie = $_SESSION['p_chirurgie_C'];
$actVisible = $_SESSION['p_actVisible'];
$bonCaduc = $_SESSION['p_bonCaduc'];
$facture = $_SESSION['p_facture'];
$agePrescription = $_SESSION['p_agePrescription_f'];
$idCollege = $_SESSION['p_idCollege_C'];
?>
<INPUT class="sr-only" id="chirurgie_C" name="chirurgie_C" type="text" value="<?= $_SESSION['p_chirurgie_C'] ?>">
<INPUT class="sr-only" id="nomForm" name="nomForm" type="text" value="dentaire">
<input class="sr-only" id="idCollege" name="idCollege" type="text" value= "<?= $idCollege ?>">
<input class="sr-only" id="nbreProthese" name="nbreProthese" type="text" value= "<?= $nbreProthese ?>">
<input class="sr-only" id="codeActe" name="codeActe" type="text" value= "">
<input class="sr-only" id="libelleActe" name="libelleActe" type="text" value= "">
<input class="sr-only" id="prixTarif" name="prixTarif" type="text" value= "0">
<input class="sr-only" id="codeGarantie" name="codeGarantie" type="text" value= "DEN">
<input class="sr-only" id="acteExclu" name="acteExclu" type="text" value= "">
<input class="sr-only" id="ententePrealable" name="ententePrealable" type="text" value= "">
<INPUT class="sr-only" id="dateSurvenance" name="dateSurvenance" TYPE="text" value="<?= dateLang($this->nettoyer($datePrestation), $_SESSION['p_lang']) ?>" readonly >
<input class="sr-only" id="bonCaduc" name="bonCaduc" type="text" value= "<?= $bonCaduc ?>" >
<input class="sr-only" id="facture" name="facture" type="text" value= "<?= $facture ?>" >
<div id="div_contestation"></div>
<div id="div_statutacte"></div>
<legend> <?= _("Dentisterie") ?> </legend>
<table class="table table-responsive table-condensed" style='font-size:9pt;' >
<tbody>
<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>
<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($datePrestation), $_SESSION['p_lang']) ?>" readonly style="text-align: center; font-size:10pt;" > </td>
<td width="8%" align="center"> <?= _("Médecin") ?> </td>
<td>
<?php if ($bonCaduc=="1" || $facture=="1") : ?>
<INPUT class="form-control" TYPE="text" value="<?= $_SESSION['p_codeMedecin'] ?>" readonly style='font-size:10pt;'>
<?php else: ?>
<SELECT id="codeMedecin" class="form-control selectpicker" data-live-search="true" NAME="codeMedecin" style='font-size:10pt;' onchange="maj_medecin_dentaire();">
<?php liste_options($medecins, $_SESSION['p_codeMedecin'], true); ?>
</SELECT>
<?php endif; ?>
</td>
</tr>
</tbody>
</table>
<div >
<input class="form-control" style="text-align: center; font-size: 14px;pt;font-weight: bold;" type="text" value="<?= _("Détail des soins dentaires") ?>" readonly > </td>
</div>
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<?php if($bonCaduc=='1' || $facture=='1'): ?>
<?php if ($facture=="1"): ?>
<tr>
<td colspan="6">
<div class="alert alert-danger" style="height:40px; padding:5px; text-align:center;" >
<H4> <?= _("Dejà facturée !") ?> </H4>
</div>
</td>
</tr>
<?php elseif($bonCaduc=="1"): ?>
<tr>
<td colspan="6">
<div class="alert alert-danger" style="height:40px; padding:5px; text-align:center; margin-bottom:5px;" >
<H4> <?= " Age => ".$agePrescription . " "._("jours") . " => " . _("BON CADUC") ?> </H4>
</div>
</td>
</tr>
<?php endif; ?>
<?php else: ?>
<tr >
<td width="15%" class="required"> <?= _("Renseignement Clinique") ?> </td>
<td colspan="5" > <input class="form-control" style="font-size:10pt;" type="text" id="motifDentaire" name="motifDentaire" value="<?= $dentiste['motifDentaire']; ?>" required autofocus onChange="javascript:verification_contestation();" placeholder="<?= _("Obligatoire avant de soumettre une demande d'accord préalable...")?>"></td>
<tr>
<tr>
<td class="required"> <?= _("Actes") ?> </td>
<td colspan="5">
<div class="frmSearch" style="position: relative;">
<input id="searchInput" name="searchInput" style="font-size:11pt; padding-left: 35px;" class="form-control" type="text" placeholder="<?= _("Effectuer une recherche...") ?>" autofocus required AUTOCOMPLETE="OFF">
<i class="fas fa-search" style="position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #999;"></i>
<div id="div_selection"></div>
</div>
</td>
</tr>
<tr>
<td class="required"> <?= _("N° Dent") ?> </td>
<td >
<SELECT class="form-control selectpicker" data-live-search="true" id="numeroDent" NAME="numeroDent" required style='font-size:10pt;' >
<?php liste_options($dents,'',true); ?>
</SELECT>
</td>
<td> </td>
<td>
<button type="button" class="form-control btn btn-primary" style='font-size:10pt;' onClick="javascript:ajoute_dentaire();" > <?= _("Ajouter") ?> </button>
</td>
</tr>
<?php endif; ?>
</tbody>
</table>
<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 >
<input class="form-control" style="text-align: center; font-size: 12pt;font-weight: bold;" type="text" value="<?= _("Liste des prestations") ?>" readonly > </td>
</div>
<div id="div_prestations" >
<?php require "Vue/Ajaxdetaildentisterie/index.php";?>
</div>
<div class="modal fade" id="popRechercheMedecin" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button id="btn_close_pop" name="btn_close_pop" type="button" class="close" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
<h4 class="modal-title"><?= _("Rechercher un Médecin...") ?></h4>
</div>
<div class="modal-body">
<div id="div_listemedecins" onkeypress="javascript:ctrlkeypress_medecin(event);">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:10pt;'>
<thead>
<tr>
<th style="text-align:center" width="15%" > Code </th>
<th width="50%" style="text-align:center" > <?= _("Nom contenant...") ?> </th>
<th style="text-align:center" > <?= _("Spécialité") ?> </th>
</tr>
</thead>
<tbody>
<tr>
<td><input type="text" class="form-control" id="noOrdreMedecin" name="noOrdreMedecin" autofocus style='font-size:10pt;' ></td>
<td><input type="text" class="form-control" id="nomsearch" name="nomsearch" autofocus style='font-size:10pt;' ></td>
<td><input type="button" class = "form-control btn btn-info" style='font-size:10pt;' value="<?= _("Rechercher...") ?>" onclick="javascript:afficher_pop_recherche_medecin();" /></td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="modal-footer">
<button id="close_pop" name="close_pop" type="button" class="btn btn-default" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
</div>
</div>
</div>
</div>