production/Vue/Ajaxmodecalculprime/index.php
2025-12-01 16:12:12 +00:00

58 lines
2.1 KiB
PHP
Executable File

<?php
$codeModecalculPrime = $produit['codeModecalculPrime'];
?>
<?php if($codeModecalculPrime=="TA"): ?>
<table class="table table-responsive table-condensed">
<tbody>
<tr>
<td width="13%" align="center" class="required">Type Tranche Age</td>
<td >
<select class="form-control selectpicker" data-live-search="true" id="codeEnteteTrancheAge" NAME="codeEnteteTrancheAge" required AUTOCOMPLETE="OFF" autofocus onChange="javascript:trancheage();" style="font-size:12pt;">
<?php liste_options($typesTranches,$this->nettoyer($produit['codeEnteteTrancheAge'])); ?>
</SELECT>
</td>
</tr>
</tbody>
</table>
<div id="div_trancheage" class="col-md-12">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive tabspecialemini compact" style="font-size:14pt; margin-top:5px;">
<thead>
<tr>
<th style="text-align:center" > <?= _("Ordre") ?> </th>
<th style="text-align:center" > <?= _("Tranche Âge") ?> </th>
<th style="text-align:center" > <?= _("Prime") ?> </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="5%"> <?= $i ?> </td>
<td style="text-align:center"> <?= $libelle ?> </td>
<td style='text-align:center' width="15%">
<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>
<?php endif; ?>