-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
37 lines (36 loc) · 1.4 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
<?php
session_start();
if(isset($_SESSION['sid']) ){
if($_SESSION['sid']==session_id() && $_SESSION['logged_in']=='1'){
header('Location: employeeList.php');
}else{
//header('Location: index.php');
}
}
include 'header.php';
?>
<body>
<section id="content" class="m-t-lg wrapper-md animated fadeInUp">
<div class="container aside-xxl">
<a class="navbar-brand block" href="index.html">Notebook</a>
<section class="panel panel-default bg-white m-t-lg">
<header class="panel-heading text-center">
<strong>Sign in</strong>
</header>
<?php if(isset($_REQUEST['error']) && $_REQUEST['error']==1){ echo '<span class="error">Either Email Or password is wrong!</span>';}?>
<form action="login.php" class="panel-body wrapper-lg" method="post">
<div class="form-group">
<label class="control-label">Email</label>
<input type="email" name="email" placeholder="test@example.com" class="form-control input-lg">
</div>
<div class="form-group">
<label class="control-label">Password</label>
<input type="password" name="password" id="inputPassword" placeholder="Password" class="form-control input-lg">
</div>
<button type="submit" class="btn btn-primary">Sign in</button>
</form>
</section>
</div>
</section>
<!-- footer -->
<?php include 'footer.php';?>