-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathadminfeedback.php
More file actions
100 lines (86 loc) · 2.84 KB
/
adminfeedback.php
File metadata and controls
100 lines (86 loc) · 2.84 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
<?php
require_once('connect.php');
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<title>Customer Feedback</title>
<link rel="stylesheet" type="text/css" href="admin.css">
</head>
<div class="header">
<div class="logoWrapper">
<img class="logo" src="BNN.png" border="0" />
<div class="topnav">
<!-- <a href="staffsignin.php">Log in</a>
<a href="staffregister.php">Sign up</a> -->
<a href="management.php">Home</a>
</div>
</div>
<!-- <div class="motto">
<h1>We provide professional laundry service</h1>
</div> -->
</div>
<body>
<div class="row">
<div class="content">
<div class="boxWrapper">
<div class="">
<table>
<col width="5%">
<col width="5%">
<col width="5%">
<col width="5%">
<col width="10%">
<col width="5%">
<!-- <col width="10%">
<col width="10%">
<col width="5%"> -->
<tr>
<th>Username</th>
<th>Order ID</th>
<th>Email</th>
<th>Phone No.</th>
<th>Message</th>
<th>Resolve</th>
<!-- <th>Service status</th>
<th>Total price</th>
<th>Update Status</th> -->
</tr>
<?php
$q="SELECT * FROM `feedback`";
$result=$mysqli->query($q);
if(!$result){
echo "Select failed. Error: ".$mysqli->error ;
// break;
}
while($row=$result->fetch_array()){ ?>
<?php
// $dashDateOut="";
// if ($row['dateOut']=="0000-00-00") {
// $dashDateOut="-";
// }
// else {
// $dashDateOut=$row['dateOut'];
// }
?>
<tr>
<td><?=$row['username']?></td>
<td><?=$row['orderID']?></td>
<td><?=$row['email']?></td>
<td><?=$row['phonenumber']?></td>
<td><?=$row['message']?></td>
<td><a href='resolvefeedback.php?userid1=<?=$row['orderID']?>'> <img src="resolved.png" width="24" height="24"></a></td>
<!-- <td><?=$dashDateOut?></td>
<td>Not_Finish</td>
<td><?=$row['totalPrice']?></td>
<td><a href='checkupdatestatus.php?serviceId=<?=$row['serviceId']?>'> <img src="checkmark.png" width="24" height="24"></a></td> -->
</tr>
<?php } ?>
</table>
</div>
</div>
</div>
</div>
</body>
</html>