-
Notifications
You must be signed in to change notification settings - Fork 0
/
menu.php
166 lines (142 loc) · 5.24 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<!-- Header -->
<header id="header" class="header fixed-top d-flex align-items-center">
<div class="d-flex align-items-center justify-content-between">
<a href="homepage" class="logo d-flex align-items-center">
<img src="assets/img/cardb-logo.svg" alt="">
<span class="d-none d-lg-block">CarDB Analytics</span>
</a>
<i class="bi bi-list toggle-sidebar-btn"></i>
</div><!-- End Logo -->
<nav class="header-nav ms-auto">
<ul class="d-flex align-items-center">
<li class="nav-item dropdown pe-3">
<a class="nav-link nav-profile d-flex align-items-center pe-0" href="#" data-bs-toggle="dropdown">
<?php
if(isset($_SESSION["username"]))
{
echo "<span class='d-none d-md-block dropdown-toggle ps-2'>".$_SESSION['username']."</span>";
}
else
{
echo "<span class='d-none d-md-block dropdown-toggle ps-2'>Guest</span>";
}
?>
</a><!-- End Profile Image Icon -->
<ul class="dropdown-menu dropdown-menu-end dropdown-menu-arrow profile">
<li class="dropdown-header">
<?php
if(isset($_SESSION["username"]))
{
echo "<h6>".$_SESSION['username']."</h6>";
echo "<span>".$_SESSION['email']."</span>";
?>
</li>
<li>
<hr class="dropdown-divider">
</li>
<li>
<a class="dropdown-item d-flex align-items-center" href="logout">
<i class="bi bi-box-arrow-right"></i>
<span>Sign Out</span>
<?php }
else
{
echo "<h6>Guest</h6>";
echo "<span>Not logged in</span>";
?>
</li>
<li>
<hr class="dropdown-divider">
</li>
<li>
<a class="dropdown-item d-flex align-items-center" href="login">
<i class="bi bi-box-arrow-right"></i>
<span>Sign In</span>
<?php }
?>
</a>
</li>
</ul><!-- End Profile Dropdown Items -->
</li><!-- End Profile Nav -->
</ul>
</nav><!-- End Icons Navigation -->
</header><!-- End Header -->
<!-- Sidebar -->
<aside id="sidebar" class="sidebar">
<ul class="sidebar-nav" id="sidebar-nav">
<li class="nav-item">
<a class="nav-link collapsed" data-bs-target="#research-nav" data-bs-toggle="collapse" href="#">
<i class="bi bi-menu-button-wide"></i><span>Research</span><i class="bi bi-chevron-down ms-auto"></i>
</a>
<ul id="research-nav" class="nav-content collapse show" data-bs-parent="#sidebar-nav">
<li>
<a href="overview">
<i class="bi bi-circle"></i><span>Overview</span>
</a>
</li>
<li>
<a href="cars">
<i class="bi bi-circle"></i><span>Car Research</span>
</a>
</li>
</ul>
</li><!-- End Research Nav -->
<li class="nav-item">
<a class="nav-link collapsed" data-bs-target="#analytics-nav" data-bs-toggle="collapse" href="#">
<i class="bi bi-bar-chart"></i><span>Analytics</span><i class="bi bi-chevron-down ms-auto"></i>
</a>
<ul id="analytics-nav" class="nav-content collapse show" data-bs-parent="#sidebar-nav">
<li>
<a href="dashboard">
<i class="bi bi-circle"></i><span>Dashboard</span>
</a>
</li>
<li>
<a href="region">
<i class="bi bi-circle"></i><span>Region</span>
</a>
</li>
<li>
<a href="age">
<i class="bi bi-circle"></i><span>Age</span>
</a>
</li>
<li>
<a href="gender">
<i class="bi bi-circle"></i><span>Gender</span>
</a>
</li>
<li>
<a href="colour">
<i class="bi bi-circle"></i><span>Colour</span>
</a>
</li>
</ul>
</li><!-- End Analytics Nav -->
<li class="nav-heading">Pages</li>
<li class="nav-item">
<a class="nav-link collapsed" href="team">
<i class="bi bi-person"></i>
<span>Team</span>
</a>
</li><!-- End Profile Page Nav -->
<li class="nav-item">
<a class="nav-link collapsed" href="contact">
<i class="bi bi-envelope"></i>
<span>Contact</span>
</a>
</li><!-- End Contact Page Nav -->
<li class="nav-item">
<a class="nav-link collapsed" href="register">
<i class="bi bi-card-list"></i>
<span>Register</span>
</a>
</li><!-- End Register Page Nav -->
<li class="nav-item">
<a class="nav-link collapsed" href="login">
<i class="bi bi-box-arrow-in-right"></i>
<span>Login</span>
</a>
</li><!-- End Login Page Nav -->
</ul>
</aside><!-- End Sidebar-->