prestation/Vue/Prescriptionseance/index.php
2025-12-05 10:42:46 +00:00

671 lines
34 KiB
PHP
Executable File

<?php
$this->titre = "INTER-SANTE - Prescription Séances";
$numeroBonKine = $seance['numeroBonKine'];
$numeroPrescriptionKine = $seance['numeroPrescriptionKine'];
$codeActePrescription = $seance['codeActePrescription'];
$ententePrealableKine = $this->nettoyer($seance['ententePrealable']);
$facture = $seance['facture'];
$_SESSION['p_numeroBonKine_C'] = $numeroBonKine;
$_SESSION['p_numeroPrescriptionKine_C'] = $numeroPrescriptionKine;
// $acteExclu
$badcodeGestionBon = "1";
$tab_gestion_bon = array("0", "1", "2");
if (in_array($codeGestionBon, $tab_gestion_bon))
{
$badcodeGestionBon = "0";
}
$actVisible = $_SESSION['p_actVisible'];
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US")
{
$libelleActePrescription = $this->nettoyer($seance['libelleActePrescriptionEng']);
}
else
{
$libelleActePrescription = $this->nettoyer($seance['libelleActePrescription']);
}
$agePrescription = $this->nettoyer($seance['agePrescription']);
$bonCaduc = $this->nettoyer($seance['bonCaduc']);
$modeSaisieFacture = $_SESSION['p_modeSaisieFacture'];
if($modeSaisieFacture=="1")
{
$bonCaduc = "0";
}
$motifSeance = $seance['motifSeance'];
$dureeTraitement = $seance['dureeTraitement'];
//var_dump($numeroBonKine);
$baremeExiste = $_SESSION['p_bareme']['baremeExiste'];
$bareme_actif = $_SESSION['p_bareme']['bareme_actif'];
$bareme_ageMinimum = $_SESSION['p_bareme']['bareme_ageMinimum'];
$bareme_ageMaximum = $_SESSION['p_bareme']['bareme_ageMaximum'];
$bareme_codeTypeRemboursement = $_SESSION['p_bareme']['gar_codeTypeRemboursement'];
$ageBeneficiaire = $_SESSION['p_ageBeneficiaire_C'];
//var_dump($_SESSION['proforma_envoye']);
?>
<script type="text/javascript">
</script>
<input class="sr-only" id="nomForm" name="nomForm" type="text" value= "prescriptionseances">
<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" type="text" id="datePrescription" name="datePrescription" value="<?= dateLang($this->nettoyer($seance['datePrescription'])) ?>">
<input class="sr-only" type="text" id="prescriptionSiCritereBareme" name="prescriptionSiCritereBareme" value="<?= $_SESSION['p_prescriptionSiCritereBareme_C'] ?>" >
<div id="div_contestation"></div>
<?php if ($numeroBonKine<="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="codeTypePrestation" name="codeTypePrestation" type="text" value="SEA">
<input class="sr-only" id="facture" name="facture" type="text" value= "<?= $facture ?>" >
<input class="sr-only" id="numeroBonKine" name="numeroBonKine" type="text" value= "<?= $numeroBonKine ?>" >
<input class="sr-only" id="codeMedecin" name="codeMedecin" type="text" value= "<?= $seance['codeMedecin'] ?>">
<input class="sr-only" id="codeActePrescription" name="codeActePrescription" type="text" value= "<?= $codeActePrescription ?>">
<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 ($numeroBonKine>"0") : ?>
<legend><?= _("Prescription de Séances") ?></legend>
<?php else: ?>
<legend> <?= _("Nouvelle prescription de Séances") ?> </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_statutacte">
</div>
<INPUT id="dateSurvenance" name="dateSurvenance" class="sr-only" TYPE="text" value="<?= dateLang($this->nettoyer($seance['datePrescription'])) ?>" readonly >
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td width="15%" > Date</td>
<td width="20%" > <INPUT class="form-control" TYPE="text" value="<?= dateLang($this->nettoyer($seance['datePrescription'])) ?>" readonly style="text-align: center; font-size:10pt;" > </td>
<td width="7%" align="center"> <?= _("Praticien") ?> </td>
<td colspan="3">
<?php if ($numeroBonKine>"0" or $facture=="1") : ?>
<INPUT class="form-control" TYPE="text" value="<?= $this->nettoyer($seance['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($seance['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,$seance['codeMedecin'],true); ?>
</SELECT>
<?php endif; ?>
</td>
<td 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="<?= $numeroBonKine ?>" readonly > </td>
</tr>
<!--
<tr>
<td > <?= _("Bons Disponible") ?> </td>
<td > <input class="form-control" style="text-align: center; font-size:10pt;" Value="<?= $nbBonsOrd ?>" readonly > </td>
<td align="center"> <?= _("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="<?= $numeroBonKine ?>" 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="7"><input id="motifSeance" name="motifSeance" style="font-size:10pt;" class="form-control" value="<?= $motifSeance ?>" disabled type="text"></td>
<?php elseif(empty($motifSeance) || $numeroBonKine=="0") : ?>
<td width="15%" class="required"> <?= _("Renseignement Clinique") ?> </td>
<td colspan="7"><input id="motifSeance" name="motifSeance" style="font-size:10pt;" class="form-control" value="" placeholder="<?= _("Obligatoire pour enregistrer la prescription..."); ?>" type="text" onChange="javascript:verification_contestation();" autofocus required ></td>
<?php else: ?>
<td width="15%" class="required"> <?= _("Renseignement Clinique") ?> </td>
<td colspan="7"><input id="motifSeance" name="motifSeance" style="font-size:10pt;" class="form-control" value="<?= $motifSeance ?>" onChange="javascript:majMotifSeance();" type="text"></td>
<?php endif; ?>
</tr>
</tbody>
</table>
<div id="infosbon">
<!-- debut new -->
<?php if($codeGestionBon!="0"): ?>
<?php if ($numeroBonKine>"0") : ?>
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<?php if ($facture=="1"): ?>
<td >
<div class="alert alert-danger" style="height:40px; padding:5px; text-align:center;" >
<H4> <?= _("Dejà facturée !") ?> </H4>
</div>
</td>
<?php elseif($bonCaduc!="1"): ?>
<?php if ($codeActePrescription>" ") : ?>
<td> <button type="button" id="btn_prescrire" name="btn_prescrire" class="form-control btn btn-primary" data-bs-toggle="modal" data-bs-target="#popPrescrireSeance" style='font-size:12pt;' > <?= _("Modifier la prescription...") ?> </button> </td>
<?php else: ?>
<td> <button type="button" id="btn_prescrire" name="btn_prescrire" class="form-control btn btn-primary" data-bs-toggle="modal" data-bs-target="#popPrescrireSeance" style='font-size:12pt;' > <?= _("Prescrire un acte...") ?> </button> </td>
<?php endif; ?>
<?php else: ?>
<?php if ($codeActePrescription>" ") : ?>
<td> <button type="button" id="btn_prescrire" name="btn_prescrire" disabled class="form-control btn btn-primary" data-bs-toggle="modal" data-bs-target="#popPrescrireSeance" style='font-size:10pt;' > <?= _("Modifier la prescription...") ?> </button> </td>
<?php else: ?>
<td> <button type="button" id="btn_prescrire" name="btn_prescrire" disabled class="form-control btn btn-primary" data-bs-toggle="modal" data-bs-target="#popPrescrireSeance" style='font-size:10pt;' > <?= _("Prescrire un acte...") ?> </button> </td>
<?php endif; ?>
<?php endif; ?>
</tr>
</tbody>
</table>
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td width="15%" > <?= _("Acte Prescrit") ?> </td>
<?php if($actVisible=="1"): ?>
<?php if($ententePrealableKine=='2'): ?>
<td colspan="7" style='background-color: yellow; font-size:13pt;'> <?= $libelleActePrescription ?> </td>
<?php elseif($ententePrealableKine=='1'): ?>
<td colspan="7" style='background-color: #00ff00; font-size:13pt;'> <?= $libelleActePrescription ?> </td>
<?php elseif($ententePrealableKine=='9'): ?>
<td colspan="7" style='background-color: red;color:white; font-size:13pt;'> <?= $libelleActePrescription ?> </td>
<?php else: ?>
<td colspan="7" style="background-color: #5c656a; color:white; font-size:13pt;"> <?= $libelleActePrescription ?> </td>
<?php endif; ?>
<?php else: ?>
<td colspan="7"> <?= _("SEANCE") ?> </td>
<?php endif; ?>
</td>
<!--
<td align="center"><?= _("Durée (J)") ?></td>
<td>
<input style="font-size:10pt;" class="form-control" value="<?= $dureeTraitement ?>" type="text" disabled>
</td>
-->
</tr>
<tr>
<td> <?= _("Nombre Prescrit") ?> </td>
<td width="10%" > <input class="form-control" style="text-align: center; font-size:10pt;" type="number" id="nbSeance" name="nbSeance" value="<?= $this->nettoyer($seance['nbSeance']) ?>" readonly > </td>
<td align="center"> <?= _("Nombre Modifié") ?> </td>
<td width="10%" > <input class="form-control" style="background-color:blue !important;color:white; text-align: center; font-size:10pt;" type="number" id="quantiteCorrigee " name="quantiteCorrigee " value="<?= $this->nettoyer($seance['quantiteCorrigee']) ?>" readonly > </td>
<td align="center"> <?= _("Nombre Effectué") ?> </td>
<td width="10%" > <input class="form-control" style="text-align: center; font-size:10pt;" type="number" id="nbLivreOld" name="nbLivreOld" value="<?= $this->nettoyer($seance['nbLivreOld']) ?>" readonly > </td>
<td align="center"> <?= _("Nombre Restant") ?> </td>
<td width="10%"> <input class="form-control" style="background-color:red !important;color:white; text-align: center; font-size:10pt;" type="number" id="nbRestant" name="nbRestant" value="<?= $this->nettoyer($seance['nbRestant']) ?>" readonly > </td>
</tr>
</tbody>
</table>
<?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"): ?>
<div class="alert alert-danger" style="height:40px; padding:5px; text-align:center;" >
<H4> <?= _("Dejà facturée !") ?> </H4>
</div>
<?php elseif($bonCaduc!="1"): ?>
<!--<input id="btn_enreg" name="btn_enreg" class = "form-control btn btn-primary" type="button" value="<?= _("Enregistrer") ?>" onClick="javascript:enregistrerprescriptionseance();" 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 ($numeroBonKine>"0") : ?>
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<?php if ($facture=="1"): ?>
<td >
<div class="alert alert-danger" style="height:40px; padding:5px; text-align:center;" >
<H4> <?= _("Dejà facturée !") ?> </H4>
</div>
</td>
<?php elseif($bonCaduc!="1"): ?>
<?php if ($codeActePrescription>" ") : ?>
<td> <button type="button" id="btn_prescrire" name="btn_prescrire" class="form-control btn btn-primary" data-bs-toggle="modal" data-bs-target="#popPrescrireSeance" style='font-size:10pt;' > <?= _("Modifier Prescription...") ?> </button> </td>
<?php else: ?>
<td> <button type="button" id="btn_prescrire" name="btn_prescrire" class="form-control btn btn-primary" data-bs-toggle="modal" data-bs-target="#popPrescrireSeance" style='font-size:10pt;' > <?= _("Prescrire...") ?> </button> </td>
<?php endif; ?>
<?php else: ?>
<?php if ($codeActePrescription>" ") : ?>
<td> <button type="button" id="btn_prescrire" name="btn_prescrire" disabled class="form-control btn btn-primary" style='font-size:10pt;' > <?= _("Modifier Prescription...") ?> </button> </td>
<?php else: ?>
<td> <button type="button" id="btn_prescrire" name="btn_prescrire" disabled class="form-control btn btn-primary" style='font-size:10pt;' > <?= _("Prescrire...") ?> </button> </td>
<?php endif; ?>
<?php endif; ?>
</tr>
</tbody>
</table>
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td width="15%" > <?= _("Acte Prescrit") ?> </td>
<?php if($actVisible=="1"): ?>
<INPUT class="form-control" TYPE="text" value="<?= $libelleActePrescription ?>" readonly style='font-size:13pt; font-weight:bold;;'>
<?php if($ententePrealableKine=='2'): ?>
<td colspan="7" style='background-color: yellow !important; font-size:13pt; font-weight:bold;'> <?= $libelleActePrescription ?> </td>
<?php elseif($ententePrealableKine=='1'): ?>
<td colspan="7" style='background-color: #00ff00 !important; font-size:13pt; font-weight:bold;'> <?= $libelleActePrescription ?> </td>
<?php elseif($ententePrealableKine=='9'): ?>
<td colspan="7" style='background-color: red !important;color:white; font-size:13pt; font-weight:bold;'> <?= $libelleActePrescription ?> </td>
<?php else: ?>
<td colspan="7" style="font-size:13pt; font-weight:bold;"> <?= $libelleActePrescription ?> </td>
<?php endif; ?>
<?php else: ?>
<td colspan="7" style="background-color: #5c656a; color:white; font-size:13pt; font-weight:bold;"> KINE </td>
<?php endif; ?>
</tr>
<tr>
<td> <?= _("Nombre Prescrit") ?> </td>
<td width="10%" > <input class="form-control" style="text-align: center; font-size:10pt;" type="number" id="nbSeance" name="nbSeance" value="<?= $this->nettoyer($seance['nbSeance']) ?>" readonly > </td>
<td align="center"> <?= _("Nombre Modifié") ?> </td>
<td width="10%" > <input class="form-control" style="background-color:blue;color:white; text-align: center; font-size:10pt;" type="number" id="quantiteCorrigee " name="quantiteCorrigee " value="<?= $this->nettoyer($seance['quantiteCorrigee']) ?>" readonly > </td>
<td align="center"> <?= _("Nombre Effectué") ?> </td>
<td width="10%" > <input class="form-control" style="text-align: center; font-size:10pt;" type="number" id="nbLivreOld" name="nbLivreOld" value="<?= $this->nettoyer($seance['nbLivreOld']) ?>" readonly > </td>
<td align="center"> <?= _("Nombre Restant") ?> </td>
<td width="10%"> <input class="form-control" style="background-color:red;color:white; text-align: center; font-size:10pt;" type="number" id="nbRestant" name="nbRestant" value="<?= $this->nettoyer($seance['nbRestant']) ?>" readonly > </td>
</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="<?= $numeroBonKine ?>" readonly > </td>
<?php elseif($bonCaduc!="1"): ?>
<td width="24%" > <input class="form-control" style="text-align: center; font-size:10pt;" type="number" id="numeroBon" name="numeroBon" required AUTOCOMPLETE="OFF"
onChange="ajaxinfosbonprescriptionseance();" onkeypress="javascript:ctrlkeypress_numeroBon(event);" autofocus ></td>
<?php else: ?>
<td width="24%" > <input class="form-control" style="text-align: center; font-size:10pt;" type="number" id="numeroBon" name="numeroBon" readonly ></td>
<?php endif; ?>
<td > </td>
<td> </td>
</tr>
<?php endif; ?>
</tbody>
</table>
<?php endif; ?>
<?php endif; ?>
<?php if (isset($msgErreur)): ?>
<div id ="msgErreur" class="alert alert-danger">
<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="prescriptionseances">
<?php if ($numeroBonKine>"0") : ?>
<div >
<input class="form-control" style="text-align: center; font-size: 12pt;font-weight: bold;" type="text" value="<?= _("Liste des séances Effectuées") ?>" readonly > </td>
</div>
<?php $nbSeances = 0; ?>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:10pt;">
<thead>
<tr>
<th style="text-align:center"> <?= _("Acte") ?> </th>
<th style="text-align:center"> Date </th>
<th style="text-align:center"> <?= _("Qté") ?> </th>
<th style="text-align:center"> <?= _("Prestataire") ?> </th>
<th style="text-align:center"> <?= _("Bon Séance") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($detailseances as $detailseance):
$idSeance=$this->nettoyer($detailseance['id']);
$ententePrealable = $this->nettoyer($detailseance['ententePrealable']);
$nbSeances++;
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US")
{
$libelleActeSeance = $this->nettoyer($detailseance['libelleActeSeanceEng']);
}
else
{
$libelleActeSeance = $this->nettoyer($detailseance['libelleActeSeance']);
}
?>
<tr valign="top">
<td align="center">
<?php if($actVisible=="1"): ?>
<?= $libelleActeSeance ?> </td>
<?php else: ?>
KINE
<?php endif; ?>
</td>
<td align="center"> <?= dateLang($this->nettoyer($detailseance['datePrestation'])) ?> </td>
<td align="center"> <?= $this->nettoyer($detailseance['quantite']) ?> </td>
<td align="center"> <?= $this->nettoyer($detailseance['prestataireSeance']) ?> </td>
<td align="center"> <?= $this->nettoyer($detailseance['numeroBonSeance']) ?> </td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php if($facture=="1" || $bonCaduc=="1"): ?>
<div id="div_ged_0"></div>
<?php elseif($numeroBonKine>"0"): ?>
<div id="div_ged_0" style="margin-top:20px;">
<form enctype="multipart/form-data" action="Prescriptionseance" 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_seance();"><?= _("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; ?>
<div class="modal fade" id="popPrescrireSeance" 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>
<h3 class="modal-title"> <?= _("Prescrire des séances") ?> </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="SEA">
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td width="16%" align="center"> <?= _("T M") ?> </td>
<td width="20%" > <input class="form-control" style="background-color: rgb(190,190,190);text-align: center; font-size:10pt;'" type="number" id="tauxCouverture" name="tauxCouverture" value="<?= $_SESSION['p_tm_C'] ?>" readonly ></td>
<td width="15%" align="center" class="required"> <?= _("Acte") ?> </td>
<td colspan="3">
<div id="listeacte">
<SELECT class="form-control selectpicker" data-live-search="true" id="codeActe" NAME="codeActe" required AUTOCOMPLETE="OFF" onChange="ajaxprixseance();" style='font-size:10pt;' required AUTOCOMPLETE="OFF" autofocus >
<?php liste_options($acte,$this->nettoyer($seance['codeActePrescription'])); ?>
</SELECT>
</div>
</td>
</tr>
<tr>
<td colspan="6">
<div id="div_messages" style="margin-top:10px;">
</div>
</td>
</tr>
</tbody>
</table>
<div id="infosacte" style='font-size:10pt;'>
<input class="sr-only" type="number" id="prixActe" name="prixActe" value="<?= $this->nettoyer($seance['valeurActe']) ?>" >
<input class="sr-only" type="number" id="prixBase" name="prixBase" value="<?= $this->nettoyer($seance['prixBase']) ?>" >
<input class="sr-only" type="number" id="valeurActe" name="valeurActe" value="<?= $this->nettoyer($seance['valeurActe']) ?>" >
<input class="sr-only" type="number" id="montantTm" name="montantTm" value="<?= $this->nettoyer($seance['montantTm']) ?>" >
<input class="sr-only" type="number" id="aRembourser" name="aRembourser" value="<?= $this->nettoyer($seance['montantArembourser']) ?>" >
<input class="sr-only" type="number" id="totalActe" name="totalActe" value="<?= $this->nettoyer($seance['fraisReel']) ?>" >
<input class="sr-only" type="number" id="fraisReelBase" name="fraisReelBase" value="<?= $this->nettoyer($seance['fraisReelBase']) ?>" >
<input class="sr-only" type="number" id="depassement" name="depassement" value="<?= $this->nettoyer($seance['depassement']) ?>" >
<input class="sr-only" type="text" id="ententePrealableSea" name="ententePrealableSea" value="<?= $this->nettoyer($seance['ententePrealable']) ?>" >
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td width="16%" >
<input class="form-control" style="font-size:10pt; border: 0; background: transparent; text-align: center; " type="text" value="<?= _("Prix Unitaire") ?>" readonly>
<!--<input class="form-control" style="font-size:10pt; border: 0; background: transparent; text-align: center; " type="text" value="<?= _("Base Remb.") ?>" readonly>-->
</td>
<td width="20%" >
<input class="form-control" style="background-color: rgb(190,190,190);text-align: center; font-size:10pt;" type="text" value="<?= format_N($this->nettoyer($seance['valeurActe'])) ?>" readonly>
<!--<input class="form-control" style="background-color:blue;color:white;text-align: center; font-size:10pt;" type="text" value="<?= format_N($this->nettoyer($seance['prixBase'])) ?>" readonly>-->
</td>
<td width="15%" align="center" > <?= _("Nombre Séance") ?> </td>
<td width="20%" >
<?php
$qteP = $this->nettoyer($seance['quantitePrescrite']);
$qteC = $this->nettoyer($seance['quantiteCorrigee']);
if ($qteP == "0" && $qteC=="0") {
$qte = "1";
}elseif($qteC > "0"){
$qte = $qteC;
}else{
$qte = $qteP;
}
?>
<input class="form-control" id="quantite" name="quantite" type="number" value="<?= $qte?>" style="text-align: center; font-size:10pt; '"
onBlur="ajaxprixseance();" >
</td>
<td width="10%" align="center" > Total </td>
<td width="25%" >
<input class="form-control" style="background-color: rgb(190,190,190);text-align: center; font-size:10pt;" type="text" value="<?= format_N($this->nettoyer($seance['fraisReel'])) ?>" readonly >
<!--<input class="form-control" style="background-color:blue;color:white;text-align: center; font-size:10pt;" type="text" value="<?= format_N($this->nettoyer($seance['fraisReelBase'])) ?>" readonly >-->
</td>
</tr>
<!--
<tr>
<td align="center"> <?= _("Durée Traitement (En jour)") ?> </td>
<td colspan="5"> <input class="form-control" style="text-align: center; font-size:10pt;" type="text" value="" ></td>
</tr>
-->
<tr>
<td colspan="6">
<?php if ($bonCaduc!="1"): ?>
<input id="btn_enreg_seance" name="btn_enreg_seance" class = "form-control btn btn-primary" type="button" value="<?= _("Enregistrer") ?>" onClick="javascript:modifierprescriptionseance();" style='font-size:10pt;' >
<?php else: ?>
<input id="btn_enreg_seance" name="btn_enreg_seance" disabled class = "form-control btn btn-primary" type="button" value="<?= _("Enregistrer") ?>" style='font-size:10pt;' >
<?php endif; ?>
</td>
</tr>
</tbody>
</table>
</div>
</form>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
</div>
</div>
</div>
</div>
<input class="sr-only" type="text" id="nbSeances" name="nbSeances" value="<?= $nbSeances ?>" >
<?php endif; ?>
</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>
<?php endif; ?>