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

66 lines
2.2 KiB
PHP
Executable File

<div id="div_garantieproduit">
<div class="row">
<div id="div_sans_seuil" class="col-6" >
<legend> <?= _("Garanties à Incorporer") ?> </legend>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:10pt;">
<thead>
<tr>
<th style='text-align:center'> <?= _("Libellé") ?> </th>
<th width="20%" style='text-align:center'> => </th>
</tr>
</thead>
<tbody>
<?php foreach ($garanties_out as $v):
$codeGarantie = $v['codeGarantie'];
?>
<tr valign="top">
<td align='center'><?= $this->nettoyer($v['libelle']) ?></td>
<td align='center'> <input type="button" value="=>" onClick="javascript:incorporer_une_garantie_college('<?=$codeGarantie?>');" ></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<div id="div_avec_seuil" class="col-6" >
<legend> <?= _("Garanties Incorporées") ?> </legend>
<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'> <= </th>
<th style='text-align:center'> <?= _("Libellé") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($garanties_in as $v):
$id = $v['id'];
?>
<tr valign="top">
<td align='center'> <input type="button" value="<=" onClick="javascript:annuler_une_garantie_college('<?=$id?>');" ></td>
<td align='center'><?= $this->nettoyer($v['libelle']) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
<table class="table table-responsive table-condensed" style='font-size:9pt; text-align:center'>
<tbody>
<tr>
<td >
<?php if($nombreGarantie > "0"): ?>
<input style='font-size:10pt;' class = "form-control btn btn-primary" type="button" value="<?= _("Enregistrer") ?>" onClick="javascript:enregistrer_avenant_incorporation_garantie();">
<?php else: ?>
<input style='font-size:10pt;' class = "form-control btn btn-primary" type="button" value="<?= _("Enregistrer") ?>" disabled>
<?php endif; ?>
</td>
</tr>
</tbody>
</table>
</div>