prestation/Vue/Ajaxgarantiespolice/index.php
2025-12-05 10:42:46 +00:00

105 lines
4.1 KiB
PHP
Executable File

<div id="div_garanties">
<div class="row">
<div id="div_garbase" class="col-3">
<fieldset>
<STRONG> <?= _("Garanties de Base") ?> </STRONG>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:8pt;">
<thead>
<tr>
<th style='text-align:center'> <?= _("Garantie") ?> </th>
<th width="20%" style='text-align:center'> <?= _("Tx") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($garantiesbase as $garantiebase):?>
<tr valign="top">
<td align='center'><?= $this->nettoyer($garantiebase['garantie']) ?></td>
<td><INPUT style='text-align:center' class="form-control" TYPE="text" value="<?= $this->nettoyer($garantiebase['tauxPlafond']) ?>"></td>
</tr>
<?php endforeach; ?>
<?php if($_SESSION['garantieArchive_C']!='1'): ?>
<tr>
<td colspan="2" align="center"><input class = "form-control btn btn-primary" type="button" value="<?= _("Archiver les garanties de la police") ?>" onClick="javascript:archiver_garantie_police();"></td>
</tr>
<?php endif; ?>
</tbody>
</table>
</fieldset>
</div>
<div id="div_garoptionnelle" class="col-3">
<fieldset>
<STRONG> <?= _("Garanties Optionnelles") ?> </STRONG>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:9pt;">
<thead>
<tr>
<th style='text-align:center'> <?= _("Garantie") ?> </th>
<?php if($_SESSION['garantieArchive_C']!='1'): ?>
<th style='text-align:center'> <?= _("Ajouter") ?> </th>
<?php endif; ?>
</tr>
</thead>
<tbody>
<?php foreach ($garoptionnelles as $garoptionnelle):
$codeGarantie=$this->nettoyer($garoptionnelle['codeGarantie']);
$idPol=$this->nettoyer($garoptionnelle['idPolice']);
?>
<tr valign="top">
<td align='center'><?= $this->nettoyer($garoptionnelle['libelle']) ?></td>
<?php if($_SESSION['garantieArchive_C']!='1'): ?>
<?php if($idPol<='0'): ?>
<td align='center'> <input type="button" value="=>" onClick="javascript:ajouter_garantie_police('<?= $codeGarantie ?>');"></td>
<?php else: ?>
<td> </td>
<?php endif; ?>
<?php endif; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
</div>
<div id="div_gar_opt_acquises" class="col-6">
<fieldset>
<STRONG> <?= _("Options Acquises") ?> </STRONG>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:9pt;">
<thead>
<tr>
<?php if($_SESSION['garantieArchive_C']!='1'): ?>
<th width="10%" style='text-align:center'> <?= _("Retirer") ?> </th>
<?php endif; ?>
<th style='text-align:center'> <?= _("Garantie") ?> </th>
<th width="15%" style='text-align:center'> <?= _("Tx") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($garoptacquises as $garoptacquise):
$idGarantie=$this->nettoyer($garoptacquise['idGarantie']);
$gar_add=$this->nettoyer($garoptacquise['additionnelle']);
?>
<tr valign="top">
<?php if($_SESSION['garantieArchive_C']!='1'): ?>
<td align='center'> <input type="button" value="<=" onClick="javascript:retirer_garantie_police(<?= $idGarantie ?>);"></td>
<?php endif; ?>
<?php if($gar_add=='1'): ?>
<td><INPUT class="form-control" TYPE="text" value="<?= convertirc($this->nettoyer($garoptacquise['garantie'])) ?>"></td>
<?php else: ?>
<td><INPUT class="form-control" TYPE="text" value="<?= convertirc($this->nettoyer($garoptacquise['garantie'])) ?>" readonly></td>
<?php endif; ?>
<td><INPUT style='text-align:center' class="form-control" TYPE="text" value="<?= $this->nettoyer($garoptacquise['tauxPlafond']) ?>"></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</fieldset>
</div>
</div>
</div>