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

104 lines
5.3 KiB
PHP
Executable File

<?php
$actVisible = $_SESSION['p_actVisible'];
?>
<div id="div_ententeprealable">
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tr>
<td width="5%" align="center"> <?= _("Etat") ?> </td>
<td width="20%">
<SELECT class="form-select" id="codeReponseEntentePrealable" NAME="codeReponseEntentePrealable" style='font-size:10pt;'>
<?php liste_options_consultation($reponseententeprealable, $_SESSION['etatEntente']); ?>
</SELECT>
</td>
<td align="center" class="required"><i class="fa fa-calendar" ></i> <?= _("Période du") ?> </td>
<td width="20%"> <INPUT style='text-align:center; font-size:10pt; height:30px !important;' class="form-control datepicker" TYPE="text" id="debut_entente" NAME="debut_entente" value="<?= dateLang($_SESSION['p_dEntente_C'], $_SESSION['p_codeLanguePrestataire']) ?>" required </td>
<td width="5%" align="center" class="required"> <?= _("au") ?> </td>
<td width="20%"> <INPUT style='text-align:center; font-size:10pt; height:30px !important;' class="form-control datepicker" TYPE="text" id="fin_entente" NAME="fin_entente" value="<?= dateLang($_SESSION['p_d2_C'], $_SESSION['p_codeLanguePrestataire']) ?>" required> </td>
<td> </td>
<td> <button style='font-size:10pt;' type="button" class="form-control btn btn-primary" onclick="javascript:listeententeprealables();"><i class="fa fa-search" ></i> <?= _(" Actualiser...") ?></button> </td>
</tr>
</table>
<?php
$totalEntentes = count($ententeprealables);
$libelleEntentes = ($totalEntentes > 1) ? format_N($totalEntentes)." ". _("lignes") : $totalEntentes." ". _("ligne");
?>
<table class="table table-striped table-bordered table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th colspan="9" style='text-align:center'> <?= $libelleEntentes ;?> </th>
</tr>
<tr>
<th rowspan="2" style='text-align:center'> Date </th>
<th rowspan="2" colspan="2" style='text-align:center'> <?= _("Actes") ?> </th>
<th rowspan="2" width="5%" style="text-align:center" > <?= _("Accord") ?> </th>
<th rowspan="2" width="5%" style='text-align:center' > <?= _("Bon No") ?> </th>
<!-- <th rowspan="2" style='text-align:center' width="20%"> <?= _("Motif Médical") ?> </th>-->
<th rowspan="2" colspan="2" style='text-align:center'> <?= _("Bénéficiaire") ?> </th>
<th colspan="2" style='text-align:center'> <?= _("Répondue") ?> </th>
</tr>
<tr>
<th style='text-align:center'> <?= _("le") ?> </th>
<th style='text-align:center'> <?= _("par") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($ententeprealables as $ententeprealable):
$idDemandeententeprealable = $this->nettoyer($ententeprealable['idDemandeententeprealable']);
$codeReponseEntentePrealable = $this->nettoyer($ententeprealable['codeReponseEntentePrealable']);
$numeroEntentePrealable = $this->nettoyer($ententeprealable['numeroEntentePrealable']);
$facture = $this->nettoyer($ententeprealable['facture']);
$motifPrestataire = $this->nettoyer($ententeprealable['motifPrestataire']);
$codeActe = $this->nettoyer($ententeprealable['codeActe']);
$libelleActe = $this->nettoyer($ententeprealable['libelleActe']);
$numeroBonExamen = $this->nettoyer($ententeprealable['numeroBonExamen']);
$numeroBon = $this->nettoyer($ententeprealable['numeroBon']);
$fraisReelExamen = $this->nettoyer($ententeprealable['fraisReelExamen']);
if($actVisible!="1")
{
$libelleActe = $codeActe;
}
$codeAdministrateur = $this->nettoyer($ententeprealable['codeAdministrateur']);
$codeTypePrestation = $this->nettoyer($ententeprealable['codeTypePrestation']);
?>
<tr valign="top">
<td align='center'><?= dateheureLang($this->nettoyer($ententeprealable['dateSysteme'])) ?></td>
<td align='center'> <?= $codeTypePrestation ?> </td>
<td > <?= $libelleActe ?> </td>
<?php if($codeReponseEntentePrealable<>"0"): ?>
<?php if($codeReponseEntentePrealable=='2'): ?>
<td align='center' style="background-color: yellow;"> <input type="checkbox" checked disabled> </td>
<?php elseif($codeReponseEntentePrealable=='1'): ?>
<td align='center' style="background-color: #00ff00;"> <input type="checkbox" checked disabled> </td>
<?php elseif($codeReponseEntentePrealable=='9'): ?>
<td align='center' style="background-color: red;color:white;"> <input type="checkbox" checked disabled> </td>
<?php else: ?>
<td align='center'> <input type="checkbox" checked disabled> </td>
<?php endif; ?>
<?php else: ?>
<td align='center' > <input type="checkbox" disabled></td>
<?php endif; ?>
<td align='center'><?= $numeroBon ?> </td>
<!--<td ><?= $motifPrestataire?></td>-->
<td align='center'><?= $this->nettoyer($ententeprealable['numeroBeneficiaire']) ?></td>
<td><?= $this->nettoyer($ententeprealable['beneficiaire']).' - ( '.$this->nettoyer($ententeprealable['souscripteur']).' )' ?></td>
<td align='center'><?= dateheureLang($this->nettoyer($ententeprealable['dateReponse'])) ?></td>
<td align='center'><?= $this->nettoyer($ententeprealable['codeAdministrateur']) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>