<?php
/*session_start();
if(isset($_SESSION['LOGIN_USER'])){
      echo '<script type="text/javascript">location.href="./dashboard"</script>';
 }*/
?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Schoobee Login </title>

    <!-- Bootstrap -->
    <link href="login/css/bootstrap.min.css" rel="stylesheet">
	<link rel="stylesheet" href="login/css/font-awesome.min.css">
	<link rel="stylesheet" href="login/css/jquery.bxslider.css">
	<link rel="stylesheet" type="text/css" href="login/css/isotope.css" media="screen" />	
	<link rel="stylesheet" href="login/css/animate.css">
	<link rel="stylesheet" href="login/js/fancybox/jquery.fancybox.css" type="text/css" media="screen" />
	<link href="login/css/prettyPhoto.css" rel="stylesheet">
	<link href="login/css/style.css" rel="stylesheet">	
    <!-- HTML5 shim and Respond.js for 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.2/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
 <style>
 .for_pass a{
 color:green;
 }
  .for_pass a:hover{
 color:#076394;
 }
 
  b{
 color:#430773;
 font-size:12px;
 }
 </style>
  </head>
  <body >
	<header>		
		<nav class="navbar navbar-default navbar-static-top" role="navigation" >
			<div class="navigation" style="background-color:#e6e6e6;">
				<div class="container" >					
					<div class="navbar-header">
						<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse.collapse">
							<span class="sr-only">Toggle navigation</span>
							<span class="icon-bar"></span>
							<span class="icon-bar"></span>
							<span class="icon-bar"></span>
						</button>
						<div class="navbar-brand">
							<a href="index.html"><img src="login/images/logo.png" style="margin-top:-20px;"><!--<h1><span>M</span>ulti</h1>--></a>
						</div>
					</div>
					
					<div class="navbar-collapse collapse">							
						<div class="menu"  style="padding-bottom:30px; color:green; font-size:24px; margin-top:20px; font-family:Segoe Print">
                       <span> Management System</span>
							<!--<ul class="nav nav-tabs" role="tablist">
								<li role="presentation"><a href="login.php" class="active">SCHOOL MANAGMENT SYSTEM</a></li>
												
							</ul>-->
						</div>
					</div>						
				</div>
			</div>	
		</nav>		
	</header>
	

	<div class="container">
		<div class="col-md-4" style=" text-align:right;">
			
			<img src="login/images/right_pic.jpg">
		</div>
		
		<!--
        <div class="col-md-4">
            <div class="text-center">
                <div class="wow bounceInDown" data-wow-offset="0" data-wow-delay="0.3s">
                    <h2><span style="color:green;">Schoobee</span> Login </h2>					
                </div>
                <div class="wow bounceInDown" data-wow-offset="0" data-wow-delay="0.6s">
                    <p>Log in now to Manage your organization. </p>
					
                </div>
            </div>
                
		</div>
		<div class="col-md-4" >
				
				<img src="login/images/school_logo.jpg" width="100px">
				
		</div>
		-->
	</div>
    <div class="container" >
     <div class="col-md-12" >
             <div class="col-md-4" >
          
             </div>
             <div class="col-md-4"  style="background-color:#e6e6e6;"><h4>User Name: </h4>     
                    <div class="text-center">
                        
                        <div class="wow bounceInDown" data-wow-offset="0" data-wow-delay="0.6s">
                            
                                <div class="form-group">
                                <input type="text" class="form-control" id="user_name" name="user_name" placeholder="User Name">
                                <span style="color:#ee0000; font-weight:bold; font-size:11px; float:right;" class="for_pass"><a href="">Forgot Username?</a></span>
                                </div>
                           
                        </div>
						
                    </div>
                  
                </div>
				<!--
                <div class="col-md-4">
				<b>For security reasons, Please LOGOUT and EXIT your web browser when your done accessing services that require authentication!</b> 
                </div>
				-->
		</div>
        <div class="col-md-12">
             <div class="col-md-4">
             </div>
             <div class="col-md-4"  style="background-color:#e6e6e6;">  <h4>Password: </h4>    
                    <div class="text-center">
                        
                        <div class="wow bounceInDown" data-wow-offset="0" data-wow-delay="0.6s">
                            
                                <div class="form-group">
                                <input type="password" class="form-control" id="password" name="password" placeholder="Password">
                                <span style="color:#ee0000; font-weight:bold; font-size:11px; float:right;" class="for_pass">Please note password incase of sensitive | <a href="">
