-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathreports.php
53 lines (53 loc) · 1.43 KB
/
reports.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
<?php
//this file is responsible for internal marks.
@session_start();
if(isset($_SESSION["uemailh"])) :
$logged_in = true;
require_once $_SERVER["DOCUMENT_ROOT"].'/db/db.php';
require_once $_SERVER["DOCUMENT_ROOT"].'/includes/header.php';
?>
<div id="outer_container" class="clearfix">
<div id="container" class="container95">
<!--<h1 class="notice cen" style="margin-top:0">Reports</h1>-->
<div class="boxer" style="width:100%; height:400px;"></div>
</div>
</div>
<script type="text/javascript">
$(function () {
$('.boxer').highcharts({
chart: {
type: 'column'
},
title: {
text: 'Absent Report'
},
xAxis: {
title: {
text: 'Subjects'
},
categories: ['TQM', 'NS', 'WT', 'WCN', 'ES', 'JT', 'NSL', 'ESL', 'WTL']
},
yAxis: {
min: 0,
max: 100,
title: {
text: 'Attendance Percent'
}
},
series: [{
name: 'Class Average',
data: [55, 60, 50, 40, 55, 60, 12, 13, 11]
},{
name: 'You',
data: [50, 45, 46, 35, 49, 51, 9, 11, 10]
}]
});
});
</script>
<?php
require_once $_SERVER["DOCUMENT_ROOT"].'/includes/footer.php';
else:
//for non-loggedin users
header("Location: /login.php?redirect_to=".$_SERVER['PHP_SELF']);
endif;
?>