Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PA1-1617-D3TI05
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Fredrick Mangampu Theodorus Pardosi
PA1-1617-D3TI05
Commits
a00ecd09
Commit
a00ecd09
authored
May 24, 2017
by
Fredrick Mangampu Theodorus Pardosi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit
parent
a6bb0a8f
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
213 additions
and
214 deletions
+213
-214
bayar.php
bayar.php
+15
-13
cari_process.php
cari_process.php
+5
-0
daftar_pesanan.php
daftar_pesanan.php
+37
-32
finish.php
finish.php
+92
-0
fungsi.php
functions/fungsi.php
+5
-5
index.php
index.php
+2
-2
komentar_process.php
komentar_process.php
+1
-1
pesan_barang.php
pesan_barang.php
+13
-25
pesan_barang_process.php
pesan_barang_process.php
+3
-2
pesanan.php
pesanan.php
+6
-3
profil.php
profil.php
+4
-27
tambah_menu.php
tambah_menu.php
+3
-18
update_menu.php
update_menu.php
+23
-83
upload_bukti_process.php
upload_bukti_process.php
+2
-1
view_bukti.php
view_bukti.php
+2
-2
No files found.
bayar.php
View file @
a00ecd09
...
...
@@ -2,10 +2,11 @@
session_start
();
include_once
'functions/fungsi.php'
;
include_once
'connection/koneksi.php'
;
global
$total
;
$query
=
"SELECT menu.harga as harga, pesanan.jumlah as jumlah FROM pesanan INNER JOIN menu ON pesanan.id_menu = menu.id"
;
$result_set
=
$conn
->
query
(
$query
);
?>
$row
=
mysqli_fetch_array
(
$query
);
?>
<!DOCTYPE html>
<html>
...
...
@@ -85,35 +86,35 @@ $result_set = $conn->query($query);
<div
class=
"col-lg-8 col-md-6 col-xs-12"
>
<div
class=
"row"
>
<div
class=
"col-lg-8 col-md-6 col-xs-6"
>
</div>
</div>
</div>
</div>
</div>
<br>
<br>
<br>
<br>
<
p
>
<table
border=
"
1
px"
><br>
<
div><img
src=
"foto/
<?php
echo
$row
[
'gambar'
]
?>
"
class=
"img-thumbnail"
width=
"330"
height=
"260"
>
</div
>
<table
border=
"
3
px"
><br>
<tr>
<th>
Total harga
</th>
</tr>
<?php
$total
=
0
;
while
(
$row
=
$result_set
->
fetch_array
())
{
$total
=
$total
+
(
$row
[
'harga'
]
*
$row
[
'jumlah'
]);
$total
=
$total
+
=
(
$row
[
'harga'
]
*
$row
[
'jumlah'
]);
}
?>
<tr><td>
<?=
$total
?>
</td></tr>
<tr>
<td>
<?=
$total
?>
</td>
</tr>
</table>
<a
href=
"bayar_process.php?harga=
<?=
$total
?>
"
>
oke
</a>
</p>
</div>
</div>
</div>
<div
class=
"clear"
></div>
</div>
</div>
</body>
\ No newline at end of file
cari_process.php
0 → 100644
View file @
a00ecd09
<?php
$cari
=
$_GET
[
'cari'
];
header
(
"location:index.php #menu?cari=
$cari
"
);
?>
\ No newline at end of file
daftar_pesanan.php
View file @
a00ecd09
...
...
@@ -2,7 +2,6 @@
session_start
();
include_once
'functions/fungsi.php'
;
include_once
'connection/koneksi.php'
;
?>
<!DOCTYPE html>
<html>
...
...
@@ -48,7 +47,7 @@ include_once 'connection/koneksi.php';
<?php
if
(
isset
(
$_SESSION
[
'isLogin'
])
&&
(
get_session
(
'role'
)
==
"member"
))
{
echo
(
'<li><a class="color_animation" href="profil.php">PROFIL</a></li>'
);
echo
(
'<li><a class="color_animation" href="
index.php
#menu">MENU</a></li>'
);
echo
(
'<li><a class="color_animation" href="#menu">MENU</a></li>'
);
echo
(
'<li><a class="color_animation" href="pesanan.php">PESANAN</a></li>'
);
echo
(
'<li><a class="color_animation" href="upload_bukti.php">PEMBAYARAN</a></li>'
);
echo
(
'<li><a class="color_animation" href="logout.php">LOGOUT ('
.
get_session
(
'first_name'
)
.
')</a></li>'
);
...
...
@@ -76,34 +75,39 @@ include_once 'connection/koneksi.php';
</nav>
<!-- ============ Daftar Pesanan ============= -->
<!-- ============ Daftar Pesanan ============= -->
<section
id=
"daftarpesanan"
class=
"description_content"
>
<section
id=
"daftarpesanan"
class=
"description_content"
>
<div
class=
"text-content container"
>
<div
class=
"inner contact row"
>
<div
class=
"contact-form"
>
<!-- Form -->
<table
class=
"table table-bordered"
>
<thead>
<tr>
<th>
Total Biaya Pembayaran
</th>
<th>
Status Pembayaran
</th>
</tr>
</thead>
<tbody>
<div
class=
"text-content container"
>
<div
class=
"inner contact row"
>
<div
class=
"contact-form"
>
<!-- Form -->
<table
class=
"table table-bordered"
>
<thead>
<tr>
<th>
Pembeli
</th>
<th>
Total Biaya Pembayaran
</th>
<th>
Status Pembayaran
</th>
</tr>
</thead>
<tbody>
<?php
$query
=
"SELECT * FROM pembayaran "
;
$result_set
=
$database
->
query
(
$query
)
;
<?php
//
$query = "SELECT * FROM pembayaran ";
$query
=
"SELECT user.first_name as nama, pembayaran.total as total,pembayaran.status as status , pembayaran.gambar as gambar, pembayaran.id as id FROM pembayaran INNER JOIN user ON pembayaran.id_user = user.id "
;
if
(
$result_set
!=
NULL
)
{
while
(
$row
=
$result_set
->
fetch_array
())
{
$result_set
=
$conn
->
query
(
$query
);
if
(
$result_set
!=
NULL
)
{
while
(
$row
=
$result_set
->
fetch_array
())
{
if
(
$row
[
'status'
]
!=
NULL
)
{
?>
<tr>
<td>
<?=
$row
[
'nama'
]
?>
</td>
<td>
<?=
$row
[
'total'
]
?>
</td>
<?php
if
(
$row
[
'status'
]
!=
"accepted"
)
{
if
(
$row
[
'status'
]
!=
"accepted"
&&
$row
[
'status'
]
!=
NULL
)
{
echo
'<td>'
.
'<a href="view_bukti.php?id='
.
$row
[
'gambar'
]
.
'"><button class="btn btn-success">View</button></a> '
.
'<a href="confirm.php?id='
.
$row
[
'id'
]
.
'"><button class="btn btn-success">Confirm</button></td></a>'
;
...
...
@@ -114,16 +118,17 @@ include_once 'connection/koneksi.php';
</tr>
<?php
}
}
else
{
echo
'ada belum memesan pesan sekarang juga<br><a href="menu.php">Pesan</a>'
;
}
?>
}
else
{
echo
'ada belum memesan pesan sekarang juga<br><a href="menu.php">Pesan</a>'
;
}
?>
</tbody>
</table>
</tbody>
</table>
</div>
<!-- End Contact Form Area -->
</div>
<!-- End Inner -->
</div>
</section>
\ No newline at end of file
</div>
<!-- End Contact Form Area -->
</div>
<!-- End Inner -->
</div>
</section>
\ No newline at end of file
finish.php
0 → 100644
View file @
a00ecd09
<?php
session_start
();
include_once
'functions/fungsi.php'
;
include_once
'connection/koneksi.php'
;
?>
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
Cafe Bunga Toba
</title>
<link
rel=
"stylesheet"
href=
"css/normalize.css"
>
<link
rel=
"stylesheet"
href=
"css/main.css"
media=
"screen"
type=
"text/css"
>
<link
href=
'http://fonts.googleapis.com/css?family=Pacifico'
rel=
'stylesheet'
type=
'text/css'
>
<link
href=
'http://fonts.googleapis.com/css?family=Playball'
rel=
'stylesheet'
type=
'text/css'
>
<link
rel=
"stylesheet"
href=
"css/bootstrap.css"
>
<link
rel=
"stylesheet"
href=
"css/animate.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/bootstrap.min.css"
>
<link
rel=
"stylesheet"
href=
"css/style-portfolio.css"
>
<link
rel=
"stylesheet"
href=
"css/picto-foundry-food.css"
/>
<link
rel=
"stylesheet"
href=
"css/jquery-ui.css"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<link
href=
"css/font-awesome.min.css"
rel=
"stylesheet"
>
<link
rel=
"icon"
href=
"favicon-1.ico"
type=
"image/x-icon"
>
</head>
<body>
<nav
class=
"navbar navbar-default navbar-fixed-top"
role=
"navigation"
>
<div
class=
"container"
>
<ul
class=
"tp-hd-lft wow fadeInDown animated"
data-wow-delay=
"0.5s"
></ul>
<div
class=
"row"
>
<!-- Brand and toggle get grouped for better mobile display -->
<div
class=
"navbar-header"
>
<button
type=
"button"
class=
"navbar-toggle collapsed"
data-toggle=
"collapse"
data-target=
"#bs-example-navbar-collapse-1"
>
<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=
"index.php"
>
Cafe BUNGA TOBA
</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<ul
class=
"tp-hd-lft wow fadeInDown animated"
data-wow-delay=
"0.5s"
>
<div
class=
"collapse navbar-collapse"
id=
"bs-example-navbar-collapse-1"
>
<ul
class=
"nav navbar-nav main-nav clear navbar-right "
>
<li><a
class=
"navactive color_animation"
href=
"index.php"
>
WELCOME
</a></li>
<?php
if
(
isset
(
$_SESSION
[
'isLogin'
])
&&
(
get_session
(
'role'
)
==
"member"
))
{
echo
(
'<li><a class="color_animation" href="profil.php">PROFIL</a></li>'
);
echo
(
'<li><a class="color_animation" href="index.php #menu">MENU</a></li>'
);
echo
(
'<li><a class="color_animation" href="pesanan.php">PESANAN</a></li>'
);
echo
(
'<li><a class="color_animation" href="upload_bukti.php">PEMBAYARAN</a></li>'
);
echo
(
'<li><a class="color_animation" href="logout.php">LOGOUT ('
.
get_session
(
'first_name'
)
.
')</a></li>'
);
}
if
(
isset
(
$_SESSION
[
'isLogin'
])
&&
(
get_session
(
'role'
)
==
"karyawan"
||
get_session
(
'role'
)
==
"admin"
))
{
echo
(
'<li><a class="color_animation" href="tambah_menu.php">OLAH MENU</a></li>'
);
echo
(
'<li><a class="color_animation" href="daftar_pesanan.php">DAFTAR PESANAN</a></li>'
);
echo
(
'<li><a class="color_animation" href="list_komentar.php">DAFTAR KOMENTAR</a></li>'
);
echo
(
'<li><a class="color_animation" href="logout.php">LOGOUT ('
.
get_session
(
'first_name'
)
.
')</a></li>'
);
}
if
(
!
isset
(
$_SESSION
[
'isLogin'
]))
{
echo
(
'<li><a class="color_animation" href="profil.php">PROFIL</a></li>'
);
echo
(
'<li><a class="color_animation" href="#menu">MENU</a></li>'
);
echo
(
'<li><a class="color_animation" href="login.php">LOGIN</a></li>'
);
echo
(
'<li><a class="color_animation" href="signup.php">SIGN UP</a></li>'
);
}
?>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
</div>
<!-- /.container-fluid -->
</nav>
<div
class=
"container"
>
<div
class=
"row"
>
<br><br><br><br>
<h1><span
class=
"glyphicon glyphicon-check"
style=
"font-size: 50px;"
></span>
Picture Uploaded
</h1>
<center><h2>
Terima Kasih karena telah mengupload bukti pembayaran anda kepada kami,Silahkan untuk menunggu konfirmasi dari kami
</h2>
<form
id=
"contact-us"
method=
"post"
action=
"pesanan.php"
>
<center>
<button
type=
"submit"
id=
"submit"
name=
"submit"
class=
"text-center form-btn form-btn"
>
Klik Disini
</button>
</form>
</div>
</div>
functions/fungsi.php
View file @
a00ecd09
<?php
global
$conn
;
$conn
=
mysqli_connect
(
"localhost"
,
"
p1d3ti05"
,
"Fredrick8
"
);
$conn
=
mysqli_connect
(
"localhost"
,
"
root"
,
"
"
);
if
(
!
$conn
){
die
(
"database connect problem"
);
}
$db_use
=
mysqli_select_db
(
$conn
,
"p1d3ti05_cafe
db"
)
or
die
(
"select db problem!!"
);
$db_use
=
mysqli_select_db
(
$conn
,
"cafe_
db"
)
or
die
(
"select db problem!!"
);
function
execQ
(
$strQ
){
global
$conn
;
$res
=
mysql
i_query
(
$conn
,
$strQ
);
$res
=
mysql
_query
(
$strQ
,
$conn
);
return
$res
;
}
...
...
@@ -62,9 +62,9 @@ global $conn;
$resItem
=
execQ
(
$strQ
);
if
(
mysql
i
_num_rows
(
$resItem
)
!=
0
){
if
(
mysql_num_rows
(
$resItem
)
!=
0
){
$ret
=
array
();
while
(
$data
=
mysql
i
_fetch_assoc
(
$resItem
)){
while
(
$data
=
mysql_fetch_assoc
(
$resItem
)){
array_push
(
$ret
,
array
(
'id'
=>
$data
[
'id'
],
'name'
=>
$data
[
'name'
],
...
...
index.php
View file @
a00ecd09
...
...
@@ -121,7 +121,6 @@ $start = ($page - 1) * $per_hal;
</div>
<br><br>
<?php
$query
=
"SELECT * FROM menu limit
$start
,
$per_hal
"
;
$result_set
=
$conn
->
query
(
$query
);
...
...
@@ -132,7 +131,7 @@ $start = ($page - 1) * $per_hal;
<li
class=
"item breakfast"
>
<?php
echo
$row
[
'nama'
]
?>
<img
src=
"foto/
<?php
echo
$row
[
'gambar'
]
?>
"
class=
"img-rounded"
height=
"2
6
0"
width=
"220"
class=
"col-md-12 img-responsive"
>
<img
src=
"foto/
<?php
echo
$row
[
'gambar'
]
?>
"
class=
"img-rounded"
height=
"2
5
0"
width=
"220"
class=
"col-md-12 img-responsive"
>
<h2
class=
"white"
>
Rp.
<?php
echo
$row
[
'harga'
];
?>
</h2>
<a
href=
"pesan_barang.php?id=
<?=
$row
[
'id'
]
?>
"
>
<button
class=
"text-center btn-block form-btn"
>
Pesan
</button>
...
...
@@ -144,6 +143,7 @@ $start = ($page - 1) * $per_hal;
<?php
}
?>
<div
class=
"col-md-12"
>
<ul
class=
"pagination"
>
...
...
komentar_process.php
View file @
a00ecd09
...
...
@@ -11,7 +11,7 @@ $email = $_POST['email'];
$komentar
=
$_POST
[
'message'
];
$query
=
'INSERT INTO komentar( `name`, `email`, `komentar`) VALUES(?, ?, ?)'
;
$statement
=
$
conn
->
prepare
(
$query
);
$statement
=
$
database
->
prepare
(
$query
);
$statement
->
bind_param
(
'sss'
,
$nama
,
$email
,
$komentar
);
$statement
->
execute
();
...
...
pesan_barang.php
View file @
a00ecd09
...
...
@@ -3,10 +3,7 @@ session_start();
include_once
'functions/fungsi.php'
;
include_once
'connection/koneksi.php'
;
?>
?>
<!DOCTYPE html>
<html>
...
...
@@ -50,21 +47,19 @@ include_once 'connection/koneksi.php';
<li><a
class=
"navactive color_animation"
href=
"index.php"
>
WELCOME
</a></li>
<?php
if
(
isset
(
$_SESSION
[
'isLogin'
])
&&
(
get_session
(
'role'
)
==
"member"
))
{
echo
(
'<li><a class="color_animation" href="profil.php">PROFIL</a></li>'
);
echo
(
'<li><a class="color_animation" href="index.php #menu">MENU</a></li>'
);
echo
(
'<li><a class="color_animation" href="#pricing">MENU</a></li>'
);
echo
(
'<li><a class="color_animation" href="pesanan.php">PESANAN</a></li>'
);
echo
(
'<li><a class="color_animation" href="
upload_bukti.php">PEMBAYARAN
</a></li>'
);
echo
(
'<li><a class="color_animation" href="
#pembayaran">Pembayaran
</a></li>'
);
echo
(
'<li><a class="color_animation" href="logout.php">LOGOUT ('
.
get_session
(
'first_name'
)
.
')</a></li>'
);
}
if
(
isset
(
$_SESSION
[
'isLogin'
])
&&
(
get_session
(
'role'
)
==
"karyawan"
||
get_session
(
'role'
)
==
"admin"
))
{
echo
(
'<li><a class="color_animation" href="tambah_menu.php">OLAH MENU</a></li>'
);
echo
(
'<li><a class="color_animation" href="
daftar_pesanan.php
">DAFTAR PESANAN</a></li>'
);
echo
(
'<li><a class="color_animation" href="
#daftarpesanan
">DAFTAR PESANAN</a></li>'
);
echo
(
'<li><a class="color_animation" href="list_komentar.php">DAFTAR KOMENTAR</a></li>'
);
echo
(
'<li><a class="color_animation" href="logout.php">LOGOUT ('
.
get_session
(
'first_name'
)
.
')</a></li>'
);
}
if
(
!
isset
(
$_SESSION
[
'isLogin'
]))
{
echo
(
'<li><a class="color_animation" href="profil.php">PROFIL</a></li>'
);
echo
(
'<li><a class="color_animation" href="#menu">MENU</a></li>'
);
echo
(
'<li><a class="color_animation" href="#pricing">MENU</a></li>'
);
echo
(
'<li><a class="color_animation" href="login.php">LOGIN</a></li>'
);
echo
(
'<li><a class="color_animation" href="signup.php">SIGN UP</a></li>'
);
}
...
...
@@ -77,30 +72,25 @@ include_once 'connection/koneksi.php';
</div>
</div>
<!-- /.container-fluid -->
</nav>
<body>
<br><br><br><br><br>
<?php
$id_barang
=
$_GET
[
'id'
];
$query
=
"SELECT * FROM menu"
;
$result_set
=
$conn
->
query
(
$query
);
$row
=
$result_set
->
fetch_assoc
();
$query
=
mysqli_query
(
$conn
,
"SELECT * FROM menu WHERE id = '
$id_barang
'"
);
$row
=
mysqli_fetch_array
(
$query
);
?>
<!-- / header -->
<body>
<div
class=
"col-md-6"
>
<li
class=
"item breakfast"
>
<div
align=
"center"
><img
src=
"foto/
<?php
echo
$row
[
'gambar'
]
?>
"
class=
"img-thumbnail"
width=
"300"
height=
"200"
>
</div>
</div>
</li>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col-lg-8 col-md-6 col-xs-12"
>
<div
class=
"row"
>
<div
class=
"col-lg-8 col-md-6 col-xs-6"
>
<form
method=
"post"
action=
"pesan_barang_process.php?id=
<?php
echo
$id_barang
;
?>
"
id=
"comment_form"
>
<fieldset>
<div
class=
"row"
>
<h2>
<?php
echo
$row
[
'nama'
]
?>
</h2>
<div><img
src=
"foto/
<?php
echo
$row
[
'gambar'
]
?>
"
class=
"img-thumbnail"
width=
"330"
height=
"260"
>
</div>
<div
class=
"col-lg-8 col-md-6 col-xs-6"
>
<label
for=
"Jumlah"
>
<h2>
Jumlah Pemesanan:
</h2>
</label>
<label
for=
"Jumlah"
>
Jumlah Pemesanan:
</label>
<input
type=
"text"
tabindex=
"1"
size=
"22"
value=
""
name=
"jumlah"
class=
"form"
/>
<input
type=
"submit"
value=
"Pesan"
/>
</div>
...
...
@@ -109,11 +99,9 @@ include_once 'connection/koneksi.php';
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"clear"
></div>
</div>
</body>
...
...
pesan_barang_process.php
View file @
a00ecd09
...
...
@@ -7,12 +7,12 @@ include_once 'connection/koneksi.php';
$id_barang
=
$_GET
[
'id'
];
$id_user
=
get_session
(
'id'
);
$jumlah
=
$_POST
[
'jumlah'
];
$query
=
'INSERT INTO pesanan(
$conn,
`id_user`, `id_menu`, `jumlah`) VALUES(?, ?, ?)'
;
$query
=
'INSERT INTO pesanan( `id_user`, `id_menu`, `jumlah`) VALUES(?, ?, ?)'
;
//die($id_barang . $id_user . $jumlah);
$statement
=
$conn
->
prepare
(
$query
);
$statement
->
bind_param
(
'iii'
,
$id_user
,
$id_barang
,
$jumlah
);
$statement
->
execute
();
redirect
(
'
index.php#pesanan
'
);
redirect
(
'
pesanan.php
'
);
?>
\ No newline at end of file
pesanan.php
View file @
a00ecd09
...
...
@@ -15,6 +15,7 @@ include_once 'connection/koneksi.php';
<link
href=
'http://fonts.googleapis.com/css?family=Pacifico'
rel=
'stylesheet'
type=
'text/css'
>
<link
href=
'http://fonts.googleapis.com/css?family=Playball'
rel=
'stylesheet'
type=
'text/css'
>
<link
rel=
"stylesheet"
href=
"css/bootstrap.css"
>
<link
rel=
"stylesheet"
href=
"css/animate.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/bootstrap.min.css"
>
<link
rel=
"stylesheet"
href=
"css/style-portfolio.css"
>
...
...
@@ -29,6 +30,7 @@ include_once 'connection/koneksi.php';
<nav
class=
"navbar navbar-default navbar-fixed-top"
role=
"navigation"
>
<div
class=
"container"
>
<ul
class=
"tp-hd-lft wow fadeInDown animated"
data-wow-delay=
"0.5s"
></ul>
<div
class=
"row"
>
<!-- Brand and toggle get grouped for better mobile display -->
<div
class=
"navbar-header"
>
...
...
@@ -42,6 +44,7 @@ include_once 'connection/koneksi.php';
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<ul
class=
"tp-hd-lft wow fadeInDown animated"
data-wow-delay=
"0.5s"
>
<div
class=
"collapse navbar-collapse"
id=
"bs-example-navbar-collapse-1"
>
<ul
class=
"nav navbar-nav main-nav clear navbar-right "
>
<li><a
class=
"navactive color_animation"
href=
"index.php"
>
WELCOME
</a></li>
...
...
@@ -82,7 +85,7 @@ include_once 'connection/koneksi.php';
<div
class=
"text-content container"
>
<div
class=
"inner contact row"
>
<div
class=
"contact-form"
>
<a
href =
"bayar.php?id=
'.$row['id'] .
"
><button
class=
"btn btn-success"
>
Bayar
</button></a><br><br>
<a
href =
"bayar.php?id=
<?=
$row
[
'id'
]
?>
"
><button
class=
"btn btn-success"
>
Bayar
</button></a><br><br>
<!-- Form -->
<table
class=
"table table-bordered"
>
...
...
@@ -97,7 +100,7 @@ include_once 'connection/koneksi.php';
<?php
$id
=
get_session
(
'id'
);
$query
=
"SELECT menu.nama as nama, pesanan.jumlah as jumlah FROM pesanan INNER JOIN menu ON pesanan.id_menu = menu.id "
;
$result_set
=
$
database
->
query
(
$query
);
$result_set
=
$
conn
->
query
(
$query
);
if
(
$result_set
!=
NULL
)
{
while
(
$row
=
$result_set
->
fetch_array
())
{
...
...
@@ -143,7 +146,7 @@ include_once 'connection/koneksi.php';
<?php
$id
=
get_session
(
'id'
);
$query
=
"SELECT * FROM pembayaran where id_user =
$id
"
;
$result_set
=
$
database
->
query
(
$query
);
$result_set
=
$
conn
->
query
(
$query
);
if
(
$result_set
!=
NULL
)
{
while
(
$row
=
$result_set
->
fetch_array
())
{
...
...
profil.php
View file @
a00ecd09
...
...
@@ -82,10 +82,7 @@ include_once 'connection/koneksi.php';
<ol
class=
"carousel-indicators"
>
<li
data-target=
"#myCarousel"
data-slide-to=
"0"
class=
"active"
></li>
<li
data-target=
"#myCarousel"
data-slide-to=
"1"
></li>
<li
data-target=
"#myCarousel"
data-slide-to=
"3"
></li>
<li
data-target=
"#myCarousel"
data-slide-to=
"4"
></li>
<li
data-target=
"#myCarousel"
data-slide-to=
"5"
></li>
<li
data-target=
"#myCarousel"
data-slide-to=
"6"
></li>
<li
data-target=
"#myCarousel"
data-slide-to=
"2"
></li>
</ol>
<!-- Carousel -->
<div
class=
"carousel-inner"
role=
"listbox"
>
...
...
@@ -150,30 +147,9 @@ include_once 'connection/koneksi.php';
<h2
style=
"font-size: 65px;"
>
Cafe Bunga Toba
</h2>
<p>
Cafe ini biasanya dikunjungi banyak oleh pelanggan pelanggan yang berasal dari daerah lokal ataupun daerah luar,seperti turis turis.
Cafe ini menyediakan banyak makanan dan minuman yang nikmat bagi para pelanggan yang ingin memesan dan membeli makanan dan minuman.
Cafe ini bersebrangan dengan Hotel Tiara Bunga,dan Cafe ini berada tepat dipinggiran Danau Toba,sehingga para pengunjung
<br>
juga dapat sekalian menyaksikan keindahan Danau Toba.
Cafe ini berlokasi di :
<Br>
Jl.Pemandian No.2 Balige - Tobasa
<br>
Jl.Pemandian No.2 Balige - Tobasa
TELP 21572
</p>
</div>
</div>
<!-- ============ Footer Section ============= -->
<br>
<footer
class=
"sub_footer"
>
<div
class=
"container"
>
<div
class=
"col-md-4"
><p
class=
"sub-footer-text text-center"
>
©
Cafe Bunga Toba, Design by
<a
href=
"https://themewagon.com/"
>
PA1-1617-D3TI05
</a></p></div>
<div
class=
"col-md-4"
><p
class=
"sub-footer-text text-center"
>
Back to
<a
href=
"profil.php"
>
TOP
</a></p>
</div>
<div
class=
"col-md-4"
><p
class=
"sub-footer-text text-center"
>
Built With Care By
<a
href=
"#"
target=
"_blank"
>
Us
</a></p></div>
</div>
</footer>
<script
type=
"text/javascript"
src=
"js/jquery-1.10.2.min.js"
></script>
<script
type=
"text/javascript"
src=
"js/bootstrap.min.js"
></script>
<script
type=
"text/javascript"
src=
"js/jquery-1.10.2.js"
></script>
<script
type=
"text/javascript"
src=
"js/jquery.mixitup.min.js"
></script>
<script
type=
"text/javascript"
src=
"js/main.js"
></script>
</div>
\ No newline at end of file
tambah_menu.php
View file @
a00ecd09
...
...
@@ -16,6 +16,7 @@ include_once 'connection/koneksi.php';
<link
href=
'http://fonts.googleapis.com/css?family=Playball'
rel=
'stylesheet'
type=
'text/css'
>
<link
rel=
"stylesheet"
href=
"css/bootstrap.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/bootstrap.min.css"
>
<link
rel=
"stylesheet"
href=
"css/style-portfolio.css"
>
<link
rel=
"stylesheet"
href=
"css/picto-foundry-food.css"
/>
<link
rel=
"stylesheet"
href=
"css/jquery-ui.css"
>
...
...
@@ -172,20 +173,4 @@ include_once 'connection/koneksi.php';
</div>
</section>
<!-- ============ Footer Section ============= -->
<br>
<footer
class=
"sub_footer"
>
<div
class=
"container"
>
<div
class=
"col-md-4"
><p
class=
"sub-footer-text text-center"
>
©
Cafe Bunga Toba, Design by
<a
href=
"#"
>
PA1-1617-D3TI05
</a></p></div>
<div
class=
"col-md-4"
><p
class=
"sub-footer-text text-center"
>
Back to
<a
href=
"tambah_menu.php"
>
TOP
</a></p>
</div>
<div
class=
"col-md-4"
><p
class=
"sub-footer-text text-center"
>
Built With Care By
<a
href=
"#"
target=
"_blank"
>
Us
</a></p></div>
</div>
</footer>
<script
type=
"text/javascript"
src=
"js/jquery-1.10.2.min.js"
></script>
<script
type=
"text/javascript"
src=
"js/bootstrap.min.js"
></script>
<script
type=
"text/javascript"
src=
"js/jquery-1.10.2.js"
></script>
<script
type=
"text/javascript"
src=
"js/jquery.mixitup.min.js"
></script>
<script
type=
"text/javascript"
src=
"js/main.js"
></script>
\ No newline at end of file
\ No newline at end of file
update_menu.php
View file @
a00ecd09
...
...
@@ -5,7 +5,7 @@ include_once 'connection/koneksi.php';
$id
=
$_GET
[
'id'
];
//die($id);
$id_brg
=
mysqli_real_escape_string
(
$
conn
,
$
_GET
[
'id'
]);
$id_brg
=
mysqli_real_escape_string
(
$_GET
[
'id'
]);
$det
=
mysqli_query
(
$conn
,
"select * from menu where id='
$id_brg
'"
)
or
die
(
mysqli_error
());
while
(
$d
=
mysqli_fetch_array
(
$det
))
{
?>
...
...
@@ -13,72 +13,24 @@ while ($d = mysqli_fetch_array($det)) {
<html>
<head>
<meta
charset=
"UTF-8"
>
<title>
Cafe Bunga Toba
</title>
<link
rel=
"stylesheet"
href=
"css/normalize.css"
>
<link
rel=
"stylesheet"
href=
"css/main.css"
media=
"screen"
type=
"text/css"
>
<link
href=
'http://fonts.googleapis.com/css?family=Pacifico'
rel=
'stylesheet'
type=
'text/css'
>
<link
href=
'http://fonts.googleapis.com/css?family=Playball'
rel=
'stylesheet'
type=
'text/css'
>
<link
rel=
"stylesheet"
href=
"css/bootstrap.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/bootstrap.min.css"
>
<link
rel=
"stylesheet"
href=
"css/style-portfolio.css"
>
<link
rel=
"stylesheet"
href=
"css/picto-foundry-food.css"
/>
<link
rel=
"stylesheet"
href=
"css/jquery-ui.css"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<link
href=
"css/font-awesome.min.css"
rel=
"stylesheet"
>
<link
rel=
"icon"
href=
"favicon-1.ico"
type=
"image/x-icon"
>
<script
src=
"js/jquery-3.1.1.min.js"
></script>
</head>
<body>
<nav
class=
"navbar navbar-default navbar-fixed-top"
role=
"navigation"
>
<div
class=
"container"
>
<div
class=
"row"
>
<!-- Brand and toggle get grouped for better mobile display -->
<div
class=
"navbar-header"
>
<button
type=
"button"
class=
"navbar-toggle collapsed"
data-toggle=
"collapse"
data-target=
"#bs-example-navbar-collapse-1"
>
<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=
"index.php"
>
Cafe BUNGA TOBA
</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div
class=
"collapse navbar-collapse"
id=
"bs-example-navbar-collapse-1"
>
<ul
class=
"nav navbar-nav main-nav clear navbar-right "
>
<li><a
class=
"navactive color_animation"
href=
"index.php"
>
WELCOME
</a></li>
<?php
if
(
isset
(
$_SESSION
[
'isLogin'
])
&&
(
get_session
(
'role'
)
==
"member"
))
{
echo
(
'<li><a class="color_animation" href="profil.php">PROFIL</a></li>'
);
echo
(
'<li><a class="color_animation" href="index.php #menu">MENU</a></li>'
);
echo
(
'<li><a class="color_animation" href="pesanan.php">PESANAN</a></li>'
);
echo
(
'<li><a class="color_animation" href="upload_bukti.php">PEMBAYARAN</a></li>'
);
echo
(
'<li><a class="color_animation" href="logout.php">LOGOUT ('
.
get_session
(
'first_name'
)
.
')</a></li>'
);
}
if
(
isset
(
$_SESSION
[
'isLogin'
])
&&
(
get_session
(
'role'
)
==
"karyawan"
||
get_session
(
'role'
)
==
"admin"
))
{
echo
(
'<li><a class="color_animation" href="tambah_menu.php">OLAH MENU</a></li>'
);
echo
(
'<li><a class="color_animation" href="daftar_pesanan.php">DAFTAR PESANAN</a></li>'
);
echo
(
'<li><a class="color_animation" href="list_komentar.php">DAFTAR KOMENTAR</a></li>'
);
echo
(
'<li><a class="color_animation" href="logout.php">LOGOUT ('
.
get_session
(
'first_name'
)
.
')</a></li>'
);
}
if
(
!
isset
(
$_SESSION
[
'isLogin'
]))
{
echo
(
'<li><a class="color_animation" href="profil.php">PROFIL</a></li>'
);
echo
(
'<li><a class="color_animation" href="index.php #menu">MENU</a></li>'
);
echo
(
'<li><a class="color_animation" href="login.php">LOGIN</a></li>'
);
echo
(
'<li><a class="color_animation" href="signup.php">SIGN UP</a></li>'
);
}
?>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
</div>
<!-- /.container-fluid -->
</nav>
<meta
charset=
"UTF-8"
>
<title>
Restaurant
</title>
<link
rel=
"stylesheet"
href=
"css/normalize.css"
>
<link
rel=
"stylesheet"
href=
"css/main.css"
media=
"screen"
type=
"text/css"
>
<link
href=
'http://fonts.googleapis.com/css?family=Pacifico'
rel=
'stylesheet'
type=
'text/css'
>
<link
href=
'http://fonts.googleapis.com/css?family=Playball'
rel=
'stylesheet'
type=
'text/css'
>
<link
rel=
"stylesheet"
href=
"css/bootstrap.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/bootstrap.min.css"
>
<link
rel=
"stylesheet"
href=
"css/style-portfolio.css"
>
<link
rel=
"stylesheet"
href=
"css/picto-foundry-food.css"
/>
<link
rel=
"stylesheet"
href=
"css/jquery-ui.css"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<link
href=
"css/font-awesome.min.css"
rel=
"stylesheet"
>
<link
rel=
"icon"
href=
"favicon-1.ico"
type=
"image/x-icon"
>
</head>
<body>
<!-- ============ Tambah Menu ============= -->
...
...
@@ -125,28 +77,16 @@ while ($d = mysqli_fetch_array($det)) {
</div>
</section>
<script
type=
"text/javascript"
src=
"js/jquery-1.10.2.min.js"
></script>
<script
type=
"text/javascript"
src=
"js/bootstrap.min.js"
></script>
<script
type=
"text/javascript"
src=
"js/jquery-1.10.2.js"
></script>
<script
type=
"text/javascript"
src=
"js/jquery.mixitup.min.js"
></script>
<script
type=
"text/javascript"
src=
"js/main.js"
></script>
<!-- ============ Footer Section ============= -->
<br>
<footer
class=
"sub_footer"
>
<div
class=
"container"
>
<div
class=
"col-md-4"
><p
class=
"sub-footer-text text-center"
>
©
Cafe Bunga Toba, Design by
<a
href=
"https://themewagon.com/"
>
PA1-1617-D3TI05
</a></p></div>
<div
class=
"col-md-4"
><p
class=
"sub-footer-text text-center"
>
Back to
<a
href=
"update_menu.php"
>
TOP
</a></p>
</div>
<div
class=
"col-md-4"
><p
class=
"sub-footer-text text-center"
>
Built With Care By
<a
href=
"#"
target=
"_blank"
>
Us
</a></p></div>
</div>
</footer>
<script
type=
"text/javascript"
src=
"js/jquery-1.10.2.min.js"
></script>
<script
type=
"text/javascript"
src=
"js/bootstrap.min.js"
></script>
<script
type=
"text/javascript"
src=
"js/jquery-1.10.2.js"
></script>
<script
type=
"text/javascript"
src=
"js/jquery.mixitup.min.js"
></script>
<script
type=
"text/javascript"
src=
"js/main.js"
></script>
</body>
</html>
<?php
...
...
upload_bukti_process.php
View file @
a00ecd09
...
...
@@ -32,5 +32,5 @@ if ($conn->query($sql) === TRUE) {
}
else
{
echo
"Error updating record: "
.
$conn
->
error
;
}
redirect
(
'
index.php#pembayaran
'
);
redirect
(
'
finish.php
'
);
?>
\ No newline at end of file
view_bukti.php
View file @
a00ecd09
...
...
@@ -6,4 +6,4 @@ include_once 'connection/koneksi.php';
$gambar
=
$_GET
[
'id'
];
?>
<img
src=
"pembayaran/
<?=
$gambar
?>
"
>
\ No newline at end of file
<img
src=
"pembayaran/
<?=
$gambar
?>
"
>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment