-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
64 lines (59 loc) · 2.18 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Latihan Laravel</title>
<link rel="stylesheet" href="vendor/twbs/bootstrap/dist/css/bootstrap.min.css">
<style>
html {
scroll-behavior: smooth;
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light mb-3">
<div class="container">
<a class="navbar-brand" href="./">Laravel Login</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="./">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="./?page=persiapan">Persiapan</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./?page=membuat">Membuat</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./?page=memodifikasi">Memodifikasi</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="container">
<?php
$included = true;
if (isset($_GET['page'])) {
if (
$_GET['page'] == 'persiapan' ||
$_GET['page'] == 'membuat' ||
$_GET['page'] == 'memodifikasi'
) {
include($_GET['page'] . '.php');
} else {
header('Location:./');
}
} else {
include('welcome.php');
} ?>
</div>
<script src="vendor/components/jquery/jquery.min.js"></script>
<script src="vendor/twbs/bootstrap/dist/js/bootstrap.min.js"></script>
</body>
</html>