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

79 lines
2.7 KiB
PHP
Executable File

<?php $this->titre = "INTER SANTE - Tableau des tranches d'accessoires"; ?>
<INPUT class="sr-only" TYPE="text" id="nomForm" name="nomForm" value="frmtrancheaccessoire">
<legend> <?= _("Grille des accessoires") ?> </legend>
<div id="div_entete_table">
</div>
<div id="div_maj_table">
</div>
<div id="div_lister_table">
<?php
$nbreTotal = count($bareme);
if($nbreTotal < 10){
$nbreTotal = '0'.$nbreTotal;
}else{
$nbreTotal = format_N($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 class="table table-striped table-bordered table-hover table-condensed table-responsive tabliste compact">
<thead>
<tr>
<th class="text-center"><?= _("Centre gestion");?></th>
<th class="text-center"><?= _("Type Contrat");?></th>
<th class="text-center"><?= _("Prime Mini");?></th>
<th class="text-center"><?= _("Prime Maxi");?></th>
<th class="text-center"><?= _("Forfait");?></th>
<th class="text-center"><?= _("Taux");?></th>
<th class="text-center"><?= _("Application");?></th>
<th class="text-center"><?= _("Modifier");?></th>
</tr>
</thead>
<tbody>
<?php foreach ($bareme as $v):
$idData = $this->nettoyer($v['id']);
$typecontrat = $this->nettoyer($v['typecontrat']);
$appli = $this->nettoyer($v['appli']);
if (est_anglophone()){
$typecontrat = $this->nettoyer($v['typecontratEng']);
$appli = $this->nettoyer($v['appliEng']);
}
?>
<tr valign="top">
<td class="text-center" width="12%"><?= $this->nettoyer($v['codeSociete']);; ?>
<td class="text-center" width="15%"><?= $typecontrat; ?></td>
<td class="text-center" width="10%"><?= format_N($this->nettoyer($v['primeMin'])); ?></td>
<td class="text-center" width="10%"><?= format_N($this->nettoyer($v['primeMax'])); ?></td>
<td class="text-center" width="10%"><?= format_N($this->nettoyer($v['accessoireForfait'])); ?></td>
<td class="text-center" width="5%"><?= number_format($this->nettoyer($v['tauxAccessoire']),2); ?></td>
<td class="text-center" width="20%"><?= $appli; ?></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>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>