-
Notifications
You must be signed in to change notification settings - Fork 0
/
my_order.php
executable file
·83 lines (79 loc) · 4.12 KB
/
my_order.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?php
require('top.php');
if(!isset($_SESSION['USER_LOGIN'])){
?>
<script>
window.location.href='index.php';
</script>
<?php
}
?>
<div class="ht__bradcaump__area" style="background: rgba(0, 0, 0, 0) url(images/bg/4.jpg) no-repeat scroll center center / cover ;">
<div class="ht__bradcaump__wrap">
<div class="container">
<div class="row">
<div class="col-xs-12">
<div class="bradcaump__inner">
<nav class="bradcaump-inner">
<a class="breadcrumb-item" href="index.php">Home</a>
<span class="brd-separetor"><i class="zmdi zmdi-chevron-right"></i></span>
<span class="breadcrumb-item active">Thank You</span>
</nav>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- End Bradcaump area -->
<!-- cart-main-area start -->
<div class="wishlist-area ptb--100 bg__white">
<div class="container">
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="wishlist-content">
<form action="#">
<div class="wishlist-table table-responsive">
<table>
<thead>
<tr>
<th class="product-thumbnail">Order ID</th>
<th class="product-name"><span class="nobr">Order Date</span></th>
<th class="product-price"><span class="nobr"> Address </span></th>
<th class="product-stock-stauts"><span class="nobr"> Payment Type </span></th>
<th class="product-stock-stauts"><span class="nobr"> Payment Status </span></th>
<th class="product-stock-stauts"><span class="nobr"> Order Status </span></th>
</tr>
</thead>
<tbody>
<?php
$uid=$_SESSION['USER_ID'];
$res=mysqli_query($con,"select `order`.*,order_status.name as order_status_str from `order`,order_status where `order`.user_id='$uid' and order_status.id=`order`.order_status order by `order`.id desc");
while($row=mysqli_fetch_assoc($res)){
?>
<tr>
<td class="product-add-to-cart"><a href="my_order_details.php?id=<?php echo $row['id']?>"> <?php echo $row['id']?></a>
<br/>
<a href="order_pdf.php?id=<?php echo $row['id']?>"> PDF</a>
</td>
<td class="product-name"><?php echo $row['added_on']?></td>
<td class="product-name">
<?php echo $row['address']?><br/>
<?php echo $row['city']?><br/>
<?php echo $row['pincode']?>
</td>
<td class="product-name"><?php echo $row['payment_type']?></td>
<td class="product-name"><?php echo ucfirst($row['payment_status'])?></td>
<td class="product-name"><?php echo $row['order_status_str']?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<?php require('footer.php')?>