312 lines
17 KiB
PHP
Executable File
312 lines
17 KiB
PHP
Executable File
<div class="page-content">
|
||
<input class="sr-only" type="text" id="idSocieteuser" name="idSocieteuser" value="<?= $this->nettoyer($societeuser['idSocieteuser']) ?>">
|
||
<input class="sr-only" type="text" id="nomForm" name="nomForm" value="frmautreparametre">
|
||
|
||
<div class="d-flex flex-column flex-md-row align-items-md-center justify-content-between mb-4 gap-3 bg-white p-3 shadow-sm border-start border-primary border-4" style="border-radius: var(--radius-md);">
|
||
<div>
|
||
<h4 class="fw-bold text-dark mb-1"><?= _("CONFIGURATION SYSTÈME") ?></h4>
|
||
<p class="text-muted small mb-0"><?= _("Filtrer et gérer les règles métiers du centre") ?></p>
|
||
</div>
|
||
|
||
<div class="position-relative" style="min-width: 350px;">
|
||
<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" placeholder="<?= _('Rechercher un paramètre (ex: SMS, prix, acte)...') ?>">
|
||
</div>
|
||
</div>
|
||
|
||
<ul class="nav nav-pills nav-fill mb-4 bg-light p-1 rounded-pill shadow-sm">
|
||
<li class="nav-item">
|
||
<button onclick="showHideElt('Generaux')" class="nav-link active rounded-pill fw-bold" id="btn-Generaux"><?= _("Commun") ?></button>
|
||
</li>
|
||
<li class="nav-item">
|
||
<button onclick="showHideElt('Production')" class="nav-link rounded-pill fw-bold" id="btn-Production"><?= _("Production & Comptabilité") ?></button>
|
||
</li>
|
||
<li class="nav-item">
|
||
<button onclick="showHideElt('Medical')" class="nav-link rounded-pill fw-bold" id="btn-Medical"><?= _("Médical") ?></button>
|
||
</li>
|
||
<li class="nav-item">
|
||
<button onclick="showHideElt('Prestation')" class="nav-link rounded-pill fw-bold" id="btn-Prestation"><?= _("Prestations") ?></button>
|
||
</li>
|
||
</ul>
|
||
|
||
<div id="Generaux" class="tab-custom-content">
|
||
<div class="card border-0 shadow-sm overflow-hidden">
|
||
<div class="card-header bg-dark py-3 d-flex align-items-center justify-content-between">
|
||
<h6 class="mb-0 text-white fw-bold">
|
||
<i class="fas fa-globe me-2"></i>
|
||
<?= _("LOCALISATION ET SYSTÈME") ?>
|
||
</h6>
|
||
<span class="badge bg-white text-primary rounded-pill"><?= _("03 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="8%" class="text-center fw-bold text-primary">01</td>
|
||
<td class="text-dark fw-bold"><?= _("Langue du centre de gestion") ?></td>
|
||
<td width="25%" class="text-center border-start bg-light">
|
||
<span class="badge bg-primary-ghost text-primary px-3 py-2 fw-bold text-uppercase">
|
||
<?= $this->nettoyer($societeuser['codeLangueSociete']) ?>
|
||
</span>
|
||
</td>
|
||
</tr>
|
||
<tr class="searchable-row">
|
||
<td class="text-center fw-bold text-primary">02</td>
|
||
<td class="text-dark fw-bold"><?= _("Identifiant du fuseau horaire") ?></td>
|
||
<td class="text-center border-start bg-light fw-bold text-dark">
|
||
<i class="far fa-clock me-1 text-muted"></i> <?= $this->nettoyer($societeuser['code_timezone_identifier']) ?>
|
||
</td>
|
||
</tr>
|
||
<tr class="searchable-row">
|
||
<td class="text-center fw-bold text-primary">03</td>
|
||
<td class="text-dark fw-bold"><?= _("Devise") ?></td>
|
||
<td class="text-center border-start bg-light fw-bold text-primary fs-5">
|
||
<?= $this->nettoyer($societeuser['devise']) ?>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div id="Production" class="tab-custom-content" style="display:none;">
|
||
|
||
<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><?= _("Règles de Production") ?>
|
||
</h6>
|
||
<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">
|
||
<thead class="bg-light">
|
||
<tr>
|
||
<th width="8%" class="text-center border-0">#</th>
|
||
<th class="border-0"><?= _("Désignation du Paramètre") ?></th>
|
||
<th width="25%" class="text-center border-0"><?= _("Valeur de Configuration") ?></th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr class="searchable-row">
|
||
<td class="text-center"><span class="badge bg-primary-ghost text-primary fw-bold">01</span></td>
|
||
<td class="text-dark fw-bold"><?= _("Pourcentage des honoraires ou commissions perçus par le gestionnaire sur chaque prime encaissée.") ?></td>
|
||
<td class="text-center border-start bg-light-info">
|
||
<span class="fw-bold text-primary fs-5"><?= $this->nettoyer($societeuser['tauxHonoraires']) ?> %</span>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr class="searchable-row">
|
||
<td class="text-center"><span class="badge bg-primary-ghost text-primary fw-bold">02</span></td>
|
||
<td class="text-dark fw-bold"><?= _("Plafond du ratio S/P (spMax) pour le calcul du taux d’ajustement.") ?></td>
|
||
<td class="text-center border-start bg-light-info">
|
||
<span class="fw-bold text-danger fs-5"><?= $this->nettoyer($societeuser['spMax']) ?> %</span>
|
||
</td>
|
||
</tr>
|
||
|
||
<?php
|
||
$cartes = [
|
||
['03', _("Frais liés à l’émission d’une nouvelle carte pour un assuré entrant."), 'fraisCarteAN'],
|
||
['04', _("Frais d’émission d’une carte lors d’un renouvellement."), 'fraisCarteREN'],
|
||
['05', _("Frais de réimpression d’une carte déjà existante (ex. perte ou détérioration). "), 'fraisCarteImp']
|
||
];
|
||
foreach($cartes as $c): ?>
|
||
<tr class="searchable-row">
|
||
<td class="text-center"><span class="badge bg-primary-ghost text-primary fw-bold"><?= $c[0] ?></span></td>
|
||
<td class="text-dark fw-bold"><?= $c[1] ?></td>
|
||
<td class="text-center border-start bg-light-info">
|
||
<span class="text-dark fw-bold"><?= format_N($this->nettoyer($societeuser[$c[2]])) ?></span>
|
||
<small class="text-muted"><?= $_SESSION['devise_C'] ?></small>
|
||
</td>
|
||
</tr>
|
||
<?php endforeach; ?>
|
||
|
||
<tr class="searchable-row">
|
||
<td class="text-center"><span class="badge bg-primary-ghost text-primary fw-bold">06</span></td>
|
||
<td class="text-dark fw-bold"><?= _("Seuil du ratio S/P déclenchant l'alerte de la surconsommation d'une famille.") ?></td>
|
||
<td class="text-center border-start bg-light-info">
|
||
<span class="fw-bold text-warning fs-5"><?= $this->nettoyer($societeuser['spAlertAdherent']) ?> %</span>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr class="searchable-row">
|
||
<td class="text-center"><span class="badge bg-primary-ghost text-primary fw-bold">07</span></td>
|
||
<td class="text-dark fw-bold"><?= _("Pourcentage appliqué à la portion de prime non acquise afin de déterminer le montant de la ristourne.") ?></td>
|
||
<td class="text-center border-start bg-light-info">
|
||
<span class="fw-bold text-dark"><?= $this->nettoyer($societeuser['tauxRistourne']) ?> %</span>
|
||
</td>
|
||
</tr>
|
||
<tr class="searchable-row">
|
||
<td class="text-center"><span class="badge bg-primary-ghost text-primary fw-bold">08</span></td>
|
||
<td class="text-dark fw-bold"><?= _("Seuil du ratio S/P entraînant l’annulation de la ristourne.") ?></td>
|
||
<td class="text-center border-start bg-light-info">
|
||
<span class="fw-bold text-danger"><?= $this->nettoyer($societeuser['seuilRistourne']) ?> %</span>
|
||
</td>
|
||
</tr>
|
||
|
||
<?php
|
||
$bools = [
|
||
['09', _("Activer l’archivage automatique des primes dès leur intégration dans la base de gestion."), 'archivageAutomatiquePrime'],
|
||
['10', _("Notification individuelle du numéro d’assuré (SMS/Mail/WhatsApp)."), 'notificationSmsNumeroAssure'],
|
||
['11', _("Notification groupée des numéros d’assurés pour l’assuré principal."), 'notificationGroupeNumeroAssure'],
|
||
['12', _("Activer la facturation spécifique d’un garant, calculée séparément pour chaque produit d’assurance."), 'parametresFacturationGarantProduit'],
|
||
['13', _("Activer la possibilité pour l’assuré de téléverser ses photos sur son portail personnel (ex. photo d'authentification')."), 'assureAjoutPhoto']
|
||
];
|
||
foreach($bools as $b):
|
||
$val = ($societeuser[$b[2]] == "1"); ?>
|
||
<tr class="searchable-row">
|
||
<td class="text-center"><span class="badge bg-primary-ghost text-primary fw-bold"><?= $b[0] ?></span></td>
|
||
<td class="text-dark fw-bold"><?= $b[1] ?></td>
|
||
<td class="text-center border-start bg-light-info">
|
||
<span class="badge rounded-pill px-3 py-2 <?= $val ? 'bg-success-ghost text-success' : 'bg-danger-ghost text-danger' ?>">
|
||
<i class="fas <?= $val ? 'fa-check-circle' : 'fa-times-circle' ?> me-1"></i>
|
||
<?= $val ? _("OUI") : _("NON") ?>
|
||
</span>
|
||
</td>
|
||
</tr>
|
||
<?php endforeach; ?>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="card border-0 shadow-sm mb-4">
|
||
<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><?= _("Règles Comptables") ?>
|
||
</h6>
|
||
<span class="badge bg-white text-primary rounded-pill"><?= _("02 Paramètres") ?></span>
|
||
</div>
|
||
|
||
<div class="card-body p-0">
|
||
<div class="table-responsive">
|
||
<table class="table table-hover align-middle mb-0">
|
||
<tbody>
|
||
<tr class="searchable-row">
|
||
<td width="8%" class="text-center"><span class="badge bg-success-ghost text-success fw-bold">01</span></td>
|
||
<td class="text-dark fw-bold"><?= _("Montant de l’écart toléré lors de l’encaissement comptable des primes facturées au garant.") ?></td>
|
||
<td width="25%" class="text-center border-start bg-light-success">
|
||
<span class="fw-bold text-dark fs-5"><?= format_N($this->nettoyer($societeuser['EcartEncaissementTolerable'])) ?></span>
|
||
<small class="text-muted"><?= $_SESSION['devise_C'] ?></small>
|
||
</td>
|
||
</tr>
|
||
<tr class="searchable-row">
|
||
<td class="text-center"><span class="badge bg-success-ghost text-success fw-bold">02</span></td>
|
||
<td class="text-dark fw-bold"><?= _("Activer le lettrage automatique lors des encaissements des primes facturées aux garants.") ?></td>
|
||
<td class="text-center border-start bg-light-success">
|
||
<?php $lettrage = ($societeuser['lettrageAutoGarant'] == "1"); ?>
|
||
<span class="badge rounded-pill px-3 py-2 <?= $lettrage ? 'bg-success-ghost text-success' : 'bg-danger-ghost text-danger' ?>">
|
||
<?= $lettrage ? _("OUI") : _("NON") ?>
|
||
</span>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div id="Medical" class="tab-custom-content" style="display:none;">
|
||
<div class="card border-0 shadow-sm overflow-hidden">
|
||
<div class="card-header bg-info py-3">
|
||
<h6 class="mb-0 text-white fw-bold"><i class="fas fa-hand-holding-medical me-2"></i><?= _("PARAMÈTRES MÉDICAUX") ?></h6>
|
||
</div>
|
||
<div class="card-body p-0">
|
||
<table class="table table-hover align-middle mb-0 datatable-custom">
|
||
<tbody>
|
||
<tr class="searchable-row">
|
||
<td width="8%" class="text-center fw-bold text-info">01</td>
|
||
<td class="text-dark fw-bold"><?= _("Activer les envois de SMS ?") ?></td>
|
||
<td width="20%" class="text-center border-start bg-light">
|
||
<?php $sms = ($societeuser['envoismsactif']=="1"); ?>
|
||
<span class="badge rounded-pill fw-bold <?= $sms ? 'bg-success-ghost text-success' : 'bg-danger-ghost text-danger' ?> px-3 py-2">
|
||
<?= $sms ? _("OUI") : _("NON") ?>
|
||
</span>
|
||
</td>
|
||
</tr>
|
||
<tr class="searchable-row">
|
||
<td class="text-center fw-bold text-info">12</td>
|
||
<td class="text-dark fw-bold"><?= _("Soumettre toute la prescription en entente préalable si l'un des actes l'est ?") ?></td>
|
||
<td class="text-center border-start bg-light">
|
||
<?php $ent = ($societeuser['tousActesSoumisEntentePrealable']=="1"); ?>
|
||
<span class="badge rounded-pill fw-bold <?= $ent ? 'bg-success-ghost text-success' : 'bg-danger-ghost text-danger' ?> px-3 py-2">
|
||
<?= $ent ? _("OUI") : _("NON") ?>
|
||
</span>
|
||
</td>
|
||
</tr>
|
||
<tr class="searchable-row">
|
||
<td class="text-center fw-bold text-info">13</td>
|
||
<td class="text-dark fw-bold"><?= _("Seuil d'actes pour déclencher une alerte d'entente préalable") ?></td>
|
||
<td class="text-center border-start bg-light fw-bold text-info fs-5"><?= $this->nettoyer($societeuser['nombreActeEntentePrealable']) ?></td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div id="Prestation" class="tab-custom-content" style="display:none;">
|
||
<div class="row g-4">
|
||
<div class="col-md-6 searchable-row">
|
||
<div class="card border-0 shadow-sm h-100">
|
||
<div class="card-header bg-secondary py-2 text-white small fw-bold">CENTRES DE SOINS</div>
|
||
<div class="card-body d-flex justify-content-between align-items-center">
|
||
<span class="text-dark fw-bold small"><?= _("Limiter la facturation par centre ?") ?></span>
|
||
<span class="badge bg-success-ghost text-success">OUI</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="col-md-6 searchable-row">
|
||
<div class="card border-0 shadow-sm h-100">
|
||
<div class="card-header bg-secondary py-2 text-white small fw-bold">PHARMACIES</div>
|
||
<div class="card-body d-flex justify-content-between align-items-center">
|
||
<span class="text-dark fw-bold small"><?= _("Modifier prix médicament par pharmacien ?") ?></span>
|
||
<?php $px = ($societeuser['prixMedicamentModifiable']=="1"); ?>
|
||
<span class="badge <?= $px ? 'bg-success-ghost text-success' : 'bg-danger-ghost text-danger' ?>"><?= $px ? _("OUI") : _("NON") ?></span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<style>
|
||
/* --- THÈME NEUTRAL PRO : HAUT CONTRASTE --- */
|
||
.text-dark { color: #1a1d24 !important; }
|
||
.bg-success-ghost { background-color: rgba(39, 174, 96, 0.12); color: #27ae60; }
|
||
.bg-danger-ghost { background-color: rgba(192, 57, 43, 0.12); color: #c0392b; }
|
||
.bg-primary-ghost { background-color: rgba(33, 46, 83, 0.08); color: #212e53; }
|
||
|
||
/* Navigation Pills Modernes */
|
||
.nav-pills .nav-link { color: #64748b; padding: 10px 20px; transition: 0.3s; border: none; background: none; }
|
||
.nav-pills .nav-link.active { background-color: #212e53 !important; color: white !important; box-shadow: var(--shadow-md); }
|
||
|
||
/* Tableaux et Cards */
|
||
.table td { padding: 1.2rem 1rem; border-top: 1px solid #f1f4f6; }
|
||
.table-hover tbody tr:hover { background-color: #f8fafc; cursor: pointer; }
|
||
|
||
/* Animation fluide */
|
||
.tab-custom-content { animation: fadeIn 0.4s ease-in-out; }
|
||
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
|
||
|
||
/* Spécificités pour cette section Production */
|
||
#Production .bg-light-info { background-color: rgba(33, 46, 83, 0.02); }
|
||
#Production .bg-light-success { background-color: rgba(39, 174, 96, 0.02); }
|
||
|
||
#Production .table td {
|
||
padding: 1rem 0.75rem;
|
||
border-bottom: 1px solid #f1f4f6;
|
||
}
|
||
|
||
#Production .searchable-row:hover {
|
||
background-color: #f8fafc !important;
|
||
}
|
||
|
||
#Production .fs-5 { font-size: 1.1rem !important; }
|
||
</style>
|