-
Notifications
You must be signed in to change notification settings - Fork 0
/
PStations.php
76 lines (55 loc) · 2.43 KB
/
PStations.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
<!DOCTYPE html>
<html>
<head>
<?php
include('adminsession.php');
?>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="css/Modeltown.css"/>
<link rel="stylesheet" href="css/complaint_table.css"/>
<title><?php echo $login_session ?>- City Without Crime </title>
</head>
<body style="background-image:url('images/wood.jpg');">
<header>
<?php echo "<h1>".$login_session." Police Station</h1>"; ?><br />
<a href="logout.php" title="logout">logout</a>
</header>
<ul>
<li><a class="active">Complaints</a></li>
<li><a href="station_criminals.php">Criminals</a></li>
<li><a href="station_report.php">Reports</a></li>
<li><a href="station_news.php">News</a></li>
</ul>
<div class="form-title-row">
<h1>Complaints</h1>
</div>
<?php
$qry=mysqli_query($db,"SELECT * FROM complaint where PStation_Id = '$user_check' ORDER BY PStation_Id ASC ");
$count=mysqli_num_rows($qry);
echo "<table class='form-basic'>";
echo "<thead><tr>";
echo "<th>Complaint_Id</th>";
echo "<th>Topic</th>";
echo "<th>Complator</th>";
echo "<th>Date/Time</th>";
echo "</tr></thead>";
while($row=mysqli_fetch_array($qry))
{
$complaintid = $row['complaint_Id'];;
echo "<tr>";?>
<?php
echo "<td>".$row['complaint_Id']."</td>";
echo "<td><a href='see_complaint.php?complaint_Id=".$complaintid."' title='click to se complaint details' target='_blank'>".$row['Topic']."</a></td>";
echo "<td style='overflow:auto;'><a href='see_complaint.php?complaint_Id=".$complaintid."' title='click to se complaint details' target='_blank'>".$row['complator']."</a></td>";
echo "<td>".$row['date']."</td>";
echo "</tr>";
}
echo "</table>";
?>
<footer>
©All right resrved to CWC.
</footer>
</body>
</html>