prestation/Vue/Ajaxfraisgestiongcsel/reafficher.php
2025-12-01 18:54:33 +00:00

73 lines
3.7 KiB
PHP

<div id="detail_facture">
<?php
$valideAs = $this->nettoyer($reglement['valideAs']);
?>
<INPUT style='text-align:center; font-size:10pt;' class="form-control" TYPE="text" value="Filtres : Cartes sélectionnées 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_frais_gestion_gc_sel();"> <?= _("Recharger...") ?> </button> </td>
<td> </td>
<td> <button style='font-size:10pt;' type="button" class="form-control btn btn-primary" onclick="javascript:reafficher_frais_gestion_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_frais_gestion_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:10pt;">
<thead>
<tr>
<th rowspan="2" style='text-align:center'> <?= _("Exercice") ?> </th>
<th rowspan="2" style='text-align:center'> <?= _("Mois") ?> </th>
<th rowspan="2" style='text-align:center'> <?= _("Nb Carte") ?> </th>
<th rowspan="2" style='text-align:center'> <?= _("Montant") ?> </th>
<th rowspan="2" style='text-align:center'> <?= _("TVA") ?> </th>
<th rowspan="2" style='text-align:center'> <?= _("TTC") ?> </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_frais_gestion_sel_gc_tout('1');"> </td>
<th style='text-align:center'> <input class = "form-control btn btn-primary" type="button" value="X" onClick="selectionner_frais_gestion_sel_gc_tout('0');"> </td>
</tr>
<?php endif; ?>
</thead>
<tbody>
<?php foreach ($gcs as $gc):
$idTemp=$this->nettoyer($gc['idTemp']);
?>
<tr valign="top">
<td align='center'> <?= $this->nettoyer($gc['codeExercice']) ?> </td>
<td align='center'> <?= $this->nettoyer($gc['codeMois']) ?> </td>
<td align='center'> <?= format_N($this->nettoyer($gc['nbCarte'])) ?> </td>
<td align='center'> <?= format_N($this->nettoyer($gc['montantFrais'])) ?> </td>
<td align='center'> <?= format_N($this->nettoyer($gc['tvaFrais'])) ?> </td>
<td align='center'> <?= format_N($this->nettoyer($gc['ttcFrais'])) ?> </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_frais_gestion_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_frais_gestion_sel_gc(<?= $idTemp ?>, this.value);"></td>
<?php endif; ?>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>