prestation/Vue/Listederogationsbenficiaire/index.php
2025-12-01 18:54:33 +00:00

95 lines
4.2 KiB
PHP

<?php
$this->titre = "INTER-SANTE - Historique Demandes de dérogation";
?>
<legend> <?= _("Historique Demandes de dérogation") ?> </legend>
<table class="table table-responsive table-condensed" style='font-size:9pt;'>
<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['dUneSemaineAvant_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="<?= dateCouranteLang($_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:listerderogationbeneficiaire();"><?= _("Actualiser...") ?></button> </td>
</tr>
</tbody>
</table>
<div id="div_derogations">
<table class="table table-striped table-bordered table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th style='text-align:center'> No </th>
<th style='text-align:center'> Date </th>
<th style='text-align:center'> <?= _("Dérogation") ?> </th>
<th style='text-align:center'> <?= _("Prestataire") ?> </th>
<th style='text-align:center'> <?= _("Répondue le") ?> </th>
<th style='text-align:center'> <?= _("Répondue par") ?> </th>
<th style='text-align:center'> <?= _("Situation") ?> </th>
<th colspan="3" style='text-align:center'> <?= _("Motif Réel / Durée jeton / Motif Assuré") ?> </th>
<th style='text-align:center'> <?= _("T M") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($derogations as $derogation):
$idDemandederogation = $this->nettoyer($derogation['idDemandederogation']);
$codeReponseDerogation = $this->nettoyer($derogation['codeReponseDerogation']);
$numeroDerogation = $this->nettoyer($derogation['numeroDerogation']);
?>
<?php if ($codeReponseDerogation=='9'): ?>
<tr valign="top" style='color:red'>
<?php elseif ($codeReponseDerogation=='1'): ?>
<tr valign="top" style='color:green'>
<?php else : ?>
<tr valign="top">
<?php endif; ?>
<td align='center'>
<input type="button" value="<?= $numeroDerogation ?> "
onClick="javascript:consulter_derogation(<?= $idDemandederogation ?>);">
</td>
<td align='center'><?= dateheureLang($this->nettoyer($derogation['dateSysteme'])) ?></td>
<td align='center'><?= $this->nettoyer($derogation['libelleDerogation']) ?></td>
<td align='center'><?= $this->nettoyer($derogation['prestataire']) ?></td>
<td align='center'><?= dateheureLang($this->nettoyer($derogation['dateReponse'])) ?></td>
<td align='center'><?= $this->nettoyer($derogation['responsableDerogation']) ?></td>
<td align='center'><?= $this->nettoyer($derogation['reponseDerogation']) ?></td>
<?php if ($codeReponseDerogation=='0'): ?>
<td align="center" colspan="2">
<input style="color:blue;" type="button" value="<?= _("Accepter") ?>"
onClick="javascript:accepter_derogation(<?= $idDemandederogation ?>);">
</td>
<td align="center">
<input style="color:red;" type="button" value="<?= _("Refuser") ?>"
onClick="javascript:refuser_derogation(<?= $idDemandederogation ?>, '2');">
</td>
<?php elseif($codeReponseDerogation=='1'): ?>
<td align='center'><?= $this->nettoyer($derogation['motifReel']) ?></td>
<td align='center'><?= dateLang($this->nettoyer($derogation['debut'])) ?></td>
<td align='center'><?= dateLang($this->nettoyer($derogation['fin'])) ?></td>
<?php elseif($codeReponseDerogation=='9'): ?>
<td align='center'><?= $this->nettoyer($derogation['motifReel']) ?></td>
<td align='center' colspan="2"><?= $this->nettoyer($derogation['motifRefusAssure']) ?></td>
<?php endif; ?>
<td align='center'><?= $this->nettoyer($derogation['tmDerogation']) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>