Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
RestoranPondokEdo
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
Mei Romauli Sagala
RestoranPondokEdo
Commits
2a702f87
Commit
2a702f87
authored
Jun 09, 2017
by
Roy Junedi Simamora
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit
parent
04c8f444
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
56 additions
and
3 deletions
+56
-3
cart.php
cart.php
+1
-1
header.php
common/header.php
+5
-2
order_detail.php
order_detail.php
+50
-0
No files found.
cart.php
View file @
2a702f87
...
...
@@ -61,7 +61,7 @@
}
else
{
echo
'<a href="member_menu.php" class="btn btn-info"><span class="glyphicon glyphicon-chevron-left"></span> Pesan Lagi</a> '
;
echo
'<a href="bayar.php?id_member=
<?= $id_member ?>
" class="btn btn-success"> Checkout<span class="glyphicon glyphicon-chevron-right"></span> </a>'
;
echo
'<a href="bayar.php?id_member=
'
.
$id_member
.
'
" class="btn btn-success"> Checkout<span class="glyphicon glyphicon-chevron-right"></span> </a>'
;
}
?>
</div>
...
...
common/header.php
View file @
2a702f87
...
...
@@ -46,8 +46,11 @@
}
echo
'<li><a href="cart.php?id_member='
.
$id_member
.
'"><span class="glyphicon glyphicon-shopping-cart "></span> Cart</a></li>'
;
}
?>
<li><a
href=
"form_comment.php"
><span
class=
"glyphicon glyphicon-comment"
></span>
feedback
</a></li>
if
(
isset
(
$_SESSION
[
'user'
])
||
isset
(
$_SESSION
[
'admin'
]))
{
echo
'<li><a href="form_comment.php"><span class="glyphicon glyphicon-comment"></span>feedback</a></li>'
;
}
?>
<?php
if
(
isset
(
$_SESSION
[
'user'
])
||
isset
(
$_SESSION
[
'admin'
])){
...
...
order_detail.php
0 → 100644
View file @
2a702f87
<?php
include
'koneksi.php'
;
include
'common/header.php'
;
?>
<h2>
<span
class=
"glyphicon glyphicon-eye-open"
></span>
Order Detail
</h2>
<hr>
<br>
<a
href=
"daftar_pesanan.php"
class=
"btn btn-info"
>
<span
class=
"glyphicon glyphicon-chevron-left"
></span>
Kembali
</a>
<br>
<br>
<table
class=
"table table-condensed table-hover"
>
<tr>
<th>
NO
</th>
<th>
Gambar
</th>
<th>
Nama Menu
</th>
<th>
Tanggal di pesan
</th>
<th>
Harga Satuan
</th>
<th>
Jumlah
</th>
<th>
Subtotal
</th>
</tr>
<?php
global
$total
;
$id_member
=
$_GET
[
'id_member'
];
$query
=
mysqli_query
(
$koneksi
,
"SELECT pemesanan.id_pemesanan, pemesanan.tanggal, pemesanan.jumlah, menu.nama AS nama_menu, menu.gambar,
menu.kategori_id, menu.harga,kategori.nama_kategori FROM pemesanan INNER JOIN (menu INNER JOIN kategori ON kategori_id = id_kategori) ON menu_id = id_menu WHERE member_id = '
$id_member
'"
);
$no
=
1
;
while
(
$row
=
mysqli_fetch_assoc
(
$query
)){
$subtotal
=
$row
[
'harga'
]
*
$row
[
'jumlah'
];
?>
<tr>
<td>
<?=
$no
;
?>
</td>
<td>
<img
src=
"picture/
<?=
$row
[
'gambar'
]
?>
"
width=
"150"
height=
"140"
>
</td>
<td>
<?=
$row
[
'nama_menu'
]
?>
</td>
<td>
<?=
$row
[
'tanggal'
]
?>
</td>
<td>
Rp.
<?=
number_format
(
$row
[
'harga'
])
?>
,-
</td>
<td>
<?=
$row
[
'jumlah'
]
?>
</td>
<td>
Rp.
<?=
number_format
(
$subtotal
)
?>
,-
</td>
</tr>
<?php
$no
++
;
$total
=
$total
+=
$subtotal
;
}
?>
</table>
<div
align=
"right"
>
<font
size=
"5"
color=
"#321324"
>
Total : Rp.
<?=
number_format
(
$total
)
?>
,-
</font>
</div>
<br>
<?php
include
'common/footer.php'
;
?>
\ 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