160 lines
7.4 KiB
PHP
160 lines
7.4 KiB
PHP
<?php
|
|
$this->titre = "INTER-SANTE - Historique Proforma hospitalisation";
|
|
|
|
$vueParent = $_SESSION['p_vueRetour'];
|
|
?>
|
|
|
|
<button class="sr-only" id="btn_popdate_reelle" name="btn_popdate_reelle" type="button" data-bs-toggle="modal" data-bs-target="#popdate_reelle" > </button>
|
|
|
|
<INPUT class="sr-only" TYPE="text" id="vueParent" name="vueParent" value="<?= $vueParent ?>">
|
|
<INPUT class="sr-only" TYPE="text" id="autoriserBonHospitAvantDate" name="autoriserBonHospitAvantDate" value="<?= $autoriserBonHospitAvantDate ?>">
|
|
|
|
<legend>
|
|
<?php if($_SESSION['p_idBeneficiaire_C'] > "0"): ?>
|
|
<?= _("Historique des proformas d'hospitalisation du patient") ?>
|
|
<?php else: ?>
|
|
<?= _("Historique des proformas d'hospitalisation") ?>
|
|
<?php endif; ?>
|
|
</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="<?= dateLang($_SESSION['p_d1_C'], $_SESSION['p_lang']) ?>" required AUTOCOMPLETE="OFF" ></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="<?= dateLang($_SESSION['p_d2_C'], $_SESSION['p_lang']) ?>" required AUTOCOMPLETE="OFF" ></td>
|
|
|
|
<td> </td>
|
|
<td> <button style='font-size:10pt;' type="button" class="form-control btn btn-primary" onclick="javascript:listerproformahospitalisation();"> <?= _("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:80%; 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;"> <?= _("Non envoyée"); ?></td>
|
|
<td width="1%" style="background-color: #f8f8ff"></td>
|
|
<td width="4%" style="background-color: blue"></td >
|
|
<td width="2%" style="background-color: #f8f8ff"></td><td style="font-weight:bold; text-align:right; background-color: #f8f8ff;"> <?= _("En attente"); ?></td>
|
|
<td width="1%" style="background-color: #f8f8ff"></td>
|
|
<td width="4%" style="background-color: orange"></td >
|
|
<td width="2%" style="background-color: #f8f8ff"></td>
|
|
<td style="font-weight:bold; text-align:right; background-color: #f8f8ff;"><?= _("Accordée"); ?></td>
|
|
<td width="1%" style="background-color: #f8f8ff"></td>
|
|
<td width="4%" style="background-color: green"></td >
|
|
<td width="1%" style="background-color: #f8f8ff"></td>
|
|
<td style="font-weight:bold; text-align:right; background-color: #f8f8ff;" ><?= _("Réfusée"); ?></td>
|
|
<td style="background-color: red"></td>
|
|
<td width="4%" style="background-color: red;"></td >
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div id="div_proformas">
|
|
<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 Proforma") ?> </th>
|
|
<th style='text-align:center'> Date </th>
|
|
<th style='text-align:center'> <?= _("Bon Hospit.") ?> </th>
|
|
<th style='text-align:center'> <?= _("Médecin") ?> </th>
|
|
<th style='text-align:center'> <?= _("Spécialité") ?> </th>
|
|
<th colspan="2" style='text-align:center'> <?= _("Patient") ?> </th>
|
|
<th style='text-align:center'> <?= _("Début") ?> </th>
|
|
<th style='text-align:center'> <?= _("Fin") ?> </th>
|
|
<th style='text-align:center'> <?= _("Etat") ?> </th>
|
|
<th width="3%" style="text-align:center"> <?= _("Suppr") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<?php foreach ($proformas as $v):
|
|
$idProforma = $this->nettoyer($v['id']);
|
|
$specialite = $this->nettoyer($v['specialite']);
|
|
|
|
$codeReponseEntentePrealable = $this->nettoyer($v['codeReponseEntentePrealable']);
|
|
|
|
$numeroBon = $this->nettoyer($v['numeroBonHospitalisation']);
|
|
|
|
if($codeReponseEntentePrealable=="1"){
|
|
$etat = "Accordée";
|
|
}elseif($codeReponseEntentePrealable=="2"){
|
|
$etat = "En attente";
|
|
}elseif($codeReponseEntentePrealable=="9"){
|
|
$etat = "Réfusée";
|
|
}else{
|
|
$etat = "Non envoyée";
|
|
}
|
|
|
|
if (isset($_SESSION['p_lang']) && $_SESSION['p_lang']=="en_US"){
|
|
$specialite = $this->nettoyer($v['specialiteEng']);
|
|
|
|
if($codeReponseEntentePrealable=="1"){
|
|
$etat = "Granted";
|
|
}elseif($codeReponseEntentePrealable=="2"){
|
|
$etat = "On hold";
|
|
}elseif($codeReponseEntentePrealable=="9"){
|
|
$etat = "Refused";
|
|
}else{
|
|
$etat = "Not sent";
|
|
}
|
|
}
|
|
|
|
$dateDebut = $this->nettoyer($v['dateDebut']);
|
|
?>
|
|
<tr valign="top">
|
|
|
|
<td align="center">
|
|
<?php if ($codeReponseEntentePrealable=="1") :?>
|
|
<input class="form-control btn" type="button" value="<?= $idProforma ?>"
|
|
onClick="javascript:afficher_proforma_hospitalisation('<?= $idProforma ?>');" style="background-color:green; color:white;">
|
|
<?php elseif($codeReponseEntentePrealable=="2"):?>
|
|
<input class="form-control btn" type="button" value="<?= $idProforma ?>"
|
|
onClick="javascript:afficher_proforma_hospitalisation('<?= $idProforma ?>');" style="background-color:orange; color:white;">
|
|
<?php elseif($codeReponseEntentePrealable=="9"):?>
|
|
<input class="form-control btn btn-danger" type="button" value="<?= $idProforma ?>"
|
|
onClick="javascript:afficher_proforma_hospitalisation('<?= $idProforma ?>');" style="background-color:red; color:white;">
|
|
<?php else:?>
|
|
<input class="form-control btn btn-primary" type="button" value="<?= $idProforma ?>"
|
|
onClick="javascript:afficher_proforma_hospitalisation('<?= $idProforma ?>');" style="background-color:blue; color:white;">
|
|
<?php endif;?>
|
|
</td>
|
|
<td align='center'><?= dateheureLang($this->nettoyer($v['dateSysteme']),$_SESSION['p_lang']) ?></td>
|
|
<td align='center'>
|
|
<?php if($numeroBon == "0"):?>
|
|
<?= $numeroBon ?>
|
|
<?php else:?>
|
|
<input style='font-size:11pt;' type="button" value="<?= $numeroBon ?>" onClick="javascript:ouvrir_feuillemaladie(<?= $numeroBon ?>, '<?= $dateDebut ?>');">
|
|
<?php endif;?>
|
|
</td>
|
|
|
|
|
|
<td><?= $this->nettoyer($v['medecin']) ?></td>
|
|
<td align='center'><?= $specialite ?>
|
|
<td align='center'><?= $this->nettoyer($v['numeroBeneficiaire']) ?></td>
|
|
<td><?= $this->nettoyer($v['beneficiaire']) ?></td>
|
|
<td align='center'><?= dateLang($this->nettoyer($v['dateDebut'])) ?></td>
|
|
<td align='center'><?= dateLang($this->nettoyer($v['dateFin'])) ?></td>
|
|
<td align='center'><?= $etat ?></td>
|
|
|
|
<td>
|
|
<?php if($codeReponseEntentePrealable==""):?>
|
|
<button type="button" class="form-control btn btn-danger" onClick="javascript:supprimer_proforma_hospitalisation(<?= $idProforma ?>);">
|
|
<i class="fa fa-times" aria-hidden="true"></i>
|
|
</button>
|
|
<?php endif; ?>
|
|
</td>
|
|
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div id="div_messages"></div>
|