<!--
Author: W3layouts
Author URL: http://w3layouts.com
License: Creative Commons Attribution 3.0 Unported
License URL: http://creativecommons.org/licenses/by/3.0/
-->
<!DOCTYPE HTML>
<html>
<head>
<title>nehrdelivery.com</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
 <!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel='stylesheet' type='text/css' />
<!-- Custom CSS -->
<link href="css/style.css" rel='stylesheet' type='text/css' />
<link href="css/font-awesome.css" rel="stylesheet"> 
<!-- jQuery -->
<script src="js/jquery.min.js"></script>
<!----webfonts--->
<link href='http://fonts.googleapis.com/css?family=Roboto:400,100,300,500,700,900' rel='stylesheet' type='text/css'>
<!---//webfonts--->  
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>
<script>
    $(document).ready(function(){
        
      $("#login_form").submit(function(event) {

        /* stop form from submitting normally */
          event.preventDefault();
        
          /* get the action attribute from the <form action=""> element */
          var formValues = $(this).serialize();
         $.post("common/logic_authentication.php", formValues, function(data){
            if(data == 'Success'){
                window.location.href = "shop_onboard.php";
            }else{
                console.log(data);
                $("#error_message").text("Authentication failed");
            }  
        });
         
    });
    });
</script>
</head>
<body id="login">
  <div class="login-logo">
    <a href="index.html"><img src="images/logo.png" width="20%" alt=""/></a>
  </div>
  <h2 class="form-heading">User Authentication</h2>
  <h4 id="error_message"></h4>
  <div class="app-cam">
	  <form id="login_form" method="post" action="customer_onboard.php">
		<input type="text" class="text" name="username" placeholder="username" />
		<input type="password" name="password" placeholder="password" />
		<div class="submit"><input type="submit" value="Login"></div>
	</form>
  </div>
   <!--<div class="copy_layout login">
      <p>Copyright &copy; 2015 Modern. All Rights Reserved | Design by <a href="http://w3layouts.com/" target="_blank">W3layouts</a> </p>
   </div>-->
</body>
</html>
