<div class="table table-responsive"> <table class="table table-bordered"> <thead> <tr style="background: #ececec"> <th>Title</th> <th>Subject</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_magazine($hint, $from, $cat_id); // }else { // $founds = $engine->get_all_magazines(); // } $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; } elseif ($i < $start + 20) { include 'pages/elements/Library_Magazine_Table_Items.php';