示例#1
0
<?php

ini_set('display_errors', 'Off');
include_once "../../../vendor/autoload.php";
//using relative path
//include_once($_SERVER['DOCUMENT_ROOT'].DIRECTORY_SEPARATOR.'AtomicProject'.DIRECTORY_SEPARATOR.'vendor'.DIRECTORY_SEPARATOR.'autoload.php'); //using absolute path
use App\BITM\SEIP1020\Book\Book;
use App\BITM\SEIP1020\Utility\Utility;
//var_dump($_POST);
//die();
$obj = new Book($_POST);
//Utility::dd($obj);
$obj->store();
示例#2
0
<?php

ini_set('display_errors', 'Off');
include_once "../../../vendor/autoload.php";
use App\BITM\SEIP1020\Book\Book;
$book = new Book();
$books = $book->index();
?>

<!DOCTYPE html>
<html>
    <head>
        <title>TODO supply a title</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <style>
            #utility{
                float:right;
                width:60%;
            }
        </style>
    </head>
    <body>
        <h1>Book Title</h1>
        <div><span>Search / Filter </span> 
            <span id="utility">Download as PDF | XL  <a href="create.php">Add New</a></span>
            <select>
                <option>10</option>
                <option>20</option>
                <option>30</option>
                <option>40</option>