<!-- Main content -->
<?php
session_start();
include_once './connection_sql.php';
 
?>
  
 
<section class="content">
    <div class="box box-primary">
        <div class="box-header with-border">
            <h3 class="box-title">ALL REPORT</h3>
            <h4 style="float: right;height: 3px;"><b id="time"></b></h4>
        </div>
        <form role="form" name ="form1" class="form-horizontal" target="_blank" action="stkrepnew_print.php">
            <div class="box-body">
                <div class="form-group col-md-12">
                    <a onclick="location.reload();" class="btn btn-default">
                        <span class="fa fa-user-plus"></span> &nbsp; NEW
                    </a>   
                    <button><a onclick="print_inv();" class="btn btn-primary btn-sm">
                        <span class="fa fa-print"></span> &nbsp; VIEW REPORT
                    </a></button>
                    
                   
                </div>
                <div class="form-group"></div>
                <input type="hidden" id="uniq" class="form-control">

                <div id="msg_box"  class="span12 text-center"  >  </div>

                <!--=======================-->
                <div class="form-group">
                    <label class="col-md-1 control-label  " for="txt_usernm" style="text-align:left">Department</label>
                    <div class="col-md-3">
                        <select id="dep" name="dep"  class="form-control input-sm"  > 
                            <option value="">ALL</option>
                            <?php   
                             $sql = "select * from s_stomas where act='1'";
                             foreach ($conn->query($sql) as $row) {
                                echo "<option value='" . $row["CODE"] . "' class=\"opt\">" . $row["DESCRIPTION"] . "</option>";
                            }
                            ?>  
                       </select>
                    </div> 
                </div>   
                <div class="form-group">
                    <label class="col-md-1 control-label  " for="txt_usernm" style="text-align:left">Brand</label>
                    <div class="col-md-3">
                        <select id="brandname" name="brandname"  class="form-control input-sm"  > 
                            <option value="">ALL</option>
                            <?php   
                             $sql = "select * from brand_mas where act='1'";
                             foreach ($conn->query($sql) as $row) {
                                echo "<option value='" . $row["barnd_name"] . "' class=\"opt\">" . $row["barnd_name"] . "</option>";
                            }
                            ?>  
                       </select>
                    </div> 
                </div>   
                  <div class="form-group">
                    <label class="col-md-1 control-label  " for="txt_usernm" style="text-align:left">Category</label>
                    <div class="col-md-3">
                        <select id="cat" name="cat"  class="form-control input-sm"  > 
                            <option value="">ALL</option>
                            <?php   
                             $sql = "select * from s_mas_category  ";
                             foreach ($conn->query($sql) as $row) {
                                echo "<option value='" . $row["name"] . "' class=\"opt\">" . $row["name"] . "</option>";
                            }
                            ?>  
                       </select>
                    </div> 
                </div>  
                <div class="form-group">
                    <label class="col-md-1 control-label  " for="txt_usernm" style="text-align:left">Size</label>
                    <div class="col-md-3">
                        <select id="size" name="size"  class="form-control input-sm"  > 
                            <option value="">ALL</option>
                            <?php   
                             $sql = "select * from s_mas group by SIZE ";
                             foreach ($conn->query($sql) as $row) {
                                echo "<option value='" . $row["SIZE"] . "' class=\"opt\">" . $row["SIZE"] . "</option>";
                            }
                            ?>  
                       </select>
                    </div> 
                </div>  
                <div class="form-group">
                    <label class="col-md-1 control-label lbl" for="txt_usernm" style="text-align:left">Stock No</label>
                    <div class="col-md-3">
                       <input type="text" id="stk_no"   name="stk_no" class="form-control">
                    </div>  
                    <div class="col-sm-1">
                        <a onfocus="this.blur()" onclick="NewWindow('stkrepnew_itemsearch.php', 'mywin', '800', '700', 'yes', 'center');
                                return false" href="">
                            <input type="button" class="btn btn-primary" value="..." id="searchcust" name="searchcust">
                        </a>
                    </div>
                  </div>   
                  <div class="form-group">
                    <label class="col-md-1 control-label  " for="txt_usernm" style="text-align:left">Type</label>
                    <div class="col-md-3">
                        <select id="type" name="type"  class="form-control input-sm"  > 
                            <option value="">ALL</option> 
                            <option value="SELLING">SELLING</option> 
                             
                       </select>
                    </div> 
                </div>   
                  <div class="form-group">
                    <label class="col-md-1 control-label lbl" for="txt_usernm" style="text-align:left">Stock Item Only</label>
                    <div class="col-md-3">
                       <input type="checkbox" id="check"   name="check" class=" ">
                    </div>  
                     
                  </div>    
                 <!--==================================================================================================================================== -->
                  
            </div> </div> 
        </form>
    </div> 
</section> 

<script>
    

</script>

 
  