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
f7559652
Commit
f7559652
authored
May 29, 2017
by
Roy Junedi Simamora
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit
parent
82a1b96c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
cart.php
cart.php
+11
-3
detail.php
detail.php
+4
-0
No files found.
cart.php
View file @
f7559652
...
...
@@ -34,7 +34,7 @@
<td>
Rp.
<?=
number_format
(
$subtotal
)
?>
,-
</td>
<td>
<a
onclick=
"if(confirm('Apakah anda yakin ingin membatalkan pesanan ini?')){
location.href='batal.php?id=
<?=
$row
[
'id_pemesanan'
]
?>
&id_member=
<?=
$id_member
?>
';
}"
class=
"btn btn-danger"
>
<span
class=
"glyphicon glyphicon-remove"
></span>
Batal
</a>
</td>
}"
class=
"btn btn-danger"
>
<span
class=
"glyphicon glyphicon-remove"
></span>
Batal
kan
</a>
</td>
</tr>
<?php
...
...
@@ -54,8 +54,16 @@
</div>
<div
align=
"center"
>
<a
href=
"member_menu.php"
class=
"btn btn-info"
><span
class=
"glyphicon glyphicon-chevron-left"
></span>
Pesan Lagi
</a>
<a
href=
"bayar.php?id_member=
<?=
$id_member
?>
"
class=
"btn btn-success"
>
Checkout
<span
class=
"glyphicon glyphicon-chevron-right"
></span>
</a>
<?php
if
(
!
mysqli_num_rows
(
$query
)){
echo
'<br><br> <h2> Cart anda masih kosong! </h2><h3> Silahkan pesan terlebih dahulu. </h3>'
;
echo
'<a href="member_menu.php" class="btn btn-info"><span class="glyphicon glyphicon-chevron-left"></span> Pesan</a> '
;
}
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>'
;
}
?>
</div>
<br>
</div>
...
...
detail.php
View file @
f7559652
<?php
include
'common/header.php'
;
require
'koneksi.php'
;
if
(
!
isset
(
$_SESSION
[
'user'
])){
header
(
"location: form_login.php"
);
}
?>
<br/>
...
...
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