production/Vue/Ajaxententeprealablesproformahospi/index.php
2025-12-01 16:12:12 +00:00

113 lines
4.8 KiB
PHP
Executable File

<div id="div_ententeprealable">
<div id="div_patienter">
</div>
<div class="tab-container">
<table class="table table-striped table-bordered table-condensed table-responsive" style="font-size:8pt; white-space: nowrap;">
<thead>
<tr>
<th rowspan="2" style='text-align:center'> No </th>
<th rowspan="2" style='text-align:center'> Date </th>
<th rowspan="2" style='text-align:center' width="18%"> <?= _("Détails") ?> </th>
<th rowspan="2" style='text-align:center' > <?= _("Prestataires ") ?> </th>
<th rowspan="2" colspan="2" style='text-align:center'> <?= _("Bénéficiaires") ?> </th>
<th rowspan="2" style='text-align:center'> <?= _("Répondue le") ?> </th>
<th rowspan="2" style='text-align:center'> <?= _("Répondue par") ?> </th>
<th rowspan="2" style='text-align:center'> <?= _("Traité ?") ?> </th>
</tr>
</thead>
<tbody>
<?php
foreach ($enteteententeprealables as $v):
$idProformaHospitalisation = $this->nettoyer($v['idProformaHospitalisation']);
$numeroEnteteEntentePrealable = $this->nettoyer($v['numeroEnteteEntentePrealable']);
$demandeTraite = $this->nettoyer($v['demandeTraite']);
$vip = $this->nettoyer($v['vip']);
$idHospitalisation = $this->nettoyer($v['idHospitalisation']);
$codeTypeHospitalisation = $this->nettoyer($v['codeTypeHospitalisation']);
$hospitalisation = $this->nettoyer($v['hospitalisation']);
$idProlongationHospit = $this->nettoyer($v['idProlongationHospit']);
if (est_anglophone()){
$libelleActe = "Details...";
}else{
$libelleActe = "Détails...";
}
?>
<?php if ($demandeTraite=='0'): ?>
<tr valign="top" style='background-color:yellow'>
<?php else : ?>
<tr valign="top">
<?php endif; ?>
<td align='center'>
<a title='<?= _("Détails...") ?>' href="javascript:afficheractesproforma('<?= $idProformaHospitalisation ?>');">
<?php if ($vip=='0'): ?>
<span style="color:blue; background-color:#eeeeee; border:1px solid #000; border-radius:3px; padding-left:5px; padding-right:5px;">
<?= $idProformaHospitalisation ?>
</span>
<?php else : ?>
<span style="color:red; background-color:#eeeeee; border:1px solid #000; border-radius:3px; padding-left:5px; padding-right:5px;">
<?= $idProformaHospitalisation ?>
</span>
<?php endif; ?>
</a>
</td>
<td><?= dateHeureLang($this->nettoyer($v['dateSysteme']),$_SESSION['lang']);?></td>
<td align='center'>
<a title='<?= _("Détails...") ?>' href="javascript:afficheractesproforma('<?= $idProformaHospitalisation ?>');">
<?php if ($vip=='0'): ?>
<span style="color:blue; background-color:#eeeeee; border:1px solid #000; border-radius:3px; padding-left:5px; padding-right:5px;">
<?= $libelleActe ?>
</span>
<?php else : ?>
<span style="color:red; background-color:#eeeeee; border:1px solid #000; border-radius:3px; padding-left:5px; padding-right:5px;">
<?= $libelleActe ?>
</span>
<?php endif; ?>
</a>
</td>
<td><?= $this->nettoyer($v['prestataire']);?></td>
<td align='center'>
<a title="<?= _("Infos bénéficiaire...") ?>" href='javascript:afficheBeneficiaire("<?= $this->nettoyer($v['numeroBeneficiaire']) ?>");'>
<?php if ($vip=='0'): ?>
<span style="color:blue;background-color:#eeeeee; border:1px solid #000; border-radius:3px;"><?= $this->nettoyer($v['numeroBeneficiaire']) ?></span>
<?php else : ?>
<span style="color:red;background-color:#eeeeee; border:1px solid #000; border-radius:3px;"><?= $this->nettoyer($v['numeroBeneficiaire']) ?></span>
<?php endif; ?>
</a>
</td>
<?php if ($vip=='0'): ?>
<td><?= $this->nettoyer($v['beneficiaire']) ?></td>
<?php else : ?>
<td>
<a title="<?= _("Attention Bénéficiaire VIP"); ?>" href='javascript:alert_ebene("Attention Bénéficiaire VIP!","Attention VIP Beneficiary!");'>
<span style="color:red;background-color:#eeeeee; border:1px solid #000; border-radius:3px;">
<?= $this->nettoyer($v['beneficiaire']) ?>
</span>
</a>
</td>
<?php endif; ?>
<td align='center'><?= $this->nettoyer($v['dateTraitement']);?></td>
<td align='center'><?= $this->nettoyer($v['responsableAccord']);?></td>
<?php if ($demandeTraite=="1"): ?>
<td align='center'> <input type="checkbox" checked disabled></td>
<?php else: ?>
<td align='center'> <input type="checkbox" disabled></td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>