-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
106 lines (103 loc) · 3.26 KB
/
index.php
File metadata and controls
106 lines (103 loc) · 3.26 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
<?php
session_start();
include "koneksi.php";
// Notif Error
$Err = "";
if(isset ($_GET ["Err"]) && !empty ($_GET ["Err"])){
switch ($_GET ["Err"]){
case 1:
$Err = "Username dan Password Kosong";
break;
case 2:
$Err = "Username Kosong";
break;
case 3:
$Err = "Password Kosong";
break;
case 4:
$Err = "Password salah";
break;
case 5:
$Err = "Maaf, Terjadi Kesalahan";
break;
}
}
// Notif
$Notif = "";
if(isset ($_GET["Notif"]) && !empty ($_GET["Notif"])){
switch($_GET["Notif"]){
case 1:
$Notif = "User berhasil dibuat, silahkan Login";
break;
}
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>e-SUPERVISION</title>
<!-- Icon -->
<link rel="shortcut icon" type="image/png" href="favico.png">
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!-- Bootstrap 3.3.5 -->
<link rel="stylesheet" href="aset/bootstrap/css/bootstrap.min.css">
<!-- Font Awesome -->
<link rel="stylesheet" href="aset/fa/css/font-awesome.css">
<!-- Theme style -->
<link rel="stylesheet" href="aset/dist/css/AdminLTE.min.css">
<!-- iCheck -->
<link rel="stylesheet" href="aset/plugins/iCheck/square/blue.css">
<style type="text/css">
body {
background: url(2.jpg) no-repeat fixed;
-webkit-background-size: 100% 100%;
-moz-background-size: 100% 100%;
-o- background-size: 100% 100%;
background-size: 100% 100%;
}
</style>
</head>
<body>
<div class="login-box">
<div class="login-logo"></div><!-- /.login-logo -->
<div class="login-box-body">
<b>
<p class="login-box-msg"><span class="login-logo"><img src="favico.PNG" alt="" width="141" height="141"></span></p>
<p class="login-box-msg">Login</p>
</b>
<form action="vl_user.php" method="post">
<div class="form-group has-feedback">
<input type="text" name="Username" class="form-control" placeholder="Username" maxlength="30" />
<span class="form-control-feedback"><i class="fa fa-user"></i></span>
</div>
<div class="form-group has-feedback">
<input type="password" name="Password" class="form-control" placeholder="Password" maxlength="255" />
<span class="form-control-feedback"><i class="fa fa-unlock"></i></span>
</div>
<div class="row">
<div class="col-xs-8">
</div><!-- /.col -->
<div class="col-xs-4">
<button type="submit" class="btn btn-primary">Sign In <i class="fa fa-sign-in"></i></button>
</div><!-- /.col -->
</div>
<br>
<center><font style="color:red;"><?php echo $Err ?></font></center>
<center>
<p><font style="color:green;"><?php echo $Notif ?></font></p>
<p><a href="lupasandi.php">Lupa Password ?</a></p>
</center>
</br>
</form>
</div><!-- /.login-box-body -->
</div><!-- /.login-box -->
<!-- jQuery 2.1.4 -->
<script src="aset/plugins/jQuery/jQuery-2.1.4.min.js"></script>
<!-- Bootstrap 3.3.5 -->
<script src="aset/bootstrap/js/bootstrap.min.js"></script>
<!-- iCheck -->
<script src="aset/plugins/iCheck/icheck.min.js"></script>
</body>
</html>