<?php $pageno = 3; ?>
<!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-ui.js"></script>
	<script type="text/javascript">
	$(function() {
		$( "#datepicker" ).datepicker({ dateFormat: "dd-mm-yy" }).val();
		$( "#datepicker1" ).datepicker({ dateFormat: "dd-mm-yy" }).val();
		$( "#datepicker2" ).datepicker({ dateFormat: "dd-mm-yy" }).val();
	});
	</script>
	<script src="<?php echo base_url(); ?>assets/js/validateForm.js"></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/CabsList/" ><span>Master Details</span></a></li> 
			<li><a href="<?php echo base_url(); ?>index.php/Administrator/CabDayReport/" ><span>Day Report</span></a></li>
			<li><a href="<?php echo base_url(); ?>index.php/Administrator/CabReport/" ><span>Month Report</span></a></li>
		</ul>
	</div>   
</div>
<div class="container_16" id="wrapper">	
    <div class="grid_16" id="content"> 
		<div class="grid_9">
			<h1 class="reports">Add Cab Info</h1>
		</div>
		<div class="grid_15" id="textcontent">
			<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 CabValidateForm()">
						<fieldset class="topleft">
							<legend class="legend">Vehicle Detailss</legend>
							<div  class="change_pwd_container_user_list">
								<label style="float: left;">Tag Id<span style="color:red;">*</span></label>
								<input type="text"  class="smallInput medium" name="tag_no">
							</div>
							<div  class="change_pwd_container_user_list">
								<label style="float: left;">Alias Tag<span style="color:red;"></span></label>
								<input type="text" class="smallInput medium" name="alias_tag">
							</div>
							<div  class="change_pwd_container_user_list">
								<label style="float: left;">Shift<span style="color:red;"></span></label>
								<div style="float: right;margin: -5px;" id="login_mode">
									<div id="login_type">
										<input type="radio" value="D" name="shift" checked> Day
									</div>
									<div id="login_type">
										<input type="radio" value="N" name="shift" > Night
									</div>
									<div class="clear"></div>
								</div>
							</div>
							<div  class="change_pwd_container_user_list">
								<label style="float: left;">Vehicle Type<span style="color:red;"></span></label>
								<input type="text" class="smallInput medium" name="cab_type">
							</div>
							<div  class="change_pwd_container_user_list">
								<label style="float: left;">Vendor Name<span style="color:red;"></span></label>
								<input type="text" class="smallInput medium" name="vender">
							</div>
							<div  class="change_pwd_container_user_list">
								<label style="float: left;">Model Of The Bus (Year)<span style="color:red;"></span></label>
								<input type="text" class="smallInput medium" name="Vehicle_model">
							</div>
							<div  class="change_pwd_container_user_list">
								<label style="float: left;">Registration Date<span style="color:red;"></span></label>
								<input type="text" class="smallInput medium" name="registration_date" id="datepicker2">
							</div>
							<div  class="change_pwd_container_user_list">
								<label style="float: left;">Fitness<span style="color:red;"></span></label>
								<input type="text" class="smallInput medium" name="fitness">
							</div>
							<div  class="change_pwd_container_user_list">
								<label style="float: left;">Permit<span style="color:red;"></span></label>
								<input type="text" class="smallInput medium" name="permit">
							</div>
							
							<div  class="change_pwd_container_user_list">
								<label style="float: left;">Vehicle Reg. Number<span style="color:red;">*</span></label>
								<input type="text" class="smallInput medium" name="vehicle_number">
							</div>
							<div  class="change_pwd_container_user_list">
								<label style="float: left;">Insurance Expiry Date<span style="color:red;">*</span></label>
								<input type="text"  class="smallInput medium" name="insurance_expiry_date" id="datepicker">
							</div>
							<div  class="change_pwd_container_user_list">
								<label style="float: left;">Pollution Expiry Date<span style="color:red;">*</span></label>
								<input type="text"  class="smallInput medium" name="pollution_expiry_date" id="datepicker1">
							</div>
							<div  class="change_pwd_container_user_list" style="display:none;">
								<label style="float: left;">Charges (Per day bases)<span style="color:red;">*</span></label>
								<input type="text"  class="smallInput medium" name="charges">
							</div>
							<div  class="change_pwd_container_user_list">
								<label style="float: left;">Any Remark</label></label>
								<textarea style="width:257px;float: right;" id="editor1" class="ckeditor smallInput wide" name="remark"></textarea>	
							</div>
						</fieldset>
					
						<fieldset class="topright">
							<legend class="legend">Driver Details</legend>
							<div  class="change_pwd_container_user_list">
								<label style="float: left;">Driver Name<span style="color:red;"></span></label>
								<input type="text"  class="smallInput medium" name="driver_name">
							</div>
							<div  class="change_pwd_container_user_list">
								<label style="float: left;">License Number</label><span style="color:red;"></span></label>
								<input type="text"  class="smallInput medium" name="license_number">
							</div>
							<div  class="change_pwd_container_user_list">
								<label style="float: left;">Contact Number</label><span style="color:red;"></span></label>
								<input type="text"  class="smallInput medium" name="contact_number">
							</div>
							<div  class="change_pwd_container_user_list">
								<label style="float: left;">Emergency Contact <br>Person Name</label><span style="color:red;"></span></label>
								<input type="text"  class="smallInput medium" name="emergency_contact_person">
							</div>
							<div  class="change_pwd_container_user_list">
								<label style="float: left;">Emergency Number</label><span style="color:red;"></span></label>
								<input type="text"  class="smallInput medium" name="emergency_number">
							</div>
							<div  class="change_pwd_container_user_list">
								<label style="float: left;">Relationship</label>
								<input type="text"  class="smallInput medium" name="relationship">
							</div>
							<div  class="change_pwd_container_user_list">
								<label style="float: left;">Address</label><span style="color:red;"></span></label>
								<textarea style="width:257px;float: right;height: 183px;" id="editor1" class="ckeditor smallInput wide" name="address"></textarea>	
							</div>
							<div  class="change_pwd_container_user_list">
								<label style="float: left;">City</label><span style="color:red;"></span></label>
								<input type="text"  class="smallInput medium" name="city">
							</div>
							<div  class="change_pwd_container_user_list">
								<label style="float: left;">State</label><span style="color:red;"></span></label>
								<input type="text"  class="smallInput medium" name="state">
							</div>
							<div  class="change_pwd_container_user_list">
								<label style="float: left;">ZIP/Postal&nbsp;Code</label></label>
								<input type="text"  class="smallInput medium" name="pincode">
							</div>
						</fieldset>
					
						<fieldset class="bottemleft" style="margin-top: 10px;">
							<legend class="legend">Status:</legend>
							<div style="float:left;" id="login_mode" style="margin: 22px 0;">
								<div id="login_type">
									<input type="radio" value="A" name="status" checked> Activated
								</div>
								<div id="login_type">
									<input type="radio" value="D" name="status"> Deactivated
								</div>
								<div class="clear"></div>
							</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="btnCabAdd"></span>
							<span class="button" style="float: left;"><input type="reset" class="buttoncc" value="Reset" name="reset"></span>
							<a href="<?php echo base_url(); ?>index.php/Administrator/CabsList" class="button" style=";margin-left: 5px;float: left;"><span>Back</span></a>
							<p style="float:right;"><font color="Red">Fields marked with * are mandatory&nbsp;</font></p>
						</div>
						
					</form>	
				</div>
			</div>
		</div>
		<div class="clear"> </div>		
	</div>
</div>
<?php include('template/footer.php'); ?>
</body>
</html>