-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
116 lines (112 loc) · 4.12 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
<?php
session_start();
$isIndex = 1;
if(array_key_exists('teacher_id',$_SESSION) && isset($_SESSION['teacher_id'])) {
header('Location: teacher.php');
} else {
if(!$isIndex) header('Location: index.php');
}
?>
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="css/style.css"/>
<title>Student Attendance</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/bootstrap-theme.min.css">
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/login.js"></script>
<!-- Custom styles for this template -->
<link href="navbar-fixed-top.css" rel="stylesheet">
</head>
<body>
<!-- Fixed navbar -->
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<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">Online Attendance</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li class="active"><a href="#">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</nav>
<div class="container">
<br>
<hr>
<h2>For Faculty</h2>
<div class="alert alert-warning hidden">
<span></span>
<button type="button" class="close" onclick="$('.alert').addClass('hidden');">×</button>
</div>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>Login</th>
<th>Sign Up</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<form id="login">
<div class="form-group">
<label>Email ID</label>
<input class="form-control" placeholder="Email" type="email" name="email">
</div>
<div class="form-group">
<label>Password</label>
<input class="form-control" placeholder="Password" type="password" name="password">
</div>
<button class="btn btn-primary pull-right">Login</button>
</form>
</td>
<td>
<form id="signup">
<div class="form-group">
<label>Name</label>
<input class="form-control" placeholder="Name" type="text" name="name">
</div>
<div class="form-group">
<label>Phone Number</label>
<input class="form-control" placeholder="Phone" type="text" name="phone">
</div>
<div class="form-group">
<label>Email ID</label>
<input class="form-control" placeholder="Email" type="email" name="email">
</div>
<div class="form-group">
<label>Password</label>
<input class="form-control" placeholder="Password" type="password" name="password">
<span class="help-block">Password should be 6 characters long.</span>
</div>
<div class="form-group">
<label>Re-type Password</label>
<input class="form-control" placeholder="Re-type Password" type="password" name="password2">
</div>
<button class="btn btn-primary pull-right">Sign Up</button>
</form>
</td>
</tr>
</tbody>
</table>
</div>
<!-- FOOTER -->
<footer style="background:; height:120%;">
<p class="pull-right"><a href="#">Back to top</a></p>
<p> © Developed for <a href="http://www.siesgst.edu.in/">SIESGST Nerul </a>
</footer>
</div><!-- /.container -->
</body>
</html>