-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin.php
126 lines (112 loc) · 4.81 KB
/
admin.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
<?php
include_once('inc/functions.php');
include_once('inc/session.php');
require_once('inc/Paginator.class.php');
global $connection;
if($user_check['role'] == 'admin' || $user_check['role'] == 'superadmin') {
// do nothing
} else {
global $msg;
$msg = 'You do not have permission to view that page.';
header('location: profile.php');
}
$title = 'My Administration Page - DSSD Student Portal';
$bday = date_create($user_data['birth_date']);
$start = date_create($user_data['start_date']);
$ranks_id = $user_data['ranks_id'];
$programs_id = $user_data['programs_id'];
//var_dump($_SESSION);
?>
<?php include_once('inc/head.html'); ?>
<body>
<?php include_once('inc/header.php'); ?>
<div class="content">
<div class="container">
<div class="row row-margin">
<div class="col-md-4 clearfix user-info">
<!--<h2>Administrator Info</h2>
<div class="well well-small">
<?php
//get_single_user($ranks_id, $programs_id, $user_id);
?>
</div>
<a type="button" class="close" href="announcements.php"><span class="glyphicon glyphicon-eye-open"></span> View All</a>
<h2>Announcements</h2>
<?php //get_announcements(2); ?>
-->
<h2>Calendar</h2>
<div class="calendar"></div>
</div>
<div class="col-md-8">
<h2>Student List</h2>
<form name="search" id="search" action="">
<div class="row">
<div class="col-md-6">
<div class="form-group">
<input type="text" id="student-search" class="form-control" placeholder="Search by Name">
</div>
</div>
<div class="col-md-6">
<h3>Filter by Program</h3>
<div class="form-group radio">
<label class="radio-inline">
<input type="radio" name="program" id="adult" value="adult"> Adult
</label>
<label class="radio-inline">
<input type="radio" name="program" id="youth" value="youth"> Youth
</label>
<label class="radio-inline">
<input type="radio" name="program" id="junior" value="junior"> Junior
</label>
<label class="radio-inline">
<input type="radio" name="program" id="all" value="all" checked> All
</label>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<h3>Filter by Rank</h3>
<div class="form-group checkbox">
<label class="checkbox-inline">
<input type="checkbox" value="white"> White
</label>
<label class="checkbox-inline">
<input type="checkbox" value="yellow"> Yellow
</label>
<label class="checkbox-inline">
<input type="checkbox" value="orange"> Orange
</label>
<label class="checkbox-inline">
<input type="checkbox" value="purple"> Purple
</label>
<label class="checkbox-inline">
<input type="checkbox" value="blue"> Blue
</label>
<label class="checkbox-inline">
<input type="checkbox" value="green"> Green
</label>
<label class="checkbox-inline">
<input type="checkbox" value="1stbrown"> 1st Brown
</label>
<label class="checkbox-inline">
<input type="checkbox" value="2ndbrown"> 2nd Brown
</label>
<label class="checkbox-inline">
<input type="checkbox" value="black"> Black
</label>
</div>
</div>
</div>
</form>
<!--div id="student-list">Search to display students.</div-->
<?php
echo get_all_users();
?>
</div>
</div>
</div>
</div>
<?php include_once('inc/footer.php'); ?>
</body>
</html>