<!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: "dd-mm-yy" }).val();
		$( "#datepicker1" ).datepicker({ dateFormat: "dd-mm-yy" }).val();
	});
	</script>
	<!--<script language="JavaScript">
	function validateForm()
	{
		var Name=document.forms["frmUsers"]["Name"].value;
		if (Name==null || Name=="")
		  {
		  alert("Please Enter Employee Name");
		  return false;
		  }
		var contactNo=document.forms["frmUsers"]["contactNo"].value;
		if (contactNo==null || contactNo=="")
		  {
		  alert("Please Enter Contact Number");
		  return false;
		  }
		if(!validateNumeric(contactNo))
			{
			alert("Enter a Valid CONTACT NUMBER");
			return false;
			} 
		var VanderCode=document.forms["frmUsers"]["VanderCode"].value;
		if (VanderCode==null || VanderCode=="")
		  {
		  alert("Please Enter Employee Id");
		  return false;
		  }
		var designation=document.forms["frmUsers"]["designation"].value;
		if (designation==null || designation=="")
		  {
		  alert("Please Enter Designation");
		  return false;
		  }
		var department=document.forms["frmUsers"]["department"].value;
		if (department==null || department=="")
		  {
		  alert("Please Enter Department");
		  return false;
		  }  
		
		
		var address=document.forms["frmUsers"]["address"].value;
		if (address==null || address=="")
		  {
		  alert("Please Enter Address");
		  return false;
		  }
		  
		var city=document.forms["frmUsers"]["city"].value;
		if (city==null || city=="")
		  {
		  alert("Please Enter City Name");
		  return false;
		  }
		
		var state=document.forms["frmUsers"]["state"].value;
		if (state==null || state=="")
		  {
		  alert("Please Enter State Name");
		  return false;
		  }
		  
		var phoneCountryCode=document.forms["frmUsers"]["phoneCountryCode"].value;
		if (phoneCountryCode==null || phoneCountryCode=="")
		  {
		  alert("Please Enter Country");
		  return false;
		  }	
			
		function validateNumeric(numValue){
		if (!numValue.toString().match(/^[-]?\d*\.?\d*$/)) 
				return false;
		return true;		
		}			
	}	
	</script>-->
</head>
<body>
	<?php include('template/header.php'); ?>
	<div id="main_container">
		<div id="Left_container">
			<?php include('template/sidebar.php'); ?>
		</div>		
		<div id="main">
			<div id="right_heading_panel">
				<div id="right_heading">Employee Details</div>
				<div class="clear"></div>
			</div>
			<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>
					<form action="<?php echo base_url(); ?>index.php/Administrator/Vehicleprocess" method="post" enctype="multipart/form-data" name="frmUsers" id="frmTransaction" onSubmit="return validateForm()">
					<?php //$query = $query;		 ?>
					<fieldset style="margin-bottom:10px;">
						<legend class="legend">Vehicle Details</legend>
						<div class="change_pwd_container_user_list">Tag Id<span style="color:red;">*</span> :
							<input type="text" class="old_pwd" name="tag_id"  value="<?php echo $query['tag_id']; ?>" id="firstName" />
							<input type="hidden" class="old_pwd" name="vehicle_id"  value="<?php echo $query['vehicle_id']; ?>" id="owner_id" />
						</div>
						<div class="change_pwd_container_user_list">Vehicle Reg. Number<span style="color:red">*</span> :
							<input type="text" class="old_pwd" name="vehicle_number"  value="<?php echo $query['vehicle_number']; ?>" id="contactNo" />
						</div>
						<div class="change_pwd_container_user_list">Insurance Expiry Date<span style="color:red">*</span> :
							<input type="text" class="old_pwd" name="insurance_expiry_date"  value="<?php echo $query['insurance_expiry_date']; ?>" id="datepicker" />
						</div>
						<div class="change_pwd_container_user_list">Pollution Expiry Date<span style="color:red">*</span> :
							<input type="text" class="old_pwd" name="pollution_expiry_date"  value="<?php echo $query['pollution_expiry_date']; ?>" id="datepicker1" />
						</div>
						</fieldset>
						<div class="clear"></div>
						<fieldset style="margin-bottom:10px;">
							<legend class="legend">Driver Details</legend>
							<div class="change_pwd_container_user_list">Driver Name<span class="red">*</span> :
								<input type="text" class="old_pwd" name="driver_name"  value="<?php echo $query['driver_name']; ?>" id="driver_name" />
							</div>
							<div class="change_pwd_container_user_list">Contact Number<span class="red">*</span> :
								<input type="text" class="old_pwd" name="contact_number"  value="<?php echo $query['contact_number']; ?>" id="contact_number" />
							</div>
							<div class="change_pwd_container_user_list">Emergency Number<span class="red">*</span> :
								<input type="text" class="old_pwd" name="emergency_number"  value="<?php echo $query['emergency_number']; ?>" id="emergency_number" />
							</div>
							<div class="change_pwd_container_user_list">License Number<span class="red">*</span> :
								<input type="text" class="old_pwd" name="license_number"  value="<?php echo $query['license_number']; ?>" id="license_number" />
							</div>
						</fieldset>
						<div class="clear"></div>
						<fieldset style="margin-bottom:10px;">
						<legend class="legend">Address Details</legend>
						<div class="change_pwd_container_address">Address<span style="color:#D33D25;">*</span> :
							<input type="text" class="old_pwd_address" name="address"  value="<?php echo $query['address']; ?>" id="address" style="margin-right: 86px;width: 665px;" />
						</div>
						<div class="change_pwd_container_user_list">City<span class="red">*</span> :
							<input type="text" class="old_pwd" name="city"  value="<?php echo $query['city']; ?>" id="city"/></td>
						</div>
						<div class="change_pwd_container_user_list">State&nbsp;Province<span class="red">*</span> :
							<input type="text" class="old_pwd" name="state"  value="<?php echo $query['state']; ?>" id="state"/></td>
						</div>
						<div class="change_pwd_container_user_list">ZIP/Postal&nbsp;Code :
							<input type="text" class="old_pwd" name="pincode"  value="<?php echo $query['pincode']; ?>" id="ZIP"/>
						</div>
						<div class="change_pwd_container_user_list">Country<span class="red">*</span> :
							<input type="text" class="old_pwd" name="country"  value="<?php echo $query['country']; ?>" id="ZIP"/>
						</div>
						</fieldset>
						<div class="clear"></div>
						<fieldset style="margin-bottom:10px;">
						<legend class="legend">Status:</legend>
						<div id="login_mode" style="float:left;">
								<div id="login_type">
									<input type="radio" name="status" value="A" <?php if($query['status']=='A') { ?> checked <?php } ?> >
									<label for="admin_login">Activated</label>
								</div>
								<div id="login_type">
									<input type="radio" name="status" value="D" <?php if($query['status']=='D') { ?> checked <?php } ?>>
									<label for="user_login">Deactivated</label>
								</div>
								<div class="clear"></div>
							</div>
						</fieldset>
						<input type="submit" name="btnUpdate" class="read_more" id="btnsubmit" value="Update" />
						<input type="button" name="backtolist" value="Back" class="read_more" id="btnsubmit" onclick="window.location.href='<?php echo base_url(); ?>index.php/Administrator/ClientList'"  />
					</form>	
				</div>
			</div>
		</div>
		<div class="clear"></div>
	</div>
	<?php include('template/footer.php'); ?>
</body>
</html>