-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
149 lines (120 loc) · 4.94 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
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
<?php
// session_start();
// ob_start();
require_once('config/koneksi.php');
require_once('model/database.php');
include 'session.php';
// // include 'login.php';
$connection = new Database ($host, $user, $pass, $database);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Web Admin Wisata</title>
<!-- Bootstrap core CSS -->
<link href="assets/css/bootstrap.css" rel="stylesheet">
<link href="assets/dataTable/datatables.min.css" rel="stylesheet">
<!-- <link href="assets/dataTable/DataTables-1.10.16/css/dataTables.bootstrap.min.css" rel="stylesheet"> -->
<!-- css untuk sorting data table -->
<style type="text/css">
table.dataTable thead th {
position: relative;
background-image: none !important;
}
table.dataTable thead th.sorting:after,
table.dataTable thead th.sorting_asc:after,
table.dataTable thead th.sorting_des:after {
position: absolute;
top: 12px;
right: 8px;
display: block;
font-family: FontAwesome;
}
table.dataTable thead th.sorting:after {
content: "\f0dc";
color: #ddd;
font-size: 0.8em;
padding-top: 0.12em;
}
table.dataTable thead th.sorting_asc:after {
content: "\f0de";
}
table.dataTable thead th.sorting_desc:after {
content: "\f0dd";
}
</style>
<!-- end css untuk sorting data table -->
<!-- Add custom CSS here -->
<link href="assets/css/sb-admin.css" rel="stylesheet">
<link rel="stylesheet" href="assets/font-awesome/css/font-awesome.min.css">
</head>
<body>
<div id="wrapper">
<!-- Sidebar -->
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="?page=dashboard"><b>Administrator</b></a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav side-nav">
<li><a href="?page=dashboard"><i class="fa fa-dashboard"></i> Dashboard</a></li>
<li><a href="?page=wisata"><i class="fa fa-map-marker"></i> Data Wisata Alam</a></li>
<li><a href="?page=desawisata"><i class="fa fa-home"></i> Data Desa Wisata</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-caret-square-o-down"></i> Akomodasi <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="?page=hotel"><i class="fa fa-h-square"></i> Data Hotel</a></li>
<li><a href="?page=restoran"><i class="fa fa-cutlery"></i> Data Restoran</a></li>
</ul>
</li>
</ul>
<ul class="nav navbar-nav navbar-right navbar-user">
<li class="dropdown user-dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-user"></i> Ikhsan <b class="caret"></b></a>
<ul class="dropdown-menu">
<!-- <li class="divider"></li>
--> <li><a href="logout.php"><i class="fa fa-power-off"></i> Log Out</a></li>
</ul>
</li>
</ul>
</div><!-- /.navbar-collapse -->
</nav>
<div id="page-wrapper">
<!-- logika -->
<?php
if(@$_GET['page'] == 'dashboard' || @$_GET['page'] == ''){
include 'view/dashboard.php';
}elseif (@$_GET['page'] == 'wisata') {
include 'view/wisata.php';
}elseif (@$_GET['page'] == 'hotel') {
include 'view/hotel.php';
}elseif (@$_GET['page'] == 'restoran') {
include 'view/restoran.php';
}elseif (@$_GET['page'] == 'desawisata') {
include 'view/desawisata.php';
}
?>
</div><!-- /#page-wrapper -->
</div><!-- /#wrapper -->
<!-- JavaScript -->
<script src="assets/js/jquery-1.10.2.js"></script>
<script src="assets/js/bootstrap.js"></script>
<script src="assets/dataTable/datatables.min.js"></script>
<!-- <link href="assets/dataTable/DataTables-1.10.16/css/jquery.dataTables.min.css" rel="stylesheet"> -->
<script type="text/javascript">
$(document).ready(function(){
$('#datatable').DataTable();
});
</script>
</body>
</html>