<!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>
	<title>Vehicle Tracking Panel</title>
	<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/main-style.css" media="screen" />
</head>
<body>			
<div id="main" style="height: auto;margin: 0 auto;padding: 5px;width: 600px;height:auto;">
			<div id="right_heading_panel">
				<div id="right_heading">Vehicle Details<em>( <?php echo  $query['tag_no']; ?> )</em></div>
				<div class="clear"></div>
			</div>
			<div id="table">
				<div id="user_profile_main_div">
					<div class="viewtest">
						<div class="viewtitle">Vehicle</div>
						<div class="viewtext"><?php echo $query['vehicle_type']; ?></div>
					</div>
					<?php if($query['vehicle_type'] == 'Bus') { ?>
					<div class="viewtest">
						<div class="viewtitle">Route Number </div>
						<div class="viewtext"><?php echo $query['route_no']; ?></div>
					</div>
					<div class="viewtest">
						<div class="viewtitle">Route Name </div>
						<div class="viewtext"><?php echo $query['route_details']; ?></div>
					</div><div class="viewtest">
						<div class="viewtitle">Zone </div>
						<div class="viewtext"><?php echo $query['route_zone']; ?></div>
					</div>
					<div class="viewtest">
						<div class="viewtitle">Fuel Type </div>
						<div class="viewtext"><?php echo $query['route_fuel_type']; ?></div>
					</div>
					<div class="viewtest">
						<div class="viewtitle">KM's  - To & Fro </div>
						<div class="viewtext"><?php echo $query['route_kms_to_fro']; ?></div>
					</div>
					<div class="viewtest">
						<div class="viewtitle">Seating Capacity </div>
						<div class="viewtext"><?php echo $query['seating_capacity']; ?></div>
					</div>
					<div class="viewtest">
						<div class="viewtitle">Acutal Seating Capacity </div>
						<div class="viewtext"><?php echo $query['acutal_seating_capacity']; ?></div>
					</div>
					<?php } else { ?>
					<div class="viewtest">
						<div class="viewtitle">Vehicle Type </div>
						<div class="viewtext"><?php echo $query['cab_type']; ?></div>
					</div>
					<?php }?>
					<div class="viewtest">
						<div class="viewtitle">Vendor </div>
						<div class="viewtext"><?php echo $query['vender']; ?></div>
					</div>
					<div class="viewtest">
						<div class="viewtitle">Model Of Vehicle (Year)</div>
						<div class="viewtext"><?php echo $query['Vehicle_model']; ?></div>
					</div>
					<div class="viewtest">
						<div class="viewtitle">Registration Date </div>
						<div class="viewtext"><?php echo $query['registration_date']; ?></div>
					</div>
					<div class="viewtest">
						<div class="viewtitle">Fitness </div>
						<div class="viewtext"><?php echo $query['fitness']; ?></div>
					</div>
					<div class="viewtest">
						<div class="viewtitle">Permit </div>
						<div class="viewtext"><?php echo $query['permit']; ?></div>
					</div>
					
					<div class="viewtest">
						<div class="viewtitle">Vehicle Number </div>
						<div class="viewtext"><?php echo $query['vehicle_number']; ?></div>
					</div>
					<div class="viewtest">
						<div class="viewtitle">Insurance Expiry Date </div>
						<div class="viewtext"><?php echo $query['insurance_expiry_date']; ?></div>
					</div>
					<div class="viewtest">
						<div class="viewtitle">Pollution Expiry Date </div>
						<div class="viewtext"><?php echo $query['pollution_expiry_date']; ?></div>
					</div>
					<?php 
					if($query['vehicle_type'] == 'Bus'){ ?>
						<div class="viewtest">
						<div class="viewtitle">Charges</div>
						<div class="viewtext"><?php echo $query['charges']; ?> Rs.</div>
					</div> 	
					<?php } ?>
					
					<div id="right_heading_panel">
						<div id="right_heading">Driver Details</div>
						<div class="clear"></div>
					</div>
					
					<div class="viewtest">
						<div class="viewtitle">Driver Name </div>
						<div class="viewtext"><?php echo $query['driver_name']; ?></div>
					</div>
					<div class="viewtest">
						<div class="viewtitle">Contact Number </div>
						<div class="viewtext"><?php echo $query['contact_number']; ?></div>
					</div>
					<div class="viewtest">
						<div class="viewtitle">Emergency Contact Person Name </div>
						<div class="viewtext"><?php echo $query['emergency_contact_person']; ?></div>
					</div>
					<div class="viewtest">
						<div class="viewtitle">Emergency Number </div>
						<div class="viewtext"><?php echo $query['emergency_number']; ?></div>
					</div>
					<div class="viewtest">
						<div class="viewtitle">Relationship </div>
						<div class="viewtext"><?php echo $query['relationship']; ?></div>
					</div>
					<div class="viewtest">
						<div class="viewtitle">License Number </div>
						<div class="viewtext"><?php echo $query['license_number']; ?></div>
					</div>
					<div class="viewtest">
						<div class="viewtitle">Address </div>
						<div class="viewtext"><?php echo $query['address']; ?></div>
					</div>
					<div class="viewtest">
						<div class="viewtitle">City </div>
						<div class="viewtext"><?php echo $query['city']; ?></div>
					</div>
					<div class="viewtest">
						<div class="viewtitle">State </div>
						<div class="viewtext"><?php echo $query['state']; ?></div>
					</div>
					<div class="viewtest">
						<div class="viewtitle">Pin Code </div>
						<div class="viewtext"><?php echo $query['pincode']; ?></div>
					</div>
					
					<div id="right_heading_panel">
						<div id="right_heading">Any Remark</div>
						<div class="clear"></div>
					</div>
					<div class="viewtest">
						<div class="viewtitle">Remark </div>
						<div class="viewtext"><?php if($query['remark'] == '') { echo "No Remark"; } else { echo $query['remark']; } ?></div>
					</div>
				</div>
			</div>
</div>
<div class="clear"></div>
</body>
</html>