-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
85 lines (73 loc) · 3.38 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Login | I LOVE MAKEUP STUDIO</title>
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="Aplikasi Persediaan Obat pada Apotek">
<meta name="author" content="Indra Styawantoro" />
<!-- favicon -->
<link rel="shortcut icon" href="assets/img/favicon.png" />
<!-- Bootstrap 3.3.2 -->
<link href="assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<!-- Font Awesome Icons -->
<link href="assets/plugins/font-awesome-4.6.3/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<!-- Theme style -->
<link href="assets/css/AdminLTE.min.css" rel="stylesheet" type="text/css" />
<!-- iCheck -->
<link href="assets/plugins/iCheck/square/blue.css" rel="stylesheet" type="text/css" />
<!-- Custom CSS -->
<link href="assets/css/style.css" rel="stylesheet" type="text/css" />
</head>
<body class="login-page bg-login">
<div class="login-box">
<div style="color:#3c8dbc" class="login-logo">
<img src="assets/img/logo1.png" alt="Logo" >
</div><!-- /.login-logo -->
<?php
if (empty($_GET['alert'])) {
echo "";
}
elseif ($_GET['alert'] == 1) {
echo "<div class='alert alert-danger alert-dismissable'>
<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>×</button>
<h4> <i class='icon fa fa-times-circle'></i> Error al entrar!</h4>
Usuario o la contraseña es incorrecta, vuelva a verificar su nombre de usuario y contraseña.
</div>";
}
elseif ($_GET['alert'] == 2) {
echo "<div class='alert alert-success alert-dismissable'>
<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>×</button>
<h4> <i class='icon fa fa-check-circle'></i> Exito!!</h4>
Has salido con éxito.
</div>";
}
?>
<div class="login-box-body">
<p class="login-box-msg"><i class="fa fa-user icon-title"></i> Por favor Inicie Sesión</p>
<br/>
<form action="login-check.php" method="POST">
<div class="form-group has-feedback">
<input type="text" class="form-control" name="username" placeholder="Username" autocomplete="off" required />
<span class="glyphicon glyphicon-user form-control-feedback"></span>
</div>
<div class="form-group has-feedback">
<input type="password" class="form-control" name="password" placeholder="Password" required />
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
<br/>
<div class="row">
<div class="col-xs-12">
<input type="submit" class="btn btn-purple btn-lg btn-block btn-flat " name="login" value="Ingresar" />
</div><!-- /.col -->
</div>
</form>
</div><!-- /.login-box-body -->
</div><!-- /.login-box -->
<!-- jQuery 2.1.3 -->
<script src="assets/plugins/jQuery/jQuery-2.1.3.min.js"></script>
<!-- Bootstrap 3.3.2 JS -->
<script src="assets/js/bootstrap.min.js" type="text/javascript"></script>
</body>
</html>