-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathadmin.php
67 lines (59 loc) · 1.95 KB
/
admin.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
<?php
if (isset($_POST['btnLogin'])) {
$admin = $_POST['admin'];
$password = $_POST['password'];
if ($admin == "sharma" && $password == "sushil") {
header("location: result.php");
} else {
echo "<script type='text/javascript'>alert('Enter Valid User id and Password');</script>";
}
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://cdn.tailwindcss.com"></script>
<title>Administrator</title>
</head>
<body>
<div>
<h2>System Admin Login</h2>
</div>
<div style="float:right">
<a href="menu.php" class="btn btn-info btn-lg">
<span class="glyphicon glyphicon-log-out"></span> Back
</a>
</div>
<br>
<br>
<div class="bg-gradient-to-r from-blue-500 to-blue-700">
<div class="container mx-auto flex justify-center items-center h-screen">
<div class="login-page w-full max-w-md">
<div class="form">
<br>
<form class="login-form" method="POST">
<div class="mb-4">
<h2 class="text-white text-2xl font-bold">System Admin Login</h2>
</div>
<div class="mb-4">
<input type="text" name="admin" value="" placeholder="username" class="w-full border-2 border-gray-300 rounded px-4 py-2" />
</div>
<div class="mb-4">
<input type="password" name="password" value="" placeholder="Password" class="w-full border-2 border-gray-300 rounded px-4 py-2" />
</div>
<div class="mb-4">
<input class="admin_login" type="submit" value="Login" name="btnLogin" class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded" />
</div>
</form>
</div>
</div>
</div>
</div>
<br>
<div>
<?php include 'footer.php'; ?>
</div>
</body>
</html>