<?php
session_name("AUTHENUSER");
session_start();
$USERNAME = $_SESSION['SES_USERNAME'];
if(!session_name("AUTHENUSER"))
	{
?>
						<script language="javascript">
						 alert("Waktu Login telah habis.Silahkan Login Kembali");
						document.location="index.php";
						</script>
<?php
	}
if(!$USERNAME)
	{
?>
						<script language="javascript">
						 alert("Harap Login Dahulu.");
						document.location="index.php";
						</script>
<?php
	}
	?>
	<?php include "common/config.php";
	include "include/head.php"; ?>
    <?php
	$act  = $_REQUEST['act'];
	$inventory  = $_REQUEST['inventory'];
	?>

<body>
<?php include "include/head2.php"; ?>
<?php include "include/leftmenu.php"; ?>
<?php include "include/top.php"; ?>
   
  <h1><i class="icon-bar-chart"></i> Stock Opname </h1>
</div>


   <div class="main-content">
   
            <div class="widget">
            <div class="widget-content-white glossed">
                    <div class="padded">
                      <form role="form" class="form-horizontal" method="post" action="stock_ofnumb.php?act=1">
                      
                        <div class="form-group">
                        
                            <label>Tipe Inventory</label>
                               <select name="tipe" id="tipe" class="form-control">
                             
                             <option value="1">Diamond</option>
                           <option value="2">Logam Mulia</option>
                           <option value="3">Gold</option>
                           <option value="4">Ready Item</option>
                            <option value="5">Cincin</option>
                           <option value="6">Mastura</option>
                           <option value="7">Liontin</option>
                            <option value="8">Kerabu</option>
                           <option value="9">Gelang Kaku Gelang Rantai</option>
                           <option value="10">Rangka</option>
                            </select>
                            </div>
                
                          <div class="form-group">
                            <label>Branch ID</label>
                              <select name="id_branch" id="id_branch" class="form-control">
                            <option value="">Head Office</option>
                            <?php
                            {
                                              $sql3 = "select *
											  from tbl_branch where status_branch='1' order by nama_branch";
                                              $rs3 = mysql_query($sql3);
                                              while($fetch3 = mysql_fetch_array($rs3))
                                              {
                                               ?>
                                       <option <?php if($fetch3['id_branch']==$id_branch) { ?> selected="selected" <?php } ?> value="<?php echo $fetch3['id_branch']; ?>"><?php echo  $fetch3['nama_branch'];  ?></option>
                                                      <?php
                                              }
                                             ?>
                                              <?php
                            }
							?>
                            </select>
                         
                        </div>
                       
                        <button class="btn btn-primary" type="submit">Submit</button>
                        <button class="btn btn-default" type="reset">Reset</button>
                      </form>
                    </div>
             </div>
            </div>
          </div>
        </div>
      </div>

    </div>
  </div>
</div>       

<?php include "include/foot.php"; ?>
<script src='assets/js/for_pages/dashboard.js'></script>
</body>

</html>