-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.php
68 lines (61 loc) · 2.27 KB
/
login.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login - Sunbeams School</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
<link rel="icon" href="logo.png">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
</head>
<body class="body-login">
<div class="black-fill"><br /> <br />
<div class="d-flex justify-content-center align-items-center flex-column">
<form class="login"
method="post"
action="req/login.php">
<div class="text-center">
<img src="logo.png"
width="100">
</div>
<h3>LOGIN</h3>
<?php if (isset($_GET['error'])) { ?>
<div class="alert alert-danger" role="alert">
<?=$_GET['error']?>
</div>
<?php } ?>
<div class="mb-3">
<label class="form-label"><i class="fa-solid fa-user"></i>Username</label>
<input type="text"
class="form-control"
name="uname">
</div>
<div class="mb-3">
<label class="form-label"><i class="fa-solid fa-lock"></i> Password</label>
<input type="password"
class="form-control"
name="pass">
</div>
<div class="mb-3">
<label class="form-label">Login As</label>
<select class="form-control"
name="role">
<option value="1">Admin</option>
<option value="2">Teacher</option>
<option value="3">Student</option>
<option value="4">Registrar Office</option>
</select>
</div>
<button type="submit" class="btn btn-primary"><i class="fa-solid fa-right-to-bracket fa-2xs"></i> Login</button>
<button class="btn btn-primary"><a href="index.php" class="text-decoration-none" style="color:white;"><i class="fa-solid fa-house fa-2xs"></i> Home</a></button>
</form>
<br /><br />
<div class="text-center text-light">
Copyright © 2024 Sunbeams School. All rights reserved.
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>