<?php
ob_start();
require("includes/check_auth_user.php");
require("includes/dbconnect.php");
include('includes/function.php');

$ztit = $_SESSION["tit_" . $dbname];

$maindb = 'kotmain';
$trandb = 'kottran';
$accdb = 'actran';
$cashdb = 'cashrecp';
$bankdb = 'bankrecp';
$printfile = "bill_print.php";
$file = 'billmain.php';
$trandbexist = 1;
$keyfld = "vouchno";
$source = "SL";

$custdb = 'accmast';

$formname = 'Billing';
$keycond = "";

$admin = $_SESSION["admin_" . $dbname];
$zdb = $_SESSION["zdbyear_" . $dbname];
$myyear = $_SESSION[$myyear];
$compcd = $_SESSION["comp_" . $dbname];


$zroot = $_SESSION["zdir"];

mysqli_select_db($conn, $zdb);

include("includes/linkshead.php");
?>
<script src="MyScript/billmain_search.js" type="text/javascript"></script>

</head>
<body>
    <form action='' method='POST' >
        <!-- Default box -->

        <br>
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title" style="color:inherit"><?php Echo $formname; ?></h3>
                <div class="actions pull-right">
                    <i class="fa fa-chevron-down"></i>
                    <i class="fa fa-times"></i>
                </div>
            </div>

            <div class="panel-body">

                <div class="row">
                    <div class="col-lg-10">
                        <input type="hidden" class="vouchno" value="<?php echo $getvouch; ?>">
                        <input type="hidden" class="series" value="<?php echo $bseries; ?>">
                        <input type="hidden" class="type" value="<?php echo $invoicingtype; ?>">
                        <input type="hidden" class="manual" value="<?php echo $manual; ?>">

                        <div class="col-lg-2">
                            <select class="form-control sfield">    
                                <option value="4">Table</option>
                                <option value="1">KOT</option>
                                <option value="2">Date</option>
                                <option value="3">Time</option>
                                <option value="5">Staff</option>
                                <option value="6">Net Amount</option>
                            </select>
                        </div>
                        <div class="col-lg-2">
                            <select class="form-control soperator">
                                <option value="">Type of Search</option>
                                <option value="%">Like</option>
                                <option value="=">Exactly</option>
                            </select>
                        </div>
                        <div class="col-lg-2">
                            <select class="form-control sortBy">
                                <option value="">Sort By</option>
                                <option value="4">Table</option>
                                <option value="1">KOT</option>
                                <option value="2">Date</option>
                                <option value="3">Time</option>
                                <option value="5">Staff</option>
                                <option value="6">Net Amount</option>
                            </select> 
                        </div>
                        <div class="col-lg-2">
                            <select class="form-control orderAs">
                                <option value="desc">Desc</option>
                                <option value="asc">Asc</option>
                            </select>
                        </div>
                        <div class="col-lg-2">
                            <input type="text" value="" class="form-control ssearch" placeholder="Search Here">
                        </div>
                        <div class="col-lg-1">
                            <input type="button" class="btn btn-primary sload" value="Search" >
                        </div>
                        <div class="col-lg-12 sloader text-center">
                        </div>
                        <div class="col-lg-12 snoRecord text-center">
                            <h3>NO RECORDS FOUND</h3>
                        </div>

                    </div>
                </div>

                <div class="col-lg-11 table responsive ssload" style="overflow-y: scroll;height: 480px;">
                    <table class="table table-striped table-condensed table-bordered" width="100%" >
                        <thead>
                            <tr class="mySearchTr" style="">
                                <th style="width:4%;">V. No.</th>
                                <th style="width:10%;">V.Date</th>
                                <th style="width:7%;">V.Time</th>
                                <th style="width:15%;">Table</th>
                                <th style="width:15%;">Staff</th>
                                <th style="width:10%;text-align:right;">Total Items</th>
                                <th style="width:10%;text-align:right;">Total Qty.</th>
                                <th style="text-align:right;width: 12%">Net Amount</th>
                                <th align="center"  style="width:4%;">Action</th>
                            </tr>
                        </thead>
                        <tbody class="sTbody">

                        </tbody>  
                    </table>
                </div>
                <br>
                <div class="row"> 
                    <div class="col-xs-11 text-right search-action-bar">
                        <input type="button"  class="btn btn-primary sprev" value="Previous">
                        <input type="button"  class="btn btn-primary snext" value="Next">
                    </div>
                </div>
            </div>
        </div>



        <!--        <div class="row">
                    <div class="col-xs-10 text-right search-action-bar">
                        <input type="button"  class="btn btn-primary sprev" value="Previous">
                        <input type="button"  class="btn btn-primary snext" value="Next">
                    </div>
                </div>-->

        <?php include("includes/linksfoot.php"); ?>

</body>
</html>
