prestation/Vue/Ajaxcorpsactebareme/index.php
2025-12-01 18:54:33 +00:00

72 lines
3.7 KiB
PHP

<?php $nbreActe = count($actes);?>
<div id="div_corpsacte" >
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;" >
<thead style="display: block;">
<tr>
<th rowspan="2" style='text-align:center' width="31%"> <?= _("Actes ")."(".$nbreActe.")"; ?> </th>
<th colspan="5" style='text-align:center'> <?= _("Plafond") ?> </th>
<th rowspan="2" style='text-align:center'> <?= _("Delai Carence") ?> </th>
<th rowspan="2" style='text-align:center'> <?= _("Ticket Modérateur") ?> </th>
</tr>
<tr>
<th style='text-align:center' width="10%"> <?= _("Choix") ?> </th>
<th style='text-align:center' width="12%"> <?= _("Valeur") ?> </th>
<th style='text-align:center' width="9%"> <?= _("Transaction") ?> </th>
<th style='text-align:center' width="10%"> <?= _("Périodicité") ?> </th>
<th style='text-align:center' width="12%"> <?= _("Observation") ?> </th>
</tr>
</thead>
<tbody style="overflow:auto; height:210px; display:block;">
<?php foreach ($actes as $v):
$idActe = $this->nettoyer($v['id']);
$libelle = $this->nettoyer($v['libelle']);
if (est_anglophone())
{
$libelle = $this->nettoyer($v['libelleEng']);
}
?>
<tr valign="top">
<td align='center' width="31%">
<input type="button" style='font-size:8pt; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width:264px;' class="form-control btn btn-danger" id="btn_acte" value="<?= $libelle ?>"
onClick="javascript:supprimer_actes(<?=$idActe?>);" title="Cliquez pour supprimer cet acte.">
</td>
<td align='center' width="11%">
<select class="form-control text-center" onChange="ajax_maj_forfait_bareme('<?=$idActe?>', this.value, this);" >
<?= liste_options($forfaitTaux,"1",true) ?>
</select>
</td>
<td width="12%">
<INPUT style='font-size:8pt;' class="form-control text-center" TYPE="text" onkeyup="controle_numerique(this);"
onChange="ajax_maj_plafond_bareme('<?=$idActe?>', this.value, this);" onblur="formatMonetaire(this);"
value="<?= format_N($this->nettoyer($v['forfaitPlafond'])); ?>">
</td>
<td align='center' width="9%">
<INPUT style='font-size:8pt;' class="form-control text-center" TYPE="text" onkeyup="controle_numerique(this);"
onChange="ajax_maj_nbreTransaction_bareme('<?=$idActe?>', this.value, this);"
value="<?=$this->nettoyer($v['nbreTransaction'])?>">
</td>
<td align='center' width="11%">
<select class="form-control text-center" onChange="ajax_maj_codeperiodicite_bareme('<?=$idActe?>', this.value, this);">
<?= liste_options($periodicite,$this->nettoyer($v['codePeriodicite']),true) ?>
</select>
</td>
<td align='center' width="12%">
<select class="form-control text-center" onChange="ajax_maj_codeobservation_bareme('<?=$idActe?>', this.value, this);">
<?= liste_options($observation,$this->nettoyer($v['codeObservation']),true) ?>
</select>
</td>
<td align='center' width="7%">
<INPUT style='font-size:8pt;' class="form-control text-center" TYPE="text" onkeyup="controle_numerique(this);"
onChange="ajax_maj_delaicarenceacte_bareme('<?=$idActe?>', this.value, this);"
value="<?=$this->nettoyer($v['delaiCarenceActe'])?>">
</td>
<td align='center' width="8%">
<INPUT style='font-size:8pt;' class="form-control text-center" TYPE="text" onkeyup="controle_numerique(this);"
onChange="ajax_maj_ticketmoderateur_acte_bareme('<?=$idActe?>', this.value, this);"
value="<?=$this->nettoyer($v['ticketModerateur'])?>">
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>