garant/Vue/Dossiers/index.php
2025-12-05 10:57:03 +00:00

174 lines
7.5 KiB
PHP
Executable File

<?php
$this->titre = "INTER-SANTE - ". _("Historique Dossiers");
$_SESSION['nbTentative'] = "0";
$okId = $_SESSION['okId'];
$age = $_SESSION['ageBeneficiaire_C'];
$estidentifiable = ($age>6);
?>
<button class="sr-only" id="btn_popdate_reelle" name="btn_popdate_reelle" type="button" data-toggle="modal" data-target="#popdate_reelle" > </button>
<legend> <?= _("Historique des dossiers du patient") ?> </legend>
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td width="10%" > <?= _("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="<?= dateFr($_SESSION['d1_C']) ?>" required></td>
<td width="10%" align="center" > <?= _("au") ?> </td>
<td width="20%" ><INPUT style='text-align:center; font-size:10pt;' class="form-control datepicker" TYPE="text" id="d2" NAME="d2" value="<?= dateFr($_SESSION['d2_C']) ?>" required></td>
<td> </td>
<td> <button style='font-size:10pt;' type="button" class="form-control btn btn-primary" onclick="javascript:listerdossier();"><?= _("Actualiser...") ?></button> </td>
</tr>
</tbody>
</table>
<div id="div_dossiers">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:9pt;">
<thead>
<tr>
<th style='text-align:center'> <?= _("No Bon") ?> </th>
<th style='text-align:center'> Date </th>
<th style='text-align:center'> <?= _("No Bon") ?></th>
<th> <?= _("Médecin Consultation") ?> </th>
<th style='text-align:center'> <?= _("Frais") ?> </th>
<th style='text-align:center'> <?= _("T M") ?> </th>
<th style='text-align:center'> <?= _("A Rembourser") ?> </th>
<th style='text-align:center'> <?= _("Remboursé") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($feuillemaladies as $feuillemaladie):
$numeroFeuilleMaladie = $this->nettoyer($feuillemaladie['numeroFeuilleMaladie']);
$numeroBonConsultation = $this->nettoyer($feuillemaladie['numeroBonConsultation']);
$facture = $feuillemaladie['facture'];
?>
<tr valign="top">
<?php if ($facture=="1"): ?>
<td align="center">
<input class="form-control btn btn-primary" type="button" value="<?= $numeroBonConsultation ?>"
onClick="javascript:selectionner_feuille_maladie('<?= $numeroFeuilleMaladie ?>');afficher_feuille_maladie();">
</td>
<?php else: ?>
<td align="center">
<input class="form-control btn btn-danger" type="button" value="<?= $numeroBonConsultation ?>"
onClick="javascript:selectionner_feuille_maladie('<?= $numeroFeuilleMaladie ?>');afficher_feuille_maladie();">
</td>
<?php endif; ?>
<td align='center'><?= dateheureFr($this->nettoyer($feuillemaladie['dateSysteme'])) ?></td>
<td align='center'><?= $this->nettoyer($feuillemaladie['numeroBonConsultation']) ?></td>
<td><?= $this->nettoyer($feuillemaladie['medecinConsultation']) ?></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'><?= format_N($this->nettoyer($feuillemaladie['montantRembourse'])) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<?php if ($okId!="1"): ?>
<div id="content">
<?php include 'flexcode/include/global.php'; ?>
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<?php if ($estidentifiable) : ?>
<?php if ($_SESSION['finger_id_C']==0) : ?>
<td align="center" width="40%">
<a onclick="javascript:load('flexcode/user.php?action=index&user_id=<?= $_SESSION['user_id_C'] ?>&user_name=<?= trim($_SESSION['beneficiaire_C']) ?>&finger=<?= $_SESSION['finger_id_C'] ?>');" >
<img src="Bootstrap/images/image_empreinte.jpg">
</a>
</td>
<td>
<INPUT class="form-control btn btn-danger" style='font-size:10pt;' TYPE="button"
onclick="javascript:load('flexcode/user.php?action=index&user_id=<?= $_SESSION['user_id_C'] ?>&user_name=<?= trim($_SESSION['beneficiaire_C']) ?>&finger=<?= $_SESSION['finger_id_C'] ?>');"
value="<?= _("Enrôler...") ?>" >
</td>
<?php else: ?>
<td align="center" width="40%">
<a onclick="javascript:load('flexcode/user.php?action=index&user_id=<?= $_SESSION['user_id_C'] ?>&user_name=<?= trim($_SESSION['beneficiaire_C']) ?>&finger=<?= $_SESSION['finger_id_C'] ?>');" >
<img src="Bootstrap/images/image_empreinte.jpg">
</a>
</td>
<td>
<INPUT class="form-control btn btn-primary" style='font-size:10pt;' TYPE="button"
onclick="javascript:load('flexcode/user.php?action=index&user_id=<?= $_SESSION['user_id_C'] ?>&user_name=<?= trim($_SESSION['beneficiaire_C']) ?>&finger=<?= $_SESSION['finger_id_C'] ?>');"
value="<?= _("Vérifier Identité...") ?>" >
</td>
<?php endif; ?>
<?php else: ?>
<td align="center" width="40%">
<a onclick="javascript:load('flexcode/user.php?action=index&user_id=<?= $_SESSION['user_id_C'] ?>&user_name=<?= trim($_SESSION['beneficiaire_C']) ?>&finger=-1');" >
<img src="Bootstrap/images/image_empreinte.jpg">
</a>
</td>
<td>
<INPUT class="form-control btn btn-primary" style='font-size:10pt;' TYPE="button"
onclick="javascript:load('flexcode/user.php?action=index&user_id=<?= $_SESSION['user_id_C'] ?>&user_name=<?= trim($_SESSION['beneficiaire_C']) ?>&finger=-1');"
value="<?= _("Voir les substituts...") ?>" >
</td>
<?php endif; ?>
</tr>
</tbody>
</table>
</div>
<div id="div_err">
<INPUT class="sr-only" TYPE="text" id="nbTentative" name="nbTentative" value="0">
</div>
<div id="loadingDiv" style="display: none">
<div class="ajax-mask"><div class="loading"><img src="Bootstrap/images/loading-spinner-grey.gif"/> <?= _("Veuillez patienter...") ?></span></div></div>
</div>
<?php endif; ?>
<div class="modal fade" id="popdate_reelle" 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-dismiss="modal"><?= _("Fermer") ?></button>
<h4 class="modal-title"><?= _("Date Effective") ?> </h4>
</div>
<div class="modal-body">
<div id="div_date_reelle">
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td><?= _("Date Effective") ?> </td>
<td width="30%" colspan="3"> <INPUT style='text-align:center; font-size:11pt;' class="form-control datepicker" TYPE="text" id="dateFactureReelle" NAME="dateFactureReelle" value="" required> </td>
<td> </td>
<td> <input class = "form-control btn btn-primary" type="button" value="<?= _("Valider ...") ?>" onClick="javascript:consultation_assureur();" style='font-size:11pt;' > </td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="modal-footer">
<button id="close_pop" name="close_pop" type="button" class="btn btn-default" data-dismiss="modal"><?= _("Fermer") ?></button>
</div>
</div>
</div>
</div>