481 lines
23 KiB
PHP
Executable File
481 lines
23 KiB
PHP
Executable File
<?php
|
|
$this->titre = "INTER-SANTE - Séances";
|
|
|
|
$numeroBonKine = $prescription['numeroBonKine'];
|
|
$facture = $prescription['facture'];
|
|
$nbRestantOld = $this->nettoyer($prescription['nbRestantOld']);
|
|
$nbRestant = $this->nettoyer($prescription['nbRestant']);
|
|
|
|
$rapportTraitement = $this->nettoyer($prescription['rapportTraitement']);
|
|
//var_dump($rapportTraitement);
|
|
|
|
|
|
$codeActePrescription = $prescription['codeActePrescription'];
|
|
|
|
$numeroBonSeance = $this->nettoyer($prescription['numeroBonSeance']);
|
|
|
|
$numeroBonSeance = ($numeroBonSeance=='0') ? "1" : $numeroBonSeance;
|
|
|
|
//var_dump($numeroBonSeance);
|
|
$ententePrealable = $this->nettoyer($prescription['ententePrealable']);
|
|
|
|
$codeGestionBon = $this->nettoyer($prescription['codeGestionBon']);
|
|
|
|
$dureeTraitement = $prescription['dureeTraitement'];
|
|
|
|
$badcodeGestionBon = "1";
|
|
$tab_gestion_bon = array("0", "1", "2");
|
|
if (in_array($codeGestionBon, $tab_gestion_bon))
|
|
{
|
|
$badcodeGestionBon = "0";
|
|
}
|
|
|
|
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US")
|
|
{
|
|
$libelleActePrescription = $this->nettoyer($prescription['libelleActePrescriptionEng']);
|
|
}
|
|
else
|
|
{
|
|
$libelleActePrescription = $this->nettoyer($prescription['libelleActePrescription']);
|
|
}
|
|
|
|
/*
|
|
$faceRegistered = $this->nettoyer($beneficiaire['faceRegistered']);
|
|
$face_confirmee = $_SESSION['p_okId_face'];
|
|
$fingerActif = $_SESSION['p_fingerActif'];
|
|
$faceActif = $_SESSION['p_faceActif'];
|
|
*/
|
|
|
|
$nbFait = $compteSeance;
|
|
|
|
$nbFaitPrestataire = $compteSeancePrestataire;
|
|
|
|
$proformaAccorde = $prescription['proformaAccorde'];
|
|
|
|
$codePrestataireAccorde = $prescription['codePrestataireAccorde'];
|
|
|
|
$codePrestataire = $_SESSION['p_codePrestataire_C'];
|
|
|
|
//var_dump($codePrestataire, $codePrestataireAccorde);
|
|
|
|
//var_dump($_SESSION['proforma_envoye']);
|
|
?>
|
|
|
|
<script type="text/javascript">
|
|
|
|
</script>
|
|
|
|
<input class="sr-only" id="facture" name="facture" type="text" value= "<?= $facture ?>" >
|
|
|
|
<input class="sr-only" type="text" id="badcodeGestionBon" name="badcodeGestionBon" value= "<?= $badcodeGestionBon ?>" >
|
|
<input class="sr-only" type="text" id="codeGestionBon" name="codeGestionBon" Value="<?= $codeGestionBon ?>" >
|
|
<input class="sr-only" type="text" id="nbBonsCons" name="nbBonsCons" Value="<?= $nbBonsCons ?>" >
|
|
<input class="sr-only" type="text" id="ententePrealableSea" name="ententePrealableSea" Value="<?= $ententePrealable ?>" >
|
|
|
|
<legend><?= _("Séances en interne") ?></legend>
|
|
|
|
<button class="sr-only" id="btn_pop_save_face" name="btn_pop_save_face" type="button" data-bs-toggle="modal" data-bs-target="#pop_rec_faciale" > </button>
|
|
|
|
<table class="table table-responsive table-condensed" style='font-size:9pt;' >
|
|
<tbody>
|
|
<tr>
|
|
<td width="5%" > <?= _("Souscrip.") ?> </td>
|
|
<td width="20%">
|
|
<INPUT style='text-align:center; font-size:11pt;' class="form-control" TYPE="text" id="nomClient" name="nomClient"
|
|
value="<?= $_SESSION['p_nomClient_C'] ?>" onChange="" readonly >
|
|
</td>
|
|
|
|
<td width="5%" align="center" > <?= _("Adh.") ?> </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"> <?= _("Bénéf.") ?> </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 Bénéf.") ?> </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 ?>" readonly >
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<table class="table table-responsive table-condensed" style='font-size:9pt;' >
|
|
<tbody>
|
|
<tr>
|
|
<td width="10%" > <?= _("Prescription du") ?> </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="10%" align="center"> <?= _("No du 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="numeroBonKine" name="numeroBonKine" value="<?= $numeroBonKine ?>" readonly > </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>
|
|
|
|
<?php if ($facture=="1"): ?>
|
|
<tr>
|
|
<td colspan="8" align='center' class="alert alert-danger" style='font-size:12pt;'> <?= _("Dejà facturée !") ?> </td>
|
|
</tr>
|
|
<?php endif; ?>
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
<?php if ($codeActePrescription!=""): ?>
|
|
<div id="ordonnance">
|
|
<input class="sr-only" type="number" id="prixActe" name="prixActe" value="<?= $this->nettoyer($prescription['valeurActeSeance']) ?>" >
|
|
<input class="sr-only" type="number" id="valeurActe" name="valeurActe" value="<?= $this->nettoyer($prescription['valeurActeSeance']) ?>" >
|
|
<input class="sr-only" type="number" id="prixBase" name="prixBase" value="<?= $this->nettoyer($prescription['prixBaseSeance']) ?>" >
|
|
|
|
|
|
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
|
<tbody>
|
|
<?php if($nbFait == '0' || ($nbFait > '0' && $nbFaitPrestataire > '0')): ?>
|
|
<tr>
|
|
<td width="10%" style='font-size:13pt;'> <?= _("Acte") ?> </td>
|
|
<?php if($ententePrealable=='2'): ?>
|
|
<td colspan="5" style='background-color: yellow; font-size:13pt;'> <?= $libelleActePrescription ?> </td>
|
|
<?php elseif($ententePrealable=='1'): ?>
|
|
<td colspan="5" style='background-color: #00ff00; font-size:13pt;'> <?= $libelleActePrescription ?> </td>
|
|
<?php elseif($ententePrealable=='9'): ?>
|
|
<td colspan="5" style='background-color: red;color:white; font-size:13pt;'> <?= $libelleActePrescription ?> </td>
|
|
<?php else: ?>
|
|
<td colspan="5" style="background-color: #5c656a; color:white; font-size:13pt;"> <?= $libelleActePrescription ?> </td>
|
|
<?php endif; ?>
|
|
|
|
<td align="center"><?= _("Durée (Jour)") ?></td>
|
|
<td>
|
|
<input style="font-size:10pt;" type="number" id="dureeTraitement" name="dureeTraitement" class="form-control" value="<?= $dureeTraitement ?>" type="text" onchange="javascript:maj_duree_traitement_seance_cso();">
|
|
</td>
|
|
</tr>
|
|
<?php else: ?>
|
|
<tr>
|
|
<td width="10%" style='font-size:13pt;'> <?= _("Acte") ?> </td>
|
|
|
|
<?php if($ententePrealable=='2'): ?>
|
|
<td colspan="7" style='background-color: yellow;'> <?= $libelleActePrescription ?> </td>
|
|
<?php elseif($ententePrealable=='1'): ?>
|
|
<td colspan="7" style='background-color: #00ff00;'> <?= $libelleActePrescription ?> </td>
|
|
<?php elseif($ententePrealable=='9'): ?>
|
|
<td colspan="7" style='background-color: red;color:white;'> <?= $libelleActePrescription ?> </td>
|
|
<?php else: ?>
|
|
<td colspan="7"> <?= $libelleActePrescription ?> </td>
|
|
<?php endif; ?>
|
|
</tr>
|
|
<?php endif; ?>
|
|
|
|
<tr>
|
|
<td width="10%"> <?= _("Nbre Prescrit") ?> </td>
|
|
<td width="15%" > <input class="form-control" style="text-align: center; font-size:10pt;" type="number" id="nbSeance" name="nbSeance" value="<?= $this->nettoyer($prescription['nbSeance']) ?>" readonly > </td>
|
|
|
|
<td width="10%" align="center"> <?= _("Nbre Modifié") ?> </td>
|
|
<td width="15%" > <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($prescription['quantiteCorrigee']) ?>" readonly > </td>
|
|
|
|
<td width="10%" align="center"> <?= _("Nbre Effectué") ?> </td>
|
|
<td width="15%" > <input class="form-control" style="text-align: center; font-size:10pt;" type="number" id="nbLivreOld" name="nbLivreOld" value="<?= $this->nettoyer($prescription['nbLivreOld']) ?>" readonly > </td>
|
|
|
|
<td width="10%" align="center"> <?= _("Nbre Restant") ?> </td>
|
|
<td width="15%"> <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($prescription['nbRestantOld']) ?>" readonly > </td>
|
|
</tr>
|
|
<tr style='background-color:white'>
|
|
<td colspan="8" height="20"></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div style="margin-top:20px; margin-bottom:20px;">
|
|
<?php if($nbRestantOld>"0") : ?>
|
|
<input class="sr-only" type="number" id="fraisRetenuSeance" name="fraisRetenuSeance" value="0" >
|
|
|
|
<?php if($nbFait == '0' && $_SESSION['proforma_envoye'] == '0' && $codePrestataireAccorde ==''): ?>
|
|
<button type="button" id="btn_proforma" name="btn_proforma" class="form-control" style="background-color:yellow; font-weight:bold; font-size:12pt;" onclick="javascript:proforma_seance_cso('<?= $codeActePrescription ?>');"> <?= _("Envoyer une demande d'accord") ?></button>
|
|
<?php elseif($_SESSION['proforma_envoye']=='1' && $proformaAccorde=='0' && $codePrestataireAccorde ==''): ?>
|
|
<button type="button" id="btn_actualiser" name="btn_actualiser" class="form-control btn btn-primary" style='font-size:12pt;' onclick="javascript:actualiser_seance_cso()"> <?= _("Actualiser") ?></button>
|
|
|
|
<marquee behavior="scroll" direction="left" scrollamount="10" style="color:red; background-color:yellow; font-size:14pt">
|
|
<?= _("Veuillez patienter un instant. Le traitement de la demande d'accord est toujours en cours.") ?>
|
|
</marquee>
|
|
<?php elseif($_SESSION['proforma_envoye']=='1' && $proformaAccorde=='1' && $codePrestataireAccorde == $codePrestataire): ?>
|
|
<button type="button" id="btn_InitSession" name="btn_InitSession" class="form-control btn btn-primary" data-bs-toggle="modal" data-bs-target="#popInitSession" style='font-size:12pt;' > <?= _("Commencer les séances de")." ".$libelleActePrescription."..." ?></button>
|
|
<?php else: ?>
|
|
<div class="alert alert-danger" style="height:38px; padding:5px;" >
|
|
<H4><?= _("LES SEANCES SONT EN COURS CHEZ UN AUTRE PRESTATAIRE") ?> </H4>
|
|
</div>
|
|
<?php endif; ?>
|
|
<?php else: ?>
|
|
<div class="alert alert-danger" style="height:38px; padding:5px;" >
|
|
<H4><?= _("Séances terminées!") ?></H4>
|
|
</div>
|
|
<table class="table table-responsive table-condensed" style='font-size:10pt;' >
|
|
<tbody>
|
|
|
|
<?php if($facture == '0'): ?>
|
|
<tr>
|
|
<td colspan="3"><textarea style='font-size:10pt;' id ="rapportTraitement" name="rapportTraitement" rows="20" class="form-control-lg" placeholder="<?= _('Rapport traitement ici') ?>" required AUTOCOMPLETE="OFF" autofocus style="width:100%;"><?= $rapportTraitement;?></textarea></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td colspan="3" align="center"> <input style='font-size:10pt;' type="button" class = "form-control btn btn-primary" value="<?= _("Enregistrer") ?>" onClick="javascript:enregistrer_rapport_seance();"> </td>
|
|
</tr>
|
|
<?php else: ?>
|
|
<tr>
|
|
<td colspan="3"><textarea style='font-size:10pt;' id ="rapportTraitement" name="rapportTraitement" rows="20" class="form-control-lg" placeholder="<?= _('Rapport traitement ici') ?>" disabled style="width:100%;"><?= $rapportTraitement;?></textarea></td>
|
|
</tr>
|
|
<?php endif; ?>
|
|
</tbody>
|
|
</table>
|
|
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
</div>
|
|
|
|
<div id="div_facturation_seance" style="border: 2px double #5c656a;">
|
|
|
|
</div>
|
|
|
|
<div id="div_liste_seance">
|
|
<?php if($ententePrealable<2): ?>
|
|
<?php if ($codeActePrescription!=""): ?>
|
|
<?php if($nbFait == '0' || ($nbFait > '0' && $nbFaitPrestataire > '0')): ?>
|
|
|
|
<div id="recap">
|
|
<table class="table table-responsive table-condensed" style='font-size:12pt;' >
|
|
<tbody>
|
|
<tr>
|
|
<td align="center"width="10%"> <?= _("Réclamé") ?> </td>
|
|
<td > <INPUT class="form-control" TYPE="text" value="<?= format_N($totalseances['fraisReel_total']) ?>" readonly style="text-align: center; font-size:12pt; font-weight:bold; background-color:#5f9ea0 !important; color:white;" > </td>
|
|
|
|
<td align="center" width="13%"> <?= _("Part Assuré") ?> </td>
|
|
<td > <INPUT class="form-control" TYPE="text" value="<?= format_N($totalseances['montantTm_total']+$totalseances['depassement_total']) ?>" readonly style="text-align: center; font-size:12pt; font-weight:bold; background-color:#ba74d4 !important; color:white;" > </td>
|
|
|
|
|
|
<td align="center" > <?= _("A Rembourser") ?> </td>
|
|
<td > <INPUT class="form-control" TYPE="text" value="<?= format_N($totalseances['montantArembourser_total']) ?>" readonly style="text-align: center; font-size:12pt; font-weight:bold; background-color:rgba(255, 0, 127) !important; color:white" > </td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<legend> <?= _("Séances Effectuées") ?> </legend>
|
|
<?php $nbSeances = 0; ?>
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:9pt;">
|
|
<thead>
|
|
<tr>
|
|
<th style="text-align:center"> <?= _("Acte") ?> </th>
|
|
<th style="text-align:center"> Date </th>
|
|
<th style="text-align:center"> <?= _("Nombre") ?> </th>
|
|
<th style="text-align:center"> <?= _("Prestataire") ?> </th>
|
|
<th style="text-align:center"> <?= _("Bon Séance") ?> </th>
|
|
<!--<th style="text-align:center"> <?= _("Base") ?> </th>-->
|
|
<th style="text-align:center"> <?= _("Prix Unitaire") ?> </th>
|
|
<th style="text-align:center"> <?= _("Prix Total") ?> </th>
|
|
<th style="text-align:center"> <?= _("TM") ?> </th>
|
|
<th style="text-align:center"> <?= _("Mont. TM") ?> </th>
|
|
<th style="text-align:center"> <?= _("A Remb") ?> </th>
|
|
<th style="text-align:center"> <?= _("Dépass") ?> </th>
|
|
<th style="text-align:center"> <?= _("Motif") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tfoot>
|
|
<tr>
|
|
<td align="center" colspan="6"> Total </td>
|
|
<td align="center" ><?= format_N($totalseances['fraisReel_total']); ?></td>
|
|
<td></td>
|
|
<td align="center" ><?= format_N($totalseances['montantTm_total']); ?></td>
|
|
<td align="center" ><?= format_N($totalseances['montantArembourser_total']); ?></td>
|
|
<td align="center" ><?= format_N($totalseances['depassement_total']); ?></td>
|
|
<td></td>
|
|
</tr>
|
|
</tfoot>
|
|
|
|
<tbody>
|
|
<?php foreach ($detailseances as $detailseance):
|
|
$idSeance=$this->nettoyer($detailseance['id']);
|
|
$ententePrealable = $this->nettoyer($detailseance['ententePrealable']);
|
|
$codePrestatairePrescription = $this->nettoyer($detailseance['codePrestatairePrescription']);
|
|
$codePrestataire = $this->nettoyer($detailseance['codePrestataire']);
|
|
//var_dump($codePrestataire);
|
|
$nbSeances++;
|
|
|
|
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US")
|
|
{
|
|
$libelleActeSeance = $this->nettoyer($detailseance['libelleActeSeanceEng']);
|
|
}
|
|
else
|
|
{
|
|
$libelleActeSeance = $this->nettoyer($detailseance['libelleActeSeance']);
|
|
}
|
|
|
|
$codeMotifDepassement = $this->nettoyer($detailseance['codeMotifDepassement']);
|
|
|
|
$motif = $this->nettoyer($detailseance['motif']);
|
|
$motifEng = $this->nettoyer($detailseance['motifEng']);
|
|
|
|
$tarif = $this->nettoyer($detailseance['tarif']);
|
|
?>
|
|
<?php if($ententePrealable=='2'): ?>
|
|
<tr style="background-color: yellow;" >
|
|
<?php elseif($ententePrealable=='1'): ?>
|
|
<tr style="background-color: #00ff00;" >
|
|
<?php elseif($ententePrealable=='9'): ?>
|
|
<tr valign="top" style="background-color: red;color:white;">
|
|
<?php else: ?>
|
|
<tr valign="top">
|
|
<?php endif; ?>
|
|
|
|
<td align="center"> <?= $libelleActeSeance ?> </td>
|
|
<td align="center"> <?= dateheureLang($this->nettoyer($detailseance['dateSysteme'])) ?> </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>
|
|
|
|
<?php if($codePrestatairePrescription==$codePrestataire): ?>
|
|
|
|
<td align='center'>
|
|
<button type="button" class="span_link" title="<?= _("Voir le tarif appliqué") ?>" onClick='javascript:tarif_applique("<?= $tarif ?>");'>
|
|
<?= format_N($this->nettoyer($detailseance['valeurActe'])) ?>
|
|
</button>
|
|
</td>
|
|
|
|
<td align='center'> <?= format_N($this->nettoyer($detailseance['fraisReel'])) ?> </td>
|
|
<td align='center'> <?= $this->nettoyer($detailseance['tm'])?></td>
|
|
<td align='center'> <?= format_N($this->nettoyer($detailseance['montantTm'])) ?> </td>
|
|
<td align='center'> <?= format_N($this->nettoyer($detailseance['montantArembourser'])) ?> </td>
|
|
<td align='center'> <?= format_N($this->nettoyer($detailseance['depassement'])) ?> </td>
|
|
<?php if($codeMotifDepassement!=''): ?>
|
|
<td align='center'>
|
|
<button type="button" class="btn btn-info" title="Voir le motif du dépassement..." onClick='javascript:alert_ebene("<?= $motif ?>","<?= $motifEng ?>");'>
|
|
<?= $codeMotifDepassement ?>
|
|
</button>
|
|
</td>
|
|
<?php else: ?>
|
|
<td > </td>
|
|
<?php endif; ?>
|
|
<?php else: ?>
|
|
<td colspan="7"> </td>
|
|
<?php endif; ?>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
<?php endif; ?>
|
|
<?php else: ?>
|
|
<div class="alert alert-danger" style="height:40px; padding:5px; text-align:center; margin-bottom:5px;" >
|
|
<H4> <?= _("AUCUN ACTE N'A ETE SELECTIONNE POUR LA SEANCE") ?> </H4>
|
|
</div>
|
|
<?php endif; ?>
|
|
</div>
|
|
|
|
<div class="modal fade" id="popInitSession" role="dialog">
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
<button id="btn_close_pop_session" name="btn_close_pop_session" type="button" class="close" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
|
|
<h4 class="modal-title"><?= _("Attribuer un bon...") ?> </h4>
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
|
<tbody>
|
|
<tr>
|
|
<td width="20%" > <?= _("Bons Disponibles") ?> </td>
|
|
<td width="30%" > <input class="form-control" style="text-align: center; font-size:10pt;" Value="<?= $nbBonsCons ?>" readonly > </td>
|
|
|
|
<td width="15%" 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>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div id="infosbon">
|
|
<?php if ($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: ?>
|
|
|
|
<?php if($codeGestionBon!="0"): ?>
|
|
<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" && $nbBonsCons<1): ?>
|
|
<div class="alert alert-danger" style="height:40px; padding:5px; text-align:center;" >
|
|
<H4> <?= _("STOCK DE BON EPUISE") ?> </H4>
|
|
</div>
|
|
<?php else: ?>
|
|
<input id="btn_enreg_bon_kine" name="btn_enreg_bon_kine" class = "form-control btn btn-primary" type="button" value="<?= _("Enregistrer") ?>" onClick="javascript:enregistrerbonsseancekinecso();" style='font-size:10pt;' >
|
|
<?php endif; ?>
|
|
<?php else: ?>
|
|
<input class="sr-only" type="text" id="codeEtatBon" name="codeEtatBon" value="">
|
|
<input class="sr-only" type="text" id="numeroBonSave" name="numeroBonSave" value="0">
|
|
|
|
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
|
<tbody>
|
|
<?php if($nbBonsCons<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="20%" > <?= _("Numéro Bon") ?> </td>
|
|
<td width="30%" >
|
|
<input class="form-control" style="text-align: center; font-size:10pt;" type="number" id="numeroBon" name="numeroBon" required AUTOCOMPLETE="OFF"
|
|
onChange="javascript:ajaxinfosbonseancekinecso();" onkeypress="javascript:ctrlkeypress_numeroBon(event);" ></td>
|
|
<td width="15%" > </td>
|
|
<td><input id="btn_enreg_bon_kine" name="btn_enreg_bon_kine" class = "form-control btn btn-primary" type="button" value="<?= _("Enregistrer") ?>" disabled style='font-size:10pt;' ></td>
|
|
</tr>
|
|
<?php endif; ?>
|
|
</tbody>
|
|
</table>
|
|
<?php endif; ?>
|
|
|
|
<?php if (isset($msgErreur)): ?>
|
|
<div id ="msgErreur" class="alert alert-danger" style="height:38px; padding:5px;" >
|
|
<H4><?= $msgErreur ?></H4>
|
|
</div>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
<button id="close_pop_acte" name="close_pop_acte" type="button" class="btn btn-default" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="div_fraisExclu">
|
|
<input class="sr-only" type="text" id="fraisExclu" name="fraisExclu" value="0" >
|
|
</div>
|
|
|
|
<div id="div_test">
|
|
|
|
</div>
|
|
<?php endif; ?>
|