garant/Vue/Ajaxrequeteprestationactes/index.php
2025-12-05 10:57:03 +00:00

97 lines
4.6 KiB
PHP
Executable File

<?php $nbligne = 0; ?>
<div id="div_detail_requete">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:6pt;">
<thead>
<tr>
<th style='text-align:center'> Date </th>
<th colspan="2" style='text-align:center'> <?= _("Bénéficiaire") ?> </th>
<th style='text-align:center'> <?= _("Feuil") ?> </th>
<th style='text-align:center'> <?= _("Cons") ?> </th>
<th style='text-align:center'> <?= _("Ord") ?> </th>
<th style='text-align:center'><?= _("Hosp") ?> </th>
<th style='text-align:center'> <?= _("Opt") ?> </th>
<th style='text-align:center'> <?= _("Type") ?> </th>
<th> <?= _("Acte") ?> </th>
<th> <?= _("Médecin") ?> </th>
<th width="5%" style='text-align:center'> <?= _("Valeur") ?> </th>
<th style='text-align:center'> <?= _("Qté") ?> </th>
<th width="5%" style='text-align:center'> <?= _("Frais") ?> </th>
<th width="5%" style='text-align:center'> <?= _("T M") ?> </th>
<th width="5%" style='text-align:center'> <?= _("A Rmb") ?> </th>
<th style='text-align:center'> <?= _("Ent") ?> </th>
<th style='text-align:center'> <?= _("Fact") ?> </th>
<th style='text-align:center'> Val </th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="13" style='text-align:center'> <?= format_N($this->nettoyer($prestationactes_total['nbLigne'])) . " "._("Ligne(s) au total") ?> </td>
<td align='center'><?= format_N($this->nettoyer($prestationactes_total['fraisReel_total'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($prestationactes_total['montantTm_total'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($prestationactes_total['montantArembourser_total'])) ?></td>
<td colspan="3" > </td>
</tr>
</tfoot>
<tbody>
<?php foreach ($prestationactes as $prestationacte):
$facture = $prestationacte['facture'];
$ententePrealable=$this->nettoyer($prestationacte['ententePrealable']);
$autorisation=$this->nettoyer($prestationacte['autorisation']);
$nbligne++;
?>
<?php if($ententePrealable=='2' || $autorisation=='2'): ?>
<tr valign="top" style="background-color: yellow;">
<?php elseif($ententePrealable=='1' || $autorisation=='1'): ?>
<tr valign="top" style="background-color: #00ff00;">
<?php elseif($ententePrealable=='9' || $autorisation=='9'): ?>
<tr valign="top" style="background-color: red;color:white;">
<?php else: ?>
<tr valign="top">
<?php endif; ?>
<td align='center'><?= dateFr($this->nettoyer($prestationacte['datePrestation'])) ?></td>
<td align='center'><?= $this->nettoyer($prestationacte['numeroBeneficiaire']) ?></td>
<td><?= $this->nettoyer($prestationacte['beneficiaire']) ?></td>
<td align='center'><?= $this->nettoyer($prestationacte['numeroFeuilleMaladie']) ?></td>
<td align='center'><?= $this->nettoyer($prestationacte['numeroBonConsultation']) ?></td>
<td align='center'><?= $this->nettoyer($prestationacte['numeroBonOrdonnance']) ?></td>
<td align='center'><?= $this->nettoyer($prestationacte['numeroBonHospitalisation']) ?></td>
<td align='center'><?= $this->nettoyer($prestationacte['numeroBonOptique']) ?></td>
<td align='center'><?= $this->nettoyer($prestationacte['codeTypePrestation']) ?></td>
<td><?= $this->nettoyer($prestationacte['libelleActe']) ?></td>
<td><?= $this->nettoyer($prestationacte['medecinActe']) ?></td>
<td align='center'><?= format_N($this->nettoyer($prestationacte['valeurActe'])) ?></td>
<td align='center'><?= $this->nettoyer($prestationacte['quantite']) ?></td>
<td align='center'><?= format_N($this->nettoyer($prestationacte['fraisReel'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($prestationacte['montantTm'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($prestationacte['montantArembourser'])) ?></td>
<td align='center'><?= $this->nettoyer($prestationacte['ententePrealable']) ?></td>
<?php if ($facture=="1"): ?>
<td align='center'> <input type="checkbox" checked disabled></td>
<?php else: ?>
<td align='center'> <input type="checkbox" disabled></td>
<?php endif; ?>
<td align='center'><?= $this->nettoyer($prestationacte['valide']) ?></td>
</tr>
<?php
if ($nbligne == 200) {
$nbligne = "> ".$nbligne." => "._("Utilisez");
break;
}
?>
<?php endforeach; ?>
</tbody>
</table>
<input class="sr-only" type="text" id="nbligne_info" name="nbligne_info" value="<?= $nbligne ?>" >
</div>