<?php 
include('buiapp/partials/header.php');
if (isset($_SESSION['staff_session'])){
  $username = $_SESSION['staff_session']  ;
  header('Location: dashboard.php');
}
else{
    
    
}



?>


<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>Bowen University</title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
  <!-- Bootstrap 3.3.7 -->
  <link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.min.css">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="bower_components/font-awesome/css/font-awesome.min.css">
  <!-- Ionicons -->
  <link rel="stylesheet" href="bower_components/Ionicons/css/ionicons.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="dist/css/AdminLTE.min.css">
  <!-- iCheck -->
  <link rel="stylesheet" href="plugins/iCheck/square/blue.css">
  <style type='text/css'>
  #password + .glyphicon {
   cursor: pointer;
   pointer-events: all;
 }
  </style>
 
<script src="bower_components/jquery/dist/jquery.min.js"></script>
  <script src="buiapp/js/modernizr.custom.js"></script>
 
<!--script responsible for Login is hsre-->
<script type="text/javascript" src="buiapp/libs/common.js"></script>
 <!--login Script-->
<script type="text/javascript" src="buiapp/js/jquery.validate.min.js"></script>

  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  <!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  <![endif]-->

  <!-- Google Font -->
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
</head>
<body class="hold-transition login-page">
<div class="login-box">
  <div class="login-logo">
    <a href="index.html"><img src="images/logo.png" width="70%"></a>
  </div>
  <!-- /.login-logo -->
  <div class="login-box-body">
    <p class="login-box-msg">Staff Login</p>
<div class="alert alert-danger" role="alert" id="error" style="display: none;">...</div>
    <form  id="staff-login-form" name="login_form" role="form" method="post">
      <div class="form-group has-feedback">
        <input id="username"  required="" type="text" class="form-control" placeholder="BUI No." name="username"/>
        <span class="glyphicon glyphicon-user form-control-feedback"></span>
      </div>
      <div class="form-group has-feedback">
        <input id="password" type="password" name="password" class="form-control" placeholder="Password" required="">
        <i class="glyphicon glyphicon-eye-open form-control-feedback" onclick="myFunction()"></i>
      </div>
      <div class="row">
     
        <!-- /.col -->
        <div class="col">
          <button type="submit" name="login-submit" id="login-submit" class="btn btn-primary btn-block ">Sign In</button>
        </div>
        <div class="row">
            <div class="col-sm-6">
            Issues logging  Click <a href='complain.php'>Complain</a>
            </div>
            <div class="col-sm-6">
            <a href='forgot.php'>Forgot Password</a>
            </div>
        </div>
        <!-- /.col -->
      </div>
    </form>

   
    <!-- /.social-auth-links -->

    <br>


  </div>
  <!-- /.login-box-body -->
</div>
<!-- /.login-box -->

<!-- jQuery 3 -->

<!-- Bootstrap 3.3.7 -->
<script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- iCheck -->
<script src="plugins/iCheck/icheck.min.js"></script>
<script>
  
  
  function myFunction() {
  var x = document.getElementById("password");
  if (x.type === "password") {
    x.type = "text";
  } else {
    x.type = "password";
  }
}
</script>
</body>
</html>
