-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathview_complaints.php
131 lines (115 loc) · 4.38 KB
/
view_complaints.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<?php
@include 'config.php';
session_start();
if(!isset($_SESSION['user_name'])){
header('location:login_form.php');
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<script src="https://kit.fontawesome.com/c81e574e1d.js" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx" crossorigin="anonymous"></script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>View Complaints</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 0;
}
.container {
width: 80%;
margin: auto;
padding: 20px;
background-color: white;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
border-radius: 8px;
margin-top: 50px;
}
h2 {
text-align: center;
}
table {
width: 100%;
border-collapse: collapse;
}
th, td {
padding: 10px;
border: 1px solid #ddd;
}
th {
background-color: #4CAF50;
color: white;
}
.undl {
text-decoration: none;
}
.undl:hover {
text-decoration: none;
cursor: pointer;
}
</style>
</head>
<body>
<div style="text-align:end; margin-right:30px; padding-top:50px"><button class="btn btn-primary text-white"><a class="text-white undl" href="login_form.php">logout</a></button></div>
<div class="container">
<h2>Complaints List</h2>
<table>
<thead>
<tr>
<th>ID</th>
<th>Location</th>
<th>Description</th>
<th>Image</th>
<th>action</th>
</tr>
</thead>
<tbody>
<h1>Complaints:</h1>
<tr>
<td>2024091901</td>
<td>Lat: 12.9794048<br/> Long: 77.594624</td>
<td>Please clean this dog.</td>
<td style="text-align: center;">
<img src="https://res.cloudinary.com/dfomcgwro/image/upload/v1726657290/garbage-2.jpg" alt="Complaint Image" style="max-width: 200px;"/>
</td>
<td>Processing..</td>
</tr>
<tr>
<tr>
<td>2024091902</td>
<td>Lat: 12.97945688<br/> Long: 77.512624</td>
<td>clean the garbage.</td>
<td style="text-align: center;">
<img src="https://res.cloudinary.com/dfomcgwro/image/upload/v1726656344/garbage-1.jpg" alt="Complaint Image" style="max-width: 200px;"/>
</td>
<td>action taken</td>
</tr>
</tr>
<td>2024091913</td>
<td>Lat: 12.3654048<br/> Long: 77.345624</td>
<td>clean this waste.</td>
<td style="text-align: center;">
<img src="https://res.cloudinary.com/dfomcgwro/image/upload/v1726657813/garbage-3.png" alt="Complaint Image" style="max-width: 200px;"/>
</td>
<td>in hold</td>
</tr>
</tr>
<td></td>
<td></td>
<td></td>
<td style="text-align: center;">
<im src="" alt="Complaint Image" style="max-width: 200px;"/>
</td>
<td></td>
</tr>
</tbody>
</table>
</div>
</body>
</html>