This commit is contained in:
KONE SOREL 2026-02-26 16:03:42 +00:00
parent bf131ade5e
commit ec92f20b1a

View File

@ -8,171 +8,124 @@
<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;">
<div class="icon-shape bg-primary-ghost text-primary rounded-circle me-3" style="width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;">
<i class="fas fa-sliders-h 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"><?= _("Configuration complète des règles de gestion du centre") ?></p>
<p class="text-muted small mb-0"><?= _("Configuration exhaustive des règles métiers") ?></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-fill" id="myTab" role="tablist">
<li class="nav-item">
<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="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="Medical-tab" data-bs-toggle="tab" data-bs-target="#Medical" type="button" role="tab"><?= _("Médical") ?></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"><?= _("Prestations") ?></button>
</li>
<ul class="nav nav-pills nav-fill" id="settingsTab" role="tablist">
<li class="nav-item"><button class="nav-link active fw-bold" data-bs-toggle="tab" data-bs-target="#Generaux"><?= _("Commun") ?></button></li>
<li class="nav-item"><button class="nav-link fw-bold" data-bs-toggle="tab" data-bs-target="#Production"><?= _("Production & Compta") ?></button></li>
<li class="nav-item"><button class="nav-link fw-bold" data-bs-toggle="tab" data-bs-target="#Medical"><?= _("Médical") ?></button></li>
<li class="nav-item"><button class="nav-link fw-bold" data-bs-toggle="tab" data-bs-target="#Prestation"><?= _("Prestations") ?></button></li>
</ul>
</div>
</div>
<div class="tab-content" id="myTabContent">
<div class="tab-content" id="settingsTabContent">
<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="table-responsive">
<table class="table table-hover align-middle mb-0">
<thead class="bg-light text-muted small text-uppercase">
<tr>
<th width="8%" class="text-center">#</th>
<th><?= _("Paramètres") ?></th>
<th width="20%" class="text-center"><?= _("Valeurs") ?></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>
<table class="table table-hover align-middle mb-0">
<thead class="bg-light text-muted small text-uppercase">
<tr>
<th width="10%" class="text-center">Ref</th>
<th><?= _("Désignation du paramètre") ?></th>
<th width="20%" class="text-center"><?= _("Valeur") ?></th>
</tr>
</thead>
<tbody>
<tr>
<td class="text-center"><span class="badge bg-primary-ghost text-primary px-2">01</span></td>
<td class="text-dark fw-medium"><?= _("Paramètre de base section commun") ?></td>
<td class="text-center"><span class="badge bg-primary-ghost text-primary">Activé</span></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="tab-pane fade" id="Production" role="tabpanel">
<div class="card border-0 shadow-sm">
<div class="card-header bg-light py-2 px-4 border-bottom-0">
<h6 class="mb-0 fw-bold text-primary small text-uppercase"><i class="fas fa-file-invoice-dollar me-2"></i><?= _("COMPTABILITÉ") ?></h6>
<div class="card-header bg-white py-3 border-bottom border-light">
<h6 class="mb-0 fw-bold text-primary"><i class="fas fa-file-invoice-dollar me-2"></i><?= _("Règles Comptables") ?></h6>
</div>
<div class="card-body p-0">
<div class="table-responsive">
<table class="table table-hover align-middle mb-0">
<tbody>
<tr height="60">
<td width="8%" class="text-center fw-bold text-success">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="20%" class="text-center border-start">
<span class="fw-bold text-dark h5 mb-0">
<?= format_N($this->nettoyer($societeuser['EcartEncaissementTolerable'])) ?>
<small class="text-muted small"><?= $_SESSION['devise_C'] ?></small>
</span>
</td>
</tr>
</tbody>
</table>
</div>
<table class="table table-hover align-middle mb-0">
<tbody>
<tr>
<td width="10%" class="text-center"><span class="badge bg-primary-ghost text-primary px-2">01</span></td>
<td class="text-dark fw-medium"><?= _("Écart toléré sur encaissement prime ou facture garant") ?></td>
<td width="20%" class="text-center border-start">
<span class="text-dark fw-bold"><?= format_N($this->nettoyer($societeuser['EcartEncaissementTolerable'])) ?> <?= $_SESSION['devise_C'] ?></span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="tab-pane fade" id="Medical" role="tabpanel">
<div class="card border-0 shadow-sm">
<div class="card-header bg-light py-2 px-4 border-bottom-0">
<h6 class="mb-0 fw-bold text-primary small text-uppercase"><i class="fas fa-hand-holding-medical me-2"></i><?= _("PARAMÈTRES MÉDICAUX") ?></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="8%" class="text-center fw-bold text-primary">01</td>
<td class="text-dark fw-medium"><?= _("Activer les envois de SMS ?") ?></td>
<td width="20%" class="text-center border-start">
<?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 fw-bold">
<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 est en entente préalable ?") ?></td>
<td class="text-center border-start">
<?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 fw-bold">
<?= $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 border-start">
<span class="fw-bold text-primary h5 mb-0"><?= $this->nettoyer($societeuser['nombreActeEntentePrealable']) ?></span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="tab-pane fade" id="Prestation" role="tabpanel">
<div class="card border-0 shadow-sm mb-4">
<div class="card-header bg-light py-2 px-4 border-bottom-0">
<h6 class="mb-0 fw-bold text-primary small text-uppercase"><i class="fas fa-hospital me-2"></i><?= _("CENTRES DE SOINS ET DENTISTERIES") ?></h6>
<div class="card-header bg-white py-3 border-bottom border-light">
<h6 class="mb-0 fw-bold text-primary"><i class="fas fa-notes-medical me-2"></i><?= _("Protocoles Médicaux & SMS") ?></h6>
</div>
<div class="card-body p-0">
<table class="table table-hover align-middle mb-0">
<tbody>
<tr>
<td width="8%" class="text-center fw-bold text-primary">01</td>
<td class="text-dark fw-medium"><?= _("Limiter la facturation par centre ?") ?></td>
<td width="10%" class="text-center"><span class="badge bg-primary-ghost text-primary px-2">01</span></td>
<td class="text-dark fw-medium"><?= _("Activer les envois de SMS ?") ?></td>
<td width="20%" class="text-center border-start">
<span class="badge bg-primary-ghost text-primary px-3 py-2 fw-bold"><?= _("OUI") ?></span>
<?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 fw-bold">
<?= $sms ? _("OUI") : _("NON") ?>
</span>
</td>
</tr>
<tr>
<td class="text-center"><span class="badge bg-primary-ghost text-primary px-2">12</span></td>
<td class="text-dark fw-medium"><?= _("Soumettre toute la prescription en entente si un acte l'est ?") ?></td>
<td class="text-center border-start">
<?php $ent = ($societeuser['tousActesSoumisEntentePrealable']=="1"); ?>
<span class="badge <?= $ent ? 'bg-success-ghost text-success' : 'bg-danger-ghost text-danger' ?> rounded-pill px-3 py-2 fw-bold"><?= $ent ? _("OUI") : _("NON") ?></span>
</td>
</tr>
<tr>
<td class="text-center"><span class="badge bg-primary-ghost text-primary px-2">13</span></td>
<td class="text-dark fw-medium"><?= _("Seuil d'actes pour alerte entente préalable") ?></td>
<td class="text-center border-start">
<span class="text-primary fw-bold fs-5"><?= $this->nettoyer($societeuser['nombreActeEntentePrealable']) ?></span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="tab-pane fade" id="Prestation" role="tabpanel">
<div class="card border-0 shadow-sm mb-4">
<div class="card-header bg-light py-2 px-4 border-bottom-0">
<h6 class="mb-0 fw-bold text-primary small text-uppercase"><i class="fas fa-pills me-2"></i><?= _("PHARMACIES") ?></h6>
<div class="card-header bg-white py-2 border-bottom border-light">
<h6 class="mb-0 fw-bold text-dark small text-uppercase"><?= _("Centres de Soins") ?></h6>
</div>
<div class="card-body p-0">
<table class="table table-hover align-middle mb-0">
<tbody>
<tr>
<td width="8%" class="text-center fw-bold text-success">09</td>
<td class="text-dark fw-medium"><?= _("Permettre aux pharmaciens de modifier le prix d'un médicament ?") ?></td>
<td width="20%" class="text-center border-start">
<?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 fw-bold">
<?= $prixMod ? _("OUI") : _("NON") ?>
</span>
</td>
<td width="10%" class="text-center"><span class="badge bg-primary-ghost text-primary px-2">01</span></td>
<td class="text-dark fw-medium"><?= _("Limiter la facturation par centre ?") ?></td>
<td width="20%" class="text-center border-start"><span class="badge bg-success-ghost text-success fw-bold">OUI</span></td>
</tr>
</tbody>
</table>
@ -180,14 +133,22 @@
</div>
<div class="card border-0 shadow-sm">
<div class="card-header bg-light py-2 px-4 border-bottom-0">
<h6 class="mb-0 fw-bold text-primary small text-uppercase"><i class="fas fa-microscope me-2"></i><?= _("LABORATOIRES ET IMAGERIES") ?></h6>
<div class="card-header bg-white py-2 border-bottom border-light">
<h6 class="mb-0 fw-bold text-dark small text-uppercase"><?= _("Pharmacies") ?></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"><?= _("Configuration des seuils de laboratoires en cours...") ?></p>
</div>
<div class="card-body p-0">
<table class="table table-hover align-middle mb-0">
<tbody>
<tr>
<td width="10%" class="text-center"><span class="badge bg-primary-ghost text-primary px-2">09</span></td>
<td class="text-dark fw-medium"><?= _("Permettre la modification du prix médicament ?") ?></td>
<td width="20%" class="text-center border-start">
<?php $px = ($societeuser['prixMedicamentModifiable']=="1"); ?>
<span class="badge <?= $px ? 'bg-success-ghost text-success' : 'bg-danger-ghost text-danger' ?> rounded-pill px-3 py-2 fw-bold"><?= $px ? _("OUI") : _("NON") ?></span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
@ -195,31 +156,14 @@
</div>
<style>
/* --- STYLES RECOMMANDÉS POUR CONTRASTE ÉLEVÉ --- */
.page-content { font-family: 'DM Sans', sans-serif; }
/* Libellés foncés pour lisibilité maximale */
.text-dark { color: #1a1d24 !important; }
/* Badges "Ghost" pour décisions rapides */
/* Style spécifique pour contraste text-dark */
.text-dark { color: #1a1d24 !important; font-size: 0.9rem; }
.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); }
.bg-primary-ghost { background-color: rgba(33, 46, 83, 0.08); }
/* Onglets Modernes */
.nav-pills .nav-link {
color: var(--color-primary);
padding: 12px 20px;
border: 1px solid transparent;
transition: all 0.3s ease;
}
.nav-pills .nav-link.active {
background-color: var(--color-primary) !important;
color: white !important;
box-shadow: var(--shadow-md);
}
.nav-pills .nav-link { color: var(--color-primary); transition: all 0.3s ease; }
.nav-pills .nav-link.active { background-color: var(--color-primary) !important; box-shadow: var(--shadow-md); }
/* Tableaux */
.table th { border: none; font-size: 0.75rem; letter-spacing: 0.05em; }
.table-hover tbody tr:hover { background-color: #f8fafc; }
</style>