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

52 lines
2.5 KiB
PHP
Executable File

<div id="detail_facture">
<?php
$valideAs = $this->nettoyer($reglement['valideAs']);
?>
<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 cartes") ?> </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_gc_tout('1');"> </td>
<th style='text-align:center'> <input class = "form-control btn btn-primary" type="button" value="X" onClick="selectionner_frais_gestion_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_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_gc(<?= $idTemp ?>, this.value);"></td>
<?php endif; ?>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>