<th>User ID</th>
                    <th>Borrow Date</th>
                    <th>Duration</th>
                    <th></th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php 
require_once 'private/LMS_Engine.php';
$engine = new LMS_Engine();
if ($type == "Books") {
    $founds = $engine->search_book_issued($hint, $from, $cat_id);
} elseif ($type == "CD-DVDs") {
    $founds = $engine->search_cds_issued($hint, $from, $cat_id);
} elseif ($type == "Magazines") {
    $founds = $engine->search_meg_issued($hint, $from, $cat_id);
} else {
    $founds = $engine->get_all_issued_books();
}
$founds = array_reverse($founds, null);
$total = count($founds);
$size = 10;
$start = $page_num * $size;
$i = 0;
$disp = 0;
foreach ($founds as $found) {
    if ($start > $i) {
        $i++;
        continue;
    } elseif ($i < $start + 10) {
        include 'pages/elements/Search_Issued_Table_Item.php';