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

77 lines
3.2 KiB
PHP

<?php
$this->titre = "INTER-SANTE - Dérogation / Exemption";
?>
<legend> <?= _("Historique Demandes de dérogation") ?> </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']) ?>" 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']) ?>" required AUTOCOMPLETE="OFF" ></td>
<td> </td>
<td> <button style='font-size:10pt;' type="button" class="form-control btn btn-primary" onclick="javascript:listerderogation();"> <?= _("Actualiser...") ?> </button> </td>
</tr>
</tbody>
</table>
<div id="div_derogations">
<table class="table table-striped table-bordered table-hover 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'> <?= _("Répondue le") ?> </th>
<th style='text-align:center'> <?= _("Répondue par") ?> </th>
<th style='text-align:center'> Situation </th>
<th colspan="2" style='text-align:center'> <?= _("Durée jeton / Motif refus") ?> </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']);
?>
<?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'><?= $this->nettoyer($derogation['numeroDerogation']) ?></td>
<td align='center'><?= dateheureLang($this->nettoyer($derogation['dateSysteme'])) ?></td>
<td align='center'><?= $this->nettoyer($derogation['libelleDerogation']) ?></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=='9'): ?>
<td align='center' colspan="2"><?= $this->nettoyer($derogation['motifRefusAssure']) ?></td>
<?php else : ?>
<td align='center'><?= dateLang($this->nettoyer($derogation['debut'])) ?></td>
<td align='center'><?= dateLang($this->nettoyer($derogation['fin'])) ?></td>
<?php endif; ?>
<td align='center'><?= $this->nettoyer($derogation['tmDerogation']) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>