vaml
This commit is contained in:
parent
6cfbe18b30
commit
a6f7ccb34c
91586
Js/fonctions.js
91586
Js/fonctions.js
File diff suppressed because it is too large
Load Diff
|
|
@ -5,35 +5,43 @@
|
|||
<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"><?= _("Gérez les seuils et règles métiers du centre") ?></p>
|
||||
<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: 300px;">
|
||||
|
||||
<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="searchParam" class="form-control ps-5 border-2" placeholder="Rechercher un paramètre (ex: SMS, Prix, Facture)..." style="border-radius: 20px;">
|
||||
<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" id="pills-tab" role="tablist">
|
||||
<li class="nav-item"><button onclick="showHideElt('Generaux')" class="nav-link active rounded-pill fw-bold" data-bs-toggle="pill" data-bs-target="#Generaux"><?= _("Commun") ?></button></li>
|
||||
<li class="nav-item"><button onclick="showHideElt('Production')" class="nav-link rounded-pill fw-bold" data-bs-toggle="pill" data-bs-target="#Production"><?= _("Production & Compta") ?></button></li>
|
||||
<li class="nav-item"><button onclick="showHideElt('Medical')" class="nav-link rounded-pill fw-bold" data-bs-toggle="pill" data-bs-target="#Medical"><?= _("Médical") ?></button></li>
|
||||
<li class="nav-item"><button onclick="showHideElt('Prestation')" class="nav-link rounded-pill fw-bold" data-bs-toggle="pill" data-bs-target="#Prestation"><?= _("Prestations") ?></button></li>
|
||||
<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 & Compta") ?></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="Production" class="tab-pane-custom" style="display:none;">
|
||||
<div id="Generaux" class="tab-custom-content">
|
||||
<div class="card border-0 shadow-sm overflow-hidden">
|
||||
<div class="card-header bg-primary py-3">
|
||||
<h6 class="mb-0 text-white fw-bold text-uppercase"><i class="fas fa-calculator me-2"></i><?= _("Règles Comptables") ?></h6>
|
||||
<div class="card-header bg-dark py-3">
|
||||
<h6 class="mb-0 text-white fw-bold"><i class="fas fa-cog me-2"></i><?= _("PARAMÈTRES GÉNÉRAUX") ?></h6>
|
||||
</div>
|
||||
<div class="card-body p-0">
|
||||
<table class="table table-hover align-middle mb-0" id="tableProduction">
|
||||
<table class="table table-hover align-middle mb-0 datatable-custom">
|
||||
<tbody>
|
||||
<tr class="param-row">
|
||||
<td width="8%" class="text-center"><span class="badge bg-light text-primary border fw-bold">01</span></td>
|
||||
<td class="text-dark fw-bold pe-4"><?= _("Écart toléré sur encaissement prime ou facture garant") ?></td>
|
||||
<tr class="searchable-row">
|
||||
<td width="8%" class="text-center fw-bold text-primary">01</td>
|
||||
<td class="text-dark fw-bold"><?= _("Utilisation du mode de gestion standard") ?></td>
|
||||
<td width="20%" class="text-center border-start bg-light">
|
||||
<span class="fw-bold text-primary fs-5"><?= format_N($this->nettoyer($societeuser['EcartEncaissementTolerable'])) ?></span>
|
||||
<small class="text-muted fw-normal ms-1"><?= $_SESSION['devise_C'] ?></small>
|
||||
<span class="badge bg-success-ghost text-success px-3 py-2 fw-bold">OUI</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
|
@ -42,28 +50,49 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div id="Medical" class="tab-pane-custom" style="display:none;">
|
||||
<div id="Production" class="tab-custom-content" style="display:none;">
|
||||
<div class="card border-0 shadow-sm overflow-hidden">
|
||||
<div class="card-header bg-info py-3 text-white">
|
||||
<h6 class="mb-0 fw-bold text-uppercase"><i class="fas fa-hand-holding-medical me-2"></i><?= _("Protocoles Médicaux") ?></h6>
|
||||
<div class="card-header bg-primary py-3">
|
||||
<h6 class="mb-0 text-white fw-bold"><i class="fas fa-calculator me-2"></i><?= _("RÈGLES COMPTABLES") ?></h6>
|
||||
</div>
|
||||
<div class="card-body p-0 text-dark">
|
||||
<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-success">01</td>
|
||||
<td class="text-dark fw-bold"><?= _("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 bg-light fw-bold text-dark fs-5">
|
||||
<?= format_N($this->nettoyer($societeuser['EcartEncaissementTolerable'])) ?>
|
||||
<small class="text-muted fw-normal"><?= $_SESSION['devise_C'] ?></small>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</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" id="tableMedical">
|
||||
<table class="table table-hover align-middle mb-0 datatable-custom">
|
||||
<tbody>
|
||||
<tr class="param-row">
|
||||
<td width="8%" class="text-center"><span class="badge bg-light text-info border fw-bold">01</span></td>
|
||||
<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"); ?>
|
||||
<div class="d-inline-flex align-items-center px-3 py-1 rounded-pill <?= $sms ? 'bg-success-ghost text-success' : 'bg-danger-ghost text-danger' ?>">
|
||||
<i class="fas <?= $sms ? 'fa-check-circle' : 'fa-times-circle' ?> me-2"></i>
|
||||
<span class="fw-bold small"><?= $sms ? _("OUI") : _("NON") ?></span>
|
||||
</div>
|
||||
<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="param-row">
|
||||
<td class="text-center"><span class="badge bg-light text-info border fw-bold">12</span></td>
|
||||
<td class="text-dark fw-bold"><?= _("Soumettre toute la prescription en entente préalable si un acte l'est ?") ?></td>
|
||||
<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">
|
||||
|
|
@ -71,8 +100,8 @@
|
|||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="param-row">
|
||||
<td class="text-center"><span class="badge bg-light text-info border fw-bold">13</span></td>
|
||||
<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>
|
||||
|
|
@ -82,38 +111,24 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div id="Prestation" class="tab-pane-custom" style="display:none;">
|
||||
<div id="Prestation" class="tab-custom-content" style="display:none;">
|
||||
<div class="row g-4">
|
||||
<div class="col-12 col-xl-6">
|
||||
<div class="col-md-6 searchable-row">
|
||||
<div class="card border-0 shadow-sm h-100">
|
||||
<div class="card-header bg-dark text-white py-2 px-3 fw-bold small uppercase">CENTRES DE SOINS</div>
|
||||
<div class="card-body p-0">
|
||||
<table class="table table-hover align-middle mb-0">
|
||||
<tr class="param-row">
|
||||
<td width="15%" class="text-center fw-bold text-primary">01</td>
|
||||
<td class="text-dark fw-bold small"><?= _("Limiter la facturation par centre ?") ?></td>
|
||||
<td class="text-center border-start bg-light" width="25%"><span class="badge bg-success-ghost text-success">OUI</span></td>
|
||||
</tr>
|
||||
</table>
|
||||
<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-12 col-xl-6">
|
||||
<div class="col-md-6 searchable-row">
|
||||
<div class="card border-0 shadow-sm h-100">
|
||||
<div class="card-header bg-dark text-white py-2 px-3 fw-bold small uppercase">PHARMACIES</div>
|
||||
<div class="card-body p-0">
|
||||
<table class="table table-hover align-middle mb-0">
|
||||
<tr class="param-row">
|
||||
<td width="15%" class="text-center fw-bold text-success">09</td>
|
||||
<td class="text-dark fw-bold small"><?= _("Modification prix médicaments par pharmacien ?") ?></td>
|
||||
<td class="text-center border-start bg-light" width="25%">
|
||||
<?php $px = ($societeuser['prixMedicamentModifiable']=="1"); ?>
|
||||
<span class="badge <?= $px ? 'bg-success-ghost text-success' : 'bg-danger-ghost text-danger' ?> px-3">
|
||||
<?= $px ? _("OUI") : _("NON") ?>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<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>
|
||||
|
|
@ -121,24 +136,22 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<style>
|
||||
/* --- DESIGN NEUTRAL PRO --- */
|
||||
:root {
|
||||
--radius-md: 12px;
|
||||
}
|
||||
/* --- 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; }
|
||||
|
||||
.nav-pills .nav-link { color: #64748b; padding: 12px 25px; transition: 0.3s; }
|
||||
.nav-pills .nav-link.active { background-color: #212e53 !important; color: white !important; transform: scale(1.05); }
|
||||
/* 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 d'apparition */
|
||||
.tab-pane-custom { animation: fadeIn 0.4s ease-in-out; }
|
||||
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
|
||||
/* 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); } }
|
||||
</style>
|
||||
Loading…
Reference in New Issue
Block a user