Forgot Password?</a></span>
                                </div>
                           
                        </div>
                    </div>
                </div>
                <div class="col-md-4">
                </div>
		</div>
		
        <div class="col-md-12">
             <div class="col-md-4">
             </div>
             <div class="col-md-4"  style="background-color:#e6e6e6;">      
                    <div class="text-center">
                        
                        <div class="wow bounceInDown" data-wow-offset="0" data-wow-delay="0.6s">
                            
                                <div class="form-group">
                                    <button type="submit" name="submit" onClick="return false;" id="sign_in_button" class="btn btn-primary btn-lg" required="required">Sign In </button>
                                </div>
                           
                        </div>
                    </div><span style="color:#ee0000; font-weight:bold; font-size:11px; float:right;" class="for_pass"><a href="">Need Help?</a></span>
				
                </div>
				
                <div class="col-md-4">
				
                </div>
				
		</div>
        
     
        
     </div>

<br/>

     
	
	<footer>
    <div class="footer" style="padding:0px;">
			<div class="container">
				<!--
				<div class="col-md-12 wow fadeInUp" data-wow-offset="0" data-wow-delay="0.6s">Powred by: 
                    <img src="login/images/leo_logo.png" width="100" height="32">&nbsp;: &nbsp;
                    <i class="fa fa-home fa-2x"></i> 34/6  A, Block-F, 4th Floor, Johuri Moholla, Mohammadpur, Dhaka-1207 &nbsp; | &nbsp;
                    <i class="fa fa-phone fa-2x"></i> +88 017 67 00 9920, &nbsp; | &nbsp;
                    <i class="fa fa-envelope fa-2x"></i> info@leotechbd.com
                    <!--<h3>CONTACT INFO</h3>
					<ul>
						<li><i class="fa fa-home fa-2x"></i> Office # 38, Suite 54 Elizebth Street, Victoria State Newyork, USA 33026</li><hr>
						<li><i class="fa fa-phone fa-2x"></i> +38 000 129900</li><hr>
						<li><i class="fa fa-envelope fa-2x"></i> info@domain.net</li>
					</ul>-->
				</div>
				
			</div>
		</div>
		
		
		<div class="sub-footer" style="background-color:green; padding:0px;">
			<div class="container">
				<div class="row">
					<div class="col-md-6">
						
					</div>
                    <!-- 
                        All links in the footer should remain intact. 
                        Licenseing information is available at: http://bootstraptaste.com/license/
                        You can buy this theme without footer links online at: http://bootstraptaste.com/buy/?theme=Multi
                    -->
					<!--
					<div class="col-md-6" style="text-align:right;">
						&copy; 2016 <a target="_blank" href="http://www.leotechbd.com/" title="Leotech" target="_blank">Leotech .</a>. All Rights Reserved.
					</div>
					-->
				</div>
				<div class="pull-right">
					<a href="#home" class="scrollup"><i class="fa fa-angle-up fa-3x"></i></a>
				</div>
			</div>
		</div>
	</footer>
   
	
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->	
    <script src="login/js/jquery-2.1.1.min.js"></script>	
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="login/js/bootstrap.min.js"></script>
	<script src="login/js/wow.min.js"></script>
	<script src="login/js/fancybox/jquery.fancybox.pack.js"></script>
	<script src="login/js/jquery.easing.1.3.js"></script>
	<script src="login/js/jquery.bxslider.min.js"></script>
	<script src="login/js/jquery.prettyPhoto.js"></script>
	<script src="login/js/jquery.isotope.min.js"></script> 
	<script src="login/js/functions.js"></script>
	<script>
	wow = new WOW(
	 {
	
		}	) 
		.init();
		
		
		$(document).ready(function(){
				 
							$("#user_name").focus();
							$("#user_name").keypress(function(ex){
								if(ex.which == 13) {
									var username = $("#user_name").val();
									if(username=="") {
										alert("Enter username");
										$("#user_name").focus();
										return false;
									}else{
										$("#password").focus();
									}
								}
							});
				  
							$("#password").keypress(function(ex){
								if(ex.which == 13) {
									var password = $("#password").val();
									if(password=="") {
										alert("Enter password");
										$("#password").focus();
										return false;
									}else{
										$("#sign_in_button").focus();
									}
								}
							});
				  
							$("#sign_in_button").click(function(){
								var username = $("#user_name").val();
								var password = $("#password").val();
								var dataStr = "username="+username+"&password="+password;
								
								if(username=="") {
									alert("Enter username");
									$("#user_name").focus();
									return false;
								}
								else  if(password=="") 
								{
									alert("Enter password");
									$("#password").focus();
									return false;
								}
								else
								{
									$.ajax({
										type:"post" ,
									   //	url:"login_check.php" ,
									   url:"login_check.php" ,
										data:dataStr ,
										cache:false ,
										success:function(st){					      
											//alert(st);
											if(st==1) {
												//location.href = "./";
												location.href = "./branches";
											}else{
												alert("Please check your username or password");
												$("#password").focus();
											}
										}
									});	
								}
							});		  
						});	
	</script>
	
  </body>
</html>