-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
115 lines (108 loc) · 5.1 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
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
112
113
114
115
<?php
session_start();
if(@$_SESSION['id_admin'] != ''){
header("Location:admin/dashboard.php");
} elseif (@$_SESSION['id_kariyawan'] != '') {
header("Location:kariyawan/dashboard.php");
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Login</title>
<?php include("css.php"); ?>
</head>
<body class="bg-default">
<!-- Navbar -->
<nav id="navbar-main" class="navbar navbar-horizontal navbar-transparent navbar-main navbar-expand-lg navbar-light">
<div class="container">
<a class="navbar-brand" href="#">
<img src="vendor/images/white.png">
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar-collapse"
aria-controls="navbar-collapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="navbar-collapse navbar-custom-collapse collapse" id="navbar-collapse">
<div class="navbar-collapse-header">
<div class="row">
<div class="col-6 collapse-brand">
<a href="dashboard.html">
<img src="../assets/img/brand/blue.png">
</a>
</div>
<div class="col-6 collapse-close">
<button type="button" class="navbar-toggler" data-toggle="collapse"
data-target="#navbar-collapse" aria-controls="navbar-collapse" aria-expanded="false"
aria-label="Toggle navigation">
<span></span>
<span></span>
</button>
</div>
</div>
</div>
</div>
</div>
</nav>
<!-- Main content -->
<div class="main-content">
<!-- Header -->
<div class="header bg-gradient-primary py-7 py-lg-8 pt-lg-9">
<div class="container">
<div class="header-body text-center mb-7">
<div class="row justify-content-center">
<div class="col-xl-5 col-lg-6 col-md-8 px-5">
<?php if (isset($_GET['id'])): ?>
<h1 class="text-white">Username atau Password Salah!</h1>
<?php endif; ?>
</div>
</div>
</div>
</div>
</div>
<!-- Page content -->
<div class="container mt--8 pb-5">
<div class="row justify-content-center">
<div class="col-lg-5 col-md-7">
<div class="card bg-secondary border-0 mb-0">
<div class="card-body px-lg-5 py-lg-5">
<div class="text-center text-muted mb-4">
<small>LOGIN</small>
</div>
<form role="form" action="backend/verify.php" method="post">
<div class="form-group mb-3">
<div class="input-group input-group-merge input-group-alternative">
<div class="input-group-prepend">
<span class="input-group-text"><i class="ni ni-email-83"></i></span>
</div>
<input class="form-control" placeholder="Username" type="text" name="username">
</div>
</div>
<div class="form-group">
<div class="input-group input-group-merge input-group-alternative">
<div class="input-group-prepend">
<span class="input-group-text"><i class="ni ni-lock-circle-open"></i></span>
</div>
<input class="form-control" placeholder="Password" type="password"
name="password">
</div>
</div>
<div class="text-center">
<button class="btn btn-primary my-4">Sign in</button>
</div>
</form>
</div>
</div>
<div class="row mt-3">
<div class="col-6">
<a href="forgetpassword.php" class="text-light"><small>Forgot password?</small></a>
</div>
</div>
</div>
</div>
</div>
</div>
<?php include("js.php"); ?>
</body>
</html>