-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
86 lines (79 loc) · 4.41 KB
/
index.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
<!doctype html>
<html lang="en" data-bs-theme="dark">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Rental Mobil Rikza Fauzan N</title>
<link rel="shortcut icon" href="assets/img/20863876_6387972.svg" type="image/x-icon">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<link rel="stylesheet" href="assets/css/myStyle.css">
</head>
<body>
<?php
@session_start();
if ($_GET['role'] == "admin") :
?>
<nav class="navbar navbar-expand-lg bg-body-tertiary sticky-top">
<div class="container">
<a class="navbar-brand fw-bold" href="?role=admin"><img src="assets/img/20863876_6387972.svg" alt="" class="w-50"> RentalMobil<sup class="text-danger">admin</sup></a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
<div class="navbar-nav mx-auto">
<a class="nav-link active" aria-current="page" href="#">Home</a>
<a class="nav-link" href="#datatransaksi">Data Transaksi</a>
<a class="nav-link" href="#dataUser">Data User</a>
<a class="nav-link" href="#dataMobil">Data mobil</a>
<a class="nav-link" href="#dataPelanggan">Data Pelanggan</a>
</div>
<div class="navbar-text">
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
<?php echo $_SESSION['username'] ?>
</button>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="?logic=logic&logout=logout">Logout</a></li>
</ul>
</div>
</div>
</div>
</div>
</nav>
<?php
elseif ($_GET['role'] == "user") :
?>
<nav class="navbar navbar-expand-lg bg-body-tertiary sticky-top">
<div class="container">
<a class="navbar-brand fw-bold" href="?role=user"><img src="assets/img/20863876_6387972.svg" alt="" class="w-50"> RentalMobil<sup class="text-danger">Dealer</sup></a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
<div class="navbar-nav mx-auto">
<a class="nav-link active" aria-current="page" href="?role=user">Home</a>
<a class="nav-link" href="#listmobil">List Mobil</a>
<a class="nav-link" href="#datarental">Data Rental Mobil</a>
</div>
<div class="navbar-text">
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
<?php echo $_SESSION['username'] ?>
</button>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="?logic=logic&logout=logout">Logout</a></li>
</ul>
</div>
</div>
</div>
</div>
</nav>
<?php
endif;
?>
<?php
include("./linkManager.php");
?>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
</body>
</html>