-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.php
62 lines (57 loc) · 1.86 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
include_once "models/dologin.php";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>GreenWorks | Login</title>
<link rel="stylesheet" href="./style/utilities.css" />
<link rel="stylesheet" href="./style/style-inputs.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css" />
<link rel="icon" type="image/x-icon" href="./images/miniLOGO.svg">
</head>
<body class="window">
<a href="index.php">
<button class="back">
<i class="fas fa-arrow-left" alt="<"></i>
</button>
</a>
<div class="wrapper">
<form class="login-form" action="" method="post" autocomplete="off" novalidate>
<div class="form-header heading-group">
<h4>Welcome to</h4>
<img src="./images/logo.svg" alt="logo" class="logo" />
<h5>sign in</h5>
<?php if ($showPopUp):?>
<div class="isExistUser"
style="color: #ff3c3c; margin-bottom: -1.5rem; margin-top: 1rem; font-size: 1.1rem;">
<?php echo $_SESSION['message']; unset($_SESSION['message'])?>
</div>
<?php endif; ?>
</div>
<!--User Email-->
<div class="form-control">
<div class="form-group">
<label id="labelE">Email</label>
<input type="text" name="email" id="inputEmail" class="inputField" required />
<div class="invalid-feedback"></div>
</div>
<!--User Password-->
<div class="form-group">
<label id="labelP">Password</label>
<input type="password" name="password" id="inputPass" class="inputField" required />
<div class="invalid-feedback"></div>
</div>
</div>
<button class="btn-secondary" type="submit">Sign in</button>
<p class="register">
Don't have an account?
<a href="register.php">Sign up.</a>
</p>
</form>
</div>
<script type="module" src="js/validation.js"></script>
<script src="js/animations.js"></script>
<?php include 'inc/script.php' ?>
</body>
</html>