Commit f7559652 by Roy Junedi Simamora

edit

parent 82a1b96c
......@@ -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> Batalkan </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>
......
<?php
include 'common/header.php';
require 'koneksi.php';
if(!isset($_SESSION['user'])){
header("location: form_login.php");
}
?>
<br/>
......
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