-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuy_ticket.php
140 lines (125 loc) · 5.01 KB
/
buy_ticket.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
<?php
require "config/config.php";
session_start();
$filmID = filter_input(INPUT_GET, 'filmID', FILTER_SANITIZE_NUMBER_INT);
$filmID = str_replace('-', '', $filmID);
$data = detailFilm($filmID);
//echo $data['film_name'];
?>
<!doctype html>
<html lang="en">
<head>
<?php include "inc/head.php"; ?>
</head>
<body>
<?php include "inc/header.php"; ?>
<div class="container">
<div class="row">
<div class="col">
<div class="d-flex">
<div class="border rounded border-2 border-warning mt-4">
<div class="card text-center" style="width: 18rem;">
<img src="img/john-wick.jpg" alt="" class="card-img">
</div>
</div>
<div class="d-flex flex-wrap">
<table class="table table-borderless table-sm mt-4 ml-3" style="overflow: hidden;">
<tr>
<td scope="col" colspan="4">
<h5><?= $data['film_name'] ?></h5>
</td>
</tr>
<tr>
<td scope="col">
Genre
</td>
<td scope="col" colspan="4">
<?= $data['genre'] ?>
</td>
</tr>
<tr>
<td scope="col">
Duration
</td>
<td scope="col" colspan="4">
<?= $data['duration'] ?>
</td>
</tr>
<tr>
<td scope="col">
Director
</td>
<td scope="col" colspan="4">
<?= $data['director'] ?>
</td>
</tr>
<tr>
<td scope="col">
Synopsis
</td>
<td scope="col">
<div style="height: 20px; overflow: auto;">
<p>
<a data-toggle="collapse" href="#synopsis" role="button"
aria-expanded="false" aria-controls="synopsis">
Click here
</a>
</p>
</div>
</td>
</tr>
<tr>
<td scope="col">
</td>
<td colspan="4">
<div class="collapse" id="synopsis" style="width: 480px;">
<div class="card card-body">
<?= $data['synopsis'] ?>
</div>
</div>
</td>
</tr>
<tr>
<td scope="col">
Score
</td>
<td scope="col">
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
<div class="container">
<div class="row mt-4">
<?php
$col = 3;
$rowCount = 0;
$cinema = cinema();
while($data = $cinema->fetch(PDO::FETCH_ASSOC))
{
?>
<div class="col">
<div class="card">
<div class="card-body">
<h5 class="card-title"><?= $data['cinema_name'] ?></h5>
<h6 class="card-subtitle mb-2 text-muted"><?= $data['address'] ?></h6>
<a href="#" class="card-link">Card link</a>
<a href="#" class="card-link">Another link</a>
</div>
</div>
</div>
<?php
$rowCount++;
if($rowCount % $col == 0) { echo '</div><div class="row">'; }
}
?>
</div>
<!-- Include JavaScript CDN -->
<?php include "inc/js.php"; ?>
<!-- Include custom JavaScript -->
<script src="js/qticket.js"> </script>
</body>
</html>