<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />


<?php
include('../include/session.php');
include ("../navigation/header.php");
include ("../navigation/transport_sidebar.php");
	
	$s = $_GET['s'];
	$p = $_GET['p'];
	$error = $_SESSION['error'];
	$_SESSION['p']=$p;
	$_SESSION['s']=$s;
	
	
	if (isset($_GET['prev_button']) )
	   {
		 $_SESSION['p']= $_SESSION['p']-1;
	   }
		 
	if (isset($_GET['next_button']) )
	  {
		$_SESSION['p']=$_SESSION['p']+1;
	  }
	
		
	
	if ($s==1) {
		 $_SESSION['reg_no'] = $_GET['reg_no_text'];
		
	}
		
	if($s==2) {
	 $_SESSION['make'] = $_GET['make_select'];
	 $_SESSION['model'] = $_GET['model_select'];
	 $_SESSION['fuel'] = $_GET['fuel_select'];
	 $_SESSION['department'] = $_GET['department_select'];
	 
	 
	};
	
	if($s==3) {
	 $_SESSION['purchase_date'] = $_GET['purchase_date'];	
	 $_SESSION['purchase_cost'] = $_GET['purchase_cost_text'];
	 $_SESSION['insurance_value'] = $_GET['insurance_value_text'];	
	 $_SESSION['chassis_no'] = $_GET['chassis_no_text'];
	 $_SESSION['engine_no'] = $_GET['engine_no_text'];
	 $_SESSION['service_interval'] = $_GET['service_interval_select'];
	 $_SESSION['clock_reading'] = $_GET['clock_reading_text'];
	 
	 
	};
	
	if($s==4) {
	 $_SESSION['license'] = $_GET['license_select'];
	 $_SESSION['ba_license'] = $_GET['ba_license_select'];
	 $_SESSION['insurance'] = $_GET['insurance_text'];
	 $_SESSION['renewal_date'] = $_GET['renewal_date'];
	 $_SESSION['notes'] = $_GET['notes_text'];
	}
	
	?>
    
<!--style sheets-->    
<link rel="stylesheet" type="text/css" href="../css/wizard.css" />
<link rel="stylesheet" type="text/css" href="../css/main.css" />
<link href="../css/main.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="../window/dhtmlwindow.css" type="text/css" />
<link rel="stylesheet" href="../window/modal.css" type="text/css" />
<link href="../css/wait.css" rel="stylesheet" type="text/css">

<!--jscript-->
<script type="text/javascript" src="../jscript/jquery.min.js"></script>
<script language="JavaScript" src="../jscript/gen_validatorv4.js"  type="text/javascript" xml:space="preserve"></script>
<script language="JavaScript" src="../jscript/cancel_confirmation.js"  type="text/javascript"></script> 
<script language="JavaScript" src="../jscript/confirm_exit.js"  type="text/javascript"></script>  
<script type="text/javascript" src="../window/dhtmlwindow.js"></script>
<script type="text/javascript" src="../window/modal.js"></script>
<script language="JavaScript" src="../jscript/show_hide_layers.js"  type="text/javascript"></script>  

</head>

<body>
<div class="main_frame">
<div class="page_head_frame">
  <label class="label_page_head">New Vehicle</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<label class="label_page_head_2"><?php echo $_SESSION['reg_no']; ?></label>
</div>
<br />
<br />
<br />
<br />

 	 <table >
      <tr>
      <td >	
      <div class="wizard_paging_frame">
      <table align="left">
      <tr>
      <td >
      <?php if ($_SESSION['p']==1) { ?>
      <div class="active_step_frame"><div class="active_step_head_label">&nbsp;1</div>
      <div class="active_step_label"><br /><br /><br />Registration no</div></div>
      <?php } else { ?>
      <div class="de_active_step_frame"><div class="de_active_step_head_label">&nbsp;1</div>
      <div class="de_active_step_label"><br /><br /><br />Registration no</div></div>
      <?php } ?>
      </td>
      <td>
      <?php if ($_SESSION['p']==2) { ?>
      <div class="active_step_frame"><div class="active_step_head_label">&nbsp;2</div>
      <div class="active_step_label"><br /><br /><br />Vehicle details</div></div>
      <?php } else { ?>
      <div class="de_active_step_frame"><div class="de_active_step_head_label">&nbsp;2</div>
      <div class="de_active_step_label"><br /><br /><br />Vehicle details</div></div>
      <?php } ?>
      </td>
      <td>
      <?php if ($_SESSION['p']==3) { ?>
      <div class="active_step_frame"><div class="active_step_head_label">&nbsp;3</div>
      <div class="active_step_label"><br /><br /><br />Vehicle details</div></div>
      <?php } else { ?>
      <div class="de_active_step_frame"><div class="de_active_step_head_label">&nbsp;3</div>
      <div class="de_active_step_label"><br /><br /><br />Vehicle details</div></div>
      <?php } ?>
      </td>
      <td>
      <?php if ($_SESSION['p']==4) { ?>
      <div class="active_step_frame"><div class="active_step_head_label">&nbsp;4</div>
      <div class="active_step_label"><br /><br /><br />Admin / notes</div></div>
      <?php } else { ?>
      <div class="de_active_step_frame"><div class="de_active_step_head_label">&nbsp;4</div>
      <div class="de_active_step_label"><br /><br /><br />Admin / notes</div></div>
      <?php } ?>
       </td>
      <td>
      <?php if ($_SESSION['p']==5) { ?>
      <div class="active_step_frame"><div class="active_step_head_label">&nbsp;5</div>
      <div class="active_step_label"><br /><br /><br />Finish</div></div>
      <?php } else { ?>
      <div class="de_active_step_frame"><div class="de_active_step_head_label">&nbsp;5</div>
      <div class="de_active_step_label"><br /><br /><br />Finish</div></div>
      <?php } ?>
           
      </td>
      </tr>
      </table>
      </div>
      </td>
      </tr>
      <tr>
      <td><?php 
	if ($_SESSION['p']==1) { include("vehicleWiz1.php"); }
	if ($_SESSION['p']==2) { include("vehicleWiz2.php"); }
	if ($_SESSION['p']==3) { include("vehicleWiz3.php"); }
	if ($_SESSION['p']==4) { include("vehicleWiz4.php"); }
	if ($_SESSION['p']==5) { include("vehicleWiz5.php"); }
    ?></td>
    </tr>
    </table>
    </div>
    
<?php include ('../navigation/side_bar.php'); ?> 
</body>


