<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php

include ("../navigation/header.php");
include ("../navigation/store_sidebar.php");

	$s = $_GET['s'];
	$p = $_GET['p'];
	$l = $_GET['l'];
	
	$_SESSION['s']=$s;
	$_SESSION['l']=$l;
	$_SESSION['p']=$p;
	
	
	
	if (isset($_GET['prev_button']) )
	   {
		 $_SESSION['p']= $_SESSION['p']-1;
	   }
		 
	if (isset($_GET['next_button']) )
	  {
		$_SESSION['p']=$_SESSION['p']+1;
	  }
	
	

	if ($s==1) {
		$_SESSION['stores_group'] = $_GET['store_list_select'];
		$_SESSION['supply_group'] = $_GET['supply_to_select'];
		$_SESSION['issue_date'] = $_GET['issue_date'];
		$_SESSION['authorised_by' ]= $_GET['authorised_by_select'];	
		$_SESSION['issued_by'] = $_GET['issued_by_select'];	
				

	};
	
	if($s==2) {
			  	$_SESSION['store_item_id'] = $_GET['store_item_select'];
				$_SESSION['supply_to'] = $_GET['supply_to_select'];	
				if ($_SESSION['supply_group']=='employee') {$_SESSION['received_by'] = $_GET['received_text']; }	
				if ($_SESSION['supply_group']=='department') {$_SESSION['received_by'] = $_GET['received_select']; }
				if ($_SESSION['supply_group']=='company') {$_SESSION['received_by'] = $_GET['received_text']; }	
	   			$_SESSION['supply_qty'] = $_GET['qty_select'];
				$_SESSION['available_stock'] = $_GET['available_text'];
				$_SESSION['supply_reason'] = $_GET['reason_text'];	
		
	};
	

	?>

<!--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 type="text/javascript" src="../window/dhtmlwindow.js"></script>
<script type="text/javascript" src="../window/modal.js"></script>
<script language="JavaScript" src="../jscript/gen_validatorv4.js"  type="text/javascript" xml:space="preserve"></script>
<script type="text/javascript" src="../jscript/jquery.1.4.2.js"></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 language="JavaScript" src="../jscript/show_hide_layers.js"  type="text/javascript"></script>
<script language="JavaScript" src="../jscript/alert_message.js"  type="text/javascript"></script>
<script language="JavaScript" src="../jscript/numbers_only_decimal.js"  type="text/javascript"></script> 
<script language="JavaScript" src="../jscript/numbers_only.js"  type="text/javascript"></script> 
<script language="JavaScript" src="../jscript/upper_case.js"  type="text/javascript"></script>   
 


<div class="main_frame">
<div class="page_head_frame">
          <label class="label_page_head">Internal Supply</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>
                <div class="active_step_label">
                  Department</div>
              <?php } else { ?>
              <div class="de_active_step_frame">
                <div class="de_active_step_head_label">&nbsp;1</div></div>
                <div class="de_active_step_label">
                  Department</div>
              <?php } ?></td>
            <td><?php if ($_SESSION['p']==2) { ?>
              <div class="active_step_frame">
                <div class="active_step_head_label">&nbsp;2</div></div>
                <div class="active_step_label">
                  Items</div>
             <?php } else { ?>
              <div class="de_active_step_frame">
                <div class="de_active_step_head_label">&nbsp;2</div></div>
                <div class="de_active_step_label">
                  Items</div>
            <?php } ?></td>
            <td><?php if ($_SESSION['p']==3) { ?>
              <div class="active_step_frame">
                <div class="active_step_head_label">&nbsp;3</div></div>
                <div class="active_step_label">
                  Finish</div>
             <?php } else { ?>
              <div class="de_active_step_frame">
                <div class="de_active_step_head_label">&nbsp;3</div></div>
                <div class="de_active_step_label">
                  Finish</div>
              <?php } ?></td>
          </tr>
        </table>
        </div>
        </td>
       </tr>
    <tr>
    <td>
        
        <?php 
	if ($_SESSION['p']=='1') { include("supply_internalWiz1.php"); }
	if ($_SESSION['p']=='2') { include("supply_internalWiz2.php"); }
	if ($_SESSION['p']=='3') { include("supply_internalWiz3.php"); }
	
	
    ?></td>
    </tr>
  </table>
</div>


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


