-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrecept.php
70 lines (70 loc) · 1.97 KB
/
recept.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE HTML>
<?php
include("shared/main.functions.php");
if(!isset($_GET['recipe']))
{
header("Location:recepten.php");
exit;
}
$id = $_GET['recipe'];
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/stylesheet.css">
<title>Recept</title>
</head>
<body>
<div class="container">
<?php
include("shared/header.html");
if($id >= 1 && $id <= 25)
{
$Recipe = SelectRecipe($id);
echo
"
<div class='left'>
<div class='name'>
<h2>
". $Recipe['Naam'] ."
</h2>
</div>
<div class='image'>
Hier hoort een afbeelding te komen als voorbeeld voor het gerecht.
</div>
<div class='type'>
Gerecht type:\n
". $Recipe['Type'] ."
</div>
<div class='description'>
<p>
Beschrijving:\n
". $Recipe['Beschrijving'] ."
</p>
</div>
<div class='voedingswaarde'>
Hier hoort de voedingswaarde te komen maar zover ben ik nog niet.
</div>
</div>
<div class='right'>
<div class='moeilijkheid'>
Moeilijkheid:\n
". $Recipe['Moeilijkheid'] ."
</div>
<div class='duur'>
Bereidingsduur:\n
". $Recipe['Bereidingstijd'] ."
</div>
<div class='recept'>
<pre>". $Recipe['Bereiding'] ."</pre>
</div>
</div>
";
}
else
{
echo"This Recipe doesn't exist";
}
?>
</div>
</body>
</html>