/
movieInfo.php
138 lines (108 loc) · 5.33 KB
/
movieInfo.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
<?php
session_start();
include "php_helper/function.php";
//Used to retireve the information for the movie
$movieInfo = getMovieInformation($_GET['name']);
$movieTimes = getMovieTimes($_GET['name']);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="description" content="My personal website">
<meta name="author" content="Austin Copeman">
<title>Movie Information</title>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Custom CSS -->
<!-- <link href="css/grayscale.css" rel="stylesheet"> -->
<link href="css/movie.css" rel="stylesheet">
<!-- Custom Fonts -->
<link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
</head>
<!--Banner Section-->
<!-- This section will be where the theater name and login will be (on most screens)-->
<section id="movieBanner" class="banner">
<div class="banner-body">
<div class="container">
<div class="row equalHeight">
<div class="col-lg-6 text-left">
<h1>Movie Information</h1>
</div>
<div class="col-lg-6 text-right">
<?php include 'php_helper/login_button.php' ?>
</div>
</div>
</div>
</div>
</section>
<div class="container ">
<div class="row">
<div class="col-lg-8">
<div >
<div class="row" style="padding: 10px">
<div class="col-lg-4">
<img width="229" height="315" src="<?php echo getMovieThumbnail($_GET['name']) ?>">
</div>
<div class="col-lg-8">
<?php echo $movieInfo[8] ?>
</div>
</div>
<div class="row equalHeight" >
<div class = "col-lg-8 movie-table">
<h3><b>Now Playing</b></h3>
<dl class="dl-horizontal">
<dt>Synopsis</dt>
<dd> <?php echo $movieInfo[5] ?></dd>
<dt>Running Time</dt>
<dd> <?php echo $movieInfo[7] ?> minutes</dd>
<dt>Director</dt>
<dd> <?php echo $movieInfo[2] ?></dd>
<dt>Lead Actor</dt>
<dd> <?php echo $movieInfo[3] ?></dd>
<dt>Rating</dt>
<dd> <?php echo $movieInfo[4] ?></dd>
</dl>
</div>
<div class="col-lg-4 movie-table">
<h3><b>Movie Times</b></h3>
<?php
// for($i=0; $i<count($movieTimes); $i++){
// echo "<a href='Reservation.php?name=$movieInfo[1]&id=$movieTimes[$i]' target='_self' > $movieTimes[$i] </a>";
//}
?>
<?php
if($_SESSION['loggedin'] == 1){
for($i=0; $i<count($movieTimes); $i++){
echo "<a href='Reservation.php?name=$movieInfo[1]&id=$movieTimes[$i] target='_self'> $movieTimes[$i] </a>";
}
//else take them to the log in page then to the reservation page
}else{
for($i=0; $i<count($movieTimes); $i++){
echo "<a href='login.php?name=$movieInfo[1]&id=$movieTimes[$i] ' target='_self'> $movieTimes[$i] </a>";
}
}
?>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- jQuery -->
<script src="js/jquery.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>
<!-- Plugin JavaScript -->
<script src="js/jquery.easing.min.js"></script>
<!-- Custom Theme JavaScript -->
<script src="js/grayscale.js"></script>
<script>
$('.equalHeight').each(function() {
var eHeight = $(this).innerHeight();
$(this).find('div').outerHeight(eHeight);
});
</script>
</html>