-
Notifications
You must be signed in to change notification settings - Fork 19
/
movie_details.php
155 lines (127 loc) · 5.33 KB
/
movie_details.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
146
147
148
149
150
151
152
153
154
155
<?php
session_start();
include_once 'Database.php';
$id = $_GET['pass'];
$result = mysqli_query($conn,"SELECT * FROM add_movie WHERE id = '".$id."'");
$row = mysqli_fetch_array($result);
?>
<!DOCTYPE html>
<html>
<head>
<!-- Css Styles -->
<meta charset="UTF-8">
<meta name="description" content="Male_Fashion Template">
<meta name="keywords" content="Male_Fashion, unica, creative, html">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title><?php echo $row['movie_name'];?> Movie Deatis</title>
<link rel="stylesheet" href="css/bootstrap.min.css" type="text/css">
<link rel="stylesheet" href="css/font-awesome.min.css" type="text/css">
<link rel="stylesheet" href="css/elegant-icons.css" type="text/css">
<link rel="stylesheet" href="css/magnific-popup.css" type="text/css">
<link rel="stylesheet" href="css/nice-select.css" type="text/css">
<link rel="stylesheet" href="css/owl.carousel.min.css" type="text/css">
<link rel="stylesheet" href="css/slicknav.min.css" type=" text/css">
<link rel="stylesheet" href="css/fonts-googleapis.css" type=" text/css">
<link rel="stylesheet" href="css/style.css" type="text/css">
</head>
<body>
<?php
include("header.php");
?>
<section id="aboutUs">
<div class="container">
<?php
include_once 'Database.php';
$id = $_GET['pass'];
$result = mysqli_query($conn,"SELECT * FROM add_movie WHERE id = '".$id."'");
if (mysqli_num_rows($result) > 0) {
while($row = mysqli_fetch_array($result)) {
$id = $row['id'];
?>
<div class="row feature design">
<div class="col-lg-5"> <img src="admin/image/<?php echo $row['image']; ?>" class="resize-detail" alt="" width="100%"> </div>
<div class="col-lg-7">
<table class="content-table">
<thead><tr>
<th colspan="2">Movie Deatils</th>
</tr>
</thead>
<tbody>
<tr>
<td>Movie Name</td><td><?php echo $row['movie_name'];?></td>
</tr>
<tr>
<td>Release Date</td><td><?php echo $row['release_date'];?></td>
</tr>
<tr>
<td>Directer Name</td><td><?php echo $row['directer'];?></td>
</tr>
<tr>
<td>Category</td><td><?php echo $row['categroy'];?></td>
</tr>
<tr>
<td>Language</td><td><?php echo $row['language'];?></td>
</tr>
<tr>
<td>Tailer</td><td><a data-toggle="modal" data-target="#tailer_modal<?php echo $row['id'];?>">Veiw Tailer</a></td>
<div class="modal fade" id="tailer_modal<?php echo $row['id'];?>" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<embed style="width: 820px; height: 450px;" src="<?php echo $row['you_tube_link'];?>"></embed>
</div>
</div>
</div>
</tr>
</tbody>
</table>
<?php if($row['action']== "running"){?>
<div class="tiem-link">
<h4>Show Book Ticket:</h4><br>
<?php
$time = $row['show'];
$movie = $row['movie_name'];
$set_time = explode(",", $time);
$res = mysqli_query($conn,"SELECT * FROM theater_show");
if (mysqli_num_rows($res) > 0) {
while($row = mysqli_fetch_array($res)) {
if(in_array($row['show'],$set_time)){
?><a href="seatbooking.php?movie=<?php echo $movie; ?>&time=<?php echo $row['show'];?>"><?php echo $row['show'];?></a><?php
}
}
}
?>
</div>
<?php
}
?>
</div>
</div>
<div class="description">
<h4>Description</h4>
<p>
Jeff Lang (Tobey Maguire), an OBGYN, and his wife Nealy (Elizabeth Banks), who owns a small shop, live in Seattle with their two-year-old son named Miles. Considering a second child, they decide to enlarge their small home and lay expensive new grass in their backyard. Worms in the grass attract raccoons, who destroy the grass, and Jeff goes to great lengths to get rid of the raccoons, mixing poison with a can of tuna. Their neighbor Lila (Laura Linney) tells Jeff that her cat Matthew is missing, and Jeff does not yet realize he may be responsible.
</p>
</div>
<?php
}
}
?>
</div>
</section>
<?php
include("footer.php");
?>
<!-- Js Plugins -->
<script src="js/jquery-3.3.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.nice-select.min.js"></script>
<script src="js/jquery.nicescroll.min.js"></script>
<script src="js/jquery.magnific-popup.min.js"></script>
<script src="js/jquery.countdown.min.js"></script>
<script src="js/jquery.slicknav.js"></script>
<script src="js/mixitup.min.js"></script>
<script src="js/owl.carousel.min.js"></script>
<script src="js/main.js"></script>
</body>
</html>