forked from arjanvillon/caredex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
login_admin.html
119 lines (94 loc) · 4.04 KB
/
login_admin.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<!--meta tags-->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="author" content="TeamKitty">
<!--title-->
<title>Sign In | Caredex</title>
<!--icons-->
<link href="assets/icons/fontawesome-free-5.7.2-web/css/fontawesome.css" rel="stylesheet" />
<link href="assets/icons/fontawesome-free-5.7.2-web/css/solid.css" rel="stylesheet" />
<link href="assets/icons/fontawesome-free-5.7.2-web/css/brands.css" rel="stylesheet" />
<!--bootstrap core css-->
<link rel="stylesheet" href="assets/styles/bootstrapcss/bootstrap.css" />
<!-- Material Design Bootstrap -->
<link href="assets/plugins/mdb-free_4.7.5/css/mdb.css" rel="stylesheet">
<!--logo-->
<!--no logo-->
<!--custom styles-->
<link rel="stylesheet" href="assets/styles/custom.css" />
<!--internal styles-->
<style>
body {
overflow: hidden;
}
</style>
</head>
<body>
<!--form start-->
<div class="text-center border border-light">
<div class="signin-wrapper">
<div class="signin-box signup">
<h2 class="caredex-logo">
<a href="index.html">
<img src="assets/images/Caredex-2.png" alt="Caredex"/>
</a>
</h2>
<h3 class="signin-title-primary welcome">Admin Sign In!</h3>
<h5 class="signin-title-secondary lh-4"></h5>
<div class="row row-xs mg-b-10 signin-spacing">
<div class="col-sm"><input autocomplete="off" type="text" id="user" name="n_username" class="form-control" placeholder="username"></div>
</div><!-- row -->
<div class="row row-xs mg-b-10 extra-spacing">
<div class="col-sm"><input autocomplete="off" type="password" id="pass" name="n_password" class="form-control" placeholder="password"></div>
</div><!-- row -->
<button class="btn btn-primary btn-block btn-oblong btn-signin" onclick="login()">Sign In</button>
<p class="mg-t-40 mg-b-0 already"><a href="index.html">Go back to menu</a></p>
</div><!-- signin-box -->
</div><!-- signin-wrapper -->
</div>
<!--form start-->
</body>
<!-- SCRIPTS -->
<!-- JQuery -->
<script type="text/javascript" src="assets/scripts/jqueryjs/jquery-1.10.2.js"></script>
<!-- Bootstrap tooltips -->
<script type="text/javascript" src="assets/scripts/popperjs/popper.js"></script>
<!-- Bootstrap core JavaScript -->
<script type="text/javascript" src="assets/scripts/boostrapjs/bootstrap.js"></script>
<!-- MDB core JavaScript -->
<script type="text/javascript" src="assets/plugins/mdb-free_4.7.5/js/bootstrap.js"></script>
<!--Custom Javascript-->
<script type="text/javascript" src="assets/scripts/script.js"></script>
<script src="assets/scripts/jqueryjs/jquery.min.js"></script>
</html>
<script>
function login(){
var user=$("#user").val();
var pass=$("#pass").val();
if(user == '' || pass == ''){
alert("Please Fill Up The Form");
return false;
}
$.ajax({
url:"a_login.php",
method:"POST",
data:{user:user,pass:pass},
dataType:"text",
success: function (data){
// alert(data);
if(data==0){
alert("Please Fill up the Fields Correctly");
return false;
}
if(data==1){
alert("You Are Successfully Log In");
window.location = "admin_dashboard.html";
}
}
});
}
</script>