garant/Vue/Ajaxgcfraisgestion/affichergcfraisgestioncumul.php
2025-12-05 10:57:03 +00:00

90 lines
4.3 KiB
PHP
Executable File

<div id="div_fraisgestion">
<?php
$regle = $entetefraisgestion['regle'];
$facture = $entetefraisgestion['facture'];
$regle = $entetefraisgestion['regle'];
?>
<input class="sr-only" type="text" id="regle" name="regle" value="<?= $regle ?>" >
<input class="sr-only" type="text" id="codeGcAssureur" name="codeGcAssureur" value="<?= $this->nettoyer($entetefraisgestion['codeGcAssureur']) ?>" >
<input class="sr-only" type="text" id="codeExercice" name="codeExercice" value="<?= $this->nettoyer($entetefraisgestion['codeExercice']) ?>" >
<input class="sr-only" type="text" id="codeMois" name="codeMois" value="<?= $this->nettoyer($entetefraisgestion['codeMois']) ?>" >
<legend>
FRAIS DE GESTION =>
<?= _("Facturé?") ?>
<?php if ($facture=="1"): ?>
<td align='center'> <input type="checkbox" checked disabled></td>
<?php else: ?>
<td align='center'> <input type="checkbox" disabled></td>
<?php endif; ?>
=>
<?= _("Réglé?") ?>
<?php if ($regle=="1"): ?>
<td align='center'> <input type="checkbox" checked disabled></td>
<?php else: ?>
<td align='center'> <input type="checkbox" disabled></td>
<?php endif; ?>
</legend>
<table class="table table-responsive table-condensed" style='font-size:9pt;'>
<tbody>
<tr>
<td width="15%">
<?php if (isset($_SESSION['lang']) && $_SESSION['lang']=="en_US"): ?>
<input class="form-control" style="text-align: center; font-size:9pt;" type="text" value="<?= $this->nettoyer($entetefraisgestion['periodeEng']) ?>" readonly>
<?php else: ?>
<input class="form-control" style="text-align: center; font-size:9pt;" type="text" value="<?= $this->nettoyer($entetefraisgestion['periode']) ?>" readonly>
<?php endif; ?>
</td>
<td width="5%" align="center"> Date </td>
<td><INPUT style='font-size:9pt; text-align:center;' class="form-control" TYPE="text" value="<?= dateheureFr($this->nettoyer($entetefraisgestion['dateSysteme'])) ?>" readonly ></td>
<td width="7%" align="center" > <?= _("Nb cartes") ?> </td>
<td width="8%" > <INPUT style='font-size:9pt; text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($entetefraisgestion['nbCarte'])) ?>" readonly > </td>
<td width="7%" align="center" > <?= _("Montant") ?> </td>
<td > <INPUT style='font-size:9pt; text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($entetefraisgestion['montantFrais'])) ?>" readonly > </td>
<td width="5%" align="center" > <?= _("Tva") ?> </td>
<td > <INPUT style='font-size:9pt; text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($entetefraisgestion['tvaFrais'])) ?>" readonly > </td>
<td width="5%" align="center" > <?= _("TTC") ?> </td>
<td > <INPUT style='font-size:9pt; text-align:center;' class="form-control" TYPE="text" value="<?= format_N($this->nettoyer($entetefraisgestion['ttcFrais'])) ?>" readonly > </td>
</tr>
<tr>
<td colspan="4"> <input class = "form-control btn btn-primary" type="button" value="<?= _("Détail...") ?>" onClick="afficher_detail_gcfraisgestion();" style='font-size:9pt;' > </td>
<td colspan="2"> </td>
<td colspan="5"> <input class = "form-control btn btn-primary" type="button" value="<?= _("Cumul par souscripteur...") ?>" onClick="cumul_gc_frais_gestion_par_client();" style='font-size:9pt;' > </td>
</tr>
</tbody>
</table>
<div id="div_detail_fraisgestion">
<table class="table table-striped table-bordered table-condensed table-responsive" style='font-size:10pt;'>
<thead>
<tr>
<th style="text-align:center"> <?= _("Souscripteur") ?> </th>
<th style="text-align:center"> <?= _("Nb cartes") ?> </th>
<td align="center" > <?= _("Montant") ?> </td>
</tr>
</thead>
<tbody>
<?php foreach ($fraisgestions as $fraisgestion):
?>
<tr valign="top">
<td> <?= $this->nettoyer($fraisgestion['souscripteur']) ?> </td>
<td align='center'> <?= format_N($this->nettoyer($fraisgestion['nbCarte'])) ?> </td>
<td align='center'> <?= format_N($this->nettoyer($fraisgestion['montantFrais'])) ?> </td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>