<?php  ob_start(); session_start(); session_destroy();


?>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <title>Outlet App v1.2</title>
  <!-- plugins:css -->
  <link rel="stylesheet" href="loginF/css/materialdesignicons.min.css">
  <link rel="stylesheet" href="loginF/base/vendor.bundle.base.css">
  <link rel="stylesheet" href="loginF/style.css">
  <!-- endinject -->
  <link rel="shortcut icon" href="img/shop_9253640.png" />
</head>

<body>
  <div class="container-scroller">
    <div class="container-fluid page-body-wrapper full-page-wrapper">
      <div class="content-wrapper d-flex align-items-stretch auth auth-img-bg">
        <div class="row flex-grow">
          <div class="col-lg-12 d-flex align-items-center justify-content-center">
            <div class="auth-form-transparent textwe-left p-3">
              
              <h2>S-BAKO COSMETICS & JEWELRIES.</h2>
              <h6 class="font-weight-light">Happy to see you again!</h6>
              <form class="pt-3" action="" method="POST">
                <div class="form-group">
                  <label for="exampleInputEmail">Username</label>
                  <div class="input-group">
                    <div class="input-group-prepend bg-transparent">
                      <span class="input-group-text bg-transparent border-right-0">
                        <i class="mdi mdi-account-outline text-primary"></i>
                      </span>
                    </div>
                    <input type="email" class="form-control form-control-lg border-left-0" id="username" placeholder="Username" required>
                  </div>
                </div>
                <div class="form-group">
                  <label for="exampleInputPassword">Password</label>
                  <div class="input-group">
                    <div class="input-group-prepend bg-transparent">
                      <span class="input-group-text bg-transparent border-right-0">
                        <i class="mdi mdi-lock-outline text-primary"></i>
                      </span>
                    </div>
                    <input type="password" class="form-control form-control-lg border-left-0" id="password" placeholder="Password" required>                        
                  </div>
                </div>
                <div class="my-2 d-flex justify-content-between align-items-center">
                  <div class="form-check">
                    <label class="form-check-label text-muted">
                      <input type="checkbox" class="form-check-input">
                      Keep me signed in
                    </label>
                  </div>
                  <a href="#" class="auth-link text-black">Forgot password?</a>
                </div>
                <div class="my-3">
                 <input type="submit" name="send" value="Login" class="btn btn-primary form-control" id="push">
                </div>
              
                <div class="text-center mt-4 font-weight-light">
                  Don't have an account? <a href="" class="text-primary">Create</a>
                </div>
              </form>
            </div>
          </div>
          <!-- <div class="col-lg-6 login-half-bg d-flex flex-row" style="border:1px solid red;"> -->
        <!--       <div class="col-lg-6 d-flex flex-column justify-content-center align-items-center" style="background: lightblue;">
    <h1 style="text-align: center;">The Outlet App....<br/> <span>Everything Sales</span></h1>
    <p class="text-white font-weight-medium text-center flex-grow align-self-end" style="margin-bottom: 0;">Copyright &copy; <?php echo date('Y'); ?> Outlet App All rights Reserved.</p>
</div> -->
        </div>
      </div>
      <!-- content-wrapper ends -->
    </div>
    <!-- page-body-wrapper ends -->
  </div>
  <!-- container-scroller -->
  <!-- plugins:js -->
  <script src="loginF/base/vendor.bundle.base.js"></script>
  <!-- endinject -->
  <!-- inject:js -->
  <script src="loginF/off-canvas.js"></script>
  <script src="loginF/hoverable-collapse.js"></script>
  <script src="loginF/template.js"></script>
  <script src="vendor/jquery/jquery.min.js"></script>

  <script type="text/javascript">
$('#push').click(function(e){e.preventDefault();
$.ajax({data: {email:$('#username').val(),myPass:$('#password').val()},type: "post",url: "processor",success: function(data){
  // alert(data);
if(data==4){ //admin
window.location='admin/index';
}else if(data==3){ //sales
  window.location='index.php';
}else if(data==5){ //sales
  window.location='supr/index';
}

else if (data==2){
  alert('Invalid Login Credentials');
}
},error: function(jqXHR, textStatus, errorThrown) { 

}

});



})


// // $(function(){ setTimeout(function() { 
// // $.toast({title: 'An Error Occured',backgroundColor: 'gray',textColor: '#fff'});
// // }, 5000);})

</script>

</body>

</html>
