prestation/Vue/Ajaxderogationsbenficiaire/index.php
2025-12-05 10:42:46 +00:00

73 lines
3.2 KiB
PHP
Executable File

<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>