135 lines
5.4 KiB
PHP
Executable File
135 lines
5.4 KiB
PHP
Executable File
<div id="div_trancheage">
|
|
<div class="row">
|
|
<div id="div_prime_lien" class="col-8">
|
|
<table id="tab_prime_categorie" class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:11pt; margin-top:5px;">
|
|
<thead>
|
|
<tr>
|
|
<th style='text-align:center '><?= _("Lien Parenté") ?> </th>
|
|
<th style='text-align:center'> <?= _("Plafond") ?> </th>
|
|
<th style='text-align:center'> <?= _("Maximum par Famille") ?> </th>
|
|
<th style='text-align:center'> <?= _("Autoriser Plus?") ?> </th>
|
|
<th style='text-align:center'> <?= _("Surprime") ?> </th>
|
|
|
|
<th style='text-align:center'> <?= _("Âge Min") ?> </th>
|
|
<th style='text-align:center'> <?= _("Âge Max") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<?php
|
|
$i = 0;
|
|
foreach ($primeLienParente as $v):
|
|
$idPrime=$this->nettoyer($v['id']);
|
|
$codeLienParente=$this->nettoyer($v['codeLienParente']);
|
|
$lienparente = $this->nettoyer($v['lienparente']);
|
|
|
|
if (est_anglophone()){
|
|
$lienparente = $this->nettoyer($v['lienparenteEng']);
|
|
}
|
|
|
|
$ageMin = $this->nettoyer($v['ageMinimum']);
|
|
$ageMax = $this->nettoyer($v['ageMaximum']);
|
|
|
|
++$i;
|
|
?>
|
|
<tr valign="top">
|
|
<td width="20%"><?= $lienparente ?></td>
|
|
|
|
<td align='center'>
|
|
<INPUT class="form-control text-center" TYPE="text" id="tabPlafond<?=$i;?>" value="<?= format_N($v['plafondBeneficiaire']); ?>"
|
|
onkeyup="controle_numerique(this);" onblur="formatMonetaire(this);"
|
|
onChange="ajax_maj_plafond_produit_lienparente('<?=$idPrime?>', this.value, this);" onfocus="formatNumerique(this);">
|
|
</td>
|
|
|
|
<?php if($codeLienParente!="A"):?>
|
|
<td align='center'>
|
|
<INPUT class="form-control text-center" TYPE="text" id="tabnbreParFamille<?=$i;?>" value="<?= $v['nbreParFamille']; ?>"
|
|
onkeyup="controle_numerique(this);" onblur="formatMonetaire(this);"
|
|
onChange="ajax_maj_nbrefamille_produit_lienparente('<?=$idPrime?>', this.value, this);" onfocus="formatNumerique(this);">
|
|
</td>
|
|
|
|
<td align='center'>
|
|
<select class="form-select text-center" id="tabAutoriser<?=$i;?>" onChange="ajax_maj_autoriser_produit_lienparente('<?=$idPrime?>', this.value, this, <?=$i;?>);">
|
|
<?php liste_options($ouinonautoriser, $this->nettoyer($v['autoriserSupplement']), true); ?>
|
|
</SELECT>
|
|
</td>
|
|
|
|
<td align='center'>
|
|
<INPUT class="form-control text-center" TYPE="text" id="tabprimeSupplementaire<?=$i;?>" value="<?= format_N($v['primeSupplementaire']); ?>"
|
|
onkeyup="controle_numerique(this);" onblur="formatMonetaire(this);"
|
|
onChange="ajax_maj_supplementaire_produit_lienparente('<?=$idPrime?>', this.value, this);" onfocus="formatNumerique(this);">
|
|
</td>
|
|
<?php else:?>
|
|
<td align='center'>
|
|
<INPUT class="form-control text-center" TYPE="text" value="<?= $v['nbreParFamille']; ?>" disabled>
|
|
</td>
|
|
|
|
|
|
<td align='center'>
|
|
<select class="form-select text-center" disabled>
|
|
<?php liste_options($ouinonautoriser, $this->nettoyer($v['autoriserSupplement']), true); ?>
|
|
</SELECT>
|
|
|
|
</td>
|
|
|
|
<td align='center'>
|
|
<INPUT class="form-control text-center" TYPE="text" id="tabprimeSupplementaire<?=++$i;?>"
|
|
value="<?= format_N($v['primeSupplementaire']); ?>" disabled>
|
|
</td>
|
|
|
|
<?php endif;?>
|
|
|
|
<td align='center'>
|
|
<INPUT class="form-control text-center" TYPE="text" id="tabAgeMin<?=$i;?>" value="<?= $ageMin; ?>"
|
|
onkeyup="controle_numerique(this);" onChange="ajax_maj_Agemin_produit_lienparente('<?=$idPrime?>', this.value, this);">
|
|
</td>
|
|
|
|
<td align='center'>
|
|
<INPUT class="form-control text-center" TYPE="text" id="tabAgeMax<?=$i;?>" value="<?= $ageMax; ?>"
|
|
onkeyup="controle_numerique(this);" onChange="ajax_maj_Agemax_produit_lienparente('<?=$idPrime?>', this.value, this);">
|
|
</td>
|
|
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div id="div_prime_trancheage" class="col-4">
|
|
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:11pt; margin-top:5px;" >
|
|
<thead>
|
|
<tr>
|
|
<th style="text-align:center" > <?= _("Tranche Âge") ?> </th>
|
|
<th style="text-align:center" > <?= _("Prime de Base") ?> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
$i=0;
|
|
foreach ($primeTrancheage as $v):
|
|
$idPrime = $this->nettoyer($v['id']);
|
|
|
|
$libelle = $this->nettoyer($v['libelleTrancheAge']);
|
|
|
|
if (est_anglophone()){
|
|
$libelle = $this->nettoyer($v['libelleTrancheAgeEng']);
|
|
}
|
|
|
|
$i++;
|
|
?>
|
|
<tr valign="top">
|
|
<td style="text-align:center" width="50%"> <?= $libelle ?> </td>
|
|
<td style='text-align:center' >
|
|
|
|
<INPUT style='text-align:center; font-size:10pt;' class="form-control text-center" TYPE="text" id="prime<?=$i;?>" value="<?= format_N($this->nettoyer($v['prime'])); ?>"
|
|
onkeyup="controle_numerique(this);" onblur="formatMonetaire(this);" onChange="ajax_maj_prime_produit('<?=$idPrime?>', this.value, this);" onfocus="formatNumerique(this);">
|
|
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|