-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathbooking.php
126 lines (110 loc) · 5.15 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
<!DOCTYPE html>
<html lang="en">
<?php
$id = $_GET['id'];
//conditions
if ((!$_GET['id'])) {
echo "<script>alert('You are Not Suppose to come Here Directly');window.location.href='index.php';</script>";
}
include "connection.php";
$movieQuery = "SELECT * FROM movieTable WHERE movieID = $id";
$movieImageById = mysqli_query($con, $movieQuery);
$row = mysqli_fetch_array($movieImageById);
?>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="style/styles.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
<title>Book <?php echo $row['movieTitle']; ?> Now</title>
<link rel="icon" type="image/png" href="img/logo.png">
<script src="_.js "></script>
</head>
<body style="background-color:#6e5a11;">
<div class="booking-panel">
<div class="booking-panel-section booking-panel-section1">
<h1>RESERVE YOUR TICKET</h1>
</div>
<div class="booking-panel-section booking-panel-section2" onclick="window.history.go(-1); return false;">
<i class="fas fa-2x fa-times"></i>
</div>
<div class="booking-panel-section booking-panel-section3">
<div class="movie-box">
<?php
echo '<img src="' . $row['movieImg'] . '" alt="">';
?>
</div>
</div>
<div class="booking-panel-section booking-panel-section4">
<div class="title"><?php echo $row['movieTitle']; ?></div>
<div class="movie-information">
<table>
<tr>
<td>GENGRE</td>
<td><?php echo $row['movieGenre']; ?></td>
</tr>
<tr>
<td>DURATION</td>
<td><?php echo $row['movieDuration']; ?></td>
</tr>
<tr>
<td>RELEASE DATE</td>
<td><?php echo $row['movieRelDate']; ?></td>
</tr>
<tr>
<td>DIRECTOR</td>
<td><?php echo $row['movieDirector']; ?></td>
</tr>
<tr>
<td>ACTORS</td>
<td><?php echo $row['movieActors']; ?></td>
</tr>
</table>
</div>
<div class="booking-form-container">
<form action="verify.php" method="POST">
<select name="theatre" required>
<option value="" disabled selected>THEATRE</option>
<option value="main-hall">Main Hall</option>
<option value="vip-hall">VIP Hall</option>
<option value="private-hall">Private Hall</option>
</select>
<select name="type" required>
<option value="" disabled selected>TYPE</option>
<option value="3d">3D</option>
<option value="2d">2D</option>
<option value="imax">IMAX</option>
<option value="7d">7D</option>
</select>
<select name="date" required>
<option value="" disabled selected>DATE</option>
<option value="12-3">March 12,2019</option>
<option value="13-3">March 13,2019</option>
<option value="14-3">March 14,2019</option>
<option value="15-3">March 15,2019</option>
<option value="16-3">March 16,2019</option>
</select>
<select name="hour" required>
<option value="" disabled selected>TIME</option>
<option value="09-00">09:00 AM</option>
<option value="12-00">12:00 AM</option>
<option value="15-00">03:00 PM</option>
<option value="18-00">06:00 PM</option>
<option value="21-00">09:00 PM</option>
<option value="24-00">12:00 PM</option>
</select>
<input placeholder="First Name" type="text" name="fName" required>
<input placeholder="Last Name" type="text" name="lName">
<input placeholder="Phone Number" type="text" name="pNumber" required>
<input placeholder="email" type="email" name="email" required>
<input type="hidden" name="movie_id" value="<?php echo $id; ?>">
<button type="submit" value="save" name="submit" class="form-btn">Book a seat</button>
</form>
</div>
</div>
</div>
<script src="scripts/jquery-3.3.1.min.js "></script>
<script src="scripts/script.js "></script>
</body>
</html>