<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
  <title>Kerala Khadi and Village Industries Board</title>
  <meta name="description" content="free website template" />
  <meta name="keywords" content="enter your keywords here" />
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=9" />
  <link rel="stylesheet" type="text/css" href="login/css/style.css" />
  <script type="text/javascript" src="login/js/jquery.min.js"></script>
  <script type="text/javascript" src="login/js/image_slide.js"></script>
 <link rel="stylesheet" href="login/css1/styles.css">
<link rel="shortcut icon" href="images/logo.ico">
<link rel="stylesheet" type="text/css" media="all" href="jsDatePick_ltr.min.css" />
<script type="text/javascript" src="jsDatePick.min.1.3.js"></script>
<script type="text/javascript">
window.onload = function(){
new JsDatePick({
	useMode:2,
	target:"inputField",
	dateFormat:"%Y-%m-%d"
});

            
};
</script>
<style>


</style>
</head>
<body>

<?
if($id==2)
{
session_start();
if(strlen($brcode)>0)
{
 print "<script> alert('You are already logged in as $user'); </script>";
 print "<center>[<a href='logout.php'>Logout</a>] ";
 print "<br><font color=red><blink><b>Warning </b></font></blink><br>Logout properly in future <br> Multiple login is not allowed";
 return;
}
?>
<script>

function tolcase(val,id1)
 {
 var uname=document.getElementById('uname').value;
 document.getElementById('uname').value=uname.toLowerCase();
 }


var x = navigator;
if(x.appCodeName!='Mozilla')
{
 alert('Invalid Browser, Use only Mozilla');
 document.location='blank.html'
}
function valid()
{
 if(document.f.branchcde.selectedIndex<=0)
  { alert('Invalid Branch'); return false;}

 if(document.f.uname.value.length<=0)
  { alert('Invalid Username'); return false;}
 if(document.f.pswd.value.length<=0)
  { alert('Invalid Password'); return false;}

}















</script>
<body onload="window.opener.close();">

  <div id="main">
		

	<div id="site_content">		

	  <div class="sidebar_container">       
		<div class="sidebar">
          <div class="sidebar_item">
<div id="modal">
<div id="content" >
</br>

	</div>
</div>




		  </div><!--close sidebar_item--> 
        </div><!--close sidebar-->  		
        <div class="sidebar">
         
        </div><!--close sidebar-->
      
 <div class="sidebar">
        
       </div>

 </div><!--close sidebar_container-->

<div style="text-align:center; padding-top:70px;color:wheat;font-weight:bold;">
<?
include("test.php");
include("includes/function.php");
?>
		
	

	<img  src="images/logo.png" width="110" height="110"  alt="login" title="logo" border='0'/><!---->

		<h1 style="font-size:34px; font-weight:bold;color:#B40431;">Online Shopping and Inventory Management System</h1>
		<div style=" margin-top:5px;padding-top:10px;">
		<table border='0' align='' class=form><tr><td width='100'></td><td><img src='images/gandhiji.jpg' width='410' height='280'/></td><td>
          	<form name='f1' action='login.php' method='post' onSubmit="return valid()">
		 <label style="font-size:16px;color:black;font-weight:bold;">Financial Year:&nbsp;&nbsp;&nbsp;&nbsp;</label><select name='fin_yr' ><option>-select-</option>
			<option value=2014>2013-14</option>
			<option value=2014>2014-15</option>
		</select>
		<br>
		 <label style="font-size:16px;color:black;font-weight:bold;">Login Date :&nbsp;&nbsp;&nbsp;&nbsp;</label>	
		               
<input type="text" id="inputField" value="<?echo date('Y-m-d');?>" name="fromdt" readonly class='dtpick'  >
		<br>


		<label>Branch:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label><select name='branchcde' ><option>-select-</option>
			<?
				include("opendb.php");
				$re=mysqli_query($db,"select brcode,brname from branch where active = 'Y' order by brcode asc")or die(mysqli_error($db));
					while($row=mysqli_fetch_array($re))
						{
 						print "<option value='$row[brcode]'>$row[brname]</option>";
						 }
			?>
		</select><br>
		<label>Username:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label><input type="text" name='uname' id='uname' class="" onkeyup="tolcase(this.value,this.id)";><br>
		<label>Password:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label><input type="password" name='pswd' class=""></br>
		<label>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label><input type="submit"  name="sub" value="LOGIN"/></td></tr></table>
</div>
</div>


</form>




	<!--jQuery-->
	

	</div><!--close site_content--> <br><br>

	<div id="content_grey">
	  
      <div class="content_grey_container_boxl">
		
	    <div class="readmore">

		  <a href="#">About Us</a>
		 </div><!--close content_grey_container_box1--> 
		</div><!--close readmore-->	 
<div  id='footer'>
	  Copyright &#169; 2015 PSN Infotech All Rights Reserved. | <A HREF='http://www.psninfotech.com' target='blank'>Powered by PSN INFOTECH(P) LTD
  </div><!--close footer-->  
	      
	
    </div><!--close content_grey-->   
 
  </div><!--close main-->
 </body>
<?
}
else
print "<script> alert('invalid page selection'); document.location='index.php';</script>";
?>
</html>
