-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.php
111 lines (97 loc) · 4.25 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
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
104
105
106
107
108
109
110
111
<?php require 'assets/includes/common.php';
if(isset($_SESSION['email'])){
header('location: index.php');
}
?>
<!Doctype html>
<html lang="en">
<head>
<title> Inceptum | Login </title>
<?php include 'assets/includes/head.php';
include 'assets/includes/css.php'; ?>
<style>
.top-layout {
/* max-height: 120vh; */
padding-top: 40px;
margin-top: 90px;
padding-bottom: 20px;
}
.pad-out {
padding: 10px;
}
</style>
</head>
<body class="white-color">
<nav id="site-nav" class="navbar navbar-expand-lg navbar-dark fixed-top">
<div class="container">
<div class="navbar-brand">
<a href="http://www.gbpec.edu.in/index.php" target="_blank"> <img src="assets/img/gbpec.png" alt="GBPEC"></a>
<a href="index.php"> <img src="assets/img/logo.png" alt="Inceptum 2019"></a>
</div>
<a class="navbar-brand d-none d-lg-block float-left" href="">INCEPTUM</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="index.php">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="index.php#events">Events <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="team.php">Team <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="contact.php">Contact Us <span class="sr-only">(current)</span></a>
</li>
</ul>
<?php if (!isset($_SESSION['email'])) { ?>
<ul class="navbar-nav navbar-right">
<li class="nav-item"><a class="nav-link" href="signup.php"><span class=" "> </span> Sign Up</a></li>
<li class="nav-item active"><a class="nav-link" href="login.php"><span class=" "> Login</span></a></li>
</ul>
<?php } else { ?>
<ul class="navbar-nav navbar-right">
<li class="nav-item"><a class="nav-link" href="cart.php"><span class=" "></span> Cart</a></li>
<li class="nav-item"><a class="nav-link" href="logout.php"><span class=" "></span> Logout</a></li>
</ul>
<?php } ?>
</div>
</div>
</nav>
<div class="container-fluid top-layout">
<div class="row">
<div class="col-sm-6 offset-sm-3 col-xs-12">
<center class="pad-out">
<h1><strong>Login</strong></h1>
</center>
<form action="assets/includes/log_in.php" method="post">
<div class="modal-body">
<div class="alert alert-info">
<?php if (isset($_SESSION['message'])) {
echo $_SESSION['login_message'];
} ?>
</div>
<div class="form-group">
<input type="email" class="form-control" name="Email" placeholder="Email Address for communication" required pattern="[a-zA-Z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$" title="Enter a valid email address"></div>
<div class="form-group">
<input type="password" class="form-control" name="Password" placeholder="Password" required pattern=".{6,}" title="Must contain at least 6 or more characters">
</div>
<!-- <a href="log_in.php"><button type="submit" class="btn btn-md btn-primary"> Login</button></a> -->
<div style="text-align:right">
<a href="signup.php" class="btn btn-danger">
Don't have an<strong><u> Account !!</u></strong></a></div>
</div>
<div class="modal-footer">
<a href="about.php" style="padding-right: 5px; color:#000;"><strong><u>Forgot Password!!</u></strong></a>
<a href="log_in.php"><button type="submit" class="btn btn-md btn-primary"> Login</button></a>
</div>
</form>
</div>
</div>
</div>
<script src="assets/js/header.js"></script>
</body>
</html>