-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsubmitPage.html
More file actions
61 lines (59 loc) · 2.81 KB
/
submitPage.html
File metadata and controls
61 lines (59 loc) · 2.81 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Booking Confirmation</title>
<link rel="icon" type="image/png" href="images/subway.png">
<link rel="stylesheet" href="css/bookingPage.css">
<link rel="stylesheet" href="css/booking.css">
<script src="javascript/submitPage.js" defer></script>
<script src="javascript/checkLogin.js" defer></script>
</head>
<body>
<header>
<nav class="navbar">
<h2 class="logo"><a href="index.html">ExpressRail.</a></h2>
<input type="checkbox" id="menu-toggler">
<label for="menu-toggler" id="hamburger-btn">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white" width="24px" height="24px">
<path d="M0 0h24v24H0z" fill="none"/>
<path d="M3 18h18v-2H3v2zm0-5h18V11H3v2zm0-7v2h18V6H3z"/>
</svg>
</label>
<ul class="all-links">
<li class="logged-in"><a href="useraccount.html">Profile</a></li>
<li><a href="BookTickets.html">Book Tickets</a></li>
<li><a href="trainSchedule.html">Train Timings</a></li>
<li><a href="aboutus.html">About Us</a></li>
<li class="logged-in log-out"><a href="#">Log Out</a></li>
<li class="not-logged-in"><a href="login.html">Sign In</a></li>
<li class="join-btn not-logged-in"><a href="registration.html">Sign Up</a></li>
</ul>
</nav>
</header>
<section class="confirmation-section">
<div class="details-container">
<h2>Booking Details</h2>
<p><strong>From:</strong> <span id="confirm-from"></span></p>
<p><strong>To:</strong> <span id="confirm-to"></span></p>
<p><strong>Email:</strong> <span id="confirm-email"></span></p>
<p><strong>Date of Journey:</strong> <span id="confirm-date"></span></p>
<p><strong>Class:</strong> <span id="confirm-class"></span></p>
<div>
<button class="home-btn" onclick="window.location.href='index.html'">Go Back Home</button>
</div>
</div>
</section>
<script>
document.addEventListener("DOMContentLoaded", function() {
const params = new URLSearchParams(window.location.search);
document.getElementById("confirm-from").innerText = params.get("from") || "N/A";
document.getElementById("confirm-to").innerText = params.get("to") || "N/A";
document.getElementById("confirm-email").innerText = params.get("email") || "N/A";
document.getElementById("confirm-date").innerText = params.get("date") || "N/A";
document.getElementById("confirm-class").innerText = params.get("classType") || "N/A";
});
</script>
</body>
</html>