40 lines
2.0 KiB
PHP
40 lines
2.0 KiB
PHP
<?php
|
|
$codeTypeApporteur = $this->nettoyer($typeapporteur['codeTypeApporteur']);
|
|
?>
|
|
|
|
<INPUT class="sr-only" TYPE="text" id="codeTypeApporteur" name="codeTypeApporteur" value="<?= $this->nettoyer($typeapporteur['codeTypeApporteur']) ?>">
|
|
|
|
<legend> <?= _("Détail commissions") . " : " . $this->nettoyer($typeapporteur['libelle'])?> </legend>
|
|
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:10pt;">
|
|
<thead>
|
|
<tr style="text-align:center" >
|
|
<th style="text-align:center" > <?= _("Id") ?> </th>
|
|
<th style="text-align:center"> <?= _("Type de contrat") ?> </th>
|
|
<th style="text-align:center"> <?= _("Etape") ?> </th>
|
|
<th style="text-align:center"> <?= _("Commission") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach ($tableaucommission as $donnee):
|
|
$idTableaucommission = $this->nettoyer($donnee['idTableaucommission']);
|
|
$codeTypeContrat = $this->nettoyer($donnee['codeTypeContrat']);
|
|
$codeEtape = $this->nettoyer($donnee['codeEtape']);
|
|
$tauxCommission = $this->nettoyer($donnee['tauxCommission']);
|
|
?>
|
|
<tr style="text-align:center" valign="top" >
|
|
<td> <?= $this->nettoyer($donnee['idTableaucommission']) ?> </td>
|
|
<td> <?= $this->nettoyer($donnee['typecontrat']) ?> </td>
|
|
<td> <?= $this->nettoyer($donnee['etapepolice']) ?> </td>
|
|
|
|
<?php if($idTableaucommission=='0'): ?>
|
|
<td style='background-color:yellow;'> <input style='text-align:center; font-size:10pt;' type="text" value="<?= $tauxCommission ?>" onChange="enregistrer_detail_commission(<?= $idTableaucommission ?>,'<?= $codeTypeApporteur ?>','<?= $codeTypeContrat ?>','<?= $codeEtape ?>', this.value);" > </td>
|
|
<?php else: ?>
|
|
<td> <input style='text-align:center; font-size:10pt;' type="text" value="<?= $tauxCommission ?>" onChange="enregistrer_detail_commission(<?= $idTableaucommission ?>,'<?= $codeTypeApporteur ?>','<?= $codeTypeContrat ?>','<?= $codeEtape ?>', this.value);"> </td>
|
|
<?php endif; ?>
|
|
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|