df
This commit is contained in:
parent
23c57bb410
commit
990815713a
|
|
@ -4,7 +4,7 @@
|
|||
<input class="sr-only" type="text" id="idSocieteuser" name="idSocieteuser" value="<?= $this->nettoyer($societeuser['idSocieteuser']) ?>">
|
||||
|
||||
<div class="header-section mb-4">
|
||||
<div class="d-flex align-items-center justify-content-between bg-white p-3 shadow-sm border-start border-warning border-4" style="border-radius: var(--radius-md);">
|
||||
<div class="d-flex flex-column flex-md-row align-items-md-center justify-content-between bg-white p-3 shadow-sm border-start border-warning border-4" style="border-radius: var(--radius-md);">
|
||||
<div class="d-flex align-items-center">
|
||||
<div class="icon-shape bg-warning-ghost text-warning rounded-circle me-3" style="width: 45px; height: 45px; display: flex; align-items: center; justify-content: center;">
|
||||
<i class="fas fa-edit fs-5"></i>
|
||||
|
|
@ -14,7 +14,13 @@
|
|||
<p class="text-muted small mb-0"><?= _("Production & Comptabilité — Ajustement des seuils et taux opérationnels") ?></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-flex gap-2">
|
||||
|
||||
<div class="position-relative mt-3 mt-md-0" style="min-width: 300px;">
|
||||
<i class="fas fa-search position-absolute top-50 start-0 translate-middle-y ms-3 text-muted"></i>
|
||||
<input type="text" id="globalSearch" class="form-control ps-5 border-2 rounded-pill shadow-none" style="font-size: 0.85rem;" placeholder="<?= _('Chercher un paramètre...') ?>">
|
||||
</div>
|
||||
|
||||
<div class="d-flex gap-2 mt-3 mt-md-0">
|
||||
<button class="btn btn-outline-secondary btn-sm px-3 fw-bold" onclick="javascript:afficher_autres_parametresgeneraux();">
|
||||
<i class="fas fa-undo me-2"></i><?= _("Annuler") ?>
|
||||
</button>
|
||||
|
|
@ -30,8 +36,8 @@
|
|||
<div class="card border-0 shadow-sm mb-4">
|
||||
<div class="card-header bg-primary py-3 d-flex align-items-center justify-content-between">
|
||||
<h6 class="mb-0 text-white fw-bold text-uppercase"><i class="fas fa-industry me-2"></i><?= _("Paramètres de Production") ?></h6>
|
||||
<span class="badge bg-white text-primary rounded-pill"><?= _("13 Paramètres") ?></span>
|
||||
</div>
|
||||
<span class="badge bg-white text-primary rounded-pill"><?= _("13 Paramètres") ?></span>
|
||||
</div>
|
||||
<div class="card-body p-0">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover align-middle mb-0">
|
||||
|
|
@ -46,7 +52,7 @@
|
|||
<tbody>
|
||||
<tr class="searchable-row">
|
||||
<td class="text-center"><span class="badge-ghost bg-primary-ghost">01</span></td>
|
||||
<td class="text-muted fw-bold"><?= _("Quote-part du centre de gestion par prime encaissée.") ?></td>
|
||||
<td class="text-dark fw-bold"><?= _("Quote-part du centre de gestion par prime encaissée.") ?></td>
|
||||
<td class="text-center bg-light text-muted fw-bold"><?= $this->nettoyer($societeuser['tauxHonoraires']) ?> %</td>
|
||||
<td>
|
||||
<div class="input-group input-group-sm">
|
||||
|
|
@ -58,7 +64,7 @@
|
|||
|
||||
<tr class="searchable-row">
|
||||
<td class="text-center"><span class="badge-ghost bg-primary-ghost">02</span></td>
|
||||
<td class="text-muted fw-bold small"><?= _("Seuil maximum du ratio S/P (spMax) appliqué au taux d'ajustement.") ?></td>
|
||||
<td class="text-dark fw-bold small"><?= _("Seuil maximum du ratio S/P (spMax) appliqué au taux d'ajustement.") ?></td>
|
||||
<td class="text-center bg-light text-muted fw-bold"><?= $this->nettoyer($societeuser['spMax']) ?> %</td>
|
||||
<td>
|
||||
<div class="input-group input-group-sm">
|
||||
|
|
@ -77,8 +83,8 @@
|
|||
foreach($cartes as $c): ?>
|
||||
<tr class="searchable-row">
|
||||
<td class="text-center"><span class="badge-ghost bg-primary-ghost"><?= $c[0] ?></span></td>
|
||||
<td class="text-muted fw-bold"><?= $c[1] ?></td>
|
||||
<td class="text-center bg-light text-muted fw-bold"><?= format_N($this->nettoyer($societeuser[$c[2]])) ?></td>
|
||||
<td class="text-dark fw-bold"><?= $c[1] ?></td>
|
||||
<td class="text-center bg-light text-muted fw-bold"><?= format_N($this->nettoyer($societeuser[$c[2]])) ?> <?= $_SESSION['devise_C'] ?></td>
|
||||
<td>
|
||||
<div class="input-group input-group-sm">
|
||||
<input class="form-control text-center fw-bold border-warning" id="<?= $c[2] ?>" name="<?= $c[2] ?>" type="text" value="<?= $this->nettoyer($societeuser[$c[2]]) ?>" onBlur="javascript:controle_numerique_new(this.id, <?= $this->nettoyer($societeuser[$c[2]]) ?>);">
|
||||
|
|
@ -88,9 +94,9 @@
|
|||
</tr>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<tr class="searchable-row">
|
||||
<tr class="searchable-row">
|
||||
<td class="text-center"><span class="badge-ghost bg-primary-ghost">06</span></td>
|
||||
<td class="text-muted fw-bold small"><?= _("Ratio S/P marquant une famille en surconsommation.") ?></td>
|
||||
<td class="text-dark fw-bold small"><?= _("Ratio S/P marquant une famille en surconsommation.") ?></td>
|
||||
<td class="text-center bg-light text-muted fw-bold"><?= $this->nettoyer($societeuser['spAlertAdherent']) ?> %</td>
|
||||
<td>
|
||||
<div class="input-group input-group-sm">
|
||||
|
|
@ -102,7 +108,7 @@
|
|||
|
||||
<tr class="searchable-row">
|
||||
<td class="text-center"><span class="badge-ghost bg-primary-ghost">07</span></td>
|
||||
<td class="text-muted fw-bold small"><?= _("Taux appliqué à la prime non acquise lors d'un retrait.") ?></td>
|
||||
<td class="text-dark fw-bold small"><?= _("Taux appliqué à la prime non acquise lors d'un retrait.") ?></td>
|
||||
<td class="text-center bg-light text-muted fw-bold"><?= $this->nettoyer($societeuser['tauxRistourne']) ?> %</td>
|
||||
<td>
|
||||
<div class="input-group input-group-sm">
|
||||
|
|
@ -111,10 +117,9 @@
|
|||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="searchable-row">
|
||||
<td class="text-center"><span class="badge-ghost bg-primary-ghost">08</span></td>
|
||||
<td class="text-muted fw-bold small"><?= _("Seuil S/P annulant la ristourne au retrait de l'assuré.") ?></td>
|
||||
<td class="text-dark fw-bold small"><?= _("Seuil S/P annulant la ristourne au retrait de l'assuré.") ?></td>
|
||||
<td class="text-center bg-light text-muted fw-bold"><?= $this->nettoyer($societeuser['seuilRistourne']) ?> %</td>
|
||||
<td>
|
||||
<div class="input-group input-group-sm">
|
||||
|
|
@ -128,14 +133,14 @@
|
|||
$selects = [
|
||||
['09', _("Archiver automatiquement les primes à l'incorporation."), 'archivageAutomatiquePrime', $archiveautoouinon],
|
||||
['10', _("Notifier l'assuré de son numéro de carte."), 'notificationSmsNumeroAssure', $notificationSmsNumeroAssureouinon],
|
||||
['11', _("Notifier l'assuré principal des numéros de carte de sa famille."), 'notificationGroupeNumeroAssure', $notificationGroupeNumeroAssureouinon],
|
||||
['12', _("Activer la facturation par produit pour les garants."), 'parametresFacturationGarantProduit', $parametresFacturationGarantProduitouinon],
|
||||
['13', _("Activer l'upload de photo d'authentification sur le portail assuré."), 'assureAjoutPhoto', $assureAjoutPhotoOuinon]
|
||||
['11', _("Notifier l'assuré principal des numéros de carte de sa famille."), 'notificationGroupeNumeroAssure', $notificationGroupeNumeroAssureouinon],
|
||||
['12', _("Activer la facturation par produit pour garant."), 'parametresFacturationGarantProduit', $parametresFacturationGarantProduitouinon],
|
||||
['13', _("Autoriser l'upload de photo sur le portail assuré."), 'assureAjoutPhoto', $assureAjoutPhotoOuinon]
|
||||
];
|
||||
foreach($selects as $s): ?>
|
||||
<tr class="searchable-row">
|
||||
<td class="text-center"><span class="badge-ghost bg-primary-ghost"><?= $s[0] ?></span></td>
|
||||
<td class="text-muted fw-bold"><?= $s[1] ?></td>
|
||||
<td class="text-dark fw-bold"><?= $s[1] ?></td>
|
||||
<td class="text-center bg-light text-muted fw-bold"><?= ($societeuser[$s[2]] == "1") ? _("Oui") : _("Non") ?></td>
|
||||
<td>
|
||||
<select class="form-select form-select-sm fw-bold border-warning" id="<?= $s[2] ?>" name="<?= $s[2] ?>">
|
||||
|
|
@ -153,15 +158,15 @@
|
|||
<div class="card border-0 shadow-sm mb-5">
|
||||
<div class="card-header bg-success py-3 d-flex align-items-center justify-content-between">
|
||||
<h6 class="mb-0 text-white fw-bold text-uppercase"><i class="fas fa-calculator me-2"></i><?= _("Paramètres Comptables") ?></h6>
|
||||
<span class="badge bg-white text-primary rounded-pill"><?= _("02 Paramètres") ?></span>
|
||||
</div>
|
||||
<span class="badge bg-white text-success rounded-pill"><?= _("02 Paramètres") ?></span>
|
||||
</div>
|
||||
<div class="card-body p-0">
|
||||
<table class="table table-hover align-middle mb-0">
|
||||
<tbody>
|
||||
<tr class="searchable-row">
|
||||
<td width="5%" class="text-center"><span class="badge-ghost bg-success-ghost">01</span></td>
|
||||
<td class="text-muted fw-bold"><?= _("Tolérance d'écart à l'encaissement des primes garants.") ?></td>
|
||||
<td width="18%" class="text-center bg-light text-muted fw-bold"><?= format_N($this->nettoyer($societeuser['EcartEncaissementTolerable'])) ?></td>
|
||||
<td class="text-dark fw-bold"><?= _("Tolérance d'écart à l'encaissement des primes garants.") ?></td>
|
||||
<td width="18%" class="text-center bg-light text-muted fw-bold"><?= format_N($this->nettoyer($societeuser['EcartEncaissementTolerable'])) ?> <?= $_SESSION['devise_C'] ?></td>
|
||||
<td width="22%">
|
||||
<div class="input-group input-group-sm">
|
||||
<input class="form-control text-center fw-bold border-warning" id="ecartEncaissementTolerable" name="ecartEncaissementTolerable" type="text" value="<?= $this->nettoyer($societeuser['EcartEncaissementTolerable']) ?>" onBlur="javascript:controle_numerique_new(this.id, <?= $this->nettoyer($societeuser['EcartEncaissementTolerable']) ?>);">
|
||||
|
|
@ -171,7 +176,7 @@
|
|||
</tr>
|
||||
<tr class="searchable-row">
|
||||
<td class="text-center"><span class="badge-ghost bg-success-ghost">02</span></td>
|
||||
<td class="text-muted fw-bold"><?= _("Activer le lettrage automatique à l'encaissement des primes garants.") ?></td>
|
||||
<td class="text-dark fw-bold"><?= _("Activer le lettrage automatique des primes garants.") ?></td>
|
||||
<td class="text-center bg-light text-muted fw-bold"><?= ($societeuser['lettrageAutoGarant'] == "1") ? _("Oui") : _("Non") ?></td>
|
||||
<td>
|
||||
<select class="form-select form-select-sm fw-bold border-warning" id="lettrageAutoGarant" name="lettrageAutoGarant">
|
||||
|
|
@ -186,12 +191,22 @@
|
|||
</form>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
// SCRIPT DE RECHERCHE RAPIDE (Filtrage dynamique)
|
||||
$(document).ready(function(){
|
||||
$("#globalSearch").on("keyup", function() {
|
||||
var value = $(this).val().toLowerCase();
|
||||
$(".searchable-row").filter(function() {
|
||||
$(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
/* Style d'input focus spécifique au mode édition */
|
||||
.form-control:focus, .form-select:focus {
|
||||
border-color: #f39c12 !important;
|
||||
box-shadow: 0 0 0 0.2rem rgba(243, 156, 18, 0.15) !important;
|
||||
}
|
||||
.table td { border-bottom: 1px solid #f1f4f6 !important; }
|
||||
/* Style spécifique Mode Édition */
|
||||
#globalSearch:focus { border-color: #f39c12; box-shadow: 0 0 0 0.2rem rgba(243, 156, 18, 0.15); }
|
||||
.form-control:focus, .form-select:focus { border-color: #f39c12 !important; box-shadow: 0 0 0 0.2rem rgba(243, 156, 18, 0.1) !important; }
|
||||
.table td { border-bottom: 1px solid #f1f4f6 !important; padding-top: 0.8rem; padding-bottom: 0.8rem; }
|
||||
</style>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user