-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdean.php
More file actions
201 lines (176 loc) · 6.09 KB
/
dean.php
File metadata and controls
201 lines (176 loc) · 6.09 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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
<!-- This is the homepage for the hod -->
<!-- This is a page for Admin Home page -->
<?php
session_start();
$id=$_SESSION['id'];
if ($_SESSION['role']!='2') {
header('Location:index.php');
}
else{
include 'config/connection.php';
$sql="SELECT * FROM user WHERE id='$id'";
$qry=mysqli_query($conn,$sql);
$row=mysqli_fetch_array($qry);
include 'include/header.php';
?>
<body class="hold-transition sidebar-mini layout-fixed">
<div class="wrapper">
<?php include 'include/dnav.php'; ?>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h4 class="m-0 "><i class="fa fa-user-tie text-orange text-bold"></i> Welcome, <?php echo $_SESSION['lname'].' '.$_SESSION['fname']; ?></h4>
</div><!-- /.col -->
<div class="col-sm-6">
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item "><a href="admin.html" class="text-orange">Home</a></li>
<li class="breadcrumb-item ">Dashboard </li>
</ol>
</div><!-- /.col -->
</div><!-- /.row -->
<hr>
</div><!-- /.container-fluid -->
</div>
<!-- /.content-header -->
<section class="content">
<div class="container-fluid">
<!-- Small boxes (Stat box) -->
<!-- Total users box -->
<?php
$sql="SELECT * FROM user
WHERE role='4'";
$qry=mysqli_query($conn,$sql);
$row=mysqli_fetch_array($qry);
$students=mysqli_num_rows($qry);
?>
<div class="row">
<div class="col-md-6 text-center ">
<!-- small box -->
<div class="small-box bg-info">
<div class="inner">
<h3><?php echo $students; ?></h3>
<p>Total Number Of Students</p>
</div>
<div class="icon">
<i class="fa fa-users"></i>
</div>
<a href="organizations.php" class="small-box-footer"></a>
</div>
</div>
<!-- ./col -->
<!-- Total staffs sections -->
<div class="col-md-6 text-center">
<!-- small box -->
<div class="small-box bg-success">
<div class="inner">
<h3>--</h3>
<p>School/Faculty Staff</p>
</div>
<div class="icon">
<i class="fa fa-user-tie"></i>
</div>
<a href="organizations.php" class="small-box-footer"></a>
</div>
</div>
<!-- ./col -->
<!-- organization panel -->
<?php
$sql="SELECT * FROM user
WHERE role='3'";
$qry=mysqli_query($conn,$sql);
$row=mysqli_fetch_array($qry);
$hosts=mysqli_num_rows($qry);
?>
<div class="col-md-6 text-center">
<!-- small box -->
<div class="small-box bg-warning">
<div class="inner">
<h3><?php echo $hosts; ?></h3>
<p>Departments</p>
</div>
<div class="icon">
<i class="fa fa-school"></i>
</div>
<a href="organizations.php" class="small-box-footer"></a>
</div>
</div>
<!-- ./col -->
<!-- start of field report section -->
<div class="col-md-6 text-center">
<!-- small box -->
<div class="small-box bg-danger">
<div class="inner">
<h3>--</h3>
<p>Submitted Field Reports</p>
</div>
<div class="icon">
<i class="fa fa-file-pdf"></i>
</div>
<a href="organizations.php" class="small-box-footer"></a>
</div>
</div>
<!-- ./col -->
</div>
<!-- /.row -->
</div><!-- /.container-fluid -->
</section>
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<footer class="main-footer bg-dark text-center">
<br>
<strong>Copyright © 2021/2022 <a href="" class="text-orange">TazarChriss </a>.</strong>
All rights reserved.
<div class="mt-4">
<h1></h1>
</div>
</footer>
<!-- Control Sidebar -->
<aside class="control-sidebar control-sidebar-dark">
<!-- Control sidebar content goes here -->
</aside>
<!-- /.control-sidebar -->
</div>
<!-- ./wrapper -->
<!-- jQuery -->
<script src="plugins/jquery/jquery.min.js"></script>
<!-- jQuery UI 1.11.4 -->
<script src="plugins/jquery-ui/jquery-ui.min.js"></script>
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
<script>
$.widget.bridge('uibutton', $.ui.button)
</script>
<!-- Bootstrap 4 -->
<script src="plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- ChartJS -->
<script src="plugins/chart.js/Chart.min.js"></script>
<!-- Sparkline -->
<script src="plugins/sparklines/sparkline.js"></script>
<!-- JQVMap -->
<script src="plugins/jqvmap/jquery.vmap.min.js"></script>
<script src="plugins/jqvmap/maps/jquery.vmap.usa.js"></script>
<!-- jQuery Knob Chart -->
<script src="plugins/jquery-knob/jquery.knob.min.js"></script>
<!-- daterangepicker -->
<script src="plugins/moment/moment.min.js"></script>
<script src="plugins/daterangepicker/daterangepicker.js"></script>
<!-- Tempusdominus Bootstrap 4 -->
<script src="plugins/tempusdominus-bootstrap-4/js/tempusdominus-bootstrap-4.min.js"></script>
<!-- Summernote -->
<script src="plugins/summernote/summernote-bs4.min.js"></script>
<!-- overlayScrollbars -->
<script src="plugins/overlayScrollbars/js/jquery.overlayScrollbars.min.js"></script>
<!-- AdminLTE App -->
<script src="dist/js/adminlte.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="dist/js/demo.js"></script>
<!-- AdminLTE dashboard demo (This is only for demo purposes) -->
<script src="dist/js/pages/dashboard.js"></script>
</body>
</html>
<?php
}?>