-
Notifications
You must be signed in to change notification settings - Fork 0
/
booking.php
82 lines (78 loc) · 2.78 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
<?php include "layouts/header2.php"?>
<?php
include "config.php";
$id = $_GET['id'];
$room_no = $_GET['room_no'];
$seater = $_GET['seater'];
$type = $_GET['type'];
$fees = $_GET['fees'];
$sql = "select * from student where id='$id'";
$query = mysqli_query($conn,$sql);
?>
<style>
body{
color: white;
background: url(images/b3.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
.container {
margin-top: 1%;
margin-bottom: 1%;
width: 60%;
background-color: #26262b9e;
padding-top:2%;
padding-bottom:2%;
border-radius: 10%;
}
.btn-primary {
background-color: #673AB7;
}
</style>
<body>
<div class="container">
<center><h2>Book Room</h2></center></br>
<form class="form-horizontal" method="get">
<div class="form-group">
<label class="control-label col-sm-2 col-sm-offset-2" for="id">Room-ID:</label>
<div class="col-sm-5">
<input type="text" class="form-control" id="id" value="<?php echo "$id" ?>" name="room_id" readonly>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2 col-sm-offset-2" for="room_no">Room-No.:</label>
<div class="col-sm-5">
<input type="text" class="form-control" id="room_no" value="<?php echo "$room_no" ?>" name="room_no" readonly>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2 col-sm-offset-2" for="seater">Seater:</label>
<div class="col-sm-5">
<input type="text" class="form-control" id="seater" value="<?php echo "$seater" ?>" name="seater" required>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2 col-sm-offset-2" for="type">Type:</label>
<div class="col-sm-5">
<input type="text" class="form-control" id="type" value="<?php echo "$type" ?>" name="type" required>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2 col-sm-offset-2" for="number">Fees:</label>
<div class="col-sm-5">
<input type="number" class="form-control" id="fees" value="<?php echo "$fees" ?>" placeholder="Enter Fees" name="price" readonly>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-4 col-sm-8">
<button type="submit" name="submit" class="btn btn-primary">Book Room</button>
</div>
</div>
</form>
</div>
<script>
</script>
</body>
<?php include "layouts/footer.php"?>