Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
176 lines (125 sloc) 5.17 KB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="Dashboard">
<meta name="keyword" content="SMS AndezNet Gateway">
<title>AGA - Sms AndezNet Gateway</title>
<!-- Bootstrap core CSS -->
<link href="assets/css/bootstrap.css" rel="stylesheet">
<!--external css-->
<link href="assets/font-awesome/css/font-awesome.css" rel="stylesheet" />
<!-- Custom styles for this template -->
<link href="assets/css/style.css" rel="stylesheet">
<link href="assets/css/style-responsive.css" rel="stylesheet">
<link rel="shortcut icon" href="assets/img/saga.ico">
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<!-- **********************************************************************************************************************************************************
MAIN CONTENT source code by andezNEt.com
<body>
*********************************************************************************************************************************************************** -->
<div id="login-page">
<div class="container">
<div class="login-wrap">
<form name="form" id="loginF" method="post" action="" class="form-login">
<h2 class="form-login-heading">Login S.A.G.A</h2>
<div id="loading" style="text-align: center"></div>
<br>
<div class="form-group">
<div class="col-sm-12">
<input type="text" id="username" name="username" class="form-control" placeholder="Username" autofocus>
</div>
</div>
<br>
<div class="form-group">
<div class="col-sm-12">
<input type="password" id="passlogin" name="passlogin" class="form-control" placeholder="Password">
</div>
</div>
<label class="checkbox">
<span class="pull-right">
<a href="#"> Forgot Password?</a>
</span>
</label>
<div class="form-group">
<div class="col-sm-12">
<button class="btn btn-theme btn-block"><i class="fa fa-lock"></i> SIGN IN</button>
</div>
</div>
<div class="registration">
<br>Don't have an account yet?<br/>
<a href="register.php">
Create an account
</a>
</div>
<footer class="site-footer">
<div class="text-center">
2015 <a href="http://andeznet.com">AndezNet</a>
</div>
</footer>
</form>
</div>
<!-- Modal -->
<!-- modal -->
</div>
</div>
<!-- js placed at the end of the document so the pages load faster -->
<script src="assets/js/jquery.2.1.1.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/jquery.validate.min.js"></script>
<script type="text/javascript" src="assets/js/jquery.backstretch.min.js"></script>
<script>
$.backstretch("", {speed: 500});
</script>
<script type="text/javascript">
jQuery(function($) {
$.validator.setDefaults({
submitHandler: function () {
login();
}
});
$().ready(function () {
// validate the comment form when it is submitted
$("#loginF").validate({
errorElement: 'div',
errorClass: 'help-block',
focusInvalid: true,
rules: {
username: {
required: true
},
passlogin: {
required: true
}
},
messages: {
username: "Mohon isi Username anda",
passlogin: "Mohon isi Password anda"
},
highlight: function (e) {
$(e).closest('.form-group').removeClass('has-info').addClass('has-error');
},
success: function (e) {
$(e).closest('.form-group').removeClass('has-error');//.addClass('has-info');
$(e).remove();
}
})
});
function login() {
$("#loading").html('<div class="alert alert-warning alert-success">Mohon Tunggu....</div>');
$.post('cek_login.php', $("form").serialize(), function (hasil) {
$('form input[type="text"],form input[type="password"]').val('');
$("#loading").html(hasil);
});
}
});
</script>
</body>
</html>