forked from dwizuna/ptatm
-
Notifications
You must be signed in to change notification settings - Fork 4
/
login-ui.php
94 lines (86 loc) · 3.16 KB
/
login-ui.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
<?php
session_start();
if (isset($_SESSION['login']))
header('Location: dashboard-ui.php');
include 'lhast.php';
include 'dbconf.php';
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title><?php echo $_SESSION['judul'];?> | <?php echo $_SESSION['desc'];?></title>
<!-- 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.6 -->
<link rel="stylesheet" href="lte/bootstrap/css/bootstrap.min.css">
<!-- Font Awesome -->
<link rel="stylesheet" href="lte/dist/css/font-awesome.min.css">
<!-- Ionicons -->
<link rel="stylesheet" href="lte/dist/css/ionicons.min.css">
<!-- Theme style -->
<link rel="stylesheet" href="lte/dist/css/AdminLTE.min.css">
<!-- iCheck -->
<link rel="stylesheet" href="lte/plugins/iCheck/square/blue.css">
<!-- This is what you need -->
<script src="assets/es6-promise.auto.min.js"></script> <!-- IE support -->
<script src="assets/sweetalert2.js"></script>
<link rel="stylesheet" href="assets/sweetalert2.min.css">
<link rel="icon" href="favicon.ico">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body class="hold-transition login-page">
<div class="login-box">
<div class="login-logo">
<a href="#"><b><?php echo $_SESSION['judul'];?></b> SYSTEM</a>
</div>
<!-- /.login-logo -->
<div class="login-box-body">
<p align="center" class="login-box-msg">Silahkan login untuk melanjutkan</p>
<form method="post" action="cek.php">
<div class="form-group has-feedback">
<input type="text" class="form-control" placeholder="Username" name="user" id="user" required />
<span class="glyphicon glyphicon-user form-control-feedback"></span>
</div>
<div class="form-group has-feedback">
<input type="password" class="form-control" placeholder="Password" name="pass" id="pass" required />
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
<div class="row">
<div class="col-xs-8">
</div>
<!-- /.col -->
<div class="col-xs-4">
<button type="submit" class="btn btn-success btn-block btn-flat">Login</button>
</div>
<!-- /.col -->
</div>
</form>
</div>
<!-- /.login-box-body -->
</div>
<!-- /.login-box -->
<?php if (isset($_SESSION['error'])&&$_SESSION['error']==1){ ?>
<script>
swal({
title: 'Login Error!',
text: 'Maaf Username atau Password salah..',
type: 'error',
confirmButtonText: 'OK'
})
</script>
<?php
$_SESSION['error']=0;
} ?>
<!-- jQuery 2.2.0 -->
<script src="lte/plugins/jQuery/jQuery-2.2.0.min.js"></script>
<!-- Bootstrap 3.3.6 -->
<script src="lte/bootstrap/js/bootstrap.min.js"></script>
</body>
</html>