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

mysqli_query($conn, "SET NAMES 'utf8'");
mysqli_query($conn, 'SET CHARACTER SET utf8');

$formname = 'Entry';

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

$maindb = 'visamain';
$trandb = 'visatran';
$trandb2 = 'category';

//$printfile = "invwh_print.php";
$file = 'entrymain.php';
$keyfld = "vouchno";

$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/vouchno_generate.php");
//include("includes/prev&next.php");

include("includes/linkshead.php");
?>
<script src="MyScript/entry.js" type="text/javascript"></script>
<script src="MyScript/entry_search.js" type="text/javascript"></script>
<style>
    .Sticky{
        position: sticky;
        position: -webkit-sticky;
        top: 0;
        background: #7f949d;
        z-index: 10;
    }
</style>
</head>
<body>
    <form action='' method='POST' >
        <!-- Default box -->
        <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">
                </div>
            </div>
            <div class="row">

            </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; ?>">
                        <div class="col-lg-2">
                            <select class="form-control sfield"> 
                                <option value="7">File No.</option>
                                <option value="3">Passport No.</option>
                                <option value="11">Category</option>
                                <option value="8">Pax Name</option>
                                <option value="1">Voucher</option>
                                <option value="2">Visa No.</option>
                                <option value="4">Sponsor</option>
                                <option value="5">Agent</option>
                                <option value="6">Place</option>
                                <option value="9">Id No.</option>
                                <option value="10">Visa Qty</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-3">
                            <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" style="padding: 3px;width: 100%">
                        </div>
                        <div class="col-lg-2">
                            <select class="form-control sortBy">
                                <option value="">Sort By</option>
                                <option value="7">File No.</option>
                                <option value="3">Passport No.</option>
                                <option value="11">Category</option>
                                <option value="8">Pax Name</option>
                                <option value="1">Visa No.</option>
                                <option value="2">Date</option>
                                <option value="4">Sponsor</option>
                                <option value="5">Agent</option>
                                <option value="6">Place</option>
                                <option value="9">Id No.</option>
                                <option value="10">Visa Qty</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-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 Sticky">
                                <th style="width:10%;">File No.</th>
                                <th style="width:6%;">Place</th>
                                <th style="width:10%;">Category(English)</th>
                                <th style="width:14%;">Pax Name</th>
                                <th style="width:5%;">Passport</th>
                                <th style="width:14%;">Sponsor</th>
                                <th style="width:14%;">Agent</th>
                                <th style="width:6%;">Id No</th>
                                <th style="width:6%;">Visa No.</th> 
                                <th style="width:4%;">V. Qty</th> 
                                <th style="width:4%;">Voucher</th>
                                <th style="width:7%;">Date</th>
                                <th align="center"  style="width:1%;">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>
