<div class="table table-responsive">
                <table class="table table-bordered">
                    <thead>
                    <tr style="background: #ececec">
                        <th>Title</th>
                        <th>Author</th>
                        <th>publisher</th>
                        <th>Shelf/Store</th>
                        <th></th>
                        <th></th>
                    </tr>
                    </thead class="table table-condensed">
                    <tbody >
                    <?php 
//                    if(isset($_POST['Search_Items'])) {
$founds = $engine->search_book($hint, $from, $cat_id);
//                    }elseif(isset($_POST['from']) && isset($_POST['cat_id']) && isset($_POST['hint'])){
//                        $founds = $engine->search_book($_POST['hint'], $_POST['from'], $_POST['cat_id']);
//                    }else {
//                        $founds = $engine->get_all_books();
//                    }
$founds = array_reverse($founds, null);
$total = count($founds);
$size = 20;
$start = $page_num * $size;
$i = 0;
$disp = 0;
foreach ($founds as $found) {
    if ($start > $i) {
        $i++;
        continue;
            <div class="table-responsive ">
                <table class="table table-hover">
                    <thead>
                    <tr style="background: #808080">
                        <th>Title</th>
                        <th>Author</th>
                        <th>Shelf or Store</th>
                        <th>Call ID</th>
                        <th>C.Num.</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php 
require_once 'private/LMS_Engine.php';
$engine = new LMS_Engine();
$founds = "";
if (isset($_POST['Search_Items'])) {
    $founds = $engine->search_book($_POST['hint'], $_POST['from'], $_POST['cat_id']);
} else {
    $founds = $engine->search_book(null, null, 1);
}
foreach ($founds as $found) {
    include 'pages/elements/Add_Items_Table_Items.php';
}
?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>