580 lines
24 KiB
PHP
580 lines
24 KiB
PHP
<?php
|
|
$actVisible = $_SESSION['p_actVisible'];
|
|
|
|
//var_dump($consoHosChirurgicale);
|
|
//var_dump($consoHosMedicale);
|
|
?>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
$dateDebutHospit = $this->nettoyer($feuillemaladie['dateDebutHospit']);
|
|
|
|
$facture = $this->nettoyer($feuillemaladie['facture']);
|
|
$bonCaduc = $this->nettoyer($feuillemaladie['bonCaduc']);
|
|
|
|
$modeSaisieFacture = $_SESSION['p_modeSaisieFacture'];
|
|
|
|
if($modeSaisieFacture=="1")
|
|
{
|
|
$bonCaduc = "0";
|
|
}
|
|
|
|
//var_dump($bonCaduc);
|
|
|
|
$dureeHospit = $this->nettoyer($feuillemaladie['dureeHospit']);
|
|
$dureeCorrigeeHospit = $this->nettoyer($feuillemaladie['dureeCorrigeeHospit']);
|
|
$dateFinHospit = $this->nettoyer($feuillemaladie['dateFinHospit']);
|
|
$prolongationHospit = $this->nettoyer($feuillemaladie['prolongationHospit']);
|
|
$dateDebutPrologation = $this->nettoyer($feuillemaladie['dateDebutPrologation']);
|
|
$dureeProlongation = $this->nettoyer($feuillemaladie['dureeProlongation']);
|
|
$dureeCorrigeeProlongation = $this->nettoyer($feuillemaladie['dureeCorrigeeProlongation']);
|
|
$dateFinProlongation = $this->nettoyer($feuillemaladie['dateFinProlongation']);
|
|
$numeroChambreProlongation = $this->nettoyer($feuillemaladie['numeroChambreProlongation']);
|
|
|
|
$noChambre = $this->nettoyer($feuillemaladie['numeroChambre']);
|
|
|
|
$motifHospitalisation = $this->nettoyer($feuillemaladie['motifHospitalisation']);
|
|
$instructionHospit = $this->nettoyer($feuillemaladie['instructionHospit']);
|
|
|
|
$idProlongationFeuille = $this->nettoyer($feuillemaladie['idProlongation']);
|
|
|
|
|
|
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US")
|
|
{
|
|
$typeHospitInit = $this->nettoyer($feuillemaladie['typeHospitInitEng']);
|
|
$typeHospit = $this->nettoyer($feuillemaladie['typeHospitEng']);
|
|
$libelleAvis = $this->nettoyer($feuillemaladie['libelleAvisEng']);
|
|
}
|
|
else
|
|
{
|
|
$typeHospitInit = $this->nettoyer($feuillemaladie['typeHospitInit']);
|
|
$typeHospit = $this->nettoyer($feuillemaladie['typeHospit']);
|
|
$libelleAvis = $this->nettoyer($feuillemaladie['libelleAvis']);
|
|
}
|
|
|
|
$tmHospitalisation = $this->nettoyer($feuillemaladie['tmHospitalisation']);
|
|
$typeHospitInit = $typeHospitInit =='' ? $typeHospit: $typeHospitInit;
|
|
|
|
|
|
$totalHospitalisation = $hospit_total['fraisReel'];
|
|
|
|
$avisHospitalisation = $this->nettoyer($feuillemaladie['avisHospitalisation']);
|
|
?>
|
|
|
|
<input class="sr-only" id="avisHospitalisation" name="avisHospitalisation" type="text" value= "<?= $avisHospitalisation; ?>" >
|
|
<input class="sr-only" id="libelleAvis" name="libelleAvis" type="text" value= "<?= $libelleAvis; ?>" >
|
|
<input class="sr-only" id="nbreActesSansPrix" name="nbreActesSansPrix" type="text" value= "<?= $nbreActesSansPrix; ?>" >
|
|
|
|
|
|
<div id="div_prestations" class="col-12" >
|
|
<input class="sr-only" id="nbreProlongation" name="nbreProlongation" type="text" value= "<?= count($listeProlongations); ?>" >
|
|
<input class="sr-only" id="prixChambre" name="prixChambre" type="text" value= "<?= $prixChambre; ?>" >
|
|
|
|
<div id="recap">
|
|
<table class="table table-responsive table-condensed" style='font-size:12pt;' >
|
|
<tbody>
|
|
<tr>
|
|
<?php
|
|
$hospit_total_reclame = $hospit_total['totalPrixManuel'];
|
|
?>
|
|
<td align="center" style="font-weight:bold;"> <?= _("Réclamé") ?> </td>
|
|
<td > <INPUT id="reclame" name="reclame" class="form-control" TYPE="text" value="<?= format_N($hospit_total_reclame) ?>" readonly style="text-align: center; font-size:12pt; font-weight:bold;"> </td>
|
|
|
|
<td align="center" style="font-weight:bold;"> <?= _("Part Assuré") ?> </td>
|
|
<td > <INPUT id="partAssure" name="partAssure" class="form-control" TYPE="text" value="<?= format_N($hospit_total['montantTm']+$hospit_total['depassement']) ?>" readonly style="text-align: center; font-size:12pt; font-weight:bold; color:red;"> </td>
|
|
|
|
|
|
<td align="center" style="font-weight:bold;"> <?= _("A Rembourser") ?> </td>
|
|
<td > <INPUT id="partAssureur" name="partAssureur" class="form-control" TYPE="text" value="<?= format_N($hospit_total['montantArembourser']) ?>" readonly style="text-align: center; font-size:12pt; font-weight:bold;"> </td>
|
|
</tr>
|
|
|
|
<?php if ($facture=="1" || $bonCaduc=="1"): ?>
|
|
<tr>
|
|
<td colspan="6">
|
|
</td>
|
|
</tr>
|
|
<?php endif; ?>
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div >
|
|
<input class="form-control" style="text-align: center; font-size: 12pt;font-weight: bold;" type="text" value="<?= _("Liste des prestations de prorogation d'hospitalisation")?>" readonly > </td>
|
|
</div>
|
|
|
|
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
|
<tbody>
|
|
<tr>
|
|
|
|
<?php if($modeSaisieFacture == "0"): ?>
|
|
<td width="5%" align="center"> <?= _("Début") ?> </td>
|
|
<td align="center">
|
|
<INPUT class="form-control datepicker" TYPE="text" id="dateDebutHospit" style="font-size:10pt;text-align: center;" value="<?=($dateDebutHospit != '') ? datefr($dateDebutHospit) : datefr(date('Y-m-d'))?>" onchange="javascrpit:majDebutHospitalisation();" disabled>
|
|
</td>
|
|
<td width="5%" align="center"> <?= _("Durée") ?> </td>
|
|
|
|
<td width="10%">
|
|
<input class="form-control" type="text" id="dureeHospit" name="dureeHospit" style="font-size:10pt;text-align: center;" Value="<?=$dureeHospit?>" onChange="javascrpit:majDureeHospitalisation();" disabled>
|
|
</td>
|
|
<?php else: ?>
|
|
<td width="5%" align="center"> <?= _("Début") ?> </td>
|
|
<td align="center">
|
|
<INPUT class="form-control datepicker" TYPE="text" id="dateDebutHospit" style="font-size:10pt;text-align: center;" value="<?= datefr($dateDebutHospit)?>" onchange="javascrpit:majDebutHospitalisation();">
|
|
</td>
|
|
<td width="5%" align="center"> <?= _("Durée") ?> </td>
|
|
<td width="10%">
|
|
<input class="form-control" type="text" id="dureeHospit" name="dureeHospit" style="font-size:10pt;text-align: center;" Value="<?=$dureeHospit?>" onChange="javascrpit:majDureeHospitalisation();">
|
|
</td>
|
|
|
|
<?php endif; ?>
|
|
|
|
<td width="5%" align="center"> <?= _("Corrigée") ?> </td>
|
|
<td width="10%">
|
|
<input class="form-control" type="text" id="dureeCorrigeeHospit" name="dureeCorrigeeHospit" style="background-color: rgb(255,0,0) !important;text-align: center; font-size:10pt; color:white;" Value="<?=$dureeCorrigeeHospit?>" disabled>
|
|
</td>
|
|
|
|
<td width="11%" align="center" class="required"> <?= _("No Chambre") ?> </td>
|
|
<td width="9%"><input id="noChambre" name="noChambre" style="font-size:10pt; text-align:center;" class="form-control" value="<?=$noChambre?>" type="text" onchange="javascrpit:majChambreHospitalisation();" required AUTOCOMPLETE="OFF" > </td>
|
|
|
|
<td width="5%" align="center"> <?= _("Fin") ?> </td>
|
|
<td>
|
|
<?php if($modeSaisieFacture == "0"): ?>
|
|
<INPUT class="form-control" TYPE="text" id="dateFinHospitalisation" name="dateFinHospitalisation" style="font-size:10pt;text-align: center;" value="<?=datefr($dateFinHospit)?>" disabled>
|
|
<?php else: ?>
|
|
<div id="div_datefin">
|
|
<INPUT class="form-control" TYPE="text" id="dateFinHospitalisation" name="dateFinHospitalisation" style="font-size:10pt;text-align: center;" value="<?=datefr($dateFinHospit)?>" disabled>
|
|
</div>
|
|
<?php endif; ?>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td colspan="10" align="center">
|
|
<a style="font-size:12pt;" href="javascript:aff();"><span id="aff"><?= _("Afficher + de détails...")?></span></a><a style="font-size:12pt;" href="javascript:cach();"><span id="cach"><?= _("Masquer les détails...")?></span></a>
|
|
</td>
|
|
</tr>
|
|
|
|
<?php if($dateDebutHospit != ''): ?>
|
|
<tr id="tr_type">
|
|
<td width="5%" align="center"> <?= _("Type") ?> </td>
|
|
<?php if($plafondActeHospit == "9999999999"): ?>
|
|
|
|
<td colspan="7">
|
|
<INPUT class="form-control" TYPE="text" style="font-size:10pt;" value="<?=$typeHospitInit?>" disabled>
|
|
</td>
|
|
|
|
<td align="center"><?= _("T M") ?></td>
|
|
<td >
|
|
<INPUT class="form-control" TYPE="text" style="font-size:10pt; text-align:center;" value="<?=$tmHospitalisation?>" disabled>
|
|
</td>
|
|
|
|
<?php else: ?>
|
|
|
|
<td colspan="5">
|
|
<INPUT class="form-control" TYPE="text" style="font-size:10pt;" value="<?=$typeHospitInit?>" disabled>
|
|
</td>
|
|
|
|
<td align="center"><?= _("T M") ?></td>
|
|
<td >
|
|
<INPUT class="form-control" TYPE="text" style="font-size:10pt; text-align:center;" value="<?=$tmHospitalisation?>" disabled>
|
|
</td>
|
|
|
|
<td width="5%" align="center"> <?= _("Plafond") ?> </td>
|
|
<?php
|
|
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US"){
|
|
$act_periodicite = $act_periodiciteEng;
|
|
}
|
|
?>
|
|
<td >
|
|
<INPUT class="form-control" TYPE="text" style="font-size:10pt; font-weight:bold; text-align:center; background-color:#f5fffa; color:red;" value="<?=format_N($plafondActeHospit)." ".$_SESSION['p_devise_C']." ".$act_periodicite ?>" disabled>
|
|
</td>
|
|
<?php endif; ?>
|
|
</tr>
|
|
<?php else: ?>
|
|
|
|
<tr id="tr_type">
|
|
<td width="5%" align="center"> <?= _("Type") ?> </td>
|
|
<?php if($plafondActeHospit == "9999999999"): ?>
|
|
|
|
<td colspan="7">
|
|
<INPUT class="form-control" TYPE="text" style="font-size:10pt;" value="<?=$typeHospit?>" disabled>
|
|
</td>
|
|
|
|
<td align="center"><?= _("T M") ?></td>
|
|
<td >
|
|
<INPUT class="form-control" TYPE="text" style="font-size:10pt; text-align:center;" value="<?=$tmHospitalisation?>" disabled>
|
|
</td>
|
|
|
|
<?php else: ?>
|
|
|
|
<td colspan="5">
|
|
<INPUT class="form-control" TYPE="text" style="font-size:10pt;" value="<?=$typeHospit?>" disabled>
|
|
</td>
|
|
|
|
<td align="center"><?= _("T M") ?></td>
|
|
<td >
|
|
<INPUT class="form-control" TYPE="text" style="font-size:10pt; text-align:center;" value="<?=$tmHospitalisation?>" disabled>
|
|
</td>
|
|
|
|
<td width="5%" > <?= _("Plafond") ?> </td>
|
|
<td >
|
|
<INPUT class="form-control" TYPE="text" style="font-size:10pt; font-weight:bold; text-align:center; background-color:#f5fffa; color:red;" value="<?=format_N($plafondActeProlongation)." ".$_SESSION['p_devise_C']." ".$act_periodicite;?>" disabled>
|
|
</td>
|
|
<?php endif; ?>
|
|
</tr>
|
|
<?php endif; ?>
|
|
|
|
<tr id="tr_motif">
|
|
<td width="5%" > <?= _("Motif") ?> </td>
|
|
<td colspan="9">
|
|
<INPUT class="form-control" TYPE="text" style="font-size:10pt;" value="<?=$motifHospitalisation?>" disabled>
|
|
</td>
|
|
</tr>
|
|
<tr id="tr_instruction">
|
|
<td width="5%" > <?= _("Instruction") ?> </td>
|
|
<td colspan="9">
|
|
<INPUT class="form-control" TYPE="text" style="font-size:10pt;" value="<?=$instructionHospit?>" disabled>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:10pt;">
|
|
<thead>
|
|
<tr>
|
|
<th width="5%" style='text-align:center'> <?= _("Suppr") ?> </th>
|
|
<th style="text-align:center"> <?= _("Acte <b> - [Plafond]</b>") ?> </th>
|
|
<th width="5%" style="text-align:center"> <?= _("Accord") ?> </th>
|
|
<th style="text-align:center"> <?= _("PU Réclamé") ?> </th>
|
|
<th style="text-align:center"> <?= _("PU Appliqué") ?> </th>
|
|
<th width="5%" style="text-align:center"> <?= _("Qté") ?> </th>
|
|
<th style="text-align:center"> <?= _("PT Réclamé") ?> </th>
|
|
<th style="text-align:center"> <?= _("PT Appliqué") ?> </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>
|
|
<?php
|
|
$prestation_total_reclame = $this->nettoyer($prestations_total['totalPrixManuel']);
|
|
?>
|
|
<td colspan="6" style='text-align:center'> <?= _("Total (".count($prestations).")") ?> </td>
|
|
<td align='center'><?= format_N($prestation_total_reclame) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($prestations_total['fraisReel'])) ?></td>
|
|
<td></td>
|
|
<td align='center'><?= format_N($this->nettoyer($prestations_total['montantTm'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($prestations_total['montantArembourser'])) ?></td>
|
|
<td align='center'><?= format_N($this->nettoyer($prestations_total['depassement'])) ?></td>
|
|
<td></td>
|
|
</tr>
|
|
<?php if($prestation_total_reclame == "0"): ?>
|
|
<tr style='background-color:white'>
|
|
<td colspan="13" height="8"></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="13" style="background-color:yellow">
|
|
<marquee behavior="scroll" direction="left" scrollamount="10" style="background-color:yellow; color:red; font-size:12pt">
|
|
<?= _("Veuillez saisir vos prix de prestation dans la zone PU Réclamé ou cliquer sur le bouton rouge pour retirer les lignes qui n'ont pas de prix. Merci pour votre compréhension.") ?>
|
|
</marquee>
|
|
</td>
|
|
</tr>
|
|
<?php endif; ?>
|
|
</tfoot>
|
|
|
|
<tbody>
|
|
|
|
<?php
|
|
foreach ($prestations as $prestation):
|
|
$idPrestationactes=$this->nettoyer($prestation['id']);
|
|
$supprimable = $prestation['supprimable'];
|
|
$codeTypePrestation=$this->nettoyer($prestation['codeTypePrestation']);
|
|
$ententePrealable=$this->nettoyer($prestation['ententePrealable']);
|
|
$autorisation=$this->nettoyer($prestation['autorisation']);
|
|
$codeTarifActe=$this->nettoyer($prestation['codeTarifActe']);
|
|
|
|
|
|
$valeurActeManuel = $this->nettoyer($prestation['valeurActeManuel']);
|
|
|
|
$libelleConsommable=$this->nettoyer($prestation['libelleConsommable']);
|
|
|
|
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US")
|
|
{
|
|
$libelleActe = substr($this->nettoyer($prestation['libelleActeEng']),0,57);
|
|
}
|
|
else
|
|
{
|
|
$libelleActe = substr($this->nettoyer($prestation['libelleActe']),0,57);
|
|
}
|
|
|
|
$codeActe = $this->nettoyer($prestation['codeActe']);
|
|
|
|
if($codeActe == "CSM"){
|
|
$libelleActe = substr($libelleConsommable,0,57);
|
|
}
|
|
|
|
if($actVisible!="1")
|
|
{
|
|
$libelleActe = $codeActe;
|
|
}
|
|
$valeurActe = $this->nettoyer($prestation['valeurActe']);
|
|
|
|
$plafondActe = $this->nettoyer($prestation['plafondActe']);
|
|
|
|
//var_dump($plafondActe);
|
|
|
|
|
|
$plafond = (($plafondActe == $valeurActe) && ($valeurActe > "0"))?"1":"0";
|
|
|
|
if ($plafondActe > "0" && $plafondActe !="9999999999"){
|
|
$forfaitPlafond = " - [".format_N($plafondActe)."]";
|
|
}else{
|
|
$forfaitPlafond = "";
|
|
}
|
|
|
|
$prixTarif = $this->nettoyer($prestation['prixTarif']);
|
|
|
|
//var_dump($tarif);
|
|
|
|
if($modeSaisieFacture=="1")
|
|
{
|
|
$supprimable = "1";
|
|
//$facture = '0';
|
|
}
|
|
|
|
//sp_p_miseaniveau_hospitalisation
|
|
|
|
$codeMotifDepassement = $this->nettoyer($prestation['codeMotifDepassement']);
|
|
|
|
$motif = $this->nettoyer($prestation['motif']);
|
|
$motifEng = $this->nettoyer($prestation['motifEng']);
|
|
|
|
$tarif = $this->nettoyer($prestation['tarif']);
|
|
|
|
$prixModifiableEnHospit = $this->nettoyer($prestation['tarif']);
|
|
|
|
$acteChambre = $this->nettoyer($prestation['acteChambre']);
|
|
|
|
//var_dump($codeMotifDepassement);
|
|
?>
|
|
<tr valign="top">
|
|
<?php if ($supprimable=="0" || $facture=='1' || $bonCaduc=='1' || $ententePrealable=='1'): ?>
|
|
<td> </td>
|
|
<?php elseif(($acteChambre=="1") || ($prolongationHospit=="1" && $valeurActeManuel > "0" && $ententePrealable!='2')): ?>
|
|
<td></td>
|
|
<?php else: ?>
|
|
<td>
|
|
<button type="button" class="form-control btn btn-danger" onClick="javascript:supprimer_acte_medical_hospitalisation('<?= $idPrestationactes ?>', '<?= $codeTypePrestation ?>');">
|
|
<i class="fa fa-times" aria-hidden="true"></i>
|
|
</button>
|
|
</td>
|
|
<?php endif; ?>
|
|
|
|
<td > <?= $libelleActe."<b>".$forfaitPlafond."</b>" ?> </td>
|
|
|
|
<?php if($ententePrealable<>"0"): ?>
|
|
<?php if($ententePrealable=='2'): ?>
|
|
<td align='center' style="background-color: yellow;"> <input type="checkbox" checked disabled> </td>
|
|
<?php elseif($ententePrealable=='1'): ?>
|
|
<td align='center' style="background-color: #00ff00;"> <input type="checkbox" checked disabled> </td>
|
|
<?php elseif($ententePrealable=='9'): ?>
|
|
<td align='center' style="background-color: red;color:white;"> <input type="checkbox" checked disabled> </td>
|
|
<?php else: ?>
|
|
<td align='center'> <input type="checkbox" checked disabled> </td>
|
|
<?php endif; ?>
|
|
<?php else: ?>
|
|
<td align='center' > <input type="checkbox" disabled></td>
|
|
<?php endif; ?>
|
|
|
|
<td align='center'>
|
|
<button type="button" class="span_link" title="<?= _("Voir le tarif appliqué") ?>" onClick='javascript:tarif_applique("<?= $tarif ?>");'>
|
|
<?= format_N($valeurActeManuel) ?>
|
|
</button>
|
|
</td>
|
|
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['valeurActe'])) ?></td>
|
|
|
|
<?php if ($facture=='1' || $bonCaduc=='1' || $acteChambre=="1" || $prolongationHospit=="1" || $plafond=="1" || $ententePrealable =='1'): ?>
|
|
<td align='center'><?= $this->nettoyer($prestation['quantite']) ?></td>
|
|
<?php else: ?>
|
|
<td align='center' width="8%">
|
|
<INPUT style='text-align:center; font-size:10pt;' class="form-control" TYPE="text" value="<?= $this->nettoyer($prestation['quantite']) ?>"
|
|
onChange="ajax_maj_qte_acte_hospitalisation('<?=$idPrestationactes?>', this.value, this);" onBlur="controle_numerique(this);">
|
|
</td>
|
|
<?php endif; ?>
|
|
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['prixManuel'])) ?></td>
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['fraisReel'])) ?></td>
|
|
<td align='center'> <?= $this->nettoyer($prestation['tm'])?></td>
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['montantTm'])) ?></td>
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['montantArembourser'])) ?></td>
|
|
<td align='center'> <?= format_N($this->nettoyer($prestation['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; ?>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
<tr style='background-color:white'>
|
|
<td colspan="13" height="8"></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<!-- -->
|
|
|
|
<?php
|
|
if ($prolongationHospit=="1" && ($avisHospitalisation == "1" || $avisHospitalisation=="9")): ?>
|
|
<div >
|
|
<input class="form-control" style="text-align: center; font-size: 12pt;font-weight: bold;" type="text" value="<?= _("Liste des prestations de prorogation d'hospitalisation")?>" readonly > </td>
|
|
</div>
|
|
|
|
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
|
<tbody>
|
|
<?php
|
|
$i = 0;
|
|
foreach ($listeProlongations as $v):
|
|
$idProlongation =$this->nettoyer($v['id']);
|
|
|
|
$plafondActeProlongation = $this->nettoyer($v['plafondActeProlongation']);
|
|
|
|
$act_periodicite = $this->nettoyer($v['act_periodicite']);
|
|
|
|
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US"){
|
|
$act_periodicite = $this->nettoyer($v['act_periodiciteEng']);
|
|
}
|
|
|
|
$totalArembourserProlongation = $this->nettoyer($v['totalArembourserProlongation']);
|
|
|
|
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US")
|
|
{
|
|
$typeHospit = $this->nettoyer($v['typeHospitEng']);
|
|
}
|
|
else
|
|
{
|
|
$typeHospit = $this->nettoyer($v['typeHospit']);
|
|
}
|
|
|
|
$tmHospitalisation = $this->nettoyer($v['tmHospitalisation']);
|
|
$libelleplafondActeProlongation = ($plafondActeProlongation == "9999999999") ? "" : " - [".format_N($plafondActeProlongation)." ".$_SESSION['p_devise_C']."]";
|
|
|
|
$i++;
|
|
?>
|
|
|
|
<tr>
|
|
<td width="5%" align="center"> <?= _("Numéro") ?> </td>
|
|
<td align="center">
|
|
<INPUT class="form-control" TYPE="text" style="font-size:10pt;text-align: center;" value="<?= $i?>" disabled>
|
|
</td>
|
|
<td width="5%" align="center"> <?= _("Début") ?> </td>
|
|
<td align="center">
|
|
<INPUT class="form-control" TYPE="text" style="font-size:10pt;text-align: center;" value="<?=datefr($this->nettoyer($v['debut']))?>" disabled>
|
|
</td>
|
|
<td width="5%" align="center"> <?= _("Durée") ?> </td>
|
|
<td width="8%">
|
|
<input class="form-control" type="text" style="font-size:10pt;text-align: center;" Value="<?=$this->nettoyer($v['duree'])?>" disabled>
|
|
</td>
|
|
<td width="5%" align="center"> <?= _("Corrigée") ?> </td>
|
|
<td width="8%">
|
|
<input class="form-control" type="text" style="background-color: rgb(255,0,0) !important;text-align: center; font-size:10pt; color:white;" Value="<?=$this->nettoyer($v['dureeCorrigee'])?>" disabled>
|
|
</td>
|
|
<td width="11%" align="center" class="required"> <?= _("No Chambre") ?> </td>
|
|
<td width="8%">
|
|
<?php if($facture == "0" && $bonCaduc =="0"): ?>
|
|
<input style="font-size:10pt; text-align:center;" class="form-control" id="noChambrePro<?= $i?>" name="noChambrePro<?= $i?>" type="text" Value="<?=$this->nettoyer($v['numeroChambre'])?>" onchange="javascrpit:majChambreProrogation('<?= $idProlongation?>',this.value);" required AUTOCOMPLETE="OFF" >
|
|
<?php else: ?>
|
|
<input style="font-size:10pt; text-align:center;" class="form-control" id="noChambrePro<?= $i?>" name="noChambrePro<?= $i?>" type="text" Value="<?=$this->nettoyer($v['numeroChambre'])?>" disabled>
|
|
<?php endif; ?>
|
|
</td>
|
|
|
|
|
|
<td width="5%" align="center"> <?= _("Fin") ?> </td>
|
|
<td>
|
|
<INPUT class="form-control" TYPE="text" style="font-size:10pt;text-align: center;" value="<?=datefr($this->nettoyer($v['fin']))?>" disabled>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td colspan="12" align="center">
|
|
<a style="font-size:12pt;" href="javascript:affLigneTab(<?= $i?>);"><span id="aff<?= $i?>"><?= _("Afficher + de détails...")?></span></a><a style="font-size:12pt;" href="javascript:cachLigneTab(<?= $i?>);"><span id="cach<?= $i?>"><?= _("Masquer les détails...")?></span></a>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr id="tr_type<?= $i?>">
|
|
<td width="5%" align="center"> <?= _("Type") ?> </td>
|
|
<?php if($plafondActeProlongation == "9999999999" || $plafondActeProlongation == "0"): ?>
|
|
<td colspan="9">
|
|
<INPUT class="form-control" TYPE="text" style="font-size:10pt;" value="<?=$typeHospit?>" disabled>
|
|
</td>
|
|
<td align="center"><?= _("T M") ?></td>
|
|
<td >
|
|
<INPUT class="form-control" TYPE="text" style="font-size:10pt; text-align:center;" value="<?=$tmHospitalisation?>" disabled>
|
|
</td>
|
|
<?php else: ?>
|
|
<td colspan="7">
|
|
<INPUT class="form-control" TYPE="text" style="font-size:10pt;" value="<?=$typeHospit?>" disabled>
|
|
</td>
|
|
<td align="center"><?= _("T M") ?></td>
|
|
<td >
|
|
<INPUT class="form-control" TYPE="text" style="font-size:10pt; text-align:center;" value="<?=$tmHospitalisation?>" disabled>
|
|
</td>
|
|
<td width="5%" align="center"> <?= _("Plafond") ?> </td>
|
|
<td >
|
|
<INPUT class="form-control" TYPE="text" style="font-size:10pt; font-weight:bold; text-align:center; background-color:#f5fffa; color:red;" value="<?= $libelleplafondActeProlongation; ?>" disabled>
|
|
</td>
|
|
<?php endif; ?>
|
|
</tr>
|
|
|
|
<tr id="tr_motif<?= $i?>">
|
|
<td width="5%" > <?= _("Motif") ?> </td>
|
|
<td colspan="11">
|
|
<INPUT class="form-control" TYPE="text" style="font-size:10pt;" value="<?=$this->nettoyer($v['motifProlongation'])?>" disabled>
|
|
</td>
|
|
</tr>
|
|
<tr id="tr_instruction<?= $i?>">
|
|
<td width="5%" > <?= _("Instruction") ?> </td>
|
|
<td colspan="11">
|
|
<INPUT class="form-control" TYPE="text" style="font-size:10pt;" value="<?=$this->nettoyer($v['motifAssure'])?>" disabled>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="12">
|
|
<script>
|
|
affiche_prestations_prolongation(<?= $idProlongation?>,<?= $i?>);
|
|
</script>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td colspan="12">
|
|
<div id="div_prestations_prolongation<?= $i?>">
|
|
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
<?php endforeach; ?>
|
|
<tr style='background-color:white'>
|
|
<td colspan="10" height="8"></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<?php endif; ?>
|
|
</div>
|
|
|