-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.php
More file actions
220 lines (206 loc) · 13 KB
/
index.php
File metadata and controls
220 lines (206 loc) · 13 KB
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
<?php
if (!isset($_SESSION))
{
session_start();
}
if(isset($_SESSION['admin'])){
header('location: dashboard.php?#');
}
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>LOGIN | UKK RPL PAKET 3 - SMKN 1 Kuwus</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta content="Uji Kompetensi Keahlian Rekayasa Perangkat Lunak 2020 Paket 3" name="description" />
<meta content="Themesbrand" name="author" />
<!-- App favicon -->
<link rel="shortcut icon" href="assets/images/sale.ico">
<!-- preloader css -->
<link rel="stylesheet" href="assets/css/preloader.min.css" type="text/css" />
<!-- Bootstrap Css -->
<link href="assets/css/bootstrap.min.css" id="bootstrap-style" rel="stylesheet" type="text/css" />
<!-- Icons Css -->
<link href="assets/css/icons.min.css" rel="stylesheet" type="text/css" />
<!-- App Css-->
<link href="assets/css/app.min.css" id="app-style" rel="stylesheet" type="text/css" />
</head>
<body data-topbar="dark">
<!-- <body data-layout="horizontal"> -->
<div class="auth-page">
<div class="container-fluid p-0">
<div class="row g-0">
<div class="col-xxl-3 col-lg-4 col-md-5">
<div class="auth-full-page-content d-flex p-sm-5 p-4">
<div class="w-100">
<div class="d-flex flex-column h-100">
<div class="mb-4 mb-md-5 text-center">
<a href="index.html" class="d-block auth-logo">
<img src="assets/images/sale.ico" alt="" height="20">
<span class="logo-txt">MyCofe</span>
</a>
</div>
<div class="auth-content my-auto">
<div class="text-center">
<h5 class="mb-0">Selamat datang di Aplikasi Restoran Kami!</h5>
<p class="text-muted mt-2">Login untum masuk ke aplikasi</p>
</div>
<form class="mt-4 pt-2" id="flogin">
<div class="form-floating form-floating-custom mb-4">
<input type="text" class="form-control" id="input-username" placeholder="Enter User Name">
<label for="input-username">Username</label>
<div class="form-floating-icon">
<i data-feather="users"></i>
</div>
</div>
<div class="form-floating form-floating-custom mb-4 auth-pass-inputgroup">
<input type="password" class="form-control pe-5 input-password" id="password-input" placeholder="Enter Password">
<button type="button" class="btn btn-link position-absolute h-100 end-0 top-0" id="password-addon">
<i class="mdi mdi-eye-outline font-size-18 text-muted"></i>
</button>
<label for="input-password">Password</label>
<div class="form-floating-icon">
<i data-feather="lock"></i>
</div>
</div>
<div class="mb-3">
<button id="login" class="btn btn-primary w-100 waves-effect waves-light" type="button">Log In</button>
</div>
</form>
</div>
<div class="mt-4 mt-md-5 text-center">
<h6><script>document.write(new Date().getFullYear())</script> © UKK RPL SMKN 1 KUWUS</h6>
<i class=""></i> Theme by Themesbrand</p>
</div>
</div>
</div>
</div>
<!-- end auth full page content -->
</div>
<!-- end col -->
<div class="col-xxl-9 col-lg-8 col-md-7">
<div class="auth-bg pt-md-5 p-4 d-flex">
<div class="bg-overlay"></div>
<ul class="bg-bubbles">
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
<!-- end bubble effect -->
<div class="row justify-content-center align-items-end">
<div class="col-xl-7">
<div class="p-0 p-sm-4 px-xl-0">
<div id="reviewcarouselIndicators" class="carousel slide" data-bs-ride="carousel">
<div class="carousel-indicators auth-carousel carousel-indicators-rounded justify-content-center mb-0">
<button type="button" data-bs-target="#reviewcarouselIndicators" data-bs-slide-to="0" class="active" aria-current="true" aria-label="Slide 1">
<img src="assets/images/users/avatar-7.png" class="avatar-md img-fluid rounded-circle d-block" alt="...">
</button>
<button type="button" data-bs-target="#reviewcarouselIndicators" data-bs-slide-to="1" aria-label="Slide 2">
<img src="assets/images/users/avatar-7.png" class="avatar-md img-fluid rounded-circle d-block" alt="...">
</button>
<button type="button" data-bs-target="#reviewcarouselIndicators" data-bs-slide-to="2" aria-label="Slide 3">
<img src="assets/images/users/avatar-7.png" class="avatar-md img-fluid rounded-circle d-block" alt="...">
</button>
</div>
<!-- end carouselIndicators -->
<div class="carousel-inner">
<div class="carousel-item active">
<div class="testi-contain text-center text-white">
<i class="bx bxs-quote-alt-left text-success display-6"></i>
<h4 class="mt-4 fw-medium lh-base text-white">
“Aku mempelajari apa pun tapi tidak pernah mendapatkan peringkat teratas. Tapi hari ini,
orang yang mendapatkan peringkat paling atas dari universitas terbaik adalah karyawanku. <br />
(Bill Gates)”
</h4>
<div class="mt-4 pt-1 pb-5 mb-5">
<h5 class="font-size-16 text-white">Maklon
</h5>
<p class="mb-0 text-white-50">Software Engineer</p>
</div>
</div>
</div>
<div class="carousel-item">
<div class="testi-contain text-center text-white">
<i class="bx bxs-quote-alt-left text-success display-6"></i>
<h4 class="mt-4 fw-medium lh-base text-white">
“Jika kamu gagal, itu bukan kesalahan orang tua kamu,
jadi jangan mengeluh tentang kesalahan kamu; belajar dari kesalahan itu.<br />
(Bill Gates)”</h4>
<div class="mt-4 pt-1 pb-5 mb-5">
<h5 class="font-size-16 text-white">Sely
</h5>
<p class="mb-0 text-white-50">Cashier</p>
</div>
</div>
</div>
<div class="carousel-item">
<div class="testi-contain text-center text-white">
<i class="bx bxs-quote-alt-left text-success display-6"></i>
<h4 class="mt-4 fw-medium lh-base text-white">
“Jika kamu tidak bisa membuat sesuatu menjadi baik,
paling tidak buatlah hal itu terlihat baik.<br/>
(Bill Gates)”
</h4>
<div class="mt-4 pt-1 pb-5 mb-5">
<h5 class="font-size-16 text-white">Remy</h5>
<p class="mb-0 text-white-50">Manager
</p>
</div>
</div>
</div>
</div>
<!-- end carousel-inner -->
</div>
<!-- end review carousel -->
</div>
</div>
</div>
</div>
</div>
<!-- end col -->
</div>
<!-- end row -->
</div>
<!-- end container fluid -->
</div>
<!-- JAVASCRIPT -->
<script src="assets/libs/jquery/jquery.min.js"></script>
<script src="assets/libs/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="assets/libs/feather-icons/feather.min.js"></script>
<script src="assets/js/pages/pass-addon.init.js"></script>
<script src="assets/js/pages/feather-icon.init.js"></script>
</body>
<script>
$("document").ready(function(){
$("#login").click(function(){
var user = $("#input-username").val();
var pass = $(".input-password").val();
//alert(user + pass);return;
$.ajax({
url:"crud/cek_login.php",
method:"POST",
data:{user:user, pass:pass},
success:function(data)
{
if (data=="OK"){
alert("Login Successfully");
window.location.href="dashboard.php?#";
}
if (data=="ERROR"){
document.getElementById("flogin").reset();
alert("Login Gagal!");
}
}
});
});
});
</script>
</html>