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

108 lines
5.4 KiB
PHP
Executable File

<?php
$this->titre = "Intersanté - Historique Dossiers Contestés";
?>
<legend> <?= _("Consulter les dossiers contestés")?> </legend>
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td width="10%" class="required"><i class="fa fa-calendar" ></i> <?= _(" Période du") ?> </td>
<td width="20%" ><INPUT style='text-align:center; font-size:10pt;' class="form-control datepicker" TYPE="text" id="d1" NAME="d1" value="<?= dateLang($_SESSION['p_d1m_C'], $_SESSION['p_lang']) ?>" required></td>
<td width="5%" align="center" class="required"> <?= _("au") ?> </td>
<td width="20%" ><INPUT style='text-align:center; font-size:10pt;' class="form-control datepicker" TYPE="text" id="d2" NAME="d2" value="<?= dateCouranteLang($_SESSION['p_lang']) ?>" required></td>
<td> </td>
<td> <button style='font-size:10pt;' type="button" class="form-control btn btn-primary" onclick="javascript:listerdossiercontestes();"><i class="fa fa-search" ></i><?= _("Actualiser")?>..</button> </td>
</tr>
</tbody>
</table>
<div id="div_legende_couleur" style="width:100%; margin: 15px; background-color: #f8f8ff;" class="tab-container">
<table class="table-responsive" style="width:28%; margin:auto; background-color: #f8f8ff; font-size:10pt; white-space:nowrap;">
<tbody>
<tr>
<td style="font-weight:bold; text-align:right; background-color: #f8f8ff; text-decoration-line: underline;"> <?= _("Légende").":"; ?></td>
<td style="font-weight:bold; text-align:right; background-color: #f8f8ff;"> <?= _("Dossiers clôturés"); ?></td>
<td width="1%" style="background-color: #f8f8ff"></td>
<td width="7%" style="background-color: blue"></td >
<td style="font-weight:bold; text-align:right; background-color: #f8f8ff;" ><?= _("Dossiers en cours"); ?></td>
<td style="background-color: red"></td>
<td width="7%" style="background-color: red;"></td >
</tr>
</tbody>
</table>
</div>
<div id="div_dossiers">
<?php
$totalDossiers = count($feuillemaladies);
$libelleDossiers = ($totalDossiers > 1) ? format_N($totalDossiers)." ". _("lignes") : $totalDossiers." ". _("ligne");
?>
<div >
<input class="form-control" style="text-align: center; font-size: 12pt;font-weight: bold;" type="text" value="<?= $libelleDossiers; ?>" readonly >
</div>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th style='text-align:center'> <?= _("Date de soin") ?> </th>
<th style='text-align:center'> <?= _("No Bon") ?> </th>
<th style='text-align:center'> <?= _("Adhérent") ?> </th>
<th colspan="2" style='text-align:center'> <?= _("Patient") ?> </th>
<th style='text-align:center'> <?= _("Montant reclamé") ?> </th>
<th style='text-align:center'> <?= _("Part assuré") ?> </th>
<th style='text-align:center'> <?= _("A Remboursé") ?> </th>
<th style='text-align:center'> <?= _("Dépasssement") ?> </th>
<th style='text-align:center'> <?= _("Motif") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($feuillemaladies as $feuillemaladie):
$numeroFeuilleMaladie = $this->nettoyer($feuillemaladie['numeroFeuilleMaladie']);
$numeroBonConsultation = $this->nettoyer($feuillemaladie['numeroBonConsultation']);
$observationsFacture = $this->nettoyer($feuillemaladie['observations']);
$regle = $this->nettoyer($feuillemaladie['regle']);
$valide = $this->nettoyer($feuillemaladie['valide']);
$facture = $this->nettoyer($feuillemaladie['facture']);
$idBeneficiaire = $this->nettoyer($feuillemaladie['idBeneficiaire']);
$idPolice = $this->nettoyer($feuillemaladie['idPolice']);
$contestation = $this->nettoyer($feuillemaladie['contestation']);
?>
<tr valign="top">
<td align='center'><?= dateLang($this->nettoyer($feuillemaladie['dateConsultation'])) ?></td>
<td align='center'>
<?php if($facture == "1"){
$class = "btn btn-primary";
}else{
$class = "btn btn-danger";
}
?>
<button class="<?=$class?>" data-toggle="tooltip" data-placement="bottom" title="Cliquer ici pour ouvrir le dossier"
onClick="javascript:selectionner_feuille_maladie('<?= $numeroFeuilleMaladie ?>');ajax_context_feuille_maladie_recherche('<?= $feuillemaladie['numeroBonConsultation']?>','<?= $idBeneficiaire?>','<?= $idPolice?>');">
<i class= "fa fa-address-book-o"> </i> <?= $feuillemaladie['numeroBonConsultation'] ?>
</button>
</td>
<td><?= $this->nettoyer($feuillemaladie['adherent']) ?></td>
<td align='center' ><?= $this->nettoyer($feuillemaladie['numeroBeneficiaire']) ?></td>
<td><?= $this->nettoyer($feuillemaladie['beneficiaire']) ?></td>
<td align='center'><?= format_N($this->nettoyer($feuillemaladie['fraisReel'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($feuillemaladie['montantTm'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($feuillemaladie['montantArembourser'])) ?></td>
<td align='center' style="color:red"><?= format_N($this->nettoyer($feuillemaladie['fraisExclu'])) ?></td>
<td align='center'><textarea class="form-control" rows="3"><?= $this->nettoyer($feuillemaladie['motifContestation']) ?></textarea></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>