-
Notifications
You must be signed in to change notification settings - Fork 1
/
application_status.php
executable file
·73 lines (69 loc) · 2.66 KB
/
application_status.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
<?php
require_once("inc/initialize.php");
require_once("inc/vendor/autoload.php");
use Carbon\Carbon;
if(!$session->is_logged_in()) {
redirect_to("index.php");
}
# Instance of Carbon Class with the current time
$date_now = new Carbon('now');
$user = User::find_by_id($session->id);
?>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>University of Jos, Nigeria - Transcript System</title>
<?php
require_once(LIB_PATH.DS.'javascript.php');
require_once(LIB_PATH.DS.'css.php');
?>
<style type="text/css">
body {
padding-top: 60px;
padding-bottom: 40px;
}
.sidebar-nav {
padding: 9px 0;
}
</style>
</head>
<body>
<!-- beginnning of main content-->
<?php include_layout_template("header_home.php"); ?>
<div class="container-fluid">
<div class="row-fluid">
<div class="span3">
<?php include_layout_template("left_menu.php"); ?>
</div><!--/span-->
<div class="span8">
<div class="hero-unit">
<?php include_layout_template("application_status.php"); ?>
<hr>
<p><span class="label label-info">Last account activity</span>: <?php echo Carbon::createFromTimeStamp(strtotime($user->last_login))->diffForHumans(); ?></p>
</div>
</div><!--/span-->
</div><!--/row-->
</div><!--/.fluid-container-->
<div id="displayinfo" class="modal hide" tabindex="-1" data-backdrop="static" data-keyboard="false" style="display: none;">
<div class="modal-body ajax_data"></div>
<div class="modal-footer">
<a href="#" class="btn" id="close">Close</a>
</div>
</div>
<!--The Main Content Here Please-->
<?php include_layout_template("footer.php"); ?>
<script src="js/jquery.js"></script>
<script src="css/assets/js/bootstrap.js"></script>
<script src="js/jquery.validate.min.js"></script>
<script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function(){
jQuery('.printbtn').click(function(){
window.print();
});
});
</script>
<script type="text/javascript">jQuery('.dropdown-toggle').dropdown();</script>
</body>
</html>