120 lines
5.4 KiB
PHP
120 lines
5.4 KiB
PHP
<?php
|
|
$this->titre = "INTER-SANTE - Ouverture Dossier";
|
|
|
|
$badcodeGestionBon = "1";
|
|
$tab_gestion_bon = array("0", "1", "2");
|
|
if (in_array($codeGestionBon, $tab_gestion_bon))
|
|
{
|
|
$badcodeGestionBon = "0";
|
|
}
|
|
$modeSaisieFacture = $_SESSION['p_modeSaisieFacture'] ;
|
|
|
|
$tm = ($_SESSION['p_tm_TP']>"0") ? $_SESSION['p_tm_TP'] : $_SESSION['p_tm_C'];
|
|
?>
|
|
|
|
<input class="sr-only" id="badcodeGestionBon" name="badcodeGestionBon" type="text" value= "<?= $badcodeGestionBon ?>" >
|
|
<input class="sr-only" id="delaiCarenceRaisonconsultation" name="delaiCarenceRaisonconsultation" type="number" value= "0" >
|
|
<input class="sr-only" id="appliquerDelaiCarence" name="appliquerDelaiCarence" type="text" value= "0" >
|
|
|
|
|
|
<?php if ($badcodeGestionBon=="1") : ?>
|
|
<div class="alert alert-danger" style="height:30px; padding:5px; text-align:center;" >
|
|
<H4> <?= _("REVOIR LE TYPE DE GESTION DES BONS") ?> </H4>
|
|
</div>
|
|
<?php else: ?>
|
|
<form id="frmconsultation" name="frmconsultation" method="post" >
|
|
<input class="sr-only" type="text" id="codeTypePrestation" name="codeTypePrestation" value="CONS">
|
|
<input class="sr-only" type="text" id="codeMedecin" name="codeMedecin">
|
|
<input class="sr-only" type="text" id="nbBonsCons" name="nbBonsCons" Value="<?= $nbBonsCons ?>" >
|
|
<input class="sr-only" type="text" id="codeGestionBon" name="codeGestionBon" Value="<?= $codeGestionBon ?>" >
|
|
|
|
<legend> <?= _("Ouverture Dossier") ?> </legend>
|
|
|
|
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
|
<tbody>
|
|
<tr>
|
|
<td width="10%" > <?= _("T M") ?> </td>
|
|
<td width="30%" > <input class="form-control" style="background-color: rgb(190,190,190);text-align: center; font-size:10pt;'" type="number" id="tauxCouverture" name="tauxCouverture" value="<?= $tm ?>" readonly ></td>
|
|
|
|
<td width="10%" align="center" > <?= _("Consultation") ?> </td>
|
|
<td >
|
|
<INPUT class="form-control" TYPE="text" id="dateSurvenance" NAME="dateSurvenance" Value="<?= $_SESSION['p_dateFactureReellefr_C'] ?>" readonly style='font-size:10pt;' >
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
<td> <?= _("Bons Disponibles") ?> </td>
|
|
<td> <input class="form-control" style="text-align: center; font-size:10pt;" Value="<?= $nbBonsCons ?>" 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>
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
<div id="infosbon">
|
|
<?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:30px; padding:5px; text-align:center;" >
|
|
<H4> <?= _("STOCK DE BON EPUISE") ?> </H4>
|
|
</div>
|
|
<?php else: ?>
|
|
<input id="btn_enreg" name="btn_enreg" class = "form-control btn btn-primary" type="button" value="<?= _("Enregistrer") ?>" onClick="javascript:enregistrerinitconsultation();" 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">
|
|
|
|
<?php if($nbBonsCons<1): ?>
|
|
<input class="sr-only" type="number" id="numeroBon" name="numeroBon" required >
|
|
<div class="alert alert-danger" style="height:30px; padding:5px; text-align:center;" >
|
|
<H4> <?= _("STOCK DE BON EPUISE") ?> </H4>
|
|
</div>
|
|
<?php else: ?>
|
|
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
|
<tbody>
|
|
<tr>
|
|
<td width="10%" > <?= _("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
|
|
onChange="javascript:ajaxinfosboninitconsultation();" onkeypress="javascript:ctrlkeypress_numeroBon(event);"
|
|
>
|
|
</td>
|
|
|
|
<td width="10%" > </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 if (isset($msgErreur)): ?>
|
|
<div id ="msgErreur" class="alert alert-danger" style="height:30px; padding:5px;" >
|
|
<H4><?= $msgErreur ?></H4>
|
|
</div>
|
|
<?php endif; ?>
|
|
</div>
|
|
|
|
</form>
|
|
<?php endif; ?>
|
|
|
|
<div id="infodelaicarence" style="display: none">
|
|
<input type="number" id="delaiCarenceRaisonconsultation_info" name="delaiCarenceRaisonconsultation_info" value="0">
|
|
<input type="text" id="appliquerDelaiCarence_info" name="appliquerDelaiCarence_info" value="0">
|
|
</div>
|