-
Notifications
You must be signed in to change notification settings - Fork 0
/
Home1.php
405 lines (368 loc) · 22.5 KB
/
Home1.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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
<!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/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<title>Index</title>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand" href="#">
<img src="./Images/Smit2.png" width="30" height="30" class="d-inline-block align-top mx-2" alt="" loading="lazy">EasyLeave
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Dropdown
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Something else here</a>
</div>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Disabled</a>
</li>
</ul>
<form class="form-inline my-2 my-lg-0">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
</form>
</div>
</nav>
<div id="carouselExampleCaptions" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#carouselExampleCaptions" data-slide-to="0" class="active"></li>
<li data-target="#carouselExampleCaptions" data-slide-to="1"></li>
<li data-target="#carouselExampleCaptions" data-slide-to="2"></li>
</ol>
<div class="carousel-inner">
<div class="carousel-item active">
<img src="https://source.unsplash.com/1400x350/?SMU" class="d-block w-100" alt="...">
<div class="carousel-caption d-none d-md-block">
<h5>First slide label</h5>
<p>Nulla vitae elit libero, a pharetra augue mollis interdum.</p>
</div>
</div>
<div class="carousel-item">
<img src="https://source.unsplash.com/1400x350/?SMU,SikkimCollege,Enginnering" class="d-block w-100" alt="...">
<div class="carousel-caption d-none d-md-block">
<h5>Second slide label</h5>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</div>
</div>
<div class="carousel-item">
<img src="https://source.unsplash.com/1400x350/?SMU,SikkimManipalInstituteOfTechnology" class="d-block w-100" alt="...">
<div class="carousel-caption d-none d-md-block">
<h5>Third slide label</h5>
<p>Praesent commodo cursus magna, vel scelerisque nisl consectetur.</p>
</div>
</div>
</div>
<a class="carousel-control-prev" href="#carouselExampleCaptions" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselExampleCaptions" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
<div class="container my-4">
<div class="card-deck mb-3 text-center">
<!-- /.col-lg-4 -->
<div class="card mb-4 shadow-sm">
<img src="./Images/Admin.png" class="bd-placeholder-img rounded-circle mx-auto my-3" width="140" height="140">
<h2>Admin</h2>
<p>Donec sed odio dui. Etiam porta sem malesuada magna mollis euismod. Nullam id dolor id nibh ultricies
vehicula ut id elit. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Praesent commodo
cursus magna.</p>
<p><a class="btn btn-primary" role="button" data-toggle="modal" data-target="#login">LogIn »</a></p>
<p><a class="btn btn-primary" role="button" data-toggle="modal" data-target="#signup">SignUp »</a></p>
</div>
<div class="card mb-4 shadow-sm">
<img src="./Images/Admin.png" class="bd-placeholder-img rounded-circle mx-auto my-3" width="140" height="140">
<h2>Student</h2>
<p>Donec sed odio dui. Etiam porta sem malesuada magna mollis euismod. Nullam id dolor id nibh ultricies
vehicula ut id elit. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Praesent commodo
cursus magna.</p>
<p><a class="btn btn-primary" role="button" data-toggle="modal" data-target="#login1">LogIn »</a></p>
<p><a class="btn btn-primary" role="button" data-toggle="modal" data-target="#signup1">SignUp »</a></p>
</div>
<div class="card mb-4 shadow-sm">
<img src="./Images/Admin.png" class="bd-placeholder-img rounded-circle mx-auto my-3" width="140" height="140">
<h2>Employee</h2>
<p>Donec sed odio dui. Etiam porta sem malesuada magna mollis euismod. Nullam id dolor id nibh ultricies
vehicula ut id elit. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Praesent commodo
cursus magna.</p>
<p><a class="btn btn-primary" role="button" data-toggle="modal" data-target="#login1">LogIn »</a></p>
<p><a class="btn btn-primary" role="button" data-toggle="modal" data-target="#signup1">SignUp »</a></p>
</div><!-- /.col-lg-4 -->
</div>
</div>
<!-- Sign Up Modal-->
<!-- Button trigger modal -->
<!-- Modal Admin-->
<div class="modal fade" id="signup" data-backdrop="static" data-keyboard="false" tabindex="-1" aria-labelledby="signupLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="signupLabel">Sign Up</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form action="Admin.php" method="POST" class="needs-validation " aria-required="true">
<div class="form-row">
<div class="form-group col-md-6 is-valid">
<label for="name">First Name</label>
<input type="text" class="form-control" name="fname" id="fname" required>
<div class="valid-feedback"> Cannot be blank</div>
</div>
<div class="form-group col-md-6">
<label for="name">Last Name</label>
<input type="text" class="form-control" name="lname" id="lname" required>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-12">
<label for="userid">User Id</label>
<input type="id" class="form-control" name="userid" id="userid" required>
</div>
<div class="form-group col-md-12">
<label for="password">Password</label>
<input type="password" class="form-control " name="password" minlength="6" maxlength="10" id="password" required>
</div>
</div>
<div class="form-group">
<label for="password">Confirm Password</label>
<input type="password" class="form-control" name="password1" id="password1" minlength="6" maxlength="10" required>
</div>
<div class="form-group">
<label for="Department">Department</label>
<input type="text" class="form-control" id="dept" name=dept placeholder="C.S.E, M.E, I.E....">
</div>
<div class="form-row">
<div class="form-group col-md-6">
<label for="inputCity">City</label>
<input type="text" class="form-control" name="city" id="city" required>
</div>
<div class="form-group col-md-4">
<label for="Gender">Gender</label>
<select id="Gender" name="gender" class="form-control" required>
<option selected>Choose...</option>
<option>Male</option>
<option>Female</option>
</select>
</div>
<div class="form-group col-md-2">
<label for="age">Age</label>
<input type="text" class="form-control" name="age" id="age" required>
</div>
</div>
<div class="form-group">
<div class="form-check">
<input class="form-check-input" type="checkbox" id="gridCheck">
<label class="form-check-label" for="gridCheck" aria-required="true">
Agree to terms and conditions.
</label>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="submit" name="submit" id="submit" class="btn btn-primary">Submit</button>
</div>
</form>
</div>
</div>
</div>
<!-- Button trigger modal -->
<!-- Modal -->
<div class="modal fade" id="login" data-backdrop="static" data-keyboard="false" tabindex="-1" aria-labelledby="loginLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="loginLabel">Log In</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form action="Login.php" method="POST" aria-required="true">
<div class="form-group">
<label for="userid">UserId</label>
<input type="userid" class="form-control" id="userid" name="userid" aria-describedby="emailHelp" required>
<small id="emailHelp" class="form-text text-muted">Enter your registered User Id.</small>
</div>
<div class="form-group">
<label for="Password1">Password</label>
<input type="password" class="form-control" id="password1" name="password1" minlength="6" required>
<small id="emailHelp" class="form-text text-muted">We'll never share your password with
anyone else.</small>
</div>
<div class="form-group form-check">
<input type="checkbox" class="form-check-input" id="exampleCheck1" required>
<label class="form-check-label" for="exampleCheck1">Check me out</label>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="submit" name="submit1" id="submit1" class="btn btn-primary">Submit</button>
</div>
</form>
</div>
</div>
</div>
<!-- Modal Student -->
<div class="modal fade" id="signup1" data-backdrop="static" data-keyboard="false" tabindex="-1" aria-labelledby="signupLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="signupLabel">Sign Up</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form action="Student.php" method="POST" class="needs-validation " aria-required="true">
<div class="form-row">
<div class="form-group col-md-6 is-valid">
<label for="name">First Name</label>
<input type="text" class="form-control" name="fname" id="fname" required>
<div class="valid-feedback"> Cannot be blank</div>
</div>
<div class="form-group col-md-6">
<label for="name">Last Name</label>
<input type="text" class="form-control" name="lname" id="lname" required>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-12">
<label for="userid">User Id</label>
<input type="id" class="form-control" name="userid" id="userid" required>
</div>
<div class="form-group col-md-12">
<label for="password">Password</label>
<input type="password" class="form-control " name="password" minlength="6" maxlength="10" id="password" required>
</div>
</div>
<div class="form-group">
<label for="password">Confirm Password</label>
<input type="password" class="form-control" name="password1" id="password1" minlength="6" maxlength="10" required>
</div>
<div class="form-group">
<label for="Department">Department</label>
<input type="text" class="form-control" id="dept" name=dept placeholder="C.S.E, M.E, I.E....">
</div>
<div class="form-row">
<div class="form-group col-md-6">
<label for="inputCity">City</label>
<input type="text" class="form-control" name="city" id="city" required>
</div>
<div class="form-group col-md-4">
<label for="Gender">Gender</label>
<select id="Gender" name="gender" class="form-control" required>
<option selected>Choose...</option>
<option>Male</option>
<option>Female</option>
</select>
</div>
<div class="form-group col-md-2">
<label for="age">Age</label>
<input type="text" class="form-control" name="age" id="age" required>
</div>
</div>
<div class="form-group">
<div class="form-check">
<input class="form-check-input" type="checkbox" id="gridCheck">
<label class="form-check-label" for="gridCheck" aria-required="true">
Agree to terms and conditions.
</label>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="submits" name="submits" id="submits" class="btn btn-primary">Submit</button>
</div>
</form>
</div>
</div>
</div>
<script src="Home1.js"></script>
<!-- Button trigger modal -->
<!-- Modal -->
<div class="modal fade" id="login1" data-backdrop="static" data-keyboard="false" tabindex="-1" aria-labelledby="loginLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="loginLabel">Log In</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form action="Logins.php" method="POST" aria-required="true">
<div class="form-group">
<label for="userid">UserId</label>
<input type="userid" class="form-control" id="userid" name="userid" aria-describedby="emailHelp" required>
<small id="emailHelp" class="form-text text-muted">Enter your registered User Id.</small>
</div>
<div class="form-group">
<label for="Password1">Password</label>
<input type="password" class="form-control" id="password1" name="password1" minlength="6" required>
<small id="emailHelp" class="form-text text-muted">We'll never share your password with
anyone else.</small>
</div>
<div class="form-group form-check">
<input type="checkbox" class="form-check-input" id="exampleCheck1" required>
<label class="form-check-label" for="exampleCheck1">Check me out</label>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="submit" name="submitstu" id="submitstu" class="btn btn-primary">Submit</button>
</div>
</form>
</div>
</div>
</div>
<!-- Modal Employee -->
<!-- <script>
p1 = document.getElementById('password').value;
p2 = document.getElementById('password1').value;
document.getElementById('submit').addEventListener('click', function(e) {
if (p1 != p2) {
e.preventDefault();
alert("Passwords did not match")
}
})
</script> -->
<!-- Optional JavaScript; choose one of the two! -->
<!-- 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/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx" crossorigin="anonymous"></script>
<!-- Option 2: jQuery, Popper.js, and Bootstrap JS
<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/[email protected]/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-w1Q4orYjBQndcko6MimVbzY0tgp4pWB4lZ7lr30WKz0vr/aWKhXdBNmNb5D92v7s" crossorigin="anonymous"></script>
-->
</body>
</html>