-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastatuschange.php
executable file
·141 lines (115 loc) · 3.41 KB
/
astatuschange.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
137
138
139
140
141
<?php
session_start();
require_once "config.php";
if(!isset($_SESSION["cloggedin"]) || $_SESSION["cloggedin"] !== true){
header("location: cmlogin.php");
exit;
}
else{
?>
<script language="javascript" type="text/javascript">
function f2()
{
window.close();
}ser
function f3()
{
window.print();
}
</script>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Complaint Details</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<link href="anuj.css" rel="stylesheet" type="text/css">
<style>
body{
font-family: all;
background-image:url('grey.jpeg');
background-attachment:fixed;
background-size:100% 100%;
}
.text
{
color: black; }
</style>
</head>
<body>
<div style="margin-left:50px;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<?php
$ret1=mysqli_query($link, "select * FROM complaint where cmpid='".$_GET['uid']."'");
while($row=mysqli_fetch_array($ret1))
{
?>
<tr>
<td colspan="2"><b>Anonymous Complaint</b></td>
</tr>
<tr>
<td > </td>
<td > </td>
</tr>
<tr height="50">
<td><b>Complaint Id:</b></td>
<td><?php echo htmlentities($row['cmpid']); ?></td>
</tr>
<tr height="50">
<td><b>Complaint Subject:</b></td>
<td><?php echo htmlentities($row['ctype']); ?></td>
</tr>
<tr height="50">
<td><b>Complaint Details:</b></td>
<td><?php echo htmlentities($row['cdetails']); ?></td>
</tr>
<tr height="50">
<td><b>Evidence(if any):</b></td>
<td><img src="imageview.php?id=<?php echo htmlentities($row['cmpid']); ?>" class="img-radius"alt="NO_EVIDENCE_PROVIDED" height=300 width=300></td>
</tr>
<tr height="50">
<td><b>Registered Date and Time:</b></td>
<td><?php echo htmlentities($row['date']); ?></td>
</tr>
<tr height="50">
<td><b>Feedback by us(if any):</b></td>
<td><?php echo htmlentities($row['feedback']); ?></td>
</tr>
<tr height="50">
<td><b>Status:</b></td>
<td><?php echo htmlentities($row['status']); ?></td>
</tr>
<tr height="50">
<td><b>Active or Inactive:</b></td>
<td><?php if($row['status']=='approve'||$row['status']=='processing')
{ echo "Active";
} else{
echo "Inactive";
}
?></td>
</tr>
<form action="statuschange1.php?uid=<?php echo htmlentities($row['cmpid']); ?>" method="post">
<tr height="50">
<td><b>Remark : </b></td>
<td><textarea name="feed"></textarea></td></tr>
<tr height="50">
<td><b>Change Status : </b></td>
<td><select id="qtype" name="qtype">
<option></option>
<option value="Processing">Processing</option>
<option value="Closed">Closed</option>
</select></td></tr>
<tr><td colspan="2">
<input type="submit" name="submit" class="btn btn-primary" value="Change Status"></td></tr><br>
<tr>
<td colspan="2">
<br><input name="Submit" type="button" class="btn btn-primary" value="Close this window " onClick="return f2();" style="cursor: pointer;" /></td>
</tr>
</form>
<?php }
?>
</table>
</div>
</body>
</html>
<?php } ?>