-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.php
68 lines (54 loc) · 2.7 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<link href='https://cdn.jsdelivr.net/npm/boxicons@2.0.5/css/boxicons.min.css' rel='stylesheet'>
<title>Student Login</title>
</head>
<body>
<div class="brs">
<div class="l-form">
<div class="shape1"></div>
<div class="shape2"></div>
<div class="form">
<img src="https://i.pinimg.com/originals/6b/1b/22/6b1b22573f9f3d4bba11a9fa5cb45652.png" alt="" class="form__img">
<form class="form__content" action="login.php" method="post">
<h1 class="form__title" style="margin-top: 0px;">Login<span style="font-size: 25px;margin: 12px;">Student | Parent</span></h1>
<a href="admin.php" class="form__forgot">Click here for admin</a>
<?php if (isset($_GET['error'])) { ?>
<p class="error" style="color: white;text-align: center;background: #ff8080;padding: 10px;border-radius: 5px;"><?php echo $_GET['error']; ?></p>
<?php } ?>
<div class="form__div form__div-one" style="margin-top: 45px;">
<div class="form__icon">
<i class='bx bx-user'></i>
</div>
<div class="form__div-input">
<label for="" class="form__label">Username</label>
<input type="text" class="form__input" required name="uname">
</div>
</div>
<div class="form__div">
<div class="form__icon">
<i class='bx bx-lock' ></i>
</div>
<div class="form__div-input">
<label for="" class="form__label">Password</label>
<input type="password" class="form__input" required name="password">
</div>
</div>
<a href="#" class="form__forgot">Forgot Password?</a>
<input type="submit" class="form__button" value="Login">
</form>
</div>
</div>
</div>
<script src="main.js"></script>
<script type="text/javascript">
setTimeout(function(){
document.querySelector('.error').style.display = 'none';
},3000);
</script>
</body>
</html>