
<?php 
$page_name = "Stores-new item";
include ("../navigation/access.php");

if ($permission_num==1) {
	 
	?>

</head>

<?php include('../include/wait.php') ?>

<body onLoad="MM_showHideLayers('Production','','hide','Stores','','hide', 'wait','','hide'); <?php if ($_SESSION['category'] == "Production") { ?> MM_showHideLayers('Production','','show'); <?php } ?> <?php if ($_SESSION['category'] == "Stores") { ?>  MM_showHideLayers('Stores','','show'); <?php } ?> " onFocus="MM_showHideLayers('wait','','hide'); "  onBlur="MM_showHideLayers('wait','','hide');">

<div class="page_middle_frame">
  <form id="form1" name="form1" method="get" action="storeWizbase.php">
    <table width=595 border="0" align="left" cellpadding="10" cellspacing="0" bordercolor="#0066FF" border-collapse="collapse">
    <tr>
      <td width="525" height="267" align="left" valign="top" >&nbsp;<br>
        <div class="wizard_frame">Select category::<br><br>
   <input name="production_button" type="button" class="imagebutton" id="production_button" onClick="needToConfirm = false; MM_goToURL('parent','storeWizbase.php?p=2&s=1&category=Production&sub_cat=');return document.MM_returnValue" value="Production materials" />
&nbsp;&nbsp;&nbsp;&nbsp;
          <input name="tiles_button" type="button" class="imagebutton" id="tiles_button" onClick="needToConfirm = false; MM_goToURL('parent','storeWizbase.php?p=2&s=1&category=Product&sub_cat=Tiles');return document.MM_returnValue" value="Tiles" />
  &nbsp;&nbsp;&nbsp;&nbsp;
  <input name="accessories_button" type="button" class="imagebutton"  id="mitek_button" value="Accessories" onClick="needToConfirm = false; MM_goToURL('parent','storeWizbase.php?p=2&s=1&category=Product&sub_cat=Accessories');return document.MM_returnValue"/>
  &nbsp;&nbsp;&nbsp;&nbsp;
  </div>
        <br>
<br>
<br>
<br>
<div class="wizard_frame">
  <label class="label_std">Select other store sub category here:</label>
  &nbsp;&nbsp;
  <select name="store_list_select" class="select200" id="store_list_select" onChange=" needToConfirm = false; window.location.href= this.form.store_list_select.options[this.form.store_list_select.selectedIndex].value; " >
    <option value="storeWizbase.php?p=2&s=1&category=Stores&sub_cat=Cleaning materials">Cleaning materials</option>
    <option value="storeWizbase.php?p=2&s=1&category=Stores&sub_cat=Consumables">Consumables</option>
    <option value="storeWizbase.php?p=2&s=1&category=Stores&sub_cat=Fuels">Fuel</option>
    <option value="storeWizbase.php?p=2&s=1&category=Stores&sub_cat=Lubricants">Lubricants</option>
    <option value="storeWizbase.php?p=2&s=1&category=Stores&sub_cat=Machine spares">Machine spares</option>
    <option value="storeWizbase.php?p=2&s=1&category=Stores&sub_cat=Motor spares">Motor spares</option>
    <option value="storeWizbase.php?p=2&s=1&category=Stores&sub_cat=Vortex Hydra spares">Vortex Hydra spares</option>
    <option value="storeWizbase.php?p=2&s=1&category=Stores&sub_cat=PPE">PPE</option>
    <option value="storeWizbase.php?p=2&s=1&category=Stores&sub_cat=Tools">Tools</option>
    <option value="storeWizbase.php?p=2&s=1&category=Stores&sub_cat=Welding and Engineering">Welding &amp; Engineering</option>
    <option value=" " selected="selected"> </option>
  </select>
</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?date=0&subCatSelect=Tiles');" value="Cancel"  tabindex="-1"/></td>
            <td width="110" align="left">&nbsp;</td>
          </tr>
      </table></td>
    </tr>
  </table>
</form>
</div>
<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 { ?>
<script> needToConfirm = false; </script>
<?php
    $_SESSION['denied_return'] = "store/store_main.php?date=0&subCatSelect=Tiles";	?>
<body onLoad="accessdenied(); return false">
</body>
<?php }
?>
