-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDeliveredorders.php
More file actions
103 lines (89 loc) · 2.14 KB
/
Deliveredorders.php
File metadata and controls
103 lines (89 loc) · 2.14 KB
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<?php
SESSION_START();
include'Adminheader.php';
include 'connection.php';
$sql = "SELECT * FROM orders where status='delivered'";
$result = $conn -> query ($sql);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.pendingbody {
margin-top: 0px;
}
table {
width: 100%;
border-collapse: collapse;
}
th,
td {
padding: 8px;
text-align: left;
border-bottom: 1px solid #ddd;
}
tr:hover {
background-color: #f5f5f5;
}
th {
background-color:skyblue;
color: white;
}
form {
display: inline-block;
}
.container {
max-width: 800px;
margin: 0 auto;
}
h5 {
margin-bottom: 20px;
} </style>
</head>
<body>
<div class="container pendingbody">
<h5>All Orders</h5>
<table class="table">
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Address</th>
<th scope="col">Phone</th>
<th scope="col">Send Money Number</th>
<th scope="col">Txid</th>
<th scope="col">Total Product</th>
<th scope="col">Total Price</th>
<th scope="col">Status</th>
</tr>
</thead>
<tbody>
<?php
if (mysqli_num_rows($result) > 0) {
// output data of each row
while($row = mysqli_fetch_assoc($result)) {
?>
<tr>
<td><?php echo $row["name"] ?></td>
<td><?php echo $row["address"] ?></td>
<td><?php echo $row["phone"] ?></td>
<td><?php echo $row["mobnumber"] ?></td>
<td><?php echo $row["txid"] ?></td>
<td><?php echo $row["totalproduct"] ?></td>
<td><?php echo $row["totalprice"] ?></td>
<td><?php echo $row["status"] ?></td>
</tr>
<?php
}
}
else
echo "0 results";
?>
</tbody>
</table>
</div>
</body>
</html>