<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?><!DOCTYPE html>
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  
  <title><?php echo WEBNAME;?> - Administrator Login</title>
  <base href="<?php echo base_url();?>" />
    
  <!-- Stylesheets -->
  <link rel="stylesheet" href="assets/css/style.css">
  <link rel="stylesheet" href="assets/css/bootstrap.min.css"/>
  <link rel="stylesheet" href="assets/css/font-awesome.min.css"/>
  <link rel="stylesheet" href="assets/css/owl.carousel.min.css"/>
  <link rel="stylesheet" href="assets/css/nice-select.css"/>
  <link rel="stylesheet" href="assets/css/magnific-popup.css"/>
  <link rel="stylesheet" href="assets/css/slicknav.min.css"/>
  <link rel="stylesheet" href="assets/css/animate.css"/>
    
  <link rel="icon" href="favicon.ico" type="image/x-icon">
  <link rel="apple-touch-icon" href="assets/images/logo.png">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name="theme-color" content="white">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <meta name="apple-mobile-web-app-title" content="NSPL">
  <meta name="msapplication-TileImage" content="images/logo.png">
  <meta name="msapplication-TileColor" content="#FFFFFF">
  
  <script type="text/javascript" src="assets/js/jquery-1.10.2.min.js"></script>
    
</head>
  <body>
    
	  <div class="ftco-section pb-5 mb-4">
        <div class="row mx-0 my-4 px-0">
       	 
         <div class="col-md-12 col-12 mb-5 m-auto col-lg-4">
			 <h2 class="mt-5 text-center"><?php echo WEBNAME;?></h2>
          <h6 class="mb-4 text-center"><strong>Administrator Login</strong></h6>
          
          <div class="bg-white rounded shadow px-4 border border-dark py-3">
         	 
			 <form action="account/checklogin" method="post" class="p-3 bg-white m-auto">
              

              <?php
				if($this->session->flashdata("message")!="" && $this->session->flashdata("msgclass")!="")
				{
              ?>
              <div class="alert <?php echo $this->session->flashdata("msgclass");?>"><?php echo $this->session->flashdata("message");?></div>
              <?php
				}
              ?>
              
              <div class="row form-group">
                <div class="col-md-12 mb-3">
                  <label class="font-weight-normal" for="fullname">Username</label>
                  <input type="text" id="username" name="username" class="form-control" placeholder="" required>
                </div>
                <div class="col-md-12 mb-3 mb-md-0">
                  <label class="font-weight-normal" for="fullname">Password</label>
                  <input type="password" id="userpass" name="userpass" class="form-control" placeholder="" required>
                </div>
              </div>

              <div class="row form-group">
                <div class="col-md-3">
                  <input type="submit" value="Submit" class="btn btn-secondary py-2 px-5">
                </div>
              </div>

            </form>
          </div>

         </div>
         
         </div> 
          
       </div>
      </div>


	   <div class="clearfix"></div>
      <footer>
    	© <?php echo date("Y");?>, <?php echo WEBNAME;?>
    </footer>
	</div>
    <div class="clearfix"></div>
	
    <!-- <script src="js/main.js"></script> //-->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
    <script>
  	// INCLUDE JQUERY & JQUERY UI 1.12.1
		$( function() {
			$( ".datepicker" ).datepicker({
				dateFormat: "dd-mm-yy"
				,	duration: "fast"
			});
		} );
    </script>
    <script>
	 $(document).ready(function() {
		$('.minus').click(function () {
			var $input = $(this).parent().find('input');
			var count = parseInt($input.val()) - 1;
			count = count < 1 ? 1 : count;
			$input.val(count);
			$input.change();
			return false;
		});
		$('.plus').click(function () {
			var $input = $(this).parent().find('input');
			$input.val(parseInt($input.val()) + 1);
			$input.change();
			return false;
		});
	 });
    </script>

</body>
</html>
