This commit is contained in:
KONE SOREL 2026-03-05 11:06:38 +00:00
parent a08b610f6c
commit 17b5878902
2 changed files with 66 additions and 112 deletions

View File

@ -1,53 +1,31 @@
<?php $this->titre = "INTER SANTE - Messages des motifs de depassement"; ?>
<script type="text/javascript">
</script>
<legend> <?= _("Messages des motifs de depassement") ?> </legend>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:12pt; text-align:center; '>
<thead>
<tr>
<th width="10%" style="text-align: center;"> <?= _("Code") ?> </th>
<th width="90%" style="text-align: center;"> <?= _("Messages") ?> </th>
</tr>
</thead>
<tbody>
<?php
$i=0;
foreach ($motifs as $v):
$idMessage = $this->nettoyer($v['id']);
$i++;
?>
<tr valign="top">
<td align="center">
<?= $this->nettoyer($v['codeMotifDepassement']) ?>
</td>
<td >
<?php if (est_anglophone()) : ?>
<INPUT style='font-size:12pt;' class="form-control" id="libelle<?=$i ?>"
NAME="libelle<?=$i ?>" TYPE="text" value="<?= $this->nettoyer($v['libelleEng']) ?>"
onchange="javascript:majmotifdepassement(<?=$idMessage ?>, <?=$i ?>);">
<?php else: ?>
<INPUT style='font-size:12pt;' class="form-control" id="libelle<?=$i ?>"
NAME="libelle<?=$i ?>" TYPE="text" value="<?=$this->nettoyer($v['libelle']) ?>"
onchange="javascript:majmotifdepassement(<?=$idMessage ?>,<?=$i ?>);">
<?php endif; ?>
</td>
</tr>
<tr>
<td colspan="2" height="5"></td>
</tr>
<?php endforeach; ?>
<tr>
<td colspan="2"> <input id="btn_enreg" name="btn_enreg" class = "form-control btn btn-primary" type="button" value="<?= _("Enregistrer") ?>" onClick="javascript:afficher_parammessages();" style='font-size:10pt;' > </td>
</tr>
</tbody>
</table>
<div class="p-4 bg-white">
<div class="d-flex align-items-center mb-3">
<span class="badge bg-warning text-dark me-2"><?= count($motifs) ?></span>
<h6 class="fw-bold mb-0 text-uppercase small"><?= _("Configuration des motifs") ?></h6>
</div>
<div class="table-responsive">
<table class="table table-hover align-middle border">
<thead class="bg-light small fw-bold">
<tr>
<th width="15%" class="text-center"><?= _("CODE") ?></th>
<th><?= _("MESSAGE PERSONNALISÉ") ?></th>
</tr>
</thead>
<tbody>
<?php $i=0; foreach ($motifs as $v): $i++; $idMessage = $v['id']; ?>
<tr>
<td class="text-center fw-bold text-primary bg-light"><?= $this->nettoyer($v['codeMotifDepassement']) ?></td>
<td>
<input class="form-control border-0 bg-transparent fw-medium"
value="<?= est_anglophone() ? $this->nettoyer($v['libelleEng']) : $this->nettoyer($v['libelle']) ?>"
onchange="majmotifdepassement(<?=$idMessage ?>, <?=$i ?>);"
placeholder="<?= _("Saisir le texte ici...") ?>">
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>

View File

@ -1,61 +1,37 @@
<?php $this->titre = "INTER SANTE - Messages des motifs de depassement"; ?>
<script type="text/javascript">
</script>
<legend> <?= _("TEXTE DE FACTURATION GARANT") ?> </legend>
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style='font-size:12pt; text-align:center; '>
<thead>
<tr>
<th width="5%" style="text-align: center;"> <?= _("Code") ?> </th>
<th width="15%" style="text-align: center;"> <?= _("Libellé") ?> </th>
<th style="text-align: center;"> <?= _("Texte") ?> </th>
<th width="10%" style="text-align: center;"> <?= _("Echéance (en jour)") ?> </th>
</tr>
</thead>
<tbody>
<?php
foreach ($textes as $v):
$idTexte = $this->nettoyer($v['id']);
$libelle = $this->nettoyer($v['libelle']);
$texte = $this->nettoyer($v['texte']);
if (est_anglophone()){
$libelle = $this->nettoyer($v['libelleEng']);
$texte = $this->nettoyer($v['texteEng']);
}
?>
<tr valign="top">
<td align="center">
<?= $this->nettoyer($v['codeTypeFacturationGarant']) ?>
</td>
<td style="text-align: center;">
<?= $libelle; ?>
</td>
<td >
<INPUT style='font-size:12pt;' class="form-control" TYPE="text" value="<?= $texte ?>"
onchange="javascript:majtextefacturation(<?=$idTexte ?>, this.value);">
</td>
<td >
<INPUT style='font-size:12pt; text-align: center;' class="form-control" TYPE="number" value="<?= $this->nettoyer($v['echeance']); ?>"
onchange="javascript:majecheancefacturation(<?=$idTexte ?>, this.value);">
</td>
</tr>
<tr>
<td colspan="4" height="5"></td>
</tr>
<?php endforeach; ?>
<tr>
<td colspan="4"> <input id="btn_enreg" name="btn_enreg" class = "form-control btn btn-primary" type="button" value="<?= _("Enregistrer") ?>" onClick="javascript:afficher_parammessages();" style='font-size:10pt;' > </td>
</tr>
</tbody>
</table>
<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 class="table table-hover align-middle border">
<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>