newdesigngestionnaire/vues_newdesign/Ajaxtextefacturationgarant/index.php
2026-03-12 09:15:34 +00:00

38 lines
1.9 KiB
PHP
Executable File

<div class="p-4 bg-white">
<div class="d-flex align-items-center mb-3 text-primary">
<i class="fas fa-info-circle me-2"></i>
<h6 class="fw-bold mb-0 text-uppercase small"><?= _("Mentions légales sur factures") ?></h6>
</div>
<div class="table-responsive">
<table id="tableTextes" class="table table-hover align-middle border datatable-inter">
<thead class="bg-light small fw-bold">
<tr>
<th width="10%" class="text-center"><?= _("CODE") ?></th>
<th><?= _("TEXTE DE L'ÉTAT") ?></th>
<th width="15%"><?= _("ÉCHÉANCE") ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($textes as $v): $idTexte = $v['id']; ?>
<tr>
<td class="text-center fw-bold text-dark bg-light"><?= $this->nettoyer($v['codeTypeFacturationGarant']) ?></td>
<td>
<textarea class="form-control form-control-sm border-0 bg-transparent" rows="2"
onchange="majtextefacturation(<?=$idTexte ?>, this.value);"><?= est_anglophone() ? $this->nettoyer($v['texteEng']) : $this->nettoyer($v['texte']) ?></textarea>
</td>
<td>
<div class="input-group input-group-sm">
<input type="number" class="form-control fw-bold text-center border-0 bg-light"
value="<?= $this->nettoyer($v['echeance']); ?>"
onchange="majecheancefacturation(<?=$idTexte ?>, this.value);">
<span class="input-group-text bg-light border-0 small">Jrs</span>
</div>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>