-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathticket.php
More file actions
executable file
·136 lines (131 loc) · 3.87 KB
/
Copy pathticket.php
File metadata and controls
executable file
·136 lines (131 loc) · 3.87 KB
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
<?php
session_start(); // Start the session
// Database connection
include('dbconnection.php');
$sql = "Select * from users";
$result = mysqli_query($conn, $sql);
$row = mysqli_fetch_assoc($result);
// Handle logout
if (isset($_GET['logout'])) {
session_destroy();
header("Location: index.php");
exit();
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Ticket Rate</title>
<link rel="stylesheet" href="styles.css" />
<link rel="stylesheet" href="ticket.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" />
</head>
<body class="body">
<section id="header">
<?php
if (!isset($_SESSION['loggedin']) || $_SESSION['loggedin'] !== true) {
echo '
<nav>
<div class="logo">
<a href="index.php">
<img src="Images/logo12.png" alt="" />
</a>
</div>
<ul>
<li ><a href="index.php">Home</a></li>
<li><a href="movie.php">Movie</a></li>
<li class="active"><a href="ticket.php">Ticket Rate</a></li>
</ul>
<div class="login">
<button><a href="login.php">Login</a></button>
</div>
</nav>';
} else {
echo '
<nav>
<div class="logo">
<a href="index.php">
<img src="Images/logo12.png" alt="" />
</a>
</div>
<ul>
<li><a href="index.php">Home</a></li>
<li>My Tickets</li>
<li><a href="booking.php">Booking</a></li>
<li><a href="movie.php">Movie</a></li>
<li class="active"><a href="ticket.php">Ticket Rate</a></li>
</ul>
<div class="after">
<ion-icon name="person-circle-outline" class="icon"></ion-icon>
<a href="user.php?uid=' . $row["uid"] . '">
<h2 class="session-user">' . htmlspecialchars($_SESSION["email"]) . '</h2>
</a>
</div>
<div class="logout">
<button><a href="?logout=true">Logout</a></button>
</div>
</nav>';
}
?>
</section>
<section id="ticket-container">
<div class="ticket-div">
<div class="details">
<h1>Ticket Prices</h1>
</div>
<div class="ticket-table">
<table>
<tr>
<th>Morning Show</th>
<th>Price</th>
</tr>
<tr>
<td>Weekends (Fri-Sun)</td>
<td>Rs 200</td>
</tr>
<tr>
<td>Weekdays (Mon-Tues)</td>
<td>Rs 150</td>
</tr>
<tr>
<th>Regular Show</th>
<th>Price</th>
</tr>
<tr>
<td>Weekends (Fri-Sun)</td>
<td>Rs 400</td>
</tr>
<tr>
<td>Weekdays (Mon-Tues)</td>
<td>Rs 300</td>
</tr>
<tr>
<th class="wed">
<pre>
WEDNESDAY/THURSDAY
*(Offer not applicable for new release movies)
</pre>
</th>
<th>Price</th>
</tr>
<tr>
<td>Regular Show</td>
<td>Rs. 175</td>
</tr>
<tr>
<td>3D Show</td>
<td>Rs. 225</td>
</tr>
</table>
</div>
</div>
</section>
</script>
<script type="module" src="https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.esm.js"></script>
<script nomodule src="https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.js"></script>
</body>
</html>