-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcmwelcome.php
executable file
·85 lines (76 loc) · 2.91 KB
/
cmwelcome.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
<?php
// Initialize the session
session_start();
// Check if the user is logged in, if not then redirect him to login page
if(!isset($_SESSION["cloggedin"]) || $_SESSION["cloggedin"] !== true){
header("location: cmlogin.php");
exit;
}
?>
<!DOCTYPE html>
<html>
<title>Cell member | Home</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="extra.css">
<style>
body{
background-image:url('ak1.jpeg');
background-attachment:fixed;
background-size:100% 100%;
}
</style>
<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="non_anonymous.php" class="w3-bar-item w3-button">NON ANONYMOUS COMPLAINTS</a>
<a href="anonymous.php" class="w3-bar-item w3-button">ANONYMOUS COMPLAINTS</a>
<a href="recomplain.php" class="w3-bar-item w3-button">REINSTATE REQUEST</a>
<a href="answer.php" class="w3-bar-item w3-button">GIVE ANSWERS</a>
<a href="report.php" class="w3-bar-item w3-button">MONTHLY REPORT</a>
<a href="cmfinalreport.php" class="w3-bar-item w3-button">FINAL REPORT</a>
</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">CELL MEMBER PANEL</h2>
</div>
<div class="w3-container">
<center>
<h1 style="color:White">Hello, <b><?php echo htmlspecialchars($_SESSION["cname"]); ?></b>. Welcome.</h1>
<div style="background-color:White; border: 2px solid White; border-radius: 5px; width:35% " >
You have,
<?php
require_once "config.php";
$apc="Select count(status) from complaint where status ='approve' ";
$ipc="Select count(status) from complaint where status ='processing' ";
$clc="Select count(status) from complaint where status ='closed' ";
$result2 = mysqli_query($link,$apc);
$row2 = mysqli_fetch_array($result2);
$result4 = mysqli_query($link,$ipc);
$row4 = mysqli_fetch_array($result4);
$result5 = mysqli_query($link,$clc);
$row5 = mysqli_fetch_array($result5);
?>
<table width="100%" border="1" style="border-collapse:collapse;">
<tr><td>Unchecked Complaints : </td>
<td><?php echo $row2[0]; ?></td></tr>
<tr><td>Processing Complaints : </td>
<td><?php echo $row4[0]; ?></td></tr>
<tr><td>Closed Complaints : </td>
<td><?php echo $row5[0]; ?></td></tr>
</table></div>
<p style="color:White">
<a href="cmlogout.php" class="btn btn-danger">SIGN OUT OF YOUR ACCOUNT</a>
</p>
<center>
</div>
<script>
function openLeftMenu() {
document.getElementById("leftMenu").style.display = "block";
}
function closeLeftMenu() {
document.getElementById("leftMenu").style.display = "none";
}
</script>
</body>
</html>