-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathreg3.php
95 lines (80 loc) · 2.96 KB
/
reg3.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?php
require_once dirname(__FILE__) . '/controllers/RoomsController.php';
require_once dirname(__FILE__) . '/models/RoomType.php';
$controller = new RoomsController();
$rooms = $controller->room_type();
$types = RoomType::all();
?>
<html>
<head>
<title>Regisration Form 3</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="layout/css/app.css">
<link href="style.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body class="bg">
<header>
<a href="">
<h1 class="text-center">Hurghada-grand-hotel</h1>
</a>
</header>
<form action="">
<div class="conatainer">
<label for="rooms" class="text-4xl font-weight-bold"> reservation options </label>
<select required id="rooms" name="rooms">
<option disabled selected>Select room type</option>
<?php
foreach ($types as $type) {
?>
<option value="<?= $type["id"]; ?>"><?= $type["reservation_id"]; ?></option>
<?php
}
?>
</select>
</div>
<div class="flex p-2">
<div class="card1">
<img src="single(1).jpg" alt="Single" />
Single
</div>
<div class="card3">
<img src="teriple.jpg" alt="teriple" width="200" height="100" />
Triple
</div>
</div>
<div class="card2">
<img src="double-double-room.jpg" alt="Double" width="200" height="100" name="Double" />
Double
</div>
<div class="card4">
<img src="queen.jpg" alt="queen" width="200" height="100" />
Queen
</div>
<div class="card5">
<img src="cabana.jpg" alt="cabana" width="200" height="100" />
cabana
</div>
<div class="card6">
<img src="suite2.jpg" alt="suite" width="200" height="100" />
Suite
</div>
</div>
<div>
<button type="submit" class="btn btn-success">Save and Next </button>
</div>
</form>
<?php
if ($rooms)
foreach ($rooms as $room) {
?>
<p><?= $room["name"]; ?> <button>Pick</button> </p>
<?php
}
?>
</body>
</html>