notification settings and mail

This commit is contained in:
2026-08-14 07:54:17 +02:00
parent 41c4838dab
commit 1dbb93b139
4 changed files with 462 additions and 8 deletions
+17 -8
View File
@@ -1,10 +1,10 @@
<?php
// Build an absolute URL to employee-profile.php so it works from any depth
// (e.g. /userarea/index.php, /userarea/scadenzario/index.php).
$__scriptName = $_SERVER['SCRIPT_NAME'] ?? '';
$__pos = strpos($__scriptName, '/userarea/');
$__base = $__pos !== false ? substr($__scriptName, 0, $__pos) : '';
$__myProfileHref = $__base . '/userarea/employee-profile.php';
// Build an absolute URL to employee-profile.php so it works from any depth
// (e.g. /userarea/index.php, /userarea/scadenzario/index.php).
$__scriptName = $_SERVER['SCRIPT_NAME'] ?? '';
$__pos = strpos($__scriptName, '/userarea/');
$__base = $__pos !== false ? substr($__scriptName, 0, $__pos) : '';
$__myProfileHref = $__base . '/userarea/employee-profile.php';
?>
<header>
<div class="topbar d-flex align-items-center">
@@ -95,7 +95,7 @@
<ul class="dropdown-menu dropdown-menu-end">
<li>
<a class="dropdown-item d-flex align-items-center" href="<?= htmlspecialchars($__myProfileHref) ?>"
onclick="event.preventDefault(); window.location.assign(this.href);">
onclick="event.preventDefault(); window.location.assign(this.href);">
<i class="bx bx-id-card fs-5"></i><span>Il Mio Profilo</span>
</a>
</li>
@@ -104,6 +104,15 @@
<i class="bx bx-user fs-5"></i><span>Utente</span>
</a>
</li>
<li>
<a class="dropdown-item d-flex align-items-center" href="notification_settings.php">
<i class="bx bx-bell fs-5"></i><span>Notifiche</span>
</a>
</li>
<li>
<div class="dropdown-divider mb-0"></div>
</li>
<li>
<div class="dropdown-divider mb-0"></div>
</li>
@@ -117,4 +126,4 @@
</div>
</nav>
</div>
</header>
</header>