-
Notifications
You must be signed in to change notification settings - Fork 0
/
see_complaint.php
119 lines (102 loc) · 3.92 KB
/
see_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
<!doctype html>
<html>
<head>
<?php
include('adminsession.php');
$complaintid = $_GET['complaint_Id'];
$qry=mysqli_query($db,"SELECT * FROM `complaint` where complaint_Id = '$complaintid'");
$r = mysqli_fetch_array($qry);
$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 * FROM userinfo WHERE usermail = '$complator'");
$ro = mysqli_fetch_array($q);
$username = $ro[4];
$usermobile = $ro[3];
$useraddress = $ro[5];
?>
<title>View Complaint- <?php echo $login_session ?></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/1.jpg');">
<header>
<?php echo "<h1>".$login_session."</h1>"; ?><br />
<a href="logout.php" title="logout">logout</a>
</header>
<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 ID: ".$police_station; ?></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; ?></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 $usermobile; ?></span>
</label>
</div>
<div class="form-row">
<label>
<span><?php echo $complator; ?></span>
</label>
</div>
<div class="form-row">
<label>
<span><?php echo $useraddress; ?></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>