forked from RakeshMinase/Agro-Inventory-DBMS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
103 lines (91 loc) · 4.46 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
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
<?php
if(isset($_POST['submit'])){
session_start(); // Start the session
// $_SESSION['name'] = htmlentities($_POST['name']);
// $_SESSION['email'] = htmlentities($_POST['email']);
if(!empty($_POST['email']) && !empty($_POST['password'])){
header('Location: homeScreen.php');
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css" />
<link href="https://api.mapbox.com/mapbox-gl-js/v2.1.1/mapbox-gl.css" rel="stylesheet" />
<title>Inventory Management System</title>
</head>
<body class="vh-100">
<nav class="navbar navbar-expand-lg bg-dark navbar-dark p-1">
<div class="container">
<a href="#" class="navbar-brand mx-auto h1">Agro-Machinery Inventory Management
System</a>
</div>
</nav>
<section class="text-dark text-center">
<div class="p-2 h3 my-0">LogIn</div>
</section>
<section class="bg-dark d-flex p-4">
<div class="row container-fluid justify-content-center align-items-center p-5">
<div class="col-lg-7 col-xl-5">
<img src="images/Login_Page.svg" alt="" class="img-fluid d-none d-lg-block w-100 p-5" />
</div>
<!-- <div class=" col-xl-5 bg-light p-5"> -->
<div class="bg-light col-lg-5 col-xl-5 p-5 mb-5-lg ">
<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<!-- Email input -->
<div class="form-group mb-4">
<input type="email" name="email" class="form-control form-control-lg"
placeholder="Email" />
<label class="form-label text-secondary" for="form3Example3">Email address</label>
</div>
<!-- Password input -->
<div class="form-group mb-3">
<input type="password" name="password" class="form-control form-control-lg" placeholder="Password" />
<label class="form-label text-secondary" for="form3Example4">Password</label>
</div>
<div class="d-flex justify-content-between align-items-center">
<!-- Checkbox -->
<!-- <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> -->
<a href="" class="d-flex text-body flex-row justify-content-end">Forgot password?</a>
</div>
<div class="text-center text-lg-start mt-5 pt-2">
<button type="submit" name="submit" value="Submit" href="homeScreen.php"
class="btn btn-primary btn-lg" style="padding-left: 2.5rem; padding-right: 2.5rem">
Login
</button>
<!-- <p class="small fw-bold mt-2 pt-1 mb-0">
Don't have an account?
<a href="#!" class="link-danger">Register</a>
</p> -->
</div>
</form>
</div>
</div>
</section>
<section class="bg-light text-dark pt-1 text-center">
<div class="pt-2 h3"></div>
</section>
<section>
<div
class="d-flex flex-column flex-md-row text-center text-md-start justify-content-between py-4 px-4 px-xl-5 bg-dark">
<div class="text-white mb-3 mb-md-0">
Copyright © 2021. All rights reserved.
</div>
</div>
</section>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
crossorigin="anonymous"></script>
</body>
</html>