-
Notifications
You must be signed in to change notification settings - Fork 2
/
_menu.php
35 lines (31 loc) · 1.02 KB
/
_menu.php
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
<?php
if($USER->auth>0) {
// Logged in
$user_status_button="<li><button type=\"button\" class=\"tiny button\" onclick=\"location.href='logout.php'\">Logout ".$USER->data['user_email']."</button></li>";
} else {
// Not logged in
$user_status_button="<li><button type=\"button\" class=\"tiny button\" onclick=\"location.href='login.php'\">Login</button></li>";
}
?>
<div class="top-bar">
<div class="top-bar-left">
<ul class="dropdown menu" data-dropdown-menu>
<li class="menu-text">PlateJuggler</li>
<li><a href="index.php">Plates</a></li>
<li><a href="storage.php">Storage</a></li>
<li><a href="users.php">Users</a></li>
</ul>
</div>
<div class="top-bar-right">
<ul class="menu" data-dropdown-menu>
<?php echo $user_status_button; ?>
</ul>
</div>
<div class="top-bar-right">
<ul class="menu" id="server_status">
<li><span class="label" id="lims-status">LIMS</span> </li>
<li><span class="label" id="couch-status">StatusDB</span> </li>
</ul>
</div>
</div>
<?php echo $ALERTS->render(); ?>