-
Notifications
You must be signed in to change notification settings - Fork 0
/
complaint_details.php
executable file
·102 lines (89 loc) · 3.27 KB
/
complaint_details.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
<?php
// Initialize the session
session_start();
// Check if the user is logged in, if not then redirect him to login page
if(!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== true){
header("location: login.php");
exit;
}
?>
<!DOCTYPE html>
<html>
<title>Admin | Complaint details</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="extra.css">
<style>
body{
background-image:url('stked.jpeg');
background-attachment:fixed;
background-size:100% 100%;
}
</style>
<script language="javascript" type="text/javascript">
var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
if(popUpWin)
{
if(!popUpWin.closed) popUpWin.close();
}
popUpWin = open(URLStr,'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width='+600+',height='+1000+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}
</script>
<body>
<div class="w3-sidebar w3-bar-block w3-card w3-animate-left" style="display:none" id="leftMenu">
<button onclick="closeLeftMenu()" class="w3-bar-item w3-button w3-large">GO BACK ×</button>
<a href="welcome.php" class="w3-bar-item w3-button">ADMIN HOME</a>
<a href="student_details.php" class="w3-bar-item w3-button">STUDENT DETAILS</a>
<a href="cellmember_details.php" class="w3-bar-item w3-button">CELL MEMBER DETAILS</a>
<a href="acmpdet.php" class="w3-bar-item w3-button">APPROVED COMPLAINTS</a>
<a href="dcmpdet.php" class="w3-bar-item w3-button">DENIED COMPLAINTS</a>
<a href="mnthrpt.php" class="w3-bar-item w3-button">MONTHLY REPORT</a>
<a href="frpt.php" class="w3-bar-item w3-button">FINAL REPORT</a></div>
</div>
<div class="w3-blue">
<button class="w3-button w3-blue w3-xlarge w3-left" onclick="openLeftMenu()">☰</button>
<h1 style="text-align:center;">ONLINE GRIEVANCE REDRESSAL SYSTEM</h1>
<h2 style="color:White; text-align:center">COMPLAINT DETAILS</h2>
</div>
<center>
<div style="background-color:White; border: 2px solid White; border-radius: 5px; width:65% " >
<table width="100%" border="1" style="border-collapse:collapse;">
<thead>
<tr>
<th><center>S.No.</center></th>
<th><center>Complaint id</center></th>
<th><center>Subject</center></th>
<th><center>More Details</center></th>
</tr>
</thead>
<tbody>
<?php
require_once "config.php";
$count=1;
$sel_query="Select * from complaint where status = 'submitted' order by cmpid";
$result = mysqli_query($link,$sel_query);
while($row = mysqli_fetch_assoc($result)) { ?>
<tr><td align="center"><?php echo $count; ?></td>
<td align="center"><?php echo $row["cmpid"]; ?></td>
<td align="center"><?php echo $row["ctype"]; ?></td>
<td align="center">
<a href="javascript:void(0);" onClick="popUpWindow('http://localhost/og/viewdetails.php?uid=<?php echo htmlentities($row['cmpid']);?>');" title="Details">
<button type="button" class="btn btn-primary">Click Here</button></a>
</td>
</tr>
<?php $count++; } ?>
</tbody>
</table>
</div>
</center>
<script>
function openLeftMenu() {
document.getElementById("leftMenu").style.display = "block";
}
function closeLeftMenu() {
document.getElementById("leftMenu").style.display = "none";
}
</script>
</body>
</html>