<head>

<?php
include ("../navigation/header.php");
include ("../navigation/production_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) {
		
			
	}
		
	if($s==2) {
		$_SESSION['production_date']=$_POST['production_date'];
	      $i=0;
		while ($i<$_SESSION['line_no2']) {
			$_SESSION['truss_no'.$i] = $_POST['truss_no_text'.$i];
			$_SESSION['bill_line_id'.$i] = $_POST['bill_line_id'.$i];
			$i++;
		}
	 
	};
	

	
	?>
<!--style sheets-->
<link rel="stylesheet" type="text/css" href="../css/wizard.css" />
<link href="../css/wait.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" />


<!--jscript-->
<script language="JavaScript" src="../jscript/confirm_exit.js"  type="text/javascript"></script>  
<script language="JavaScript" src="../jscript/cancel_confirmation.js"  type="text/javascript"></script> 
<script language="JavaScript" src="../jscript/show_hide_layers.js"  type="text/javascript"></script>  
<script type="text/javascript" src="../window/dhtmlwindow.js"></script>
<script type="text/javascript" src="../window/modal.js"></script>
</head>

<body>



<div class="main_frame" style="min-height:550px;height:auto; " >
  <table width="595" align="left" id="tableMain">
  <!--begin of tableMain-->
  <tr>
    <td >
    <div class="page_head_frame">
      <table width="681" border="0">
        <tr>
          <td width="548"><label class="label_page_head">Produce trusses </label>&nbsp;<label class="label_page_head_2"><?php echo $_SESSION['name'] ?></label></td>
          <td width="122"><label style="font-size:24px; color:#FB6808;"><?php echo "J".$_SESSION['job_no'] ?></label></td>
        </tr>
      </table>
      </div>
      <br /><br /><br /><br />

      <div class="wizard_paging_frame">
      <table align="left">
      <tr>
      <td width="56">
      <?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 />
      Job details</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 />
      Job details</div></div>
      <?php } ?>
      
      </td>
      <td width="72">
      <?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 />
      Set production</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 />
      Set production</div></div>
      <?php } ?>
     </td>
     <td width="72">
      <?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 />
      Finish</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 />
      Finish</div></div>
      <?php } ?>
     </td>
      
      </tr>
      </table>
      </div>
      </td>
          </tr>
          <tr>
            <td><?php 
	if ($_SESSION['p']==1) { include("produceWiz1.php"); }
	if ($_SESSION['p']==2) { include("produceWiz2.php"); }
	if ($_SESSION['p']==3) { include("produceWiz3.php"); }
	
		
    ?></td>
          </tr>
    </table>
    </div>
    </td>
  </tr>
</table>

</td>
</tr>
</table>  <!--end of tableMain-->


</body>
<?php include ('../navigation/side_bar.php'); ?>  