This commit is contained in:
KONE SOREL 2026-02-26 15:52:33 +00:00
parent 893e5470a0
commit cec76e5eaf

View File

@ -9,55 +9,84 @@
<div class="d-flex align-items-center justify-content-between mb-4 bg-white p-3 shadow-sm border-start border-primary border-4" style="border-radius: var(--radius-md);">
<div class="d-flex align-items-center">
<div class="icon-shape bg-primary-ghost text-primary rounded-circle me-3" style="width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;">
<i class="fas fa-cogs fs-4"></i>
<i class="fas fa-tools fs-4"></i>
</div>
<div>
<h4 class="mb-0 fw-bold text-dark"><?= _("Autres Paramètres Système") ?></h4>
<p class="text-muted small mb-0"><?= _("Gestion des seuils, des alertes et des règles métiers") ?></p>
<p class="text-muted small mb-0"><?= _("Configuration détaillée des règles métiers et seuils de gestion") ?></p>
</div>
</div>
</div>
<div class="card border-0 shadow-sm mb-4" style="border-radius: var(--radius-md);">
<div class="card-header bg-white border-0 p-2">
<ul class="nav nav-pills nav-justified" id="paramTabs" role="tablist">
<li class="nav-item">
<button class="nav-link active fw-bold" id="Production-tab" data-bs-toggle="tab" data-bs-target="#Production" type="button" role="tab">
<i class="fas fa-calculator me-2"></i><?= _("Comptabilité") ?>
</button>
<ul class="nav nav-pills nav-fill" id="myTab" role="tablist">
<li class="nav-item" role="presentation">
<button class="nav-link active fw-bold" id="Generaux-tab" data-bs-toggle="tab" data-bs-target="#Generaux" type="button" role="tab"><?= _("Commun") ?></button>
</li>
<li class="nav-item">
<button class="nav-link fw-bold" id="Medical-tab" data-bs-toggle="tab" data-bs-target="#Medical" type="button" role="tab">
<i class="fas fa-hand-holding-medical me-2"></i><?= _("Médical & SMS") ?>
</button>
<li class="nav-item" role="presentation">
<button class="nav-link fw-bold" id="Production-tab" data-bs-toggle="tab" data-bs-target="#Production" type="button" role="tab"><?= _("Production & Comptabilité") ?></button>
</li>
<li class="nav-item">
<button class="nav-link fw-bold" id="Prestation-tab" data-bs-toggle="tab" data-bs-target="#Prestation" type="button" role="tab">
<i class="fas fa-hospital-user me-2"></i><?= _("Prestations") ?>
</button>
<li class="nav-item" role="presentation">
<button class="nav-link fw-bold" id="Medical-tab" data-bs-toggle="tab" data-bs-target="#Medical" type="button" role="tab"><?= _("Médical") ?></button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link fw-bold" id="Prestation-tab" data-bs-toggle="tab" data-bs-target="#Prestation" type="button" role="tab"><?= _("Prestations") ?></button>
</li>
</ul>
</div>
</div>
<div class="tab-content" id="paramTabsContent">
<div class="tab-content" id="myTabContent">
<div class="tab-pane fade show active" id="Production" role="tabpanel">
<div class="tab-pane fade show active" id="Generaux" role="tabpanel">
<div class="card border-0 shadow-sm">
<div class="card-body p-0">
<div class="list-group list-group-flush">
<div class="list-group-item bg-light py-2 px-4 fw-bold text-primary small text-uppercase"><?= _("Règles de facturation") ?></div>
<div class="list-group-item d-flex justify-content-between align-items-center py-3 px-4">
<div class="d-flex align-items-center me-3">
<span class="badge bg-primary-ghost text-primary me-3">01</span>
<span class="text-dark fw-medium"><?= _("Valeur de l'écart toléré sur encaissement prime ou facture garant") ?></span>
</div>
<span class="fw-bold text-dark border-start ps-3 fs-5">
<?= format_N($this->nettoyer($societeuser['EcartEncaissementTolerable'])) ?>
<small class="text-muted fs-6"><?= $_SESSION['devise_C'] ?></small>
</span>
</div>
<div class="table-responsive">
<table class="table table-hover align-middle mb-0">
<thead class="bg-light">
<tr>
<th width="5%" class="text-center">#</th>
<th><?= _("Désignation du Paramètre") ?></th>
<th width="25%" class="text-center"><?= _("Valeur") ?></th>
</tr>
</thead>
<tbody>
<tr>
<td class="text-center fw-bold text-primary">01</td>
<td class="text-dark fw-medium"><?= _("Libellé ou paramètre général de la section Commun") ?></td>
<td class="text-center">
<span class="badge bg-primary-ghost text-primary px-3 py-2">Configuré</span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="tab-pane fade" id="Production" role="tabpanel">
<div class="card border-0 shadow-sm">
<div class="card-header bg-white py-3 border-bottom border-light">
<h6 class="mb-0 fw-bold text-primary text-uppercase small"><i class="fas fa-file-invoice-dollar me-2"></i><?= _("Comptabilité") ?></h6>
</div>
<div class="card-body p-0">
<div class="table-responsive">
<table class="table table-hover align-middle mb-0">
<tbody>
<tr>
<td width="5%" class="text-center fw-bold text-primary">01</td>
<td class="text-dark fw-medium"><?= _("La valeur de l'écart toléré lorsqu'un encaissement de prime ou de facture garant est fait") ?></td>
<td width="25%" class="text-center">
<span class="h6 fw-bold text-dark mb-0">
<?= format_N($this->nettoyer($societeuser['EcartEncaissementTolerable'])) ?>
<small class="text-muted"><?= $_SESSION['devise_C'] ?></small>
</span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
@ -65,39 +94,50 @@
<div class="tab-pane fade" id="Medical" role="tabpanel">
<div class="card border-0 shadow-sm">
<div class="card-header bg-white py-3 border-bottom border-light">
<h6 class="mb-0 fw-bold text-primary text-uppercase small"><i class="fas fa-notes-medical me-2"></i><?= _("Paramètres Médicaux") ?></h6>
</div>
<div class="card-body p-0">
<div class="list-group list-group-flush">
<div class="list-group-item bg-light py-2 px-4 fw-bold text-primary small text-uppercase"><?= _("Communication & Ententes") ?></div>
<div class="list-group-item d-flex justify-content-between align-items-center py-3 px-4">
<div class="d-flex align-items-center">
<span class="badge bg-primary-ghost text-primary me-3">01</span>
<span class="text-dark fw-medium"><?= _("Activer les envois de SMS ?") ?></span>
</div>
<?php $isSms = ($societeuser['envoismsactif']=="1"); ?>
<span class="badge <?= $isSms ? 'bg-success-ghost text-success' : 'bg-danger-ghost text-danger' ?> rounded-pill px-3 py-2">
<i class="fas <?= $isSms ? 'fa-check' : 'fa-times' ?> me-1"></i> <?= $isSms ? _("OUI") : _("NON") ?>
</span>
</div>
<div class="list-group-item d-flex justify-content-between align-items-center py-3 px-4">
<div class="d-flex align-items-center me-3">
<span class="badge bg-primary-ghost text-primary me-3">12</span>
<span class="text-dark fw-medium"><?= _("Soumettre toute la prescription en entente si l'un des actes l'est ?") ?></span>
</div>
<?php $isEntente = ($societeuser['tousActesSoumisEntentePrealable']=="1"); ?>
<span class="badge <?= $isEntente ? 'bg-success-ghost text-success' : 'bg-danger-ghost text-danger' ?> rounded-pill px-3 py-2">
<?= $isEntente ? _("OUI") : _("NON") ?>
</span>
</div>
<div class="list-group-item d-flex justify-content-between align-items-center py-3 px-4">
<div class="d-flex align-items-center">
<span class="badge bg-primary-ghost text-primary me-3">13</span>
<span class="text-dark fw-medium"><?= _("Nombre d'actes pour déclencher une alerte d'entente préalable") ?></span>
</div>
<span class="fw-bold text-primary fs-4"><?= $this->nettoyer($societeuser['nombreActeEntentePrealable']) ?></span>
</div>
<div class="table-responsive">
<table class="table table-hover align-middle mb-0">
<tbody>
<tr>
<td width="5%" class="text-center fw-bold text-primary">01</td>
<td class="text-dark fw-medium"><?= _("Activer les envois de SMS ?") ?></td>
<td width="25%" class="text-center">
<?php $sms = ($societeuser['envoismsactif']=="1"); ?>
<span class="badge <?= $sms ? 'bg-success-ghost text-success' : 'bg-danger-ghost text-danger' ?> rounded-pill px-3 py-2">
<i class="fas <?= $sms ? 'fa-check-circle' : 'fa-times-circle' ?> me-1"></i>
<?= $sms ? _("Oui") : _("Non") ?>
</span>
</td>
</tr>
<tr>
<td class="text-center fw-bold text-primary">12</td>
<td class="text-dark fw-medium"><?= _("Soumettre tous les actes d'une prescription en entente préalable si l'un des actes l'est ?") ?></td>
<td class="text-center">
<?php $entente = ($societeuser['tousActesSoumisEntentePrealable']=="1"); ?>
<span class="badge <?= $entente ? 'bg-success-ghost text-success' : 'bg-danger-ghost text-danger' ?> rounded-pill px-3 py-2">
<?= $entente ? _("Oui") : _("Non") ?>
</span>
</td>
</tr>
<tr>
<td class="text-center fw-bold text-primary">13</td>
<td class="text-dark fw-medium"><?= _("Nombre limite des actes d'une prescription à atteindre pour déclencher une alerte d'entente préalable") ?></td>
<td class="text-center">
<span class="badge bg-primary-ghost text-primary px-3 py-2 fw-bold fs-6">
<?= $this->nettoyer($societeuser['nombreActeEntentePrealable']) ?>
</span>
</td>
</tr>
<tr>
<td class="text-center fw-bold text-primary">14</td>
<td class="text-dark fw-medium"><?= _("Paramètre médical complémentaire") ?></td>
<td class="text-center text-muted">--</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
@ -106,47 +146,55 @@
<div class="tab-pane fade" id="Prestation" role="tabpanel">
<div class="card border-0 shadow-sm mb-4">
<div class="card-header bg-white border-0 py-3 px-4">
<h6 class="mb-0 fw-bold text-dark text-uppercase small" style="letter-spacing: 1px;"><?= _("Centres de Soins & Dentisteries") ?></h6>
<div class="card-header bg-white py-3 border-bottom border-light">
<h6 class="mb-0 fw-bold text-primary text-uppercase small"><i class="fas fa-hospital me-2"></i><?= _("Centres de Soins et Dentisteries") ?></h6>
</div>
<div class="card-body p-0 border-top">
<div class="list-group list-group-flush">
<div class="list-group-item d-flex justify-content-between align-items-center py-3 px-4">
<div class="d-flex align-items-center">
<span class="badge bg-primary-ghost text-primary me-3">01</span>
<span class="text-dark fw-medium"><?= _("Limiter la facturation par centre ?") ?></span>
</div>
<span class="badge bg-primary-ghost text-primary rounded-pill px-3 py-2"><?= _("OUI") ?></span>
</div>
<div class="card-body p-0">
<table class="table table-hover align-middle mb-0">
<tbody>
<tr>
<td width="5%" class="text-center fw-bold text-primary">01</td>
<td class="text-dark fw-medium"><?= _("Limiter la facturation par centre ?") ?></td>
<td width="25%" class="text-center">
<span class="badge bg-primary-ghost text-primary px-3 py-2"><?= _("Oui") ?></span>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="card border-0 shadow-sm mb-4">
<div class="card-header bg-white border-0 py-3 px-4">
<h6 class="mb-0 fw-bold text-dark text-uppercase small" style="letter-spacing: 1px;"><?= _("Pharmacies") ?></h6>
</div>
<div class="card-body p-0 border-top">
<div class="list-group list-group-flush">
<div class="list-group-item d-flex justify-content-between align-items-center py-3 px-4">
<div class="d-flex align-items-center">
<span class="badge bg-primary-ghost text-primary me-3">09</span>
<span class="text-dark fw-medium"><?= _("Permettre aux pharmaciens de modifier le prix d'un médicament ?") ?></span>
</div>
<?php $isModifPrix = ($societeuser['prixMedicamentModifiable']=="1"); ?>
<span class="badge <?= $isModifPrix ? 'bg-success-ghost text-success' : 'bg-danger-ghost text-danger' ?> rounded-pill px-3 py-2">
<?= $isModifPrix ? _("OUI") : _("NON") ?>
</span>
</div>
<div class="card border-0 shadow-sm mb-4">
<div class="card-header bg-white py-3 border-bottom border-light">
<h6 class="mb-0 fw-bold text-primary text-uppercase small"><i class="fas fa-pills me-2"></i><?= _("Pharmacies") ?></h6>
</div>
<div class="card-body p-0">
<table class="table table-hover align-middle mb-0">
<tbody>
<tr>
<td width="5%" class="text-center fw-bold text-primary">09</td>
<td class="text-dark fw-medium"><?= _("Permettre aux pharmaciens de modifier le prix d'un médicament ?") ?></td>
<td width="25%" class="text-center">
<?php $prixMod = ($societeuser['prixMedicamentModifiable']=="1"); ?>
<span class="badge <?= $prixMod ? 'bg-success-ghost text-success' : 'bg-danger-ghost text-danger' ?> rounded-pill px-3 py-2">
<?= $prixMod ? _("Oui") : _("Non") ?>
</span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="card border-0 shadow-sm">
<div class="card-header bg-white border-0 py-3 px-4 text-center">
<i class="fas fa-microscope fa-3x text-light mb-2"></i>
<h6 class="mb-0 fw-bold text-dark"><?= _("LABORATOIRES ET IMAGERIES") ?></h6>
<p class="small text-muted mb-0"><?= _("Paramètres spécifiques en cours de chargement...") ?></p>
<div class="card border-0 shadow-sm">
<div class="card-header bg-white py-3 border-bottom border-light">
<h6 class="mb-0 fw-bold text-primary text-uppercase small"><i class="fas fa-microscope me-2"></i><?= _("Laboratoires et Imageries") ?></h6>
</div>
<div class="card-body p-4 text-center">
<div class="py-3">
<i class="fas fa-info-circle text-muted fa-2x mb-2"></i>
<p class="text-muted small mb-0"><?= _("Aucun paramètre spécifique défini pour cette section.") ?></p>
</div>
</div>
</div>
</div>
</div>
@ -154,15 +202,26 @@
</div>
<style>
/* --- STYLES RECOMMANDÉS --- */
/* --- Styles personnalisés pour le contraste et l'ergonomie --- */
.page-content {
font-family: 'DM Sans', sans-serif;
}
/* Onglets Modernes */
/* Libellés foncés pour un contraste maximal */
.text-dark {
color: #212529 !important;
}
/* Badges Ghost (Fond clair, texte coloré) */
.bg-primary-ghost { background-color: rgba(33, 46, 83, 0.08); }
.bg-success-ghost { background-color: rgba(39, 174, 96, 0.12); }
.bg-danger-ghost { background-color: rgba(192, 57, 43, 0.12); }
/* Navigation Onglets */
.nav-pills .nav-link {
color: var(--color-primary);
padding: 12px;
padding: 10px 20px;
border-radius: var(--radius-sm);
transition: all 0.3s ease;
}
.nav-pills .nav-link.active {
@ -170,17 +229,11 @@
box-shadow: var(--shadow-md);
}
/* Badges "Ghost" pour lisibilité SaaS */
.bg-primary-ghost { background-color: rgba(33, 46, 83, 0.07); }
.bg-success-ghost { background-color: rgba(39, 174, 96, 0.12); }
.bg-danger-ghost { background-color: rgba(192, 57, 43, 0.12); }
/* Listes */
.list-group-item {
border-color: #f1f4f6;
transition: background 0.2s;
/* Lignes de tableaux */
.table td {
padding: 1rem 0.75rem;
}
.list-group-item:hover {
background-color: #fcfdfe;
.table-hover tbody tr:hover {
background-color: #f8fafc;
}
</style>