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
f20b6503
Commit
f20b6503
authored
7 years ago
by
Roy Junedi Simamora
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit
parent
b5ebecbb
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
batal.php
batal.php
+2
-1
cart.php
cart.php
+2
-2
detail.php
detail.php
+4
-1
No files found.
batal.php
View file @
f20b6503
<?php
include
'koneksi.php'
;
$id_member
=
$_GET
[
'id'
];
$id
=
$_GET
[
'id'
];
$id_member
=
$_GET
[
'id_member'
];
mysqli_query
(
$koneksi
,
"DELETE FROM pemesanan WHERE id_pemesanan = '
$id
'"
);
header
(
'Location: cart.php?id_member='
.
$id_member
);
...
...
This diff is collapsed.
Click to expand it.
cart.php
View file @
f20b6503
...
...
@@ -32,7 +32,7 @@
<td>
<?=
$row
[
'harga'
]
?>
</td>
<td>
<?=
$row
[
'jumlah'
]
?>
</td>
<td>
Rp.
<?=
number_format
(
$subtotal
)
?>
,-
</td>
<td>
<a
href=
"batal.php?id=
<?=
$row
[
'id_pemesanan'
]
?>
"
class=
"btn btn-danger"
>
<span
class=
"glyphicon glyphicon-remove"
></span>
Batalkan
</a>
</td>
<td>
<a
href=
"batal.php?id=
<?=
$row
[
'id_pemesanan'
]
?>
&id_member=
<?=
$id_member
?>
"
class=
"btn btn-danger"
>
<span
class=
"glyphicon glyphicon-remove"
></span>
Batalkan
</a>
</td>
</tr>
<?php
...
...
@@ -43,7 +43,7 @@
?>
</table>
<div
align=
"right"
>
<font
face=
"arial"
size=
"5"
>
Total :
<?=
$total
?>
</font>
<font
face=
"arial"
size=
"5"
>
Total :
Rp.
<?=
number_format
(
$total
)
?>
,-
</font>
</div>
<div
align=
"center"
>
...
...
This diff is collapsed.
Click to expand it.
detail.php
View file @
f20b6503
...
...
@@ -11,7 +11,7 @@ require 'koneksi.php';
$id
=
$_GET
[
'id'
];
$id_user
=
$_GET
[
'id_member'
];
$query
=
mysqli_query
(
$koneksi
,
"SELECT * FROM menu WHERE id_menu = '
$id
'"
);
$q
=
mysqli_fetch_array
(
$query
);
while
(
$q
=
mysqli_fetch_array
(
$query
)){
?>
<div
class=
"col-md-6"
>
<div
align=
"center"
>
...
...
@@ -41,6 +41,9 @@ require 'koneksi.php';
</tr>
</table>
</div>
<?php
}
?>
</div>
<br/>
...
...
This diff is collapsed.
Click to expand it.
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