-
Notifications
You must be signed in to change notification settings - Fork 2
/
dashboard.php
124 lines (97 loc) · 3.26 KB
/
dashboard.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
<!doctype html>
<html lang="en">
<?php include "includes/session.php"; ?>
<!----------------------------- AWAL BAGIAN HEAD ----------------------------->
<?php include "includes/head.php"; ?>
<body data-layout="horizontal" data-topbar="dark">
<!-- Begin page -->
<div id="layout-wrapper">
<!--------------------------- AWAL BAGIAN HEADER ----------------------------->
<?php include "includes/header.php"; ?>
<!------------------------- AWAL BAGIAN NAVBAR-TOP --------------------------->
<?php include "includes/navbar-top.php"; ?>
<!------------------------------ ISI HALAMAN --------------------------------->
<div class="main-content">
<div class="page-content">
<div class="container-fluid">
<!------------------------- AWAL SLIDE MENU RESTORAN -------------------------->
<!------------------------ AWAL DAFTAR MENU RESTORAN -------------------------->
<!------------------------- AWAL TRANSAKSI PEMESANAN -------------------------->
<!----------------------- AWAL DATA HISTORI TRANSAKSI ------------------------->
<div id="tampilkan_halaman" >
<!---ISI TAMPILAN YANG DIPANGGIL MENGGUNAKAN AJAX---->
</div>
</div>
</div> <!-- container-fluid -->
</div>
<!-- End Page-content -->
<!---------------------- HALAMAN MODAL ------------------------->
<?php include "modal/modal_no_kamar.php"; ?>
<?php include "modal/modal_transaksi_pemesanan.php"; ?>
<?php include "modal/modal_item_histori.php"; ?>
<!---------------------- BAGIAN BAWAH (FOOTER) ------------------------->
<?php include "includes/footer.php"; ?>
</div>
<!-- end main content-->
</div>
<!-- END layout-wrapper -->
<!----------------------- AWAL SCRIPT PLUGIN JS ------------------------->
<?php include "includes/script.php"; ?>
<script>
$("document").ready(function(){
tampil_home();
$("#tombol_pesan_baru").click(function(){
$("#modal_meja").modal("show");
});
$("#data_home").click(function(){
tampil_home();
});
$("#data_daftar_menu").click(function(){
tampil_daftar_menu();
});
$("#data_daftar_histori").click(function(){
tampil_histori();
});
});
//memanggil fungsi home.php menggunakan ajax
function tampil_home (){
$.ajax({
url:"pages/home.php",
method:"GET",
data:{},
success:function(data)
{
/*Tampilkan Data Home berdasarkan nama ID (#) DIV*/
$("#tampilkan_halaman").html(data).refresh;
}
});
}
//memanggil fungsi daftar menu.php menggunakan ajax
function tampil_daftar_menu (){
$.ajax({
url:"pages/daftar_menu.php",
method:"GET",
data:{},
success:function(data)
{
/*Tampilkan Data Daftar Menu berdasarkan nama ID (#) DIV*/
$("#tampilkan_halaman").html(data).refresh;
}
});
}
//memanggil fungsi histori.php menggunakan ajax
function tampil_histori (){
$.ajax({
url:"pages/daftar_histori.php",
method:"GET",
data:{},
success:function(data)
{
/*Tampilkan Data Histori berdasarkan nama ID (#) DIV*/
$("#tampilkan_halaman").html(data).refresh;
}
});
}
</script>
</body>
</html>