-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathheader.php
executable file
·127 lines (114 loc) · 5.59 KB
/
header.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
127
<?php
/**
*
*
* @author Harsh Vardhan Ladha & Yogesh Chauhan
* @version 1.0
* @copyright Computer Science & Engineering Department, NIT Silchar
* @package MIS
*/
if(!loggedIn()){
die();
}
?>
<!Doctype html>
<!--
Name: National Institute of Technology, Silchar. Management Information System | Login Page
AUTHOR
Design and code by: Harsh Vardhan Ladha & Yogesh Chauhan
CREDITS
Ripon Patgiri
SUPPORT
-->
<html>
<head>
<meta charset="UTF-8">
<link rel="icon" href="images/nits.png">
<link rel="shortcut icon" href="images/nits.png" />
<title>MIS | NIT Silchar</title>
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
<!-- bootstrap 3.0.2 -->
<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<!-- font Awesome -->
<link href="css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<!-- Ionicons -->
<link href="css/ionicons.min.css" rel="stylesheet" type="text/css" />
<!-- Morris chart -->
<link href="css/morris/morris.css" rel="stylesheet" type="text/css" />
<!-- jvectormap -->
<link href="css/jvectormap/jquery-jvectormap-1.2.2.css" rel="stylesheet" type="text/css" />
<!-- Date Picker -->
<link href="css/datepicker/datepicker3.css" rel="stylesheet" type="text/css" />
<!-- Daterange picker -->
<link href="css/daterangepicker/daterangepicker-bs3.css" rel="stylesheet" type="text/css" />
<!-- bootstrap wysihtml5 - text editor -->
<link href="css/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css" rel="stylesheet" type="text/css" />
<!-- Theme style -->
<link href="css/AdminLTE.css" rel="stylesheet" type="text/css" />
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->
<!--Google Fonts-->
<link href='http://fonts.googleapis.com/css?family=Balthazar&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
</head>
<body class="skin-blue">
<!-- header logo: style can be found in header.less -->
<header class="header">
<a href="#" class="logo">
<!-- Add the class icon to your logo image or logo icon to add the margining -->
Management Information System
</a>
<!-- Header Navbar: style can be found in header.less -->
<nav class="navbar navbar-static-top" role="navigation">
<!-- Sidebar toggle button-->
<a href="#" class="navbar-btn sidebar-toggle" data-toggle="offcanvas" role="button">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<div class="navbar-right">
<ul class="nav navbar-nav">
<!-- User Account: style can be found in dropdown.less -->
<li><a href="http://goo.gl/forms/uvqFSLWnIJ" target="_blank">Any Problem?</a></li>
<li class="dropdown user user-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="glyphicon glyphicon-user"></i>
<span><?php echo Session::get('displayname'); ?> <i class="caret"></i></span>
</a>
<ul class="dropdown-menu">
<!-- User image -->
<li class="user-header bg-light-blue">
<?php
$name = strtolower(preg_replace('/\s+/', '', Session::get('displayname')));
if(Session::get('teacher_id')!=NULL)
$id = Session::get('teacher_id');
else if(Session::get('admin_id')!=NULL)
$id = Session::get('admin_id');
else
$id = '';
$filepath = "images/profile/".$name.$id.".jpg";
if(!file_exists($filepath))
$filepath="images/profile/default.png";
?>
<img src=<?php echo $filepath; ?> class="img-circle" alt="User Image">
<p>
<?php echo Session::get('displayname'); ?>
</p>
</li>
<!-- Menu Footer-->
<li class="user-footer">
<div class="pull-right">
<a href="logout.php" class="btn btn-danger btn-flat">Sign out</a>
</div>
</li>
</ul>
</li>
</ul>
</div>
</nav>
</header>