44 lines
1.8 KiB
PHP
Executable File
44 lines
1.8 KiB
PHP
Executable File
<?php
|
|
$nbreTotal = count($tableaucommission);
|
|
if($nbreTotal < 10){
|
|
$nbreTotal = '0'.$nbreTotal;
|
|
}
|
|
?>
|
|
<table style="margin: auto" class="table-responsive">
|
|
<tbody>
|
|
<td><input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbreTotal" name="nbreTotal" value="Lignes Total : <?= $nbreTotal; ?>" readonly> </td>
|
|
</tbody>
|
|
</table>
|
|
<input type="hidden" id="total" value="<?= $nbreTotal; ?>">
|
|
<table id="tableLister" class="table table-striped table-bordered table-hover table-condensed table-responsive">
|
|
<thead>
|
|
<tr>
|
|
<th class="text-center">Type Apporteur</th>
|
|
<th class="text-center">Etape Police </th>
|
|
<th class="text-center">Type Contrat</th>
|
|
<th class="text-center">Taux Commission</th>
|
|
<th class="text-center">Modifier</th>
|
|
<th class="text-center">Supprimer</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach ($tableaucommission as $v):
|
|
$idData = $this->nettoyer($v['id']);
|
|
?>
|
|
<tr valign="top">
|
|
<td class="text-left" width="25%"><?= $this->nettoyer($v['typeapporteur']) ?></td>
|
|
<td class="text-left" width="25%"><?= $this->nettoyer($v['etapepolice']) ?></td>
|
|
<td class="text-left" width="25%"><?= $this->nettoyer($v['typecontrat']) ?></td>
|
|
<td class="text-center" width="15%"><?= $this->nettoyer($v['tauxCommission']) ?></td>
|
|
<td class="text-center" width="10%">
|
|
<button style="width:100%" class ="form-control btn btn-primary" type="button" id="btn-editer" name="Modifier"
|
|
onclick="JAVASCRIPT:formModifTableRef(<?= $idData; ?>);" >Modifier</button>
|
|
</td>
|
|
<td class="text-center" width="10%">
|
|
<button style="width:100%" class = "form-control btn btn-danger" type="button" id="btn-supprimer" name="Supprimer"
|
|
onclick="JAVASCRIPT:supprimeLigneListe(<?= $idData; ?>)">Supprimer</button>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|