<head>
<?php
include ("../navigation/header.php");
include ("../navigation/store_sidebar.php");
?>
<?php
	
	
	$s = $_GET['s'];
	$p = $_GET['p'];
	$_SESSION['p']=$p;
	$_SESSION['s']=$s;
	
		
	if ($s==1) {
		
		$_SESSION['category']  = $_GET['cat_group']; 
		$_SESSION['subCategory'] = $_GET['sub_cat_group']; 
		
		If ($_SESSION['category']=="Old") { ?>
<script language="javascript" type="text/javascript">
          	   window.location="store_items_list_old.php?subCatSelect=Old";
            </script>
<?php }
	    If ($_SESSION['category']=="Trusses") { ?>
<script language="javascript" type="text/javascript">
          	   window.location="store_trusses_list.php";
            </script>
<?php
		}
		
	    If ($_SESSION['category']=="Complete") { ?>
<script language="javascript" type="text/javascript">
          	   window.location="store_items_list_complete.php?subCatSelect=Complete";
            </script>
<?php
		}
		else {
		$_SESSION['subCategory'] = $_GET['sub_cat_group'];	
			
		If ($_SESSION['subCategory']=="Timber") { ?>
<script language="javascript" type="text/javascript">
          	   window.location="store_timber_list.php?width=all&depth=&class=&single=";
            </script>
<?php
		}
		If ($_SESSION['subCategory']=="Mitek") { ?>
<script language="javascript" type="text/javascript">
          	   window.location="store_items_list.php?subCatSelect=Mitek";
            </script>
<?php
		}
		If ($_SESSION['subCategory']=="Sundries") { ?>
<script language="javascript" type="text/javascript">
          	   window.location="store_items_list.php?subCatSelect=Sundries";
            </script>
<?php
		}
		If ($_SESSION['subCategory']=="Machine spares") { ?>
<script language="javascript" type="text/javascript">
          	   window.location="store_items_list.php?subCatSelect=Machine spares";
            </script>
<?php
		}
		If ($_SESSION['subCategory']=="Welding and Engineering ") { ?>
<script language="javascript" type="text/javascript">
          	   window.location="store_items_list.php?subCatSelect=Welding and Engineering";
            </script>
<?php
		}
		If ($_SESSION['subCategory']=="Tools") { ?>
<script language="javascript" type="text/javascript">
          	   window.location="store_items_list.php?subCatSelect=Tools";
            </script>
<?php
		}
		If ($_SESSION['subCategory']=="PPE") { ?>
<script language="javascript" type="text/javascript">
          	   window.location="store_items_list.php?subCatSelect=PPE";
            </script>
<?php
		}
		If ($_SESSION['subCategory']=="Consumables") { ?>
<script language="javascript" type="text/javascript">
          	   window.location="store_items_list.php?subCatSelect=Consumables";
            </script>
<?php
		}
		If ($_SESSION['subCategory']=="Lubricants") { ?>
<script language="javascript" type="text/javascript">
          	   window.location="store_items_list.php?subCatSelect=Lubricants";
            </script>
<?php
		}
		If ($_SESSION['subCategory']=="Fuel") { ?>
<script language="javascript" type="text/javascript">
          	   window.location="store_items_list.php?subCatSelect=Fuel";
            </script>
<?php
		}
		If ($_SESSION['subCategory']=="Cleaning materials") { ?>
<script language="javascript" type="text/javascript">
          	   window.location="store_items_list.php?subCatSelect=Cleaning materials";
            </script>
<?php
		}
			$_SESSION['subCategory'] = "";  
		}
	};
	
	
	
	
	
	?>
<!--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" />

<link rel="stylesheet" href="../window/dhtmlwindow_2.css" type="text/css" />
<link rel="stylesheet" href="../window/modal_2.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/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/modal_2.js"></script>
<script type="text/javascript" src="../window/dhtmlwindow_2.js"></script>

<script language="JavaScript" src="../jscript/gen_validatorv4.js"  type="text/javascript" xml:space="preserve"></script>

</head>

<body>
<div class="main_frame">
  <table id="tableMain" width="595">
    <!--begin of tableMain-->
    <tr>
      <td ><div class="page_head_frame">
          <label class="label_page_head">Store Item List</label>
        </div>
        <br />
        <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 />
                  Select category</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 />
                  Select category</div>
              </div>
              <?php } ?></td>
          </tr>
        </table>
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br /></td>
      <!--center of tableMain--> 
    </tr>
    <tr>
      <td><!--center of tableMain-->
        
        <?php 
	if ($_SESSION['p']==1) { include("storeListWiz1.php"); }
	    ?></td>
    </tr>
  </table>
</div>
<?php include ('../navigation/side_bar.php'); ?>
</body>
