-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathheader.php
More file actions
50 lines (43 loc) · 1.76 KB
/
header.php
File metadata and controls
50 lines (43 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
header("Pragma: no-cache");
$page = $page ?? '';
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>M17 Dashboard</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script>
(function(){
try{
if(localStorage.getItem('t')==='l')
document.documentElement.classList.add('light');
}catch(e){}
})();
</script>
<link rel="stylesheet" href="style.css">
<script src="theme.js"></script>
<script src="jquery-3.7.1.min.js"></script>
<link rel="icon" type="image/png" href="img/favicon.png">
</head>
<body>
<div class="layout">
<aside class="sidebar">
<div class="sidebar-header">M17 Dashboard</div>
<a href="index.php" class="<?php echo ($page=='dashboard')?'active':'';?>"><span class="icon">🏠</span>Dashboard</a>
<a href="map.php" class="<?php echo ($page=='map')?'active':'';?>"><span class="icon">🗺️</span>Map</a>
<a href="config_gateway.php" class="<?php echo ($page=='config_gw')?'active':'';?>"><span class="icon">⚙️</span>Gateway config</a>
<a href="config_dashboard.php" class="<?php echo ($page=='config_dash')?'active':'';?>"><span class="icon">🧩</span>Dashboard config</a>
<a href="messages.php" class="<?php echo ($page=='messages')?'active':'';?>"><span class="icon">💬</span>Text messages</a>
<a href="help.php" class="<?php echo ($page=='help')?'active':'';?>"><span class="icon">❓</span>Help</a>
<div class="sidebar-theme">
<div class="theme-slider" onclick="toggleTheme()">
<span class="sun">☀️</span>
<div class="theme-track"><div class="theme-thumb"></div></div>
<span class="moon">🌙</span>
</div>
</div>
</aside>
<main class="main">