This commit is contained in:
KONE SOREL 2026-03-12 09:50:49 +00:00
parent 557ed4875e
commit f9e7e2f86c
4 changed files with 132 additions and 1523 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,182 +0,0 @@
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, viewport-fit=cover">
<meta name="description" content="INTER SANTÉ - Gestionnaire de santé">
<meta name="author" content="INTER SANTÉ">
<meta name="robots" content="noindex, nofollow">
<meta name="theme-color" content="#0088cf">
<!-- Pour PWA/iOS - Version corrigée -->
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="apple-mobile-web-app-title" content="INTER SANTÉ">
<base href="<?= $racineWeb ?>">
<!-- Favicon -->
<link rel="icon" href="Bootstrap_new/images/favicon.ico" type="image/x-icon">
<link rel="icon" href="Bootstrap_new/images/favicon-32x32.png" type="image/png" sizes="32x32">
<link rel="icon" href="Bootstrap_new/images/favicon-16x16.png" type="image/png" sizes="16x16">
<link rel="apple-touch-icon" href="Bootstrap_new/images/apple-touch-icon.png">
<!-- Preconnect pour améliorer les performances -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net">
<link rel="dns-prefetch" href="https://cdnjs.cloudflare.com">
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600&display=swap"
rel="stylesheet"
crossorigin="anonymous">
<!-- Bootstrap 5 CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM"
crossorigin="anonymous">
<!-- Font Awesome -->
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css"
integrity="sha512-Avb2QiuDEEvB4bZJYdft2mNjVShBftLdPG8FJ0V7irTLQ8Uo0qcPxh4Plq7G5tGm0rU+1SPhVotteLpBERwTkw=="
crossorigin="anonymous"
referrerpolicy="no-referrer">
<!-- Bootstrap Icons -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css">
<!-- Vendor CSS -->
<link href="Bootstrap/vendor/boxicons/css/boxicons.min.css" rel="stylesheet">
<!-- Toastr CSS -->
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.css"
integrity="sha512-vKMx8UnXk60zUwyUnUPM3HbQo8QfmNx7+ltw8Pm5zLusl1XIfwcxo8DbWCqMGKaWeNxWA8yrx5v3SaVpMvR3CA=="
crossorigin="anonymous"
referrerpolicy="no-referrer">
<!-- SweetAlert2 -->
<link href="https://cdn.jsdelivr.net/npm/sweetalert2@11.14.1/dist/sweetalert2.min.css"
rel="stylesheet">
<!-- Animate.css -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css">
<!-- Bootstrap Select CSS (si vous l'utilisez) -->
<?php if (isset($needBootstrapSelect) && $needBootstrapSelect): ?>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-select@1.14.0-beta3/dist/css/bootstrap-select.min.css">
<?php endif; ?>
<!-- Vendor CSS spécifiques (chargement conditionnel) -->
<?php
$current_page = $_SERVER['REQUEST_URI'] ?? '';
$needQuill = strpos($current_page, 'quill') !== false;
$needDatatables = isset($needDatatables) ? $needDatatables : false;
$needSelect2 = isset($needSelect2) ? $needSelect2 : false;
$needBootstrapSelect = isset($needBootstrapSelect) ? $needBootstrapSelect : false;
?>
<?php if ($needQuill): ?>
<link href="Bootstrap/vendor/quill/quill.snow.css" rel="stylesheet">
<?php endif; ?>
<?php if ($needDatatables): ?>
<link href="Bootstrap_new/css/datatables.min.css" rel="stylesheet">
<?php endif; ?>
<?php if ($needSelect2): ?>
<link href="Bootstrap_new/css/select2.min.css" rel="stylesheet">
<link href="Bootstrap_new/css/select2-bootstrap-5-theme.min.css" rel="stylesheet">
<?php endif; ?>
<!-- Styles personnalisés -->
<link href="Bootstrap_new/css/style_moderne.css?ver=<?= date('Y.m.d.H') ?>" rel="stylesheet">
<title><?= htmlspecialchars($_SESSION['vue'] ?? 'Dashboard') ?> - INTER SANTÉ</title>
<!-- Scripts de prévention de clic droit - Version optimisée -->
<script type="text/javascript">
// Fonction safe pour toastr
window.safeToastr = function() {
if (typeof toastr !== 'undefined') {
return toastr;
}
return {
warning: function(msg) { console.warn('TOASTR:', msg); },
error: function(msg) { console.error('TOASTR:', msg); },
success: function(msg) { console.log('TOASTR:', msg); },
info: function(msg) { console.info('TOASTR:', msg); }
};
};
var modeDev = <?= json_encode($modeDev ?? '0') ?>;
// Protection en mode production seulement
if (modeDev != "1") {
document.addEventListener('DOMContentLoaded', function() {
var toastr = window.safeToastr();
// Prévention clic droit
document.addEventListener('contextmenu', function(e) {
e.preventDefault();
toastr.warning('<?= _("Le clic droit est désactivé en mode production") ?>');
}, { passive: false });
// Prévention des raccourcis clavier
var blockedKeys = {
85: 'Ctrl+U (code source)',
123: 'F12 (outils de développement)',
73: 'Ctrl+Shift+I',
74: 'Ctrl+Shift+J',
67: 'Ctrl+Shift+C'
};
document.addEventListener('keydown', function(e) {
// Ctrl+U, Ctrl+Shift+I, etc.
if (e.ctrlKey && blockedKeys[e.keyCode]) {
e.preventDefault();
toastr.warning('<?= _("Cette fonctionnalité est désactivée") ?>: ' + blockedKeys[e.keyCode]);
return false;
}
// F12 seul
if (e.keyCode === 123) {
e.preventDefault();
toastr.warning('<?= _("Les outils de développement sont désactivés") ?>');
return false;
}
// Ctrl+Shift avec I, J, C
if (e.ctrlKey && e.shiftKey && [73, 74, 67].includes(e.keyCode)) {
e.preventDefault();
toastr.warning('<?= _("Cette fonctionnalité est désactivée") ?>');
return false;
}
}, { passive: false });
});
}
// Initialiser le panneau de contexte
window.initializeContextPanel = function() {
// Cette fonction sera appelée après le chargement de jQuery
if (typeof $ !== 'undefined') {
$(document).on('click', '#showSideNav', function(e) {
e.preventDefault();
e.stopPropagation();
$('#barre_laterale_d').addClass('active');
$(this).hide();
});
$(document).on('click', '#hideSideNav', function(e) {
e.preventDefault();
e.stopPropagation();
$('#barre_laterale_d').removeClass('active');
$('#showSideNav').show();
});
}
};
</script>
</head>

View File

@ -1,206 +0,0 @@
<body class="bg-light">
<?php
$style = "";
$test = "";
$colorTests = "";
$flag = est_anglophone() ? 'england.png' : 'france.png';
$alt = est_anglophone() ? 'English' : 'Français';
$lib = est_anglophone() ? 'En' : 'Fr';
if ($_SESSION['bdTests_C'] == "1") {
$colorTests = $_SESSION['colorTests'];
$style = "background: linear-gradient(90deg, $colorTests, lighten($colorTests, 10%)) !important;";
$test = "MODE TEST";
}
?>
<!-- ======= Header ======= -->
<header id="header" class="header fixed-top d-flex align-items-center shadow-sm" style="<?= $style ?>">
<div class="container-fluid d-flex align-items-center justify-content-between">
<!-- Logo et bouton menu -->
<div class="d-flex align-items-center">
<a class="logo d-flex align-items-center text-decoration-none me-4">
<img src="Bootstrap_new/images/new/favicon.png" alt="Logo INTER SANTÉ" class="img-fluid">
<span class="ms-2">INTER SANTE</span>
</a>
<i class="fas fa-bars toggle-sidebar-btn" onclick="toggleSidebar()" style="cursor: pointer;"></i>
</div>
<!-- Breadcrumb intégré dans le header -->
<div class="header-breadcrumb mx-4 flex-grow-1">
<nav aria-label="breadcrumb" class="mb-0">
<ol class="breadcrumb mb-0 bg-transparent p-0">
<li class="breadcrumb-item">
<a href="<?= $_SESSION['retourVue'] ?? '#' ?>"
class="text-decoration-none text-muted small d-flex align-items-center text-uppercase">
<?= $_SESSION['titreRetour'] ?? '' ?>
</a>
</li>
<li class="breadcrumb-item active text-primary fw-bold small text-uppercase"
aria-current="page">
<i class="fas fa-chevron-right mx-2 text-muted"></i>
<?= $_SESSION['descriptionVue'] ?? '' ?>
</li>
</ol>
</nav>
</div>
<!-- Navigation droite -->
<nav class="header-nav ms-auto">
<ul class="d-flex align-items-center list-unstyled mb-0">
<!-- Mode Test -->
<?php if ($test): ?>
<li class="nav-item me-3">
<a class="nav-link p-2 badge bg-warning text-dark fw-bold"
href="javascript:void(0);"
data-bs-toggle="tooltip"
title="<?= _("Mode test activé") ?>">
<i class="fas fa-vial me-1"></i> <?= $test ?>
</a>
</li>
<?php endif; ?>
<!-- Notifications -->
<li class="nav-item dropdown me-3">
<a class="nav-link position-relative p-2"
href="#"
data-bs-toggle="dropdown"
aria-expanded="false"
data-bs-toggle="tooltip"
title="<?= _("Notifications") ?>">
<i class="fas fa-bell fs-5 text-secondary"></i>
<span id="span_notification"
class="badge bg-danger badge-number">0</span>
</a>
<div class="dropdown-menu dropdown-menu-end border-0 shadow-lg p-0" style="width: 320px;">
<div class="dropdown-header bg-primary text-white py-3 px-4 rounded-top">
<h6 class="mb-0">
<i class="fas fa-bell me-2"></i>
<?= _("Notifications") ?>
<span id="notification-count" class="badge bg-light text-dark ms-2">0</span>
</h6>
</div>
<div class="dropdown-body p-0" style="max-height: 300px; overflow-y: auto;">
<div id="notification-list" class="list-group list-group-flush">
<div class="text-center py-4 text-muted">
<i class="fas fa-bell-slash fa-2x mb-2"></i>
<p class="mb-0"><?= _("Aucune notification") ?></p>
</div>
</div>
</div>
<div class="dropdown-footer bg-light py-2 px-3 text-center border-top">
<a href="javascript:pop_messagerie();" class="btn btn-sm btn-outline-primary">
<i class="fas fa-envelope me-1"></i> <?= _("Voir toutes les notifications") ?>
</a>
</div>
</div>
</li>
<!-- Société -->
<li class="nav-item me-3">
<a class="nav-link p-2 d-flex align-items-center"
href="javascript:infos_entite();"
data-bs-toggle="tooltip"
title="<?= _("Gestionnaire d'assurance santé") ?>">
<div class="me-2">
<img src="<?= $_SESSION['lienLogo'] ?>"
alt="<?= htmlspecialchars($companyDisplayName) ?>"
class="img-fluid rounded"
style="max-height: 36px;">
</div>
<div class="d-none d-md-block">
<span class="fw-bold text-dark"><?= $companyDisplayName ?></span>
</div>
</a>
</li>
<!-- Langue -->
<li class="nav-item dropdown me-3">
<a class="nav-link p-2 d-flex align-items-center"
href="#"
data-bs-toggle="dropdown"
data-bs-toggle="tooltip"
title="<?= _("Changer la langue") ?>">
<img src="Bootstrap_new/images/<?= $flag ?>"
alt="<?= $alt ?>"
width="24"
class="rounded-circle border">
<span class="d-none d-md-block ms-2 fw-medium"><?= $lib ?></span>
<i class="fas fa-chevron-down ms-1 small"></i>
</a>
<div class="dropdown-menu dropdown-menu-end border-0 shadow-sm">
<a class="dropdown-item d-flex align-items-center py-2"
href="javascript:changer_langue();">
<i class="fas fa-exchange-alt me-2 text-primary"></i>
<span><?= _("Changer de langue") ?></span>
</a>
</div>
</li>
<!-- Aide -->
<li class="nav-item me-3">
<a class="nav-link p-2"
href="Guideutilisation/"
data-bs-toggle="tooltip"
title="<?= _("Guide d'utilisation") ?>">
<i class="fas fa-question-circle fs-5 text-primary"></i>
</a>
</li>
<!-- Profil utilisateur -->
<li class="nav-item dropdown">
<a class="nav-link p-2 d-flex align-items-center"
href="#"
data-bs-toggle="dropdown"
data-bs-toggle="tooltip"
title="<?= _("Profil utilisateur") ?>">
<div class="initials-circle bg-primary text-white d-flex align-items-center justify-content-center me-2"
style="width: 36px; height: 36px; border-radius: 50%; font-weight: 600;">
<?= $_SESSION['userInitials_C'] ?>
</div>
<div class="d-none d-lg-block">
<div class="fw-medium text-dark small"><?= $_SESSION['utilisateur_C'] ?></div>
<div class="text-muted x-small"><?= $_SESSION['profil_C'] ?? '' ?></div>
</div>
<i class="fas fa-chevron-down ms-2 small"></i>
</a>
<div class="dropdown-menu dropdown-menu-end border-0 shadow-lg" style="min-width: 220px;">
<div class="dropdown-header bg-light py-3 px-4">
<div class="d-flex align-items-center">
<div class="initials-circle bg-primary text-white d-flex align-items-center justify-content-center me-3"
style="width: 40px; height: 40px; border-radius: 50%; font-size: 1rem; font-weight: 600;">
<?= $_SESSION['userInitials_C'] ?>
</div>
<div>
<div class="fw-bold"><?= $_SESSION['utilisateur_C'] ?></div>
<div class="text-muted small"><?= $_SESSION['profil_C'] ?? '' ?></div>
</div>
</div>
</div>
<div class="dropdown-divider"></div>
<a class="dropdown-item d-flex align-items-center py-2"
href="javascript:change_password();">
<i class="fas fa-user-circle me-3 text-primary"></i>
<span><?= $_SESSION['utilisateur_C'] ?></span>
</a>
<a class="dropdown-item d-flex align-items-center py-2"
href="javascript:void(0);">
<i class="fas fa-cog me-3 text-primary"></i>
<span><?= _("Paramètres") ?></span>
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item d-flex align-items-center py-2 text-danger"
href="javascript:deconnexion();">
<i class="fas fa-sign-out-alt me-3"></i>
<span><?= _("Déconnexion") ?></span>
</a>
</div>
</li>
</ul>
</nav>
</div>
</header>
<!-- End Header -->

View File

@ -1,106 +0,0 @@
<!-- ======= Sidebar ======= -->
<aside id="sidebar" class="sidebar shadow-lg">
<div class="sidebar-header py-3 px-4 border-bottom">
<div class="d-flex align-items-center">
<div class="avatar-sm bg-primary bg-opacity-10 rounded-circle d-flex align-items-center justify-content-center me-3">
<i class="fas fa-user-md text-primary"></i>
</div>
<div>
<h6 class="mb-0 fw-bold"><?= _("Navigation") ?></h6>
<small class="text-muted"><?= _("Portail Gestionnaire") ?></small>
</div>
</div>
</div>
<div class="sidebar-body">
<ul class="sidebar-nav list-unstyled" id="sidebar-nav">
<?php foreach ($menus as $key0 => $menuParent): ?>
<?php
$menuChildrenLevelOne = $gabary->get_menus_by_parent_code($menuParent['vue']);
$hasChildren = sizeof($menuChildrenLevelOne) > 0;
$isActiveParent = strtolower($menuParent['libeleMenu']) == strtolower($activeLevel1);
?>
<?php if ($hasChildren): ?>
<!-- Menu avec sous-menus -->
<li class="nav-item mb-1">
<a class="nav-link d-flex align-items-center justify-content-between py-3 px-4
<?= $isActiveParent ? 'active-main' : '' ?>"
data-bs-toggle="collapse"
href="#menu-<?= $menuParent['codeMenu'] . $key0 ?>"
role="button"
aria-expanded="<?= $isActiveParent ? 'true' : 'false' ?>"
aria-controls="menu-<?= $menuParent['codeMenu'] . $key0 ?>">
<div class="d-flex align-items-center">
<div class="icon-wrapper bg-primary bg-opacity-10 rounded-circle d-flex align-items-center justify-content-center me-3"
style="width: 36px; height: 36px;">
<i class="<?= $menuParent['icone'] ?> text-primary"></i>
</div>
<span class="fw-medium"><?= $menuParent['libeleMenu'] ?></span>
</div>
<!-- Icône avec rotation CSS pure -->
<i class="fas fa-chevron-down sidebar-chevron <?= $isActiveParent ? 'sidebar-chevron-rotated' : '' ?>"></i>
</a>
<div class="collapse <?= $isActiveParent ? 'show' : '' ?>"
id="menu-<?= $menuParent['codeMenu'] . $key0 ?>">
<ul class="list-unstyled ps-4 py-2 bg-light rounded">
<?php foreach ($menuChildrenLevelOne as $key1 => $menuChild): ?>
<?php
$link_clean = explode('/', $menuChild['lienMenu'])[0];
$activeLink = $_SESSION['firstLevelMenu'] ?? '';
$isActiveChild = $link_clean == $activeLink;
?>
<li class="mb-1">
<a class="nav-link-sub d-flex align-items-center py-2 px-3 rounded
<?= $isActiveChild ? 'active-submenu bg-primary text-white' : 'text-dark' ?>"
href="<?= $menuChild['lienMenu'] ?>">
<i class="fas fa-circle me-2" style="font-size: 0.5rem;"></i>
<span><?= $menuChild['libeleMenu'] ?></span>
<?php if ($isActiveChild): ?>
<i class="fas fa-arrow-right ms-auto"></i>
<?php endif; ?>
</a>
</li>
<?php endforeach; ?>
</ul>
</div>
</li>
<?php else: ?>
<!-- Menu sans sous-menus (comme Quitter) -->
<li class="nav-item mb-1">
<a class="nav-link d-flex align-items-center justify-content-between py-3 px-4
<?= $isActiveParent ? 'active-main' : '' ?>"
href="<?= $menuParent['lienMenu'] ?>">
<div class="d-flex align-items-center">
<div class="icon-wrapper bg-primary bg-opacity-10 rounded-circle d-flex align-items-center justify-content-center me-3"
style="width: 36px; height: 36px;">
<i class="<?= $menuParent['icone'] ?> text-primary"></i>
</div>
<span class="fw-medium"><?= $menuParent['libeleMenu'] ?></span>
</div>
<!-- Flèche uniquement si le menu est actif -->
<?php if ($isActiveParent): ?>
<i class="fas fa-arrow-right ms-auto text-primary"></i>
<?php endif; ?>
</a>
</li>
<?php endif; ?>
<?php endforeach; ?>
</ul>
</div>
<div class="sidebar-footer p-4 border-top bg-light">
<div class="d-grid">
<button class="btn btn-outline-primary d-flex align-items-center justify-content-center py-2"
onclick="javascript:window.open('Guideutilisation/', '_blank');">
<i class="fas fa-question-circle me-2"></i>
<?= _("Aide & Support") ?>
</button>
</div>
<div class="mt-3 text-center">
<small class="text-muted">v<?= $_SESSION['version_C'] ?? '1.0.4' ?></small>
</div>
</div>
</aside>
<!-- End Sidebar -->