-
Notifications
You must be signed in to change notification settings - Fork 0
/
navigation.php
112 lines (94 loc) · 3.95 KB
/
navigation.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
<?php
if(!isset($_SESSION)){
session_start();
session_regenerate_id();
}
include 'api/dbh_link.php';
$id = $_SESSION['id'];
$sql = mysqli_query($conn,"SELECT rs_name,rs_surname FROM rs_user WHERE id='$id'");
while ($row = mysqli_fetch_assoc($sql)) {
$voornaam = $row['rs_name'];
$familienaam = $row['rs_surname'];
}
$currentpage = basename($_SERVER['PHP_SELF'],'.php');
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<link rel="icon" type="image/png" href="../assets/img/rslogo.png" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>RS Autowerkplaats</title>
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport' />
<meta name="viewport" content="width=device-width" />
<!-- Bootstrap core CSS -->
<link href="assets/css/bootstrap.min.css" rel="stylesheet" />
<!-- Material Dashboard CSS -->
<link href="assets/css/material-dashboard.css" rel="stylesheet"/>
<!-- animation stylesheet -->
<link href="assets/css/animate.css" rel="stylesheet"/>
<!-- Fonts and icons -->
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css" rel="stylesheet">
<link href='http://fonts.googleapis.com/css?family=Roboto:400,700,300|Material+Icons' rel='stylesheet' type='text/css'>
<link href="assets/css/animate.css" rel="stylesheet"/>
</head>
<body>
<div class="wrapper">
<!--
Tip 1: You can change the color of the sidebar using: data-color="purple | blue | green | orange | red"
Tip 2: you can also add an image using data-image tag
-->
<div class="sidebar" data-color="orange" data-image="assets/img/sidebar-1.jpeg">
<div class="logo">
<a href="" class="simple-text">
<?php echo $voornaam." ".$familienaam; ?>
</a>
</div>
<div class="sidebar-wrapper">
<div class="user">
<div class="photo ">
<img src="assets/img/rslogo.png" width="240px" class="img img-circle img-responsive img-raised animated lightSpeedIn">
</div>
</div>
<ul class="nav">
<li <?php if($currentpage=='home') echo "class='active'"; ?>>
<a href="home.php">
<i class="material-icons">home</i>
<p>Home</p>
</a>
</li>
<li <?php if($currentpage=='klanten') echo "class='active'"; ?>>
<a href="klanten.php">
<i class="material-icons">person_pin</i>
<p>Klanten</p>
</a>
</li>
<li <?php if($currentpage=='rapportage') echo "class='active'"; ?>>
<a href="rapportage.php">
<i class="material-icons">content_paste</i>
<p>Rapportage</p>
</a>
</li>
<li <?php if($currentpage=='sleep') echo "class='active'"; ?>>
<a href="sleep.php">
<i class="material-icons">rv_hookup</i>
<p>Sleepdienst</p>
</a>
</li>
<li <?php if($currentpage=='gebruikers') echo "class='active'"; ?>>
<a href="gebruikers.php">
<i class="material-icons text-gray">perm_identity</i>
<p>Gebruikers</p>
</a>
</ul>
</div>
</div>
</body>
</html>
<!-- Core JS Files -->
<script src="assets/js/jquery-3.1.0.min.js" type="text/javascript"></script>
<script src="assets/js/bootstrap.min.js" type="text/javascript"></script>
<script src="assets/js/material.min.js" type="text/javascript"></script>
<!-- Material Dashboard javascript methods -->
<script src="assets/js/material-dashboard.js"></script>
</html>