97 lines
4.2 KiB
PHP
97 lines
4.2 KiB
PHP
<?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-color: $colorTests;";
|
|
$test = "MODE TEST";
|
|
}
|
|
?>
|
|
|
|
<header id="header" class="header fixed-top d-flex align-items-center" style="<?= $style ?>">
|
|
<div class="d-flex align-items-center justify-content-between w-100">
|
|
<!-- Logo et toggle -->
|
|
<div class="d-flex align-items-center">
|
|
<i class="bi bi-list toggle-sidebar-btn me-3"></i>
|
|
<a href="#" class="logo d-flex align-items-center">
|
|
<img src="Bootstrap_new/images/new/favicon.png" alt="Logo Inter santé" height="40">
|
|
<span class="d-none d-lg-block fw-bold ms-2">INTER SANTE</span>
|
|
</a>
|
|
</div>
|
|
|
|
<!-- Actions et profil -->
|
|
<div class="d-flex align-items-center gap-3">
|
|
<!-- Mode test -->
|
|
<?php if ($_SESSION['bdTests_C'] == "1"): ?>
|
|
<span class="badge bg-warning text-dark px-3 py-2"><?= $test ?></span>
|
|
<?php endif; ?>
|
|
|
|
<!-- Notifications -->
|
|
<div class="dropdown">
|
|
<a class="position-relative" href="#" data-bs-toggle="dropdown" aria-expanded="false">
|
|
<i class="bi bi-bell fs-5"></i>
|
|
<span id="span_notification" class="position-absolute top-0 start-100 translate-middle badge rounded-pill bg-danger">0</span>
|
|
</a>
|
|
<ul class="dropdown-menu dropdown-menu-end p-2" style="min-width: 300px;">
|
|
<li class="text-center text-muted small p-3"><?= _("Aucune notification") ?></li>
|
|
</ul>
|
|
</div>
|
|
|
|
<!-- Logo société -->
|
|
<div class="d-flex align-items-center gap-2">
|
|
<img src="<?= $_SESSION['lienLogo'] ?>" alt="Logo" style="height: 40px;">
|
|
<span class="fw-semibold d-none d-lg-inline"><?= $companyDisplayName ?></span>
|
|
</div>
|
|
|
|
<!-- Langue -->
|
|
<div class="dropdown">
|
|
<a href="#" data-bs-toggle="dropdown" class="d-flex align-items-center gap-2">
|
|
<img src="Bootstrap_new/images/<?= $flag ?>" alt="<?= $alt ?>" width="24" class="rounded">
|
|
<span class="d-none d-md-inline"><?= $lib ?></span>
|
|
</a>
|
|
<ul class="dropdown-menu">
|
|
<li>
|
|
<a class="dropdown-item" href="javascript:changer_langue();">
|
|
<i class="fa fa-exchange me-2"></i> <?= _("Changer de langue") ?>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<!-- Aide -->
|
|
<a href="Guideutilisation/" class="d-flex align-items-center" title="<?= _("Guide d'utilisation") ?>">
|
|
<i class="bi bi-question-circle-fill fs-5"></i>
|
|
</a>
|
|
|
|
<!-- Profil utilisateur -->
|
|
<div class="dropdown">
|
|
<a href="#" data-bs-toggle="dropdown" class="d-flex align-items-center gap-2">
|
|
<span class="initials rounded-circle bg-primary text-white d-flex align-items-center justify-content-center" style="width: 35px; height: 35px;">
|
|
<?= $_SESSION['userInitials_C'] ?>
|
|
</span>
|
|
</a>
|
|
<ul class="dropdown-menu dropdown-menu-end">
|
|
<li>
|
|
<a class="dropdown-item" href="javascript:change_password();">
|
|
<i class="fa fa-user-circle me-2"></i> <?= $_SESSION['utilisateur_C'] ?>
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<hr class="dropdown-divider">
|
|
</li>
|
|
<li>
|
|
<a class="dropdown-item text-danger" href="#">
|
|
<i class="bi bi-box-arrow-right me-2"></i> <?= _("Déconnexion") ?>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</header>
|