-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.php
More file actions
89 lines (79 loc) · 4.02 KB
/
index.php
File metadata and controls
89 lines (79 loc) · 4.02 KB
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
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="./css/footer.css" rel="stylesheet">
<link href="./css/login.css" rel="stylesheet">
<title>FITDNU-OpenSource</title>
</head>
<body>
<section class="vh-100 d-flex justify-content-center align-items-center">
<div class="container-fluid h-custom">
<div class="d-flex flex-row align-items-center justify-content-center">
<h2 class="text-primary" style="color: #f66600;">FITDNU - OPEN SOURCE</h2>
</div>
<div class="row d-flex justify-content-center align-items-center h-100">
<div class="col-md-9 col-lg-6 col-xl-5">
<img src="./images/draw2.webp" style="width: 100%; height: 100%; object-fit: cover;" class="img-fluid"
alt="Sample image">
</div>
<div class="col-md-8 col-lg-6 col-xl-4 offset-xl-1">
<form action="./handle/login_process.php" method="POST">
<!-- Username input -->
<div data-mdb-input-init class="form-outline mb-4">
<input type="text" name="username" id="form3Example3" class="form-control form-control-lg"
placeholder="Nhập username" required />
<label class="form-label" for="form3Example3">Username</label>
</div>
<!-- Password input -->
<div data-mdb-input-init class="form-outline mb-3">
<input type="password" name="password" id="form3Example4" class="form-control form-control-lg"
placeholder="Nhập mật khẩu" required />
<label class="form-label" for="form3Example4">Password</label>
</div>
<!-- Thông báo lỗi sử dụng session -->
<?php if (isset($_SESSION['error'])): ?>
<div class="alert alert-danger" role="alert">
<?php
echo $_SESSION['error'];
unset($_SESSION['error']);
?>
</div>
<?php endif; ?>
<?php if (isset($_SESSION['success'])): ?>
<div class="alert alert-success" role="alert">
<?php
echo $_SESSION['success'];
unset($_SESSION['success']);
?>
</div>
<?php endif; ?>
<!-- <div class="d-flex justify-content-between align-items-center">
<div class="form-check mb-0">
<input class="form-check-input me-2" type="checkbox" value="" id="form2Example3" />
<label class="form-check-label" for="form2Example3">
Remember me
</label>
</div>
</div> -->
<div class="text-center text-lg-start mt-4 pt-2">
<button type="submit" data-mdb-button-init data-mdb-ripple-init
name="login"
class="btn btn-primary btn-lg"
style="padding-left: 2.5rem; padding-right: 2.5rem;">Login</button>
</div>
</form>
</div>
</div>
</div>
</section>
</body>
<footer class="footer">
Copyright © 2025 - FITDNU
</footer>
</html>