-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
109 lines (100 loc) · 4.15 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Home</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="asset/css/bootstrap.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<link href="asset/css/bootstrap.min.css" rel="stylesheet">
<link href="asset/css/font-awesome.min.css" rel="stylesheet">
<link href="asset/css/animate.min.css" rel="stylesheet">
<link href="asset/css/prettyPhoto.css" rel="stylesheet">
<link href="asset/css/owl.carousel.min.css" rel="stylesheet">
<link href="asset/css/icomoon.css" rel="stylesheet">
<link href="asset/css/main.css" rel="stylesheet">
<link href="asset/css/responsive.css" rel="stylesheet">
<style>
body {
color: black;
font-family: Comic Sans MS;
}
</style>
</head>
<body>
<div class="container">
<p></p>
<nav class="navbar navbar-inverse navbar-expand-lg navbar-dark">
<a class="navbar-brand" href="#">Perusahaan BAYRON</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="index.php">Home <span class="sr-only"></span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="index.php?page=homeKaryawan">Karyawan</a>
</li>
<li class="nav-item">
<a class="nav-link" href="index.php?page=homeDivisi">Divisi</a>
</li>
</ul>
<div class="social">
<ul class="social-share">
<li><a href="#"><i class="fa fa-facebook"></i></a></li>
<li><a href="#"><i class="fa fa-twitter"></i></a></li>
<li><a href="#"><i class="fa fa-instagram"></i></a></li>
<li><a href="#"><i class="fa fa-envelope"></i></a></li>
<li><a href="#"><i class="fa fa-whatsapp"></i></a></li>
<li><a href="#"><i class="fa fa-telegram"></i></a></li>
</ul>
</div>
<div class="col-sm-6 col-xs-20">
<div class="top-number">
<p><i class="fa fa-phone-square"></i>Hubungi 0853 0000 0000</p>
</div>
</div>
</div>
</nav>
<?php
$page = $_GET['page'] ?? '';
$halaman = 'View/home.php';
switch ($page){
//Dosen
case 'homeDivisi';
$halaman = 'View/divisi/home.php';
break;
case 'registerDivisi';
$halaman = 'View/divisi/formTambah.php';
break;
case 'editDivisi';
$halaman = 'View/divisi/formUbah.php';
break;
case 'deleteDivisi';
$halaman = 'View/divisi/konfirmasiHapus.php';
break;
//KAryawab
case 'homeKaryawan';
$halaman = 'View/karyawan/home.php';
break;
case 'registerKaryawan';
$halaman = 'View/karyawan/formTambah.php';
break;
case 'editKaryawan';
$halaman = 'View/karyawan/formUbah.php';
break;
case 'deleteKaryawan';
$halaman = 'View/karyawan/konfirmasiHapus.php';
break;
}
include($halaman);
?>
</div>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="asset/js/bootstrap.min.js"></script>
</body>
</html>