-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.php
194 lines (189 loc) · 11 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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
<?php
include "Teacher Login/login.php";
include "Student Login/login.php";
include "Student Login/register.php";
include "Teacher Login/register.php";
?>
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<style>
.responsive {
max-width: 100%;
height: auto;
}
</style>
<title>Welcome Page</title>
</head>
<body>
<div class="jumbotron text-center">
<h1>Student Records Handling Database</h1>
</div>
<div class="container">
<div class="row text-center" >
<div class="col-md-6">
<h2 class="display-2">Teacher</h2>
<div class="text-center col-12">
<img src="image/TeacherStudents.jpg" width="450" height="300" class="responsive" alt="Students">
</div>
<div class="form-row">
<div class="form-group col">
<button type="button" class="btn btn-primary btn-block" data-toggle="modal" data-target="#TeacherLogin">
Login
</button>
</div>
<div class="modal fade" id="TeacherLogin" data-backdrop="static" data-keyboard="false" tabindex="-1" aria-labelledby="TeacherLoginLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-lg">
<div class="modal-content">
<form action="" method="post">
<div class="modal-header">
<h5 class="modal-title" id="TeacherLoginLabel">Teacher Login</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body text-left">
<div class="form-group">
<h4>Teacher Name</h4>
<input type="text" name="username" class="form-control" placeholder="Enter Teacher Name *" required>
</div>
<div class="form-group ">
<h4>Password</h4>
<input type="password" name="password" class="form-control" placeholder="Enter Password *" required>
</div>
</div>
<div class="modal-footer">
<button type="submit" name="TeacherLogin" class="btn btn-primary">Log In</button>
<button data-dismiss="modal" type="button" class="btn btn-outline-danger">Cancel</a>
</div>
</form>
</div>
</div>
</div>
<div class="form-group col ">
<button type="button" class="btn btn-outline-success btn-block" data-toggle="modal" data-target="#TeacherSignUp">
Sign Up
</button>
</div>
<div class="modal fade" id="TeacherSignUp" data-backdrop="static" data-keyboard="false" tabindex="-1" aria-labelledby="TeacherSignUpLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-lg">
<div class="modal-content">
<form action="" method="post">
<div class="modal-header">
<h5 class="modal-title" id="TeacherSignUpLabel">Teacher SignUp</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body text-left">
<div class="mb-3">
<h4 class="form-label">User Name</h4>
<input type="text" name="username" class="form-control" placeholder="Enter User Name" required>
</div>
<div class="mb-3">
<h4 class="form-label">New Password</h4>
<input type="password" name="password" class="form-control" placeholder="Enter New Password" required>
</div>
<div class="mb-3">
<h4 class="form-label">Confirm Password</h4>
<input type="password" name="confirm_password" class="form-control" placeholder="Confirm New Password" required>
</div>
</div>
<div class="modal-footer">
<button type="submit" name="TeacherSignUp" class="btn btn-primary">Sign Up</button>
<button data-dismiss="modal" type="button" class="btn btn-outline-danger">Cancel</a>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-6">
<h2 class="display-2">Student</h2>
<div class="text-center col-12">
<img src="image/Students1.jpg" width="462" class="responsive" alt="Students">
</div>
<div class="form-row">
<div class="form-group col">
<button type="button" class="btn btn-primary btn-block" data-toggle="modal" data-target="#StudentLogin">
Login
</button>
</div>
<div class="modal fade" id="StudentLogin" data-backdrop="static" data-keyboard="false" tabindex="-1" aria-labelledby="StudentLoginLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-lg">
<div class="modal-content">
<form action="" method="post">
<div class="modal-header">
<h5 class="modal-title" id="StudentLoginLabel">Student Login</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body text-left">
<div class="form-group">
<h4>Student ID</h4>
<input type="text" name="uniqueId" class="form-control" placeholder="Enter Student ID *" required>
</div>
<div class="form-group ">
<h4>Password</h4>
<input type="password" name="password" class="form-control" placeholder="Enter Password *" required>
</div>
</div>
<div class="modal-footer">
<button type="submit" name="StudentLogin" class="btn btn-primary">Log In</button>
<button data-dismiss="modal" type="button" class="btn btn-outline-danger">Cancel</a>
</div>
</form>
</div>
</div>
</div>
<div class="form-group col">
<button type="button" class="btn btn-outline-success btn-block" data-toggle="modal" data-target="#StudentSignUp">
Sign Up
</button>
</div>
<div class="modal fade" id="StudentSignUp" data-backdrop="static" data-keyboard="false" tabindex="-1" aria-labelledby="StudentSignUpLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-lg">
<div class="modal-content">
<form action="" method="post">
<div class="modal-header">
<h5 class="modal-title" id="StudentSignUpLabel">Student SignUp</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body text-left">
<div class="mb-3">
<h4 class="form-label">Student ID</h4>
<input type="text" name="uniqueId" class="form-control" placeholder="Enter Student ID" required>
</div>
<div class="mb-3">
<h4 class="form-label">New Password</h4>
<input type="password" name="password" class="form-control" placeholder="Enter New Password" required>
</div>
<div class="mb-3">
<h4 class="form-label">Confirm Password</h4>
<input type="password" name="confirm_password" class="form-control" placeholder="Confirm New Password" required>
</div>
</div>
<div class="modal-footer">
<button type="submit" name="StudentSignUp" class="btn btn-primary">Sign Up</button>
<button data-dismiss="modal" type="button" class="btn btn-outline-danger">Cancel</a>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- Option 1: jQuery and Bootstrap Bundle (includes Popper) -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx" crossorigin="anonymous"></script>
</body>
</html>