-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
executable file
·164 lines (126 loc) · 6.13 KB
/
index.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
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
<?php
session_start();
if(isset($_SESSION['te'])) {
echo '<script type="text/javascript">location.href = "teacher/index.php";</script>';
} else if (isset($_SESSION['st'])) {
echo '<script type="text/javascript">location.href = "student/index.php";</script>';
} else if (isset($_SESSION['ad'])) {
echo '<script type="text/javascript">location.href = "admin/index.php";</script>';
} else if (isset($_SESSION['li'])) {
echo '<script type="text/javascript">location.href = "library/index.php";</script>';
}
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Project</title>
<!-- Bootstrap core CSS -->
<link href="assets/css/bootstrap.min.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- Favicons -->
<link rel="apple-touch-icon" href="assets/img/apple-touch-icon.png">
<link rel="shortcut icon" href="assets/img/favicon.ico">
<!-- Google Fonts -->
<link href='http://fonts.googleapis.com/css?family=Raleway:400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700">
<link rel="stylesheet" href="assets/css/custom.css">
<link rel="stylesheet" href="assets/special_animations/css3-animated-clouds/css/style.css">
</head>
<body style="height:auto;">
<!-- Navigation top
================================================== -->
<div class="navigation-top-bar">
<nav class="navbar navbar-default">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.php">Tech Teach</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1 text-right">
<ul class="nav navbar-nav">
<li class="active"><a href="newLogin.php">new user</a></li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
</div>
<!-- HEADER
================================================== -->
<div class="sky" style="
height: 560px;
margin-top: 60px;
">
<div class="moon"></div>
<div class="clouds_one"></div>
<div class="clouds_two"></div>
<div class="clouds_three"></div>
</div>
<section class="site-header login-wrapper" role="banner"style="
position: absolute;
top: -80px;
text-align: center;
width: 100%;
padding-left: 115px;
">
<div class="container" >
<div class="row">
<div class="col-md-4">
</div>
<div class="col-md-8">
<form id="login-form" style=" background: rgba(255,255,255,0.6);">
<h3>Login</h3>
<!--
<input type="text" minlength="2" required id="name" class="form-control" name="user_name" placeholder="Username"/>
-->
<div class="input-group">
<div class="input-group-btn">
<button type="button" class="btn btn-secondary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" style="height: 37px; width:68px;" id="selectOneActionFo">
Teacher
</button>
<div class="dropdown-menu">
<ul style="width: 250px; padding-left:0px;" id="selectOneLogin">
<li style="padding: 6px;"><a class="dropdown-item" value=''>Admin</a> </li>
<li style="padding: 6px;"><a class="dropdown-item" value='te-'>Teacher</a> </li>
<li style="padding: 6px;"><a class="dropdown-item" value='st-'>Student</a> </li>
<li style="padding: 6px;"><a class="dropdown-item" value='li-'>Library</a> </li>
</ul>
</div>
</div>
<input type="text" class="form-control" aria-label="Text input with dropdown button" style="top: -5px;width: 182px; max-width: 182px;" minlength="2" required id="name" name="user_name" placeholder="Username" user_key='te-'>
</div>
<input type="password" id="password" class="form-control" name="password" placeholder="Password"/>
<input id="main-login-submit" type="submit" value="Login" class="btn btn-primary" />
<div style="height:20px; width:100%">
<a href="" class="hidden" style=" font-size: 13px; color: #0AA699;" id="forgotpass_wrd">Forgot password? </a>
</div>
</form>
</div>
</div><!-- row -->
</div><!-- container -->
</section>
<footer>
</footer>
<!-- Bootstrap core JavaScript
Placed at the end of the document so the pages load faster
================================================== -->
<script src="assets/js/jquery-1.11.3.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/jquery.validate.js"></script>
<script src="assets/js/main.js"></script>
<script src="assets/special_animations/css3-animated-clouds/js/prefixfree.min.js"></script>
</body>
</html>