
<?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>
          &nbsp;&nbsp;&nbsp;&nbsp;
          <input name="block_type_button" type="button" class="imagebutton" id="block_type_button" onClick="needToConfirm = false; MM_goToURL('parent','storeWizbase.php?p=2&s=1&category=Product&sub_cat=Production&location=Production store&item_type=salt');return document.MM_returnValue" value="Salt block" />
  &nbsp;
  <input name="block_packing_button" type="button" class="imagebutton" id="block_packing_button" onClick="needToConfirm = false; MM_goToURL('parent','storeWizbase.php?p=2&s=1&category=Product&sub_cat=Sales product&location=Product store&item_type=salt');return document.MM_returnValue" value="Salt packaging" />
  &nbsp;
  <input name="block_type_button2" type="button" class="imagebutton" id="block_type_button2" onClick="needToConfirm = false; MM_goToURL('parent','storeWizbase.php?p=2&s=1&category=Product&sub_cat=Sales product&location=Product store&item_type=dry-feed');return document.MM_returnValue" value="Eco feed" />
  &nbsp;&nbsp; &nbsp;
  <input name="direct" type="button" class="imagebutton" id="direct_button" onClick="needToConfirm = false; MM_goToURL('parent','storeWizbase.php?p=2&s=1&category=Direct material&sub_cat=&location=Direct materials store&item_type=direct');return document.MM_returnValue" value="Direct materials" />
          &nbsp;&nbsp;&nbsp;
          <input name="stores_button" type="button" class="imagebutton" id="stores_button" onClick="needToConfirm = false; MM_goToURL('parent','storeWizbase.php?p=2&s=1&category=Stores&sub_cat=&location=General store&item_type=general');return document.MM_returnValue" value="General stores" />
        </div>
        <br>
<br>
<br>
<br>
  </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');" 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 }
?>
