-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathallrequests.php
72 lines (54 loc) · 2.08 KB
/
allrequests.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>All Requests</title>
<link href="https://fonts.googleapis.com/css?family=Karla:400,700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.materialdesignicons.com/4.8.95/css/materialdesignicons.min.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/css/style.css">
</head>
<body>
<main>
<form action="viewrequests.php" method="post">
<div class="sidebar">
<img src="assets/images/logo.png" width="200px">
<a href="allusers.php"><i class="fa fa-fw fa-home"></i> All User</a>
<a href="allrequests.php"><i class="fa fa-fw fa-wrench"></i> All Requests</a>
<a href="manage.php"><i class="fa fa-fw fa-envelope"></i> Manage Requests</a>
<a href="index.php?logout='1'"><i class="fa fa-fw fa-envelope"></i> Log Out</a>
</div>
<div class="col-sm-9">
<table class= "table" border="7" width="700px">
<tr>
<td>Username</td>
<td>No.of bags</td>
<td>Trash Description</td>
<td>Date & Time</td>
<td>Status</td>
</tr>
<?php
include_once 'databaseconnection.php';
$sql = "SELECT * from requests";
$records = $conn-> query($sql);
if($records-> num_rows >0){
while($row = $records -> fetch_assoc()){
echo "<tr><td>" . $row["username"]. "</td><td>".$row["bags"]. "</td><td>" .$row["trash"]. "</td><td>".$row["event_dt"]. "</td><td>".$row["status"]. "</td></tr>";
}
?>
<?php
}
?>
</table>
</form>
</div>
</div>
</div>
</main>
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>
</body>
</html>