-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadminpage.php
More file actions
141 lines (101 loc) · 3.93 KB
/
adminpage.php
File metadata and controls
141 lines (101 loc) · 3.93 KB
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();
include('connection.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Homepage</title>
<link rel="stylesheet" type="text/css" href="test.css">
<link rel="icon" type="image/x-icon" href="IMG/HostelIcon.svg" >
</head>
<body>
<header>
<a href="https://front.codes/" class="logo" target="_blank">
<img src="IMG/HostelIcon.svg" >
</a>
</header>
<main>
<div class="intro">
<h1>Hostel Management System</h1>
<p>ADMINISTRATOR PAGE</p>
</div>
<div class="container">
<div class="box">
<div class="content">
<?php
$query = "SELECT id FROM roomregistration ORDER BY id";
$query_run = mysqli_query($conn, $query);
$row = mysqli_num_rows($query_run);
echo '<h4> Registered Room: '.$row.'</h4>';
?>
</div>
</div>
<div class="box">
<div class="content" >
<?php
$query = "SELECT login_id FROM user ORDER BY login_id";
$query_run = mysqli_query($conn, $query);
$row = mysqli_num_rows($query_run);
echo '<h4> Total User: '.$row.'</h4>';
?></div>
</div>
<div class="box">
<div class="content" >
<?php
$query = "SELECT login_id FROM user ORDER BY login_id";
$query_run = mysqli_query($conn, $query);
$row = mysqli_num_rows($query_run);
echo '<h4> Total User: '.$row.'</h4>';
?></div>
</div>
<div class="box">
<div class="content" >
<?php
$query = "SELECT LATE_ID FROM latenight ORDER BY LATE_ID";
$query_run = mysqli_query($conn, $query);
$row = mysqli_num_rows($query_run);
echo '<h4> Late-Night Request: '.$row.'</h4>';
?>
</div>
</div>
</div>
<div class="achievements">
<div class="col-xl-3 col-md-6 mb-4">
<div class="card border-left-primary shadow h-100 py-2">
<div class="card-body">
<div class="row no-gutters align-items-center">
<div class="col-auto">
<i class="fas fa-calendar fa-2x text-gray-300"></i>
</div>
</div>
</div>
</div>
</div>
<div class="work">
<i class="fas fa-atom"><img src="IMG/HostelIcon.svg" alt=""></i>
<a href="adminregister.php"><button type="button" value="back" class="button">Registered Room</button></a>
</div>
<div class="work">
<i class="fas fa-skiing"><img src="IMG/HostelIcon.svg" alt=""></i>
<a href="adminlatenight.php"><button type="button" value="back" class="button" >Requetsed Check-IN</button></a>
</div>
<div class="work">
<i class="fas fa-ethernet"><img src="IMG/HostelIcon.svg" alt=""></i>
<a href="admincomplaint.php"><button type="button" value="back" class="button">Submitted Complaint</button></a>
</div>
<!--
<div class="work">
<i class="fas fa-ethernet"><img src="IMG/HostelIcon.svg" alt=""></i>
<a href="#"><button type="button" value="back" class="button">View User</button></a>
</div> -->
<div class="work">
<i class="fas fa-ethernet"><img src="IMG/HostelIcon.svg" alt=""></i>
<a href="logout.php"><button type="button" value="back" class="button">Logout</button></a>
</div>
</div>
</body>
</html>