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

124 lines
4.7 KiB
PHP
Executable File

<div id="div_complet">
<input class="sr-only" id="idCollege" name="idCollege" type="text" value="<?= $_SESSION['idCollege'] ?>">
<?php if($_SESSION['idCollege'] != ""): ?>
<div id="div_reseau" style="padding-right:1px;">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:10pt;">
<thead>
<tr>
<th width="10%" style='text-align:center'> <?= _("Code") ?> </th>
<th style='text-align:center'> <?= _("Libellé") ?> </th>
<th width="15%"style='text-align:center'> <?= _("Nombre de Transaction Annuelle") ?> </th>
<th width="35%" style='text-align:center'> <?= _("Type de Remboursement") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($garanties as $v):
$idGarantie =$this->nettoyer($v['id']);
$codeGarantie=$this->nettoyer($v['codeGarantie']);
$codeTypeRemboursement = $this->nettoyer($v['codeTypeRemboursement']);
if (est_anglophone()){
$garantie = $this->nettoyer($v['garantieEng']);
}else{
$garantie = $this->nettoyer($v['garantie']);
}
?>
<tr valign="top">
<td align='center'><?= $codeGarantie ?></td>
<td ><?= $garantie ?></td>
<td>
<INPUT style='text-align:center; font-size:9pt;' class="form-control" TYPE="text" value="<?= $this->nettoyer($v['nbreLimiteGarantie']) ?>"
onBlur="javascript:ajax_maj_limite('<?=$idGarantie?>', this.value, this);">
</td>
<td>
<select style='font-size:9pt;' class="form-select" onchange="javascript:ajax_maj_typeremboursement('<?=$idGarantie?>', this.value, this);">
<?= liste_options($typeremboursement,$codeTypeRemboursement) ?>
</select>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<?php else: ?>
<div class="row">
<div id="div_reseau" class="col-5" style="padding-right:1px;">
<table class="table table-striped table-bordered table-hover table-condensed table-responsive tabliste compact" style="font-size:9pt;">
<thead>
<tr>
<th width="10%" style='text-align:center'> <?= _("Code") ?> </th>
<th width="85%" style='text-align:center'> <?= _("Libellé") ?> </th>
<th style='text-align:center'> => </th>
</tr>
</thead>
<tbody>
<?php foreach ($listegaranties as $v):
$codeGarantie=$this->nettoyer($v['codeGarantie']);
if (est_anglophone()){
$libelle = $this->nettoyer($v['libelleEng']);
}else{
$libelle = $this->nettoyer($v['libelle']);
}
?>
<tr valign="top">
<td align='center'><?= $codeGarantie ?></td>
<td ><?= $libelle ?></td>
<td align='center'> <input type="button" value="=>" onClick="javascript:ajouter_une_garantie_police('<?=$codeGarantie?>');" ></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<div id="div_prestataires_en_plus" class="col-7" >
<table class="table table-striped table-bordered table-hover table-condensed table-responsive tabliste compact" style="font-size:9pt;">
<thead>
<tr>
<th width="10%" style='text-align:center'> <?= _("Code") ?> </th>
<th style='text-align:center'> <?= _("Libellé") ?> </th>
<th width="15%"style='text-align:center'> <?= _("Nombre de Transaction Annuelle") ?> </th>
<th width="35%" style='text-align:center'> <?= _("Type de Remboursement") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($garantiespolice as $v):
$idGarantie =$this->nettoyer($v['id']);
$codeGarantie=$this->nettoyer($v['codeGarantie']);
$codeTypeRemboursement = $this->nettoyer($v['codeTypeRemboursement']);
if (est_anglophone()){
$garantie = $this->nettoyer($v['garantieEng']);
}else{
$garantie = $this->nettoyer($v['garantie']);
}
?>
<tr valign="top">
<td align='center'><?= $codeGarantie ?></td>
<td ><?= $garantie ?></td>
<td>
<INPUT style='text-align:center; font-size:9pt;' class="form-control" TYPE="text" value="<?= $this->nettoyer($v['nbreLimiteGarantie']) ?>"
onBlur="javascript:ajax_maj_limite('<?=$idGarantie?>', this.value, this);">
</td>
<td>
<select style='font-size:9pt;' class="form-select" onchange="javascript:ajax_maj_typeremboursement('<?=$idGarantie?>', this.value, this);">
<?= liste_options($typeremboursement,$codeTypeRemboursement) ?>
</select>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
<?php endif; ?>
</div>