<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="pl" xml:lang="pl">
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<meta name="author" content="Paweł 'kilab' Balicki - kilab.pl" />
	<title>Vehicle Tracking Panel</title>
	<link href="<?php echo base_url(); ?>assets/css/960.css" rel="stylesheet" type="text/css" media="all" />
	<link href="<?php echo base_url(); ?>assets/css/reset.css" rel="stylesheet" type="text/css" media="all" />
	<link href="<?php echo base_url(); ?>assets/css/text.css" rel="stylesheet" type="text/css" media="all" />
	<link href="<?php echo base_url(); ?>assets/css/login.css" rel="stylesheet" type="text/css" media="all" />
	<script language="JavaScript">
	function validateForm()
	{
		var username=document.forms["frmUsers"]["username"].value;
		if (username==null || username=="")
		  {
		  alert("Please Enter User Name");
		  return false;
		  } 
		var password=document.forms["frmUsers"]["pass"].value;
		if (password==null || password=="")
		  {
		  alert("Please Enter Password");
		  return false;
		  }
	}	
	</script>
</head>
<body>
<div style="width: 100%;"  class="container_16">
	<div style="padding-right:0;padding-left: 0;  width:100%;" class="grid_6 prefix_5 suffix_5">
		<h1><img style="margin-left: 0px;" src="<?php echo base_url(); ?>assets/images/logo.png"></h1>
		
		<div id="login">
		<form method="post" action="<?php echo base_url(); ?>index.php/Login/process/" method="post" enctype="multipart/form-data" name="frmUsers" id="frmTransaction" onSubmit="return validateForm()">
		<?php if($this->session->flashdata('flsh_msg')) {
			?><p class="error"><?php echo $this->session->flashdata('flsh_msg'); ?></p><?php
		    } ?>
			<p>
			  <label><strong>Username</strong>
				<input type="text" class="inputText" name="username"  placeholder="Username" />
				<img id="url_user" src="<?php echo base_url(); ?>assets/images/usericon.png" alt="">
				<?php echo form_error('username'); ?>
			  </label>
			</p>
			<p>
			  <label><strong>Password</strong>
				<input type="password" class="inputText" name="pass" placeholder="password" />
				<img id="url_password" src="<?php echo base_url(); ?>assets/images/passicon.png" alt="">
				<?php echo form_error('pass'); ?>
			</label>
			</p>
			<input type="submit" class="black_button" name="btnLogin" value="login">                        
		</form>
		</div>
		<div class="footer">		
			<p class="poweredby">Powered By:  
				<a target="_blank" style="color:#ffffff;" class="smallgrey_10" href="http://joshmachines.com/">JM Design Studio Pvt. Ltd </a>&nbsp;&nbsp;&nbsp;
			</p>
		</div>
  </div>
</div>
<br clear="all" />
</body>
</html>
