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

48 lines
2.3 KiB
PHP

<?php
$this->titre = "INTER-SANTE - Actes soumis à entente préalable";
$actVisible = $_SESSION['p_actVisible'];
?>
<legend> <?= _("Actes soumis à entente préalable") ?> </legend>
<button style='font-size:10pt;' type="button" class="form-control btn btn-primary" onclick="javascript:liste_ententeprealable();"> <?= _("Actualiser...") ?> </button>
<div id="div_ententeprealable">
<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'> <?= _("Acte") ?> </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 style='text-align:center'> <?= _("Motif refus") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($ententeprealables as $ententeprealable):
$idDemandeententeprealable = $this->nettoyer($ententeprealable['idDemandeententeprealable']);
$codeReponseEntentePrealable = $this->nettoyer($ententeprealable['codeReponseEntentePrealable']);
?>
<?php if($codeReponseEntentePrealable=='2'): ?>
<tr valign="top" style="background-color: yellow;">
<?php elseif($codeReponseEntentePrealable=='1'): ?>
<tr valign="top" style="background-color: #00ff00;">
<?php elseif($codeReponseEntentePrealable=='9'): ?>
<tr valign="top" style="background-color: red;color:white;">
<?php else: ?>
<tr valign="top">
<?php endif; ?>
<td align='center'><?= $this->nettoyer($ententeprealable['numeroEntentePrealable']) ?></td>
<td align='center'><?= dateheureLang($this->nettoyer($ententeprealable['dateSysteme'])) ?></td>
<td align='center'><?= $this->nettoyer($ententeprealable['libelleActe']) ?></td>
<td align='center'><?= dateheureLang($this->nettoyer($ententeprealable['dateReponse'])) ?></td>
<td align='center'><?= $this->nettoyer($ententeprealable['responsableAccord']) ?></td>
<td align='center'><?= $this->nettoyer($ententeprealable['reponsentEnteprealable']) ?></td>
<td align='center'><?= $this->nettoyer($ententeprealable['motifRefusAssure']) ?></td>
<?php endforeach; ?>
</tbody>
</table>
</div>