forked from Adissuu/Grocery-team1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
p5_login.php
76 lines (63 loc) · 3.82 KB
/
p5_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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?php
include('./assets/php/header.php');
?>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<link href="./css/styles.css" rel="stylesheet" type="text/css">
</head>
<body class="login-bg" id= "login-page">
<br><br><br>
<main>
<form action="./assets/php/p5_loginPhp.php" method="post">
<div class="login-container">
<h1 class="section-title"><span>Log in</span>
<button style= "font-weight: bold; font-size: 12pt"type="button" class="btn btn-outline-dark" data-toggle="collapse" data-target="#infoAdmin">Admin Access</button>
<div class="collapse" id="infoAdmin">
<br>
<div class="alert alert-secondary" role="alert" style="font-size: 10pt;text-transform:lowercase">
admin credentials<br>
username: admin@5010.com<br>
password: *********
</div>
</div>
</h1>
<?php
if(isset($_GET['error']) && $_GET['error'] == 'wrongpwd')
echo '<p class="text-danger text-center">Incorrect password.</br>Please try again.</p>';
else if(isset($_GET['error']) && $_GET['error'] == 'emailDNE')
echo '<p class="text-danger text-center">Unregistered email.</br>Please try again.</p>';
?>
<div class="textbox">
<i class="fa fa-user-circle-o" aria-hidden="true"></i>
<input style="text-transform:none" class="form-control" type="email" id="loginEmail" name="email" placeholder="Email" onmouseover="this.focus();">
</div>
<div class="textbox">
<i class="fa fa-lock" aria-hidden="true"></i>
<input style="text-transform:none" class="form-control" type="password" id="loginPass" name="pwd" placeholder="Password" onmouseover="this.focus();"></br>
</div>
<div class="form-check" style="margin-left:20%;">
<input type="checkbox" class="form-check-input" id="remember" name="remember">
<label class="form-check-label" for="remember" style="padding-right:100px;">Remember Me</label>
</div>
<div>
<button href="./index.php" class="login-btn" type="submit" name="login-submit" onclick="emptyLogin();">Log in</button>
</div>
<br>
<a style="margin-left:25%" href="https://alzheimer.ca/sites/default/files/documents/alzheimers-disease_getting-a-diagnosis_0.pdf" target="_blank">forgot your password?</a><br>
<a style="margin-left:25%" href="./p6_signup.php">I don't have an account</a><br>
</div>
</form>
</main>
<!---- Footer --->
<div id="footer"></div>
<!---End Of Footer-->
<script src="js/script.js"></script>
<script src="https://apis.google.com/js/platform.js" async defer></script>
<script type="text/Javascript" src="js/p5_validation.js"></script>
<script type="text/Javascript" src="js/p5_login.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"></script>
</body>
</html>