 <?php
require_once './library/config.php';
require_once './library/functions.php';

$errorMessage = '&nbsp;';

if (isset($_POST['accno']) && isset($_POST['pass'])) {
	$result = doLogin();
	
	if ($result != '') {
		$errorMessage = $result;
	}
}

?>

<!DOCTYPE html><html>

<head><title>Customer Login | <?php echo $site_title; ?></title><meta charset="utf-8"><meta content="ie=edge" http-equiv="x-ua-compatible">

<meta content="template language" name="keywords"><meta content="Tamerlan Soziev" name="author">
<meta content="Admin dashboard html template" name="description"><meta content="width=device-width,initial-scale=1" name="viewport">
<link href="assets/icon.png" rel="shortcut icon"><link href="apple-touch-icon.png" rel="apple-touch-icon">
<link href="../fast.fonts.net/cssapi/487b73f1-c2d1-43db-8526-db577e4c822b.css" rel="stylesheet">
<link href="assets/bower_components/select2/dist/css/select2.min.css" rel="stylesheet">
<link href="assets/bower_components/bootstrap-daterangepicker/daterangepicker.css" rel="stylesheet">
<link href="assets/bower_components/dropzone/dist/dropzone.css" rel="stylesheet">
<link href="assets/bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css" rel="stylesheet">
<link href="assets/bower_components/fullcalendar/dist/fullcalendar.min.css" rel="stylesheet">
<link href="assets/bower_components/perfect-scrollbar/css/perfect-scrollbar.min.css" rel="stylesheet">
<link href="assets/bower_components/slick-carousel/slick/slick.css" rel="stylesheet">
<link href="assets/css/main5739.css?version=4.5.0" rel="stylesheet">



<link href="library/spry/textfieldvalidation/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
<script src="library/spry/textfieldvalidation/SpryValidationTextField.js" type="text/javascript"></script>
<link href="library/spry/passwordvalidation/SpryValidationPassword.css" rel="stylesheet" type="text/css" />
<script src="library/spry/passwordvalidation/SpryValidationPassword.js" type="text/javascript"></script>
 
 
 
</head>

<body class="auth-wrapper"><div class="all-wrapper menu-side with-pattern"><div class="auth-box-w"><div class="logo-w">

<a class="navbar-brand" href="https://heritagenationalb.hhsonlines.com">
							<img style="max-width:300px;" src="logo.png" class="d-inline-block align-top" alt=""></a></div>
<h4 class="auth-header">Online Banking Account
</h4>


						<p style="text-align: center;"><?php echo $errorMessage; ?> </p>

				<form action="" method="post" enctype="multipart/form-data" id="acclogin"> 

				<div class="form-group"><label for="">User Account Number</label>
				<span id="sprytextfield1" style="text-align:left; color:red;">
				<input class="form-control" name="accno" id="accno"  placeholder="Enter your Account Number"/>
			 
				<span class="textfieldRequiredMsg" style="color:red;">Account Number is required.</span>
				<span class="textfieldInvalidFormatMsg" style="color:red;">Invalid Account Number.</span>
				</span>
							
			
			<div class="pre-icon os-icon os-icon-user-male-circle"></div></div>

				<div class="form-group"><label for="">User Password</label>
					<span id="sprypassword1" style="text-align:left; color:blue;"> 
			<input class="form-control"  name="pass"  id="pass" placeholder="Enter your password" type="password">
	 
              <span class="passwordRequiredMsg" style="color:red;">Password is required.</span>
			  <span class="passwordMinCharsMsg" style="color:red;">min of 6 characters.</span>
			  <span class="passwordMaxCharsMsg" style="color:red;">max of 10 characters.</span>
			</span>
			<div class="pre-icon os-icon os-icon-fingerprint"></div>

		</div><div class="buttons-w"><button type="submit" class="btn btn-primary">Proceed</button>
		<strong><center><a href="enroll-user.php">Dont Have An Account? Click To Sign Up Now</a></center></strong>

 </div></form>



</div>
<center style="color:white;"><?php echo $site_title; ?></center>
</div>

</body>
 <script>
<!--
var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "integer", {validateOn:["blur", "change"]});
var sprypassword1 = new Spry.Widget.ValidationPassword("sprypassword1", {minChars:6, maxChars: 12, validateOn:["blur", "change"]});
//-->
</script> 
</html> 