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

78 lines
3.7 KiB
PHP
Executable File

<div id="div_ententeprealable">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<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'> <?= _("Acte") ?> </th>
<th rowspan="2" style='text-align:center'> <?= _("Prestataire") ?> </th>
<th rowspan="2" colspan="2" style='text-align:center'> <?= _("Bénéficiaire") ?> </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'> <?= _("Situation") ?> </th>
<th colspan="2" style='text-align:center'> <?= _("Tarif") ?> </th>
<th colspan="2" style='text-align:center'> <?= _("Motif Réponse") ?> </th>
</tr>
<tr>
<th style='text-align:center'> <?= _("Conventionné") ?> </th>
<th style='text-align:center'> <?= _("Autoris") ?> </th>
<th style='text-align:center'> <?= _("Réel") ?> </th>
<th style='text-align:center'> <?= _("A l'assuré") ?> </th>
</tr>
<tbody>
<?php foreach ($ententeprealables as $ententeprealable):
$idDemandeautorisation = $this->nettoyer($ententeprealable['idDemandeautorisation']);
$codeReponseAutorisation = $this->nettoyer($ententeprealable['codeReponseAutorisation']);
?>
<?php if($codeReponseAutorisation=='2'): ?>
<tr valign="top" style="background-color: yellow;">
<?php elseif($codeReponseAutorisation=='1'): ?>
<tr valign="top" style="background-color: #00ff00;">
<?php elseif($codeReponseAutorisation=='9'): ?>
<tr valign="top" style="background-color: red;color:white;">
<?php else: ?>
<tr valign="top">
<?php endif; ?>
<td align='center'><?= $this->nettoyer($ententeprealable['numeroAutorisation']) ?></td>
<td align='center'><?= dateheureLang($this->nettoyer($ententeprealable['dateSysteme'])) ?></td>
<td align='center'><?= $this->nettoyer($ententeprealable['libelleActe']) ?></td>
<td align='center'><?= $this->nettoyer($ententeprealable['prestataire']) ?></td>
<td align='center'><?= $this->nettoyer($ententeprealable['numeroBeneficiaire']) ?></td>
<td><?= $this->nettoyer($ententeprealable['beneficiaire']) ?></td>
<td align='center'><?= dateheureLang($this->nettoyer($ententeprealable['dateReponse'])) ?></td>
<td align='center'><?= $this->nettoyer($ententeprealable['responsableAccord']) ?></td>
<td align='center'><?= $this->nettoyer($ententeprealable['reponseAutorisation']) ?></td>
<td align='center'> <?= format_N($this->nettoyer($ententeprealable['prixTarif'])) ?></td>
<td align='center'> <?= format_N($this->nettoyer($ententeprealable['valeurActe'])) ?></td>
<?php if ($codeReponseAutorisation=='2'): ?>
<td align="center" >
<input style="color:blue;" type="button" value="<?= _("Accepter") ?>"
onClick="javascript:accepter_acte_exclu_2(<?= $idDemandeautorisation ?>);">
</td>
<td align="center">
<input style="color:red;" type="button" value="<?= _("Refuser") ?>"
onClick="javascript:refuser_acte_exclu_2(<?= $idDemandeautorisation ?>, '2');">
</td>
<?php elseif($codeReponseAutorisation=='1'): ?>
<td colspan="2" align='center'><?= $this->nettoyer($ententeprealable['motifReel']) ?></td>
<?php elseif($codeReponseAutorisation=='9'): ?>
<td align='center'><?= $this->nettoyer($ententeprealable['motifReel']) ?></td>
<td align='center'><?= $this->nettoyer($ententeprealable['motifRefusAssure']) ?></td>
<?php endif; ?>
<?php endforeach; ?>
</tbody>
</table>
</div>