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

if ($permission_num==1) {
	 
	?>
    
<?php
$_SESSION['store'] ="";
	 $_SESSION['sub_cat'] ="";
     $_SESSION['productId'] ="";
	 $_SESSION['productName'] ="";
	 $_SESSION['accountNo'] ="";
     $_SESSION['supplierName'] = "";
	 $_SESSION['deliveryNote'] = "";
	 $_SESSION['quantity'] = "";
	 $_SESSION['price'] = "";
	 $_SESSION['receiveDate']  = date('Y-m-d');
	 ?>


</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 } ?> <?php $_SESSION['store_item_id'] ="";  $_SESSION['store_item_name'] =""; ?> " onFocus="MM_showHideLayers('wait','','hide');"  onBlur="MM_showHideLayers('wait','','hide');">

<div class="page_middle_frame">					
<form id="form1" name="form1" method="get" action="deliverWizbase.php">
   <br />
        <br />
        <label class="label_std">Direct materials:</label>
        <div class="wizard_frame">
          <input name="job_button" type="button" class="imagebutton" id="job_button" onClick="needToConfirm = false; MM_goToURL('parent','deliverWizbase.php?p=2&s=1&cat_group=Direct materials&sub_cat_group=Timber');return document.MM_returnValue" value="Timber" />
          &nbsp;&nbsp;&nbsp;&nbsp;
          <input name="cash_button" type="button" class="imagebutton" value="Mitek products" onClick="needToConfirm = false; MM_goToURL('parent','deliverWizbase.php?p=2&s=1&cat_group=Direct materials&sub_cat_group=Mitek');return document.MM_returnValue"/>
          &nbsp;&nbsp;&nbsp;&nbsp;
          <input name="cash_button2" type="button" class="imagebutton" value="Sundries" onClick="needToConfirm = false; MM_goToURL('parent','deliverWizbase.php?p=2&s=1&cat_group=Direct materials&sub_cat_group=Sundries');return document.MM_returnValue"/>
          &nbsp;&nbsp;</div>
        
        <label class="label_std"><br>
          <br>
          <br>
<br>
          Other:</label>
        <br />
        <div class="wizard_frame">
          <label class="label_std">Select other store lists here:</label>
          &nbsp;&nbsp;
            <select name="job_no_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="deliverWizbase.php?p=2&s=1&cat_group=Stores&sub_cat_group=Cleaning materials">Cleaning materials</option>
              <option value="deliverWizbase.php?p=2&s=1&cat_group=Stores&sub_cat_group=Consumables">Consumables</option>
              <option value="deliverWizbase.php?p=2&s=1&cat_group=Stores&sub_cat_group=Fuels">Fuel</option>
              <option value="deliverWizbase.php?p=2&s=1&cat_group=Stores&sub_cat_group=Lubricants">Lubricants</option>
              <option value="deliverWizbase.php?p=2&s=1&cat_group=Stores&sub_cat_group=Machine spares">Machine spares</option>
              <option value="deliverWizbase.php?p=2&s=1&cat_group=Stores&sub_cat_group=PPE">PPE</option>
              <option value="deliverWizbase.php?p=2&s=1&cat_group=Stores&sub_cat_group=Tools">Tools</option>
              <option value="deliverWizbase.php?p=2&s=1&cat_group=Stores&sub_cat_group=Welding and Engineering">Welding &amp; Engineering</option>
              <option value=" " selected="selected"> </option>
            </select>
          </div>
        <br />
        <br />
      
      <div class="button_bar_frame"><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">&nbsp;</td>
          </tr>
      </table>
      </div>
  </form>
</div>
<!--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>
</div>
</body>
<?php } else { 
    $_SESSION['denied_return'] = "store/store_main.php";	?>
<body onLoad="accessdenied(); return false">
</body>
<?php }
?>