<table class="table table-bordered">
                    <thead>
                    <tr style="background: #ececec">
                        <th>Title</th>
                        <th>Author</th>
                        <th>Publisher</th>
                        <th>Publish Year</th>
                        <th></th>
                    </tr>
                    </thead class="table table-condensed">
                    <tbody >
                    <?php 
require_once 'private/LMS_Engine.php';
$engine = new LMS_Engine();
if (isset($_POST['Search_Items'])) {
    $founds = $engine->search_book_not_issued($_POST['hint'], $_POST['from'], $_POST['cat_id']);
} else {
    $founds = $engine->search_book_not_issued(null, null, 1);
}
foreach ($founds as $found) {
    include 'pages/elements/Search_Table_Items.php';
}
?>
                    </tbody>
                </table>
            </div>
            <div class="table table-responsive">
                <table class="table table-bordered">
                    <thead>
                    <tr style="background: #ececec">
                        <th>Total: <?php 
Пример #2
0
<?php

require_once 'private/LMS_Engine.php';
$engine = new LMS_Engine();
$val = $engine->search_book_not_issued(null, null, 0);
foreach ($val as $book) {
    if (is_array($book)) {
        print_r($book);
    } else {
        echo $book;
    }
    echo "<hr>";
}
                        <th>Publisher</th>
                        <th>Publish Year</th>
                        <th></th>
                    </tr>
                    </thead class="table table-condensed">
                    <tbody >
                    <?php 
require_once 'private/LMS_Engine.php';
$engine = new LMS_Engine();
//if(isset($_POST['Search_Items'])) {
//                    }elseif(isset($search_nav)){
//                        $founds = $engine->search_book_not_issued($_POST['search_nav'], null, null);
//                    }else {
//                        $founds = $engine->search_book_not_issued(null, null, 1);
//}
$founds = $engine->search_book_not_issued($hint, $from, $cat_id);
$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_Table_Items.php';
        $disp++;
        $i++;
    } else {
        break;
if (isset($_POST['s_from']) && $_POST['s_from'] == "Books") {
    echo '<td>Author</td>';
} else {
    echo '<td>Subject</td>';
}
?>
                        <th>Publisher</th>
                    </tr>
                    </thead class="table table-condensed">
                    <tbody >
                    <?php 
require_once 'private/LMS_Engine.php';
$engine = new LMS_Engine();
if (isset($_POST['Search_Items'])) {
    if (isset($_POST['s_from']) && $_POST['s_from'] == "Books") {
        $founds = $engine->search_book_not_issued($_POST['s_hint'], "shelf", $_POST['s_cat_id']);
    }
    if (isset($_POST['s_from']) && $_POST['s_from'] == "CD-DVDs") {
        $founds = $engine->search_cds_not_issued($_POST['s_hint'], "shelf", $_POST['s_cat_id']);
    }
    if (isset($_POST['s_from']) && $_POST['s_from'] == "Magazines") {
        $founds = $engine->search_meg_not_issued($_POST['s_hint'], "shelf", $_POST['s_cat_id']);
    }
} else {
    $founds = $engine->search_book_not_issued(null, null, 1);
}
foreach ($founds as $found) {
    include 'pages/elements/Search_Table_Items_STD.php';
}
?>
                    </tbody>