Example #1
0
 function ifSetGetToDetails()
 {
     if (isset($_POST['showId'])) {
         $id = new GetBook();
         $id->getBooksById($_POST['showId']);
     }
 }
Example #2
0
<?php

error_reporting(E_ALL);
ini_set("display_errors", 1);
include $_SERVER["DOCUMENT_ROOT"] . "/head_foot/header.php";
include $_SERVER["DOCUMENT_ROOT"] . "/head_foot/footer.php";
require $_SERVER["DOCUMENT_ROOT"] . '/books/GetBook.php';
require $_SERVER["DOCUMENT_ROOT"] . "/lib/Manage.php";
$books = new GetBook();
$date = new Manage();
$array = $books->getBooks();
/**
 * TODO add search by
 */
?>
<!---source; http://github.com/stidges/jquery-searchable -->
<div class="container">
    <div class="row">

    <div class="row">
        <div class="col-lg-12">
            <h3>Tous les livres</h3>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-4 col-lg-offset-4">
            <input type="search" id="search" value="" class="form-control" placeholder="Rechercher">
        </div>
    </div>
    <div class="row">
        <div class="col-lg-12">
Example #3
0
<?php

include $_SERVER["DOCUMENT_ROOT"] . "/head_foot/header.php";
include $_SERVER["DOCUMENT_ROOT"] . "/head_foot/footer.php";
include "../books/GetBook.php";
if (isset($_GET["id"])) {
    $id = $_GET["id"];
    $bookById = new GetBook();
    $array = $bookById->getBooksById($id);
}
?>

<body>

<?php 
$i = 0;
while ($i < count($array)) {
    ?>
<h2><?php 
    echo $array[$i]["title"];
    ?>
</h2>
 <div name="infos">
     <ul>
        <li>Auteur: <?php 
    echo $array[$i]["author"];
    ?>
</li>
        <li>Nombre de pages: <?php 
    echo $array[$i]["pages"];
    ?>
Example #4
0
<?php

error_reporting(E_ALL);
ini_set("display_errors", 1);
include $_SERVER["DOCUMENT_ROOT"] . "/head_foot/header.php";
include $_SERVER["DOCUMENT_ROOT"] . "/head_foot/footer.php";
require $_SERVER["DOCUMENT_ROOT"] . '/books/GetBook.php';
require $_SERVER["DOCUMENT_ROOT"] . "/lib/Manage.php";
$books = new GetBook();
$date = new Manage();
$array = $books->getBooksIdUser($_SESSION['user']);
/**
 * TODO add search by
 */
?>

<div class="container">
    <div class="row">

        <div class="row">
            <div class="col-lg-12">
                <h3>Tous les livres</h3>
            </div>
        </div>
        <div class="row">
            <div class="col-lg-4 col-lg-offset-4">
                <input type="search" id="search" value="" class="form-control" placeholder="Rechercher">
            </div>
        </div>
        <div class="row">
            <div class="col-lg-12">