-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.php
48 lines (41 loc) · 1.67 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
<?php
session_start();
require_once __DIR__ . "/includes/header.php";?>
<style>
<?php include "css/style.css"?>
</style>
<div class="container">
<div class="row d-flex justify-content-center align-items-center vh-100">
<div class="col-md-6 py-4 px-5 small-login" style="border: 1px solid black;">
<h2 style="text-align:center;">Staff Payroll system</h2>
<h3 class="header">Login Form</h3>
<form action="action.php" method="post">
<!-- email -->
<div class="mb-3">
<label for="email" class="form-label">Email</label>
<input type="text" class="form-control" id="email" name="email">
</div>
<div class="mb-3">
<label for="password" class="form-label">Password</label>
<input type="password" class="form-control" id="password" name="password">
</div>
<div class="btn">
<button type="submit" class="small-login btn btn-primary text-center" name="login">Login</button>
</div>
<div>
<p>Don't have an account? Signup <a href="signup.php">Here</a></p>
</div>
</form>
</div>
</div>
</div>
<?php require_once __DIR__ . "/includes/footer.php";?>
<script>
// display invalid credential error
<?php
if (isset($_SESSION['error'])) :?>
alertify.set('notifier','position', 'top-right');
alertify.success('<?php echo $_SESSION['error']?>');
unset($_SESSION['error']);
<?php endif?>
</script>