-
Notifications
You must be signed in to change notification settings - Fork 0
/
view_complaint.php
136 lines (119 loc) · 4.51 KB
/
view_complaint.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
132
133
134
135
136
<!doctype html>
<html>
<head>
<?php
include('session.php');
$sql = mysqli_query($db,"SELECT * FROM complaint WHERE complator = '$user_check'");
$r = mysqli_fetch_array($sql);
$complaint_number = $r[0];
$police_station = $r[1];
$topic = $r[2];
$description = $r[3];
$complator = $r[4];
$date = $r[5];
?>
<?php
$q = mysqli_query($db,"SELECT fullname FROM userinfo WHERE usermail = '$user_check'");
$ro = mysqli_fetch_array($q);
$username = $ro[0];
?>
<?php
$sql = mysqli_query($db,"SELECT * FROM police_station_master WHERE PStation_Id = '$police_station'");
$row = mysqli_fetch_array($sql);
$psname = $row[1];
$psaddress = $row[2];
$psphone = $row[3];
$psmobile = $row[4];
$pshead = $row[5];
?>
<title>View Complaint-City Without Crime</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="css/view_complaint.css"/>
</head>
<body style="background-image:url('images/2.jpg');">
<header>
<h1>City Without Crime</h1>
<a href="logout.php" title="logout">logout</a>
<strong>Welcome <?php echo $login_session; ?></strong>
</header>
<ul>
<li><a href="Homepage.php">Home</a></li>
<li><a href="news.php">News</a></li>
<li><a class="active">View Complaint</a></li>
</ul>
<div class="main-content">
<form class="form-register" method="post" action="#" enctype="multipart/form-data">
<div class="form-register-with-email">
<div class="form-white-background">
<div class="form-title-row">
<?php echo "<h1>Complaint No. ".$complaint_number."</h1>"; ?>
</div>
<div class="form-row">
<label>
<span>To</span>
</label>
</div>
<div class="form-row">
<label>
<span><?php echo "Police Station Head: ".$pshead; ?></span><br />
</label>
</div>
<div class="form-row">
<label>
<span><?php echo "Police Station: ".$psname; ?></span><br />
</label>
</div>
<div class="form-row">
<label>
<span><?php echo "Mobile No. : ".$psmobile; ?></span><br />
</label>
</div>
<div class="form-row">
<label>
<span><?php echo "Phone No. : ".$psphone; ?></span><br />
</label>
</div>
<div class="form-row">
<label>
<span><?php echo "Address: ".$psaddress; ?></span><br />
</label>
</div>
<div class="form-row">
<label>
<span><br /></span>
</label>
</div>
<div class="form-row">
<label>
<span><?php echo "Subject: ".$topic; ?></span>
</label>
</div>
<div class="form-row">
<label>
<span><?php echo "Description: ".$description; ?></span>
</label>
</div>
<div class="form-row">
<label>
<span><br /></span>
</label>
</div>
<div class="form-row">
<label>
<span><?php echo $username; ?></span>
</label>
</div>
<div class="form-row">
<label>
<span><?php echo "Date: ".$date; ?></span>
</label>
</div>
</div>
</div>
</form>
</div>
<footer>
©All right resrved to CWC.
</footer>
</body>
</html>