-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathticket_show.php
102 lines (88 loc) · 4.12 KB
/
ticket_show.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
<?php
session_start();
if (!isset($_SESSION['uname'])) {
header("location:index.php");
}
?>
<html>
<head>
<meta charset="utf-8">
<title>Booking Summary</title>
<link href='https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css' rel='stylesheet'>
<link href="https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;600;700;800;900&display=swap" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
<link href="https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/fontawesome.min.css">
</head>
<body>
<div class="container py-5">
<!-- For demo purpose -->
<div class="row mb-4">
<div class="col-lg-8 mx-auto text-center">
<h1 class="display-6">BOOKING SUMMARY</h1>
</div>
</div> <!-- End -->
<div class="row">
<div class="col-lg-6 mx-auto">
<div class="card ">
<div class="card-header">
<center><img src="img/logo.png" width="40%">
<h6> Near Upansna Circle, Surendranagar</h6></center>
<?php
include "Database.php";
$result = mysqli_query($conn,"SELECT c.movie,c.booking_date,c.show_time,c.seat,c.totalseat,c.price,c.payment_date,c.custemer_id,u.username,u.email,u.mobile,u.city,t.theater FROM customers c INNER JOIN user u on c.uid=u.id INNER JOIN theater_show t on c.show_time=t.show WHERE custemer_id = '".$_SESSION['custemer_id']."'");
$row = mysqli_fetch_array($result);
?>
<table>
<tr>
<td>+91 846050 2720</td>
<td style="padding: 12px 2px 12px 155px;">Custemer Id: <?php echo $row['custemer_id'];?></td>
</tr>
<tr>
<td></td><td style="padding: 1px 2px 1px 155px;">Date: <?php echo $row['payment_date'];?></td>
</tr>
</table>
<hr>
<center><h3>Movie Name: <?php echo $row['movie'];?></h3></center>
<table>
<tr>
<th>Name</th><th style="padding: 1px 105px;">City</th>
</tr>
<tr>
<td><?php echo $row['username'];?></td><td style="padding: 12px 105px;"><?php echo $row['city'];?></td>
</tr>
<tr>
<th>Email</th><th style="padding: 1px 105px;">Phone</th>
</tr>
<tr>
<td><?php echo $row['email'];?></td><td style="padding: 12px 105px;"><?php echo $row['mobile'];?></td>
</tr>
<tr>
<th>Payment Date</th><th style="padding: 1px 105px;">Payment Amount</th>
</tr>
<tr>
<td><?php echo $row['payment_date'];?></td><td style="padding: 12px 105px;">RS. <?php echo $row['price'];?>/-</td>
</tr>
</table>
<hr>
<h4>BOOKING DETAILS:</h4>
<table>
<tr>
<th>Theater</th><th style="padding: 0px 2px 0px 60px">Date</th><th style="padding-left: 30px;">Time</th>
</tr>
<tr>
<td>No. <?php echo $row['theater'];?></td><td style="padding: 12px 2px 12px 60px"><?php echo $row['booking_date'];?> </td><td style="padding-left: 30px;"> <?php echo $row['show_time'];?></td>
</tr>
<tr>
<th>Seats</th><th style="padding: 0px 2px 0px 60px;">Total Seats</th>
</tr>
<tr>
<td style="padding-right: 150px;"><?php echo $row['seat'];?></td><td style="padding: 12px 2px 12px 60px"><?php echo $row['totalseat'];?></td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
</body>
</html>