-
Notifications
You must be signed in to change notification settings - Fork 3
/
admin.php
75 lines (64 loc) · 2.21 KB
/
admin.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
<?php
include("function.php");
$objadmindata = new busapp();
if(isset($_POST['adminbutton']))
{
$return=$objadmindata->admin_login($_POST);
}
session_start();
if(isset( $_SESSION['adminid']))
{
$id = $_SESSION['adminid'];
}
if(isset($id))
{
header("location:admin/dashcondition.php");
}
?>
<!doctype html>
<html lang="en">
<head>
<title>Admin Login</title>
<?php include_once("includes/link.php"); ?>
<link rel="stylesheet" href="adminstyle/adminlogin.css">
</head>
<body>
<div class="admin">
<div class="row">
<div class="col-lg-4 col-md-4 col-sm-12">
<a class="navbar-brand pl-3 " href="index.php"><img style="width:150px" ; src="image/logo.png" alt=""></a>
</div>
<div class="col-lg-8 col-md-8 col-sm-12">
<div class="loginright">
<div class="header">
<h3>Admin Login</h3>
<small>Don't share this link</small>
</div>
<form action="" method="post" class="formadmin">
<div class="form-group">
<label for="exampleInputEmail1">Email address</label>
<input type="email" name="admin_email" class="form-control" id="exampleInputEmail1"
placeholder="Enter email" required>
</div>
<div class="form-group">
<label for="exampleInputPassword1">Password</label>
<input type="password" name="admin_password" class="form-control" id="exampleInputPassword1"
placeholder="Password" required>
</div>
<div class="submitbtn">
<button type="submit" name="adminbutton" class="btn mt-3">LOGIN</button>
</div>
<?php
if(isset($return))
{ ?>
<p><?php echo($return);?></p>
<?php }
?>
</form>
</div>
</div>
</div>
</div>
<?php include_once("includes/script.php"); ?>
</body>
</html>