-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmovieDetail.php
68 lines (66 loc) · 2.12 KB
/
movieDetail.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
<?php
include('include/db_connection.php');
if(isset($_GET['book-ticket'])){
$movieID = $_GET['mid'];
include('CRUD/Movie/RETRIEVE_detail.php');
include('CRUD/Shows/RETRIEVE.php');
include('CRUD/Poster/RETRIEVE.php');
include('include/starRate.php');
include('include/genre.php');
include('include/cast.php');
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php echo $title ?></title>
<link rel="stylesheet" href="css/styles.css">
<link rel="stylesheet" href="css/movieDetail.css">
<script src="https://kit.fontawesome.com/bdfd35405d.js" crossorigin="anonymous"></script>
</head>
<body>
<!-- Header Section -->
<header>
<?php include "include/header.php"?>
<!-- Navigation Section -->
<nav>
<!-- Main Navigation Links -->
<h2>Book Ticket</h2>
<?php include 'include/navHome.php' ?>
<span></span>
</nav>
</header>
<!-- Main Content Section -->
<main>
<div class="container">
<?php echo "
<img id='poster' src='module/$posterName' alt='Movie poster'>
<div class='block-A'>
<div class='movie-info'>
<h1>$title - ($lang)</h1>
<div class='rating'>$starRate</div>
<p>$genreHTML</p><br>
<p><b>Director: </b> $director</p>
<p><b>Casting: </b> $actorHTML</p>
<p><b>Runtime:</b> $min min</p>
<p>$description</p>
</div>";
if ($status == 'Ongoing') {
echo "<div class='booking-container'>";
include('include/bookingContainer.php');
echo "</div>";
}
?>
</div>
</div>
</main>
<!-- Footer Section -->
<?php include "include/footer.php" ?>
<script src="javascript/movieDetail.js"></script>
</body>
</html>
<?php
mysqli_close( $conn );
?>