-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patht_order.php
85 lines (70 loc) · 1.78 KB
/
t_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
84
85
<?php
include('Userc.php');
$object=new Userc;
if (isset($_SESSION['tailor'])) {
$return=$object->notifytailor($_SESSION['tailor']);
}
?>
<?php
include('header.php');
?>
<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
</head>
<body>
<div class="container">
<div class="row">
<div class="col">
<div class="card">
<div class="card-body">
<?php
if (empty($return)) {
echo "<div class='alert alert-dark'>You have no order(s) yet</div>";
}
else{
?>
<div class="table-responsive">
<table class="table table-striped">
<tr class="bg-dark text-light">
<th>First Name</th>
<th>Last Name</th>
<th>Gender</th>
<th>Phone</th>
<th>Delivery Address</th>
<th>Product name</th>
<th>Product Price</th>
<th>quantity</th>
<th>size</th>
<th>Date of order</th>
</tr>
<?php
foreach ($return as $value) {
?>
<tr>
<td><?php echo $value['cust_fname'];?></td>
<td><?php echo $value['cust_lname'];?></td>
<td><?php echo $value['cust_gender'];?></td>
<td><?php echo $value['cust_phone'];?></td>
<td><?php echo $value['shipping_details'];?></td>
<td><?php echo $value['product_name'];?></td>
<td><?php echo $value['order_amt'];?></td>
<td><?php echo $value['order_quantity'];?></td>
<td><?php echo $value['size'];?></td>
<td><?php echo $value['order_date'];?></td>
</tr>
<?php
}
}
?>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>