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

102 lines
4.8 KiB
PHP
Executable File

<div id="div_ententeprealable">
<table class="table table-striped table-bordered 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'> <?= _("Médicaments") ?> </th>
<th rowspan="2" style='text-align:center'> <?= _("Prix") ?> </th>
<th rowspan="2" style='text-align:center'> <?= _("Gap") ?> </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'> <?= _("Motif Réponse") ?> </th>
</tr>
<tr>
<th style='text-align:center'> <?= _("Réel") ?> </th>
<th style='text-align:center'> <?= _("A l'assuré") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($ententeprealables as $ententeprealable):
$idDemandesubstitution = $this->nettoyer($ententeprealable['idDemandesubstitution']);
$codeReponseEntentePrealable = $this->nettoyer($ententeprealable['codeReponseEntentePrealable']);
$numeroDemandeSubstitution = $this->nettoyer($ententeprealable['numeroDemandeSubstitution']);
$codeMedicamentSubstitution = $this->nettoyer($ententeprealable['codeMedicamentSubstitution']);
$libelleSubstitut = $this->nettoyer($ententeprealable['libelleSubstitut']);
$prixSubstitution = $this->nettoyer($ententeprealable['prixSubstitution']);
$codeMedicamentPrescrit = $this->nettoyer($ententeprealable['codeMedicamentPrescrit']);
$nomPrescrit = $this->nettoyer($ententeprealable['nomPrescrit']);
$prixPrescription = $this->nettoyer($ententeprealable['prixPrescription']);
$gap = $this->nettoyer($ententeprealable['gap']);
$reponsentEnteprealable = $this->nettoyer($ententeprealable['reponsentEnteprealable']);
if (est_anglophone()){
$reponsentEnteprealable = $this->nettoyer($ententeprealable['reponsentEnteprealableEng']);
}
?>
<?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'>
<input type="button" value="<?= $numeroDemandeSubstitution ?> "
onClick="javascript:consulter_approbation_pha(<?= $idDemandesubstitution ?>);">
</td>
<td align='center'><?= dateheureLang($this->nettoyer($ententeprealable['dateSysteme'])) ?></td>
<td align='center'>
<input type="button" value="<?= $libelleSubstitut ?> " onClick="javascript:alert('<?= $nomPrescrit ?>');">
</td>
<td align='center'>
<input type="button" value="<?= format_N($prixSubstitution) ?> " onClick="javascript:alert('<?= format_N($prixPrescription) ?>');">
</td>
<td align='center'><?= $gap ?></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'><?= $reponsentEnteprealable ?></td>
<?php if ($codeReponseEntentePrealable=='2'): ?>
<td align="center" >
<input style="color:blue;" type="button" value="<?= _("Accepter") ?>"
onClick="javascript:accepter_substitution_pha(<?= $idDemandesubstitution ?>);">
</td>
<td align="center">
<input style="color:red;" type="button" value="<?= _("Refuser") ?>"
onClick="javascript:refuser_substitution_pha(<?= $idDemandesubstitution ?>);">
</td>
<?php elseif($codeReponseEntentePrealable=='1'): ?>
<td colspan="2" align='center'><?= $this->nettoyer($ententeprealable['motifReel']) ?></td>
<?php elseif($codeReponseEntentePrealable=='9'): ?>
<td align='center'><?= $this->nettoyer($ententeprealable['motifReel']) ?></td>
<td align='center'><?= $this->nettoyer($ententeprealable['motifRefusAssure']) ?></td>
<?php endif; ?>
<?php endforeach; ?>
</tbody>
</table>
</div>