prestation/Vue/Ajaxetatcumulprestataire/index.php
2025-12-01 18:54:33 +00:00

85 lines
3.7 KiB
PHP

<?php $nbligne = 0; ?>
<div id="div_detail_requete">
<button class="sr-only" id="btn_pop_detail" name="btn_pop_detail" type="button" data-bs-toggle="modal" data-bs-target="#popdetail" style='font-size:10pt;' > </button>
<INPUT class="sr-only" type="text" id="codePrestataire" name="codePrestataire" value="">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<td colspan="2" style='text-align:center'> Total </td>
<td align='center'><?= format_N($this->nettoyer($cumulprestataires_total['montantApayer_total'])) ?></td>
<td style='text-align:center'> <?= format_N($this->nettoyer($cumulprestataires_total['nbFactures_total'])) ?> </td>
<td align='center'><?= format_N($this->nettoyer($cumulprestataires_total['moyenne_total'])) ?></td>
<td> </td>
</tr>
<tr>
<th style='text-align:center'> Type </th>
<th style='text-align:center'> <?= _("Prestataire") ?> </th>
<th style='text-align:center'> <?= _("Montant") ?> </th>
<th style='text-align:center'> <?= _("Patients") ?> </th>
<th style='text-align:center'> <?= _("Moyenne") ?> </th>
<th width="10%" style='text-align:center'> <?= _("Détail...") ?> </th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="2" style='text-align:center'> Total </td>
<td align='center'><?= format_N($this->nettoyer($cumulprestataires_total['montantApayer_total'])) ?></td>
<td style='text-align:center'> <?= format_N($this->nettoyer($cumulprestataires_total['nbFactures_total'])) ?> </td>
<td align='center'><?= format_N($this->nettoyer($cumulprestataires_total['moyenne_total'])) ?></td>
<td> </td>
</tr>
</tfoot>
<tbody>
<?php foreach ($cumulprestataires as $cumulprestataire):
$codePrestataire = $this->nettoyer($cumulprestataire['codePrestataire']);
$nbligne++;
?>
<tr valign="top">
<td><?= $this->nettoyer($cumulprestataire['typeprestataire']) ?></td>
<td><?= $this->nettoyer($cumulprestataire['prestataire']) ?></td>
<td align='center'><?= format_N($this->nettoyer($cumulprestataire['montantApayer'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($cumulprestataire['nbFactures'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($cumulprestataire['moyenne'])) ?></td>
<td>
<input class = "form-control btn btn-info" type="button" value="<?= _("Détail...") ?>" onClick="javascript:afficher_detail_stat_prestataire('<?=$codePrestataire?>');" style='font-size:8pt;' >
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<input class="sr-only" type="text" id="nbligne_info" name="nbligne_info" value="<?= $nbligne ?>" >
<div class="modal fade" id="popdetail" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button id="btn_close_pop" name="btn_close_pop" type="button" class="close" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
<h4 class="modal-title"> <?= _("Détail des factures du prestataire...") ?> </h4>
</div>
<div class="modal-body">
<div id="div_details">
<input type="button" class = "form-control btn btn-info" style='font-size:10pt;' value="<?= _("Charger...") ?>" onclick="javascript:charger_detail_stat_prestataire();" />
</div>
</div>
<div class="modal-footer">
<button id="close_pop" name="close_pop" type="button" class="btn btn-default" data-bs-dismiss="modal"> <?= _("Fermer") ?> </button>
</div>
<div id="div_export_b">
</div>
</div>
</div>
</div>
</div>