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

81 lines
3.9 KiB
PHP
Executable File

<div id="detail_facture">
<?php $this->titre = "INTER-SANTE - Facturation Gestion confiée";
$valideAs = $this->nettoyer($reglement['valideAs']);
?>
<INPUT style='text-align:center; font-size:10pt;' class="form-control" TYPE="text" value="Filtres : Sinistres sélectionnés pour facturation" readonly >
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td> <button style='font-size:10pt;' type="button" class="form-control btn btn-primary" onclick="javascript:recharger_factures_gc_sel();"> Recharger...</button> </td>
<td> </td>
<td> <button style='font-size:10pt;' type="button" class="form-control btn btn-primary" onclick="javascript:reafficher_factures_gc_sel();"> Rafraichir...</button> </td>
<td> </td>
<?php if($valideAs=='0'): ?>
<td> <button style='font-size:10pt;' type="button" class="form-control btn btn-primary" onclick="javascript:valider_selection_factures_gc_sel();"> Mettre à jour la facturation...</button> </td>
<?php else: ?>
<td> <button style='font-size:10pt;' type="button" class="form-control btn btn-primary" disabled > Mettre à jour la facturation...</button> </td>
<?php endif; ?>
</tr>
</tbody>
</table>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th rowspan="2" style='text-align:center'> Date </th>
<th rowspan="2" style='text-align:center'> Facture </th>
<th rowspan="2" > Prestataire </th>
<th rowspan="2" > Souscripteur </th>
<th rowspan="2" colspan="2" style='text-align:center'> Bénéficiaire </th>
<th rowspan="2" style='text-align:center'> Frais </th>
<th rowspan="2" style='text-align:center'> Redressé </th>
<th rowspan="2" style='text-align:center'> A Payer </th>
<?php if($valideAs=='0'): ?>
<th width="6%" colspan="2" style='text-align:center'>Choix</th>
<?php endif; ?>
</tr>
<?php if($valideAs=='0'): ?>
<tr>
<th style='text-align:center'> <input class = "form-control btn btn-primary" type="button" value="V" onClick="selectionner_facture_sel_gc_tout('1');"> </td>
<th style='text-align:center'> <input class = "form-control btn btn-primary" type="button" value="X" onClick="selectionner_facture_sel_gc_tout('0');"> </td>
</tr>
<?php endif; ?>
</thead>
<tbody>
<?php foreach ($gcs as $gc):
$idFacture=$this->nettoyer($gc['idFacture']);
$idTemp=$this->nettoyer($gc['idTemp']);
?>
<tr valign="top">
<td align='center'><?= dateFr($this->nettoyer($gc['dateFacture'])) ?></td>
<td align='center'><?= $idFacture ?></td>
<td><?= $this->nettoyer($gc['prestataire']) ?></td>
<td><?= $this->nettoyer($gc['souscripteur']) ?></td>
<td align='center'><?= $this->nettoyer($gc['numeroBeneficiaire']) ?></td>
<td><?= $this->nettoyer($gc['beneficiaire']) ?></td>
<td align='center'><?= format_N($this->nettoyer($gc['montantFacture'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($gc['montantRedresse'])) ?></td>
<td align='center'><?= format_N($this->nettoyer($gc['montantApayer'])) ?></td>
<?php if($valideAs=='0'): ?>
<?php if($gc['choix']=='1'): ?>
<td colspan="2" align='center'> <input type="checkbox" checked value="<?php echo $gc['choix'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};selectionner_facture_sel_gc(<?= $idTemp ?>, this.value);"></td>
<?php else: ?>
<td colspan="2" align='center'> <input type="checkbox" value="<?php echo $gc['choix'] ; ?>" onClick="javascript:if(this.value=='1'){this.value='0'}else{this.value='1'};selectionner_facture_sel_gc(<?= $idTemp ?>, this.value);"></td>
<?php endif; ?>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>