<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>store</title>
</head>
<body>
<?php 
session_start();
include_once "../../../" . "vendor/autoload.php";
use src\bitm\SEIP107992\book\book;
$book = new book();
$book->store($_REQUEST);
?>
</body>
</html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>Home</title>
	<link rel="stylesheet" type="text/css" href="../public/myStyle.css">
	<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
</head>
<body>
<?php 
error_reporting(E_ALL & ~E_DEPRECATED & ~E_NOTICE);
session_start();
include_once "../../../" . "vendor/autoload.php";
use src\bitm\SEIP107992\book\book;
use src\bitm\SEIP107992\message\message;
$book = new book();
$books = $book->index();
?>
<div class="container">
	<div class="row">
		<div class="com-sm-12">
			<div class="jumbotron header">
				<h3>Book List</h3>
			</div>
		</div>
	</div>
</div>



<div class="container">
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Update</title>
</head>
<body>
<?php 
include_once "../../../" . "vendor/autoload.php";
use src\bitm\SEIP107992\book\book;
$book = new book();
$book->update($_REQUEST['book_title'], $_REQUEST['book_author'], $_REQUEST['isbn']);
?>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>View</title>
	<link rel="stylesheet" type="text/css" href="../public/myStyle.css">
	<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
</head>
<body>
<?php 
error_reporting(E_ALL & ~E_DEPRECATED & ~E_NOTICE);
include_once "../../../" . "vendor/autoload.php";
use src\bitm\SEIP107992\book\book;
$id = $_GET['var'];
$book = new book();
$books = $book->view($id);
?>

<div class="container">
	<div class="row">
		<div class="com-sm-12">
			<div class="jumbotron header">
				<h3>Full View</h3>
			</div>
		</div>
	</div>
     <div class="row">
     	<div class="col-sm-6 col-sm-offset-3 bookview">
			<?php 
//var_dump($books)
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>Edit</title>
	<link rel="stylesheet" type="text/css" href="../public/myStyle.css">
	<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
</head>
<body>
<?php 
error_reporting(E_ALL & ~E_DEPRECATED & ~E_NOTICE);
include_once "../../../" . "vendor/autoload.php";
use src\bitm\SEIP107992\book\book;
$book_id = $_GET['var'];
$book = new book();
$books = $book->view($book_id);
?>
<div class="container">
	<div class="row">
		<div class="com-sm-12">
			<div class="jumbotron header">
				<h3>Update Book Name</h3>
			</div>
		</div>
	</div>

    <div class="row">
    	<div class="col-sm-6 col-sm-offset-3">
    		<form action="update.php?var=<?php 
echo $book_id;
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Delete</title>
</head>
<body>
<?php 
include_once "../../../" . "vendor/autoload.php";
use src\bitm\SEIP107992\book\book;
$book = new book();
$book->delete($_GET['var']);
?>
</body>
</html>