-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
65 lines (61 loc) · 2.16 KB
/
Copy pathindex.php
File metadata and controls
65 lines (61 loc) · 2.16 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
<?php include "call_packages.php" ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Biodata Siswa SMKN 1 Sumenep | Login</title>
<link rel="stylesheet" href="css/style.css">
<link rel="shortcut icon" href="asset/image/smk.png" type="image/x-icon">
</head>
<body>
<?php
if (isset($_GET['Error'])) {
if ($_GET["Error"] == "GagalLogin") {
echo " <script>const Toast = Swal.mixin({
toast: true,
position: 'top-end',
showConfirmButton: false,
timer: 3000,
timerProgressBar: true,
didOpen: (toast) => {
toast.onmouseenter = Swal.stopTimer;
toast.onmouseleave = Swal.resumeTimer;
}
});
Toast.fire({
icon: 'error',
title: 'Username Or Password Incorrect'
});</script>";
}
if ($_GET["Error"] == "WalikelasNotFound") {
echo " <script>const Toast = Swal.mixin({
toast: true,
position: 'top-end',
showConfirmButton: false,
timer: 3000,
timerProgressBar: true,
didOpen: (toast) => {
toast.onmouseenter = Swal.stopTimer;
toast.onmouseleave = Swal.resumeTimer;
}
});
Toast.fire({
icon: 'error',
title: 'Tidak Ada Data Walikelas Yang Cocok'
});</script>";
}
}
?>
<form action="cek_login.php" method="post">
<center>
<img src="asset/image/smk.png" id="logo" class="logo" alt="">
</center>
<div id="inputform">
<input type="text" name="username" id="UsernameVALUE" placeholder="Username" class="form-control">
<input type="password" name="password" id="PasswordVALUE" placeholder="Password" class="form-control">
<input type="submit" value="Login" class="btn btn-primary">
</div>
</form>
</body>
</html>