<head>
<?php 
$page_name = "Stores-main";
include ("../navigation/access.php");

if ($permission_num==1) {
	 
	?>

<!--jscript-->

</head>
<?php include('../include/wait.php') ?>
<body onLoad="MM_showHideLayers('production','','hide','stores','','hide','wait','','hide')" onFocus="MM_showHideLayers('wait','','hide');"  onBlur="MM_showHideLayers('wait','','hide');">
<form id="form1" name="form1" method="get" action="storeListWizbase.php">
  <table width=700 border="0" align="left" cellpadding="10" cellspacing="0" bordercolor="#0066FF" border-collapse="collapse">
    <tr>
      <td width="700" ><div class="wizard_frame">
          <label class="label_std">Select stores </label>
          <br>
          <table width="600" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="492"><p>
                  <label class="label_std">
                    <input name="cat_group" type="radio" id="cat_group_0" onClick="MM_showHideLayers('production','','hide','stores','','hide');MM_callJS('document.getElementById(\'sub_cat_group_20\').checked = true')" value="Complete">
                    Complete</label>
                  <label class="label_std">
                    <input name="cat_group" type="radio" id="cat_group_1" onClick="MM_showHideLayers('production','','show','stores','','hide');MM_callJS('document.getElementById(\\\'sub_cat_group_20\\\').checked = false')" value="Production">
                    Direct materials </label>
                  <label class="label_std">
                    <input name="cat_group" type="radio" id="cat_group_3" onClick="MM_showHideLayers('production','','hide','stores','','hide');MM_callJS('document.getElementById(\'sub_cat_group_20\').checked = true')" value="Trusses">
                    Trusses</label>
                  <label class="label_std">
                    <input name="cat_group" type="radio" id="cat_group_2" onClick="MM_showHideLayers('production','','hide','stores','','show');MM_callJS('document.getElementById(\\\'sub_cat_group_20\\\').checked = false')" value="Stores">
                    Stores</label>
              </td>
              <td width="108"><label class="label_std">
                  <input name="cat_group" type="radio" id="cat_group_4" onClick="MM_showHideLayers('production','','hide','stores','','hide');MM_callJS('document.getElementById(\'sub_cat_group_20\').checked = true')" value="Old">
                  Old</label></td>
            </tr>
          </table>
          <br>
          <table width="600" border="0" cellspacing="0" cellpadding="0" id='production'>
            <tr>
              <td><label class="label_std">
                  <input type="radio" name="sub_cat_group" value="Timber" id="sub_cat_group_9"  />
                  Timber</label>
                <label class="label_std">
                  <input type="radio" name="sub_cat_group" value="Mitek" id="sub_cat_group_"  />
                  Mitek products</label>
                <label class="label_std">
                  <input type="radio" name="sub_cat_group" value="Sundries" id="sub_cat_group_"  />
                  Sundries</label></td>
            </tr>
          </table>
          <table width="635"  border="0" align="left" cellpadding="0" cellspacing="0" id="stores">
            <tr>
              <td width="168" height="34"><label class="label_std">
                  <input type="radio" name="sub_cat_group" value="PPE" id="sub_cat_group_0"  />
                  PPE</label></td>
              <td width="190"><label class="label_std">
                  <input type="radio" name="sub_cat_group" value="Cleaning materials" id="sub_cat_group_16"  />
                  Cleaning materials </label></td>
              <td width="277"><label class="label_std">
                  <input type="radio" name="sub_cat_group" value="Welding and Engineering" id="sub_cat_group_11" />
                  Welding and Engineering</label></td>
            </tr>
            <tr>
              <td height="34"><label class="label_std">
                  <input type="radio" name="sub_cat_group" value="Tools" id="sub_cat_group_12"  />
                  Tools</label></td>
              <td><label class="label_std">
                  <input type="radio" name="sub_cat_group" value="Consumables" id="sub_cat_group_13"  />
                  Consumables</label></td>
              <td><label class="label_std">
                  <input type="radio" name="sub_cat_group" value="Machine spares" id="sub_cat_group_10" />
                  Machine spares</label></td>
            </tr>
            <tr>
              <td height="34"><label class="label_std">
                  <input type="radio" name="sub_cat_group" value="Fuel" id="sub_cat_group_15"  />
                  Fuel</label></td>
              <td><label class="label_std">
                  <input type="radio" name="sub_cat_group" value="Lubricants" id="sub_cat_group_14" />
                  Lubricants</label></td>
              <td><label class="label_std">
                  <input type="radio" name="sub_cat_group" value="" id="sub_cat_group_20" />
                </label></td>
            </tr>
          </table>
        </div></td>
    </tr>
    <tr>
      <td><table width="590" height="50" align="left" id="table_button_bar">
          <tr>
            <td width="117">&nbsp;</td>
            <td width="115"></td>
            <td width="99"><input name="p" type="hidden" id="p" value="1" />
              <input name="error" type="hidden" id="error" value="0" />
              <input name="s" type="hidden" id="s" value="1" /></td>
            <td width="125" align="left"><input name="cancelbutton" type="button" class="imagebutton" id="cancelbutton" onClick="needToConfirm = false; cancel_confirmation(1, '../store/store_main.php');" value="Cancel" tabindex="-1"/></td>
            <td width="110" align="left"><input type="submit" name="next_button" class="imagebutton" value="Next" onClick="needToConfirm = false; MM_showHideLayers('wait','','show');" /></td>
          </tr>
        </table></td>
    </tr>
  </table>
</form>
<!--form validation--> 
<script language="JavaScript" type="text/javascript" xml:space="preserve">
  var frmvalidator  = new Validator("form1");
  frmvalidator.EnableMsgsTogether();
  frmvalidator.addValidation("cat_group","selone","Please select a store.");
  frmvalidator.addValidation("sub_cat_group","selone","Please select a department.");
  </script>
</body>
<?php } else { 
    $_SESSION['denied_return'] = "store/store_main.php";	?>
<body onLoad="accessdenied(); return false">
</body>
<?php }
?>
