-
Notifications
You must be signed in to change notification settings - Fork 3
/
booking.php
145 lines (131 loc) · 3.55 KB
/
booking.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<?php
require('config/config.php');
require('config/db.php');
if(isset($_POST['submit'])){
//Get form data
$q = mysqli_real_escape_string($conn,$_GET['roomno']);
}
//create query
$query = 'SELECT * FROM customers database WHERE id ='.$q;
//get result
$result = mysqli_query($conn,$query);
//fetch data
$posts = mysqli_fetch_assoc($result);
var_dump($posts);
//free result
mysqli_free_result($result);
//close connection
mysqli_close($conn);
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<meta name="description" content="Affordable and easy conference room booking system">
<meta name="keywords" content="conference,conference booking,meeting rooms, book meetings room">
<meta name="author" content="Lakshya Gupta">
<title> Welcome to Booking</title>
<link rel="stylesheet" type="text/css" href="./css/style.css">
</head>
<body>
<header>
<div class="container">
<div id="branding">
<h1><span class="highlight">Conference</span> Management System</h1>
</div>
<nav>
<ul>
<li>
<a href="index.php"> Home</a>
</li>
<li class="current">
<a href="booking.php">Book Rooms</a>
</li>
<li>
<a href="about.php">About</a>
</li>
<li>
<a href="login.php">Log In</a>
</li>
</ul>
</nav>
</div>
</header>
<section id="newsletter">
<div class="container">
<h1>
Get Room Details
</h1>
<form>
<input type="search" placeholder="Enter Room number..." name="q">
<button class="button-1" type="submit">
Submit
</button>
</form>
</div>
</section>
<section id="main">
<div class="container">
<article id="main-col">
<h1 class="page-title"> Book Rooms</h1>
<form class="rooms">
<div class="form-group">
<label>Enter Contact Info</label>
<input class="form-input" type="text" name="number" placeholder="Enter Email/Mobile Number...">
</div>
<br>
<div class="form-group">
<label>Enter Date</label>
<input class="form-input" type="date" name="date" placeholder="Enter date..">
</div>
<br>
<div class="form-group">
<label>Enter Check-in time</label>
<input class="form-input" type="time" name="time" placeholder="Enter time..">
</div>
<br>
<div class="form-group">
<label>Enter Check-out time</label>
<input class="form-input" type="time" name="time" placeholder="Enter time..">
</div>
<br>
<div class="form-group">
<label>Enter Number of people</label>
<input class="form-input" type="number" name="time" placeholder="Enter Quantity">
</div>
<br>
<label>Choose Room Size</label>
<div class="custom-select">
<select>
<option value="Small">Small(10-20 people)</option>
<option value="Medium">Medium(40-50 people)</option>
<option value="Large">Large(100-120 people)</option>
</select>
</div>
<br>
<div>
<br>
<button class="button-1" type="submit">Submit
</button>
</div>
</form>
</article>
<aside id="sidebar">
<div class="dark">
<h3>ADVERT</h3>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat.
</p>
</div>
</aside>
</div>
</section>
<footer>
<p>Conference Room Booking and Management, Copyright © 2019 </p>
</footer>
</body>
</html>