radiantassure/Vue/Ajaxrequeteoptique/index.php
2025-12-07 09:35:13 +00:00

85 lines
3.9 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'> Ord. </th>
<th style='text-align:center'> Feuil. </th>
<th style='text-align:center'> Cons. </th>
<th> Type de verres </th>
<th width="5%" style='text-align:center'> verres </th>
<th width="5%" style='text-align:center'> Mont. </th>
<th width="5%" style='text-align:center'> Frais </th>
<th width="3%" style='text-align:center'> T M </th>
<th width="5%" style='text-align:center'> A Rmb </th>
<th style='text-align:center'> Val. </th>
<th width="5%" style='text-align:center'> Forcé </th>
<th width="5%" style='text-align:center'> A Pay </th>
<th colspan="2" style='text-align:center'> Prescript par </th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="7" style='text-align:center'> <?= format_N($this->nettoyer($opticiens_total['nbLigne'])) ?> Ligne(s) au total </td>
<td align='center'><?= format_N($this->nettoyer($opticiens_total['verres_total'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($opticiens_total['monture_total'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($opticiens_total['fraisReel_total'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($opticiens_total['montantTm_total'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($opticiens_total['montantArembourser_total'])) ?></td>
<td> </td>
<td align='center'><?= format_N($this->nettoyer($opticiens_total['montantForce_total'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($opticiens_total['montantApayer_total'])) ?></td>
<td colspan="3"> </td>
</tr>
</tfoot>
<tbody>
<?php
foreach ($opticiens as $opticien):
$typeSysteme = $this->nettoyer($opticien['typeSysteme']);
$nbligne++;
?>
<?php if($typeSysteme=="1") : ?>
<tr valign="top" style="background-color: red; color:white;">
<?php else: ?>
<tr valign="top">
<?php endif; ?>
<td align='center'><?= dateFr($this->nettoyer($opticien['dateLivraison'])) ?></td>
<td align='center'><?= $this->nettoyer($opticien['numeroBeneficiaire']) ?></td>
<td><?= $this->nettoyer($opticien['beneficiaire']) ?></td>
<td align='center'><?= $this->nettoyer($opticien['numeroBonOptique']) ?></td>
<td align='center'><?= $this->nettoyer($opticien['numeroFeuilleMaladie']) ?></td>
<td align='center'><?= $this->nettoyer($opticien['numeroBonConsultation']) ?></td>
<td><?= $this->nettoyer($opticien['libelleOptique']) ?></td>
<td align='center'><?= format_N($this->nettoyer($opticien['verres'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($opticien['monture'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($opticien['fraisReel'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($opticien['montantTm'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($opticien['montantArembourser'])) ?></td>
<td align='center'><?= $this->nettoyer($opticien['valide']) ?></td>
<td align='center'><?= format_N($this->nettoyer($opticien['montantForce'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($opticien['montantApayer'])) ?></td>
<td><?= $this->nettoyer($opticien['prestatairePrescription']) ?></td>
<td><?= $this->nettoyer($opticien['medecinPrescription']) ?></td>
</tr>
<?php
if ($nbligne == 200) {
$nbligne = "> ".$nbligne." => Utilisez / Use Excel";
break;
}
?>
<?php endforeach; ?>
</tbody>
</table>
<input class="sr-only" type="text" id="nbligne_info" name="nbligne_info" value="<?= $nbligne ?>" >
</div>