<head>

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


date_default_timezone_set('Africa/Gaborone');
$entry_date = date("Y-m-d H:i:s", time());
$ip_address = $_SERVER['REMOTE_ADDR'];


if ($permission_num==1) {
	 
	?>
<script language="JavaScript" src="../jscript/go_to_url.js"  type="text/javascript"></script> 
</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="voorraad_teller_base.php">

 
<div class="wizard_frame">
          <label class="label_std">Full count:</label>
          <br>
          <br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          
            <input name="tiles_button" type="button" class="imagebutton" id="tiles_button" onClick="needToConfirm = false; MM_goToURL('parent','voorraad_teller_base.php?p=2&s=1&cat_group=Product&sub_cat_group=Tiles&stock_select=full');return document.MM_returnValue" value="Tiles" />
            &nbsp;&nbsp;&nbsp;&nbsp;
            <input name="accessories_button" type="button" class="imagebutton" value="Accessories" onClick="needToConfirm = false; MM_goToURL('parent','voorraad_teller_base.php?p=2&s=1&cat_group=Product&sub_cat_group=Accessories&stock_select=full');return document.MM_returnValue"/>
            &nbsp;&nbsp;&nbsp;
            <input name="production_button" type="button" class="imagebutton" id="production_button" onClick="needToConfirm = false; MM_goToURL('parent','voorraad_teller_base.php?p=4&s=&cat_group=Production&sub_cat_group=&stock_select=full');return document.MM_returnValue" value="Production materials" />
            &nbsp;
            
            
              <br>
              <br>
<label class="label_std">Select other store lists 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="voorraad_teller_base.php?p=2&s=1&stock_select=full&cat_group=Stores&sub_cat_group=Cleaning materials">Cleaning materials</option>
    <option value="voorraad_teller_base.php?p=2&s=1&stock_select=full&cat_group=Stores&sub_cat_group=Consumables">Consumables</option>
    <option value="voorraad_teller_base.php?p=2&s=1&stock_select=full&cat_group=Stores&sub_cat_group=Fuel">Fuel</option>
    <option value="voorraad_teller_base.php?p=2&s=1&stock_select=full&cat_group=Stores&sub_cat_group=Lubricants">Lubricants</option>
    <option value="voorraad_teller_base.php?p=2&s=1&stock_select=full&cat_group=Stores&sub_cat_group=Machine spares">Machine spares</option>
    <option value="voorraad_teller_base.php?p=2&s=1&stock_select=full&cat_group=Stores&sub_cat_group=Vortex Hydra spares">Vortex Hydra spares</option>
    <option value="voorraad_teller_base.php?p=2&s=1&stock_select=full&cat_group=Stores&sub_cat_group=PPE">PPE</option>
    <option value="voorraad_teller_base.php?p=2&s=1&stock_select=full&cat_group=Stores&sub_cat_group=Tools">Tools</option>
    <option value="voorraad_teller_base.php?p=2&s=1&stock_select=full&cat_group=Stores&sub_cat_group=Welding and Engineering">Welding &amp; Engineering</option>
    <option value=" " selected="selected"> </option>
  </select>
          </div>
          <br>
<br>
<br><br>
<br>
<br>
<br>
<br>
<div class="wizard_spacer_frame" style="height:60px;"></div>

          <div class="wizard_frame">
            <label class="label_std">Stock adjustment (Single count):</label>
            <br>
            <br>
<input name="tiles_button2" type="button" class="imagebutton" id="tiles_button2" onClick="needToConfirm = false;MM_goToURL('parent','voorraad_teller_base.php?p=2&amp;s=1&amp;cat_group=Direct materals&amp;sub_cat_group=Tiles&amp;stock_select=single');return document.MM_returnValue" value="Tiles" />
  &nbsp;&nbsp;&nbsp;&nbsp;
  <input name="accessories_button2" type="button" class="imagebutton" value="Accessories" onClick="needToConfirm = false;MM_goToURL('parent','voorraad_teller_base.php?p=2&amp;s=1&amp;cat_group=Direct materals&amp;sub_cat_group=Accessories&amp;stock_select=single');return document.MM_returnValue"/>
&nbsp;&nbsp;&nbsp;
<input name="tiles_button3" type="button" class="imagebutton" id="tiles_button3" onClick="needToConfirm = false;MM_goToURL('parent','voorraad_teller_base.php?p=2&s=1&cat_group=Production&sub_cat_group=&stock_select=single');return document.MM_returnValue" value="Production material" />  
&nbsp;&nbsp;&nbsp;&nbsp;
 <br>
  <br>
  <label class="label_std">Select other store lists here:</label>
  &nbsp;&nbsp;
  <select name="store_list_select_2" class="select200" id="store_list_select_2" onChange="needToConfirm = false; window.location.href= this.form.store_list_select_2.options[this.form.store_list_select_2.selectedIndex].value">
    <option value="voorraad_teller_base.php?p=2&s=1&stock_select=single&cat_group=Stores&sub_cat_group=Cleaning materials">Cleaning materials</option>
    <option value="voorraad_teller_base.php?p=2&s=1&stock_select=single&cat_group=Stores&sub_cat_group=Consumables">Consumables</option>
    <option value="voorraad_teller_base.php?p=2&s=1&stock_select=single&cat_group=Stores&sub_cat_group=Fuel">Fuel</option>
    <option value="voorraad_teller_base.php?p=2&s=1&stock_select=single&cat_group=Stores&sub_cat_group=Lubricants">Lubricants</option>
    <option value="voorraad_teller_base.php?p=2&s=1&stock_select=single&cat_group=Stores&sub_cat_group=Machine spares">Machine spares</option>
    <option value="voorraad_teller_base.php?p=2&s=1&stock_select=single&cat_group=Stores&sub_cat_group=Vortex Hydra spares">Vortex Hydra spares</option>
    <option value="voorraad_teller_base.php?p=2&s=1&stock_select=single&cat_group=Stores&sub_cat_group=PPE">PPE</option>
    <option value="voorraad_teller_base.php?p=2&s=1&stock_select=single&cat_group=Stores&sub_cat_group=Tools">Tools</option>
    <option value="voorraad_teller_base.php?p=2&s=1&stock_select=single&cat_group=Stores&sub_cat_group=Welding and Engineering">Welding &amp; Engineering</option>
    <option value=" " selected="selected"> </option>
  </select>
          </div>
          
<div class="wizard_frame" align="right">

              <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" />
            
            <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"/>
            </div>
 
</form>
</div>
</div>
<!--form validation-->
<!--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.");
  frmvalidator.addValidation("stock_select","req","Please select single or full count.");
</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 }
?>