<?php $pageno = 6; ?>
<!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">
<head>
	<?php include('template/head.php'); ?>
	<link rel="stylesheet" href="<?php echo base_url(); ?>assets/datepicker/jquery-ui.css" />
	<!--<script src="<?php echo base_url(); ?>assets/datepicker/jquery-1.9.1.js"></script>-->
	<script src="<?php echo base_url(); ?>assets/datepicker/jquery-ui.js"></script>
	<script type="text/javascript">
	$(function() {
		$( "#datepicker" ).datepicker({  dateFormat: "yy-mm-dd" }).val();
		$('#datepicker').datepicker('setDate', 'today');
		$( "#datepicker1" ).datepicker({  dateFormat: "yy-mm-dd" }).val();
		$('#datepicker1').datepicker('setDate', 'today');
	});
	</script>
	<script type="text/javascript">
	function ValidateForm(){
		var tag_no=document.forms["frmUsers"]["tag_no"].value;
		var VehicleNumber=document.forms["frmUsers"]["VehicleNumber"].value;
		if ((tag_no==null || tag_no=="") && (VehicleNumber==null || VehicleNumber==""))
			{
				alert("Please Enter tag no. or vehicle number");
				return false;
			}
		var from1=document.forms["frmUsers"]["from"].value;
		if (from1==null || from1=="")
			{
				alert("Please Enter from date");
				return false;
			}	
	}
	</script>
</head>
<body>
<?php include('template/header.php'); ?> 
<div class="grid_16" id="navheader">
	<?php include('template/topnav.php'); ?>
</div>
<div class="grid_16" id="tabs">
	<div class="container">
		<ul>
			<li><a href="<?php echo base_url(); ?>index.php/Administrator/LogList/" class="current"><span>Log List</span></a></li>
		</ul>
	</div>   
</div>
<div class="container_16" id="wrapper">	
    <div class="grid_16" id="content"> 
		<div class="grid_9">
			<h1 class="news_edit">Tag Info</h1>
		</div>
		<div class="grid_15" id="textcontent">
			<table style="float: right;">
				<tr> 			
					<td align="right" colspan="9">
						<a style="float:left;margin-top: -5px;margin-left: 5px;" class="button" href="<?php echo base_url(); ?>index.php/Administrator/AddLog/"><span>Add New Entry</span></a>
					</td>
				</tr>
			</table>
			<div id="table">
				<div id="user_profile_main_div">
					<div id="message">
					<?php 
					if($this->session->flashdata('flsh_msg')) {
						?><p id="success" class="info"><span class="info_inner"><?php echo $this->session->flashdata('flsh_msg'); ?></span></p> <?php
					} 
					if($this->session->flashdata('flsh_msg1')) {
						?><p id="error" class="info"><span class="info_inner"><?php echo $this->session->flashdata('flsh_msg1'); ?></span></p> <?php
					} 
					?>
					</div>
					<div class="clear"></div>
					<div style="margin: 0 auto;width: 47%;">
						<form action="<?php echo base_url(); ?>index.php/Administrator/logSearch" method="post" enctype="multipart/form-data" name="frmUsers" id="frmTransaction" onSubmit="return ValidateForm()">
							<fieldset class="topleft">
								<legend class="legend">Tag Details</legend>
								</br></br></br></br>
								<div  class="change_pwd_container_user_list">
									<label style="float: left;">Tag No.</label>
									<input type="text"  class="smallInput medium" name="tag_no">
								</div>
								<div  class="change_pwd_container_user_list">
									<label style="float: left;">Vehicle Number</label>
									<input type="text"  class="smallInput medium" name="VehicleNumber">
								</div>
								<div  class="change_pwd_container_user_list">
									<label style="float: left;">From<span style="color:red;">*</span></label>
									<input type="text"  class="smallInput medium" name="from" id="datepicker">
								</div>
								<div  class="change_pwd_container_user_list">
									<label style="float: left;">To</label>
									<input type="text"  class="smallInput medium" name="to" id="datepicker1">
								</div>
							</fieldset>
							<div class="clear"></div>
							<div style="width:100%;float:left;">
								<span class="button" style="float: left;"><input type="submit" class="buttoncc" value="Submit" name="btnLogUpdate"></span>
								<p style="float:right;"><font color="Red">Fields marked with * are mandatory&nbsp;</font></p>
							</div>
						</form>	
					</div>
				</div>
			</div>
		</div>
		<div class="clear"> </div>		
	</div>
</div>
<?php include('template/footer.php'); ?>
</body>
</html>