-
Notifications
You must be signed in to change notification settings - Fork 0
/
detail.php
55 lines (52 loc) · 2.29 KB
/
detail.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
session_start();
?>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Webshop</title>
<link rel="stylesheet" href="css/app.css?">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<div class="banner"></div>
<nav class="navbar">
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="winkelwagen.php">Winkelwagen</a></li>
<?php
if (isset($_SESSION['loggedin']) && $_SESSION['loggedin'] == true) {
?><li><a href="admin.php">Admin</a></li>
<li><a href="logout.php">Log out</a></li>
<?php
} else {
?><li><a href="login.php">Log In</a></li><?php
}
?>
<div class="search-container">
<form action="searchResult.php?=<?php echo $_GET['search']; ?>">
<input type="text" placeholder="Search.." name="search">
<button type="submit"><i class="fa fa-search"></i></button>
</form>
</div>
</ul>
</nav>
<div class="content">
<?php include_once 'DAO/ProductDAO.php';
$productdetail = ProductDAO::getById($_GET['q']) ?>
<h1><?php echo $productdetail->getNaam(); ?></h1>
<img class="col-xs-3" src="<?php echo $productdetail->getLocatieFoto(); ?>" width="187" height="310">
<p class="col-xs-9"><?php echo $productdetail->getBeschrijving(); ?></p>
<p class="col-xs-9">Prijs Excl BTW <?php echo '€ ' . $productdetail->getPrijsExclBtw(); ?></p>
<p class="col-xs-9">Totale BTW <?php echo '€ ' . $productdetail->getBtw(); ?></p>
<p class="col-xs-9">Prijs Incl BTW <?php echo '€ ' . $productdetail->getPrijsInclBtw(); ?></p>
<p class="col-xs-9">Aantal in Stock <?php echo $productdetail->getStock(); ?></p>
<form class="col-xs-8" action="voegToeAanWinkelwagen.php" method="POST">
<input class="col-xs-1" name="aantal" type="number" min="0" max="<?php echo $productdetail->getStock(); ?>" value="1">
<input type="hidden" name="productId" value="<?php echo $productdetail->getProductId(); ?>">
<button class="col-xs-3" type="submit">In winkelmand!</button>
</form>
</div>
</body>
</html>