edit

parent a6bb0a8f
......@@ -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="1px"><br>
<div><img src="foto/<?php echo $row['gambar'] ?>" class="img-thumbnail" width="330" height="260"> </div>
<table border="3px"><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
<?php
$cari=$_GET['cari'];
header("location:index.php #menu?cari=$cari");
?>
\ No newline at end of file
......@@ -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
<?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>
<?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_cafedb") or die ("select db problem!!");
$db_use = mysqli_select_db($conn,"cafe_db") or die ("select db problem!!");
function execQ($strQ){
global $conn;
$res = mysqli_query($conn, $strQ);
$res = mysql_query($strQ, $conn);
return $res;
}
......@@ -62,9 +62,9 @@ global $conn;
$resItem = execQ($strQ);
if(mysqli_num_rows($resItem)!=0){
if(mysql_num_rows($resItem)!=0){
$ret = array();
while($data = mysqli_fetch_assoc($resItem)){
while($data = mysql_fetch_assoc($resItem)){
array_push($ret, array(
'id' => $data['id'],
'name' => $data['name'],
......
......@@ -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="260" width="220" class="col-md-12 img-responsive">
<img src="foto/<?php echo $row['gambar'] ?>" class="img-rounded" height="250" 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">
......
......@@ -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();
......
......@@ -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>
......
......@@ -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
......@@ -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()) {
......
......@@ -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">&copy; 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
......@@ -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">&copy; 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
......@@ -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">&copy; 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
......
......@@ -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
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment