-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
106 lines (89 loc) · 4.17 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<title>Hotel Registration form</title>
</head>
<body>
<div class="vector">
<p class="digibhem"><b>Hotel DigiBhem</b></p>
<img src="vector3.jpg" alt="Hotel" class="vector3">
<p class="content">“Our hotel is located in a convenient location<br>
near many places suitable for students, families, and businesses.<br>We offer flexible pricing options and provide amenities such as
<br>free Wi-Fi and complimentary breakfast. Our hotel is perfect for<br> those looking for an affordable and comfortable stay.”</p>
<img src="vector5.jpg" class="vector5" alt="image">
</div>
<form class="card" id="registrationForm" action="http://localhost:3000/submit" method="POST">
<h1>Online Booking</h1>
<center><img src="vector2bg.png" alt="Booking" class="imgbooking"></center>
<label for="customerName">Customer Name:</label>
<input type="text" id="customerName" required>
<div class="flex">
<div class="checkin">
<label for="checkInDate">Check-in Date:</label>
<input type="date" id="checkInDate" required>
</div>
<div>
<label for="days">No.of Days:</label>
<input type="number" id="days" min="1" required>
</div>
<div>
<label for="persons">No.of Persons:</label>
<input type="number" id="persons" name="persons" min="1" required>
</div>
</div>
<label for="roomType">Room Type:</label>
<select id="roomType">
<option value="deluxe">Deluxe Room - ₹ 2500/-</option>
<option value="suite">Suite Room - ₹ 4000/-</option>
</select>
<fieldset>
<legend>Amenities:</legend>
<div class="checkbox-container">
<input type="checkbox" id="ac" name="amenities" value="AC">
<label for="ac">AC - ₹ 1000/-</label>
</div>
<div class="checkbox-container">
<input type="checkbox" id="locker" name="amenities" value="Locker">
<label for="locker">Locker - ₹ 300/-</label>
</div>
</fieldset>
<p class="note"><b>Additional charges</b>:<br><br>*Upto 2 People: No Change in Cost<br><br>*Per Day Cost for Extra Person: ₹ 1000/-</p>
<div class="checkbox-container" style="margin: 20px 0px;">
<input type="checkbox" id="AdvancePayment" name="AdvancePayment" value="AdvancePayment" required>
<label for="AdvancePayment">Advance Payment - ₹ 1000/-</label>
</div>
<!-- Submitt Button -->
<input type="submit" value="Register">
</form>
<!-- ... Your other HTML elements ... -->
<!-- Cost Modal -->
<!-- Cost Modal -->
<div class="modal" id="costModal">
<div class="modal-content">
<span class="close-button" id="closeCostModal">×</span>
<h2 style="color: #1b75fd;">Total Cost Breakdown</h2><br>
<p id="roomCostDisplay">Room Cost: ₹0</p>
<p id="personsDisplay">Number of Persons: 0</p>
<p id="personsCostDisplay">Additional Cost for Persons: ₹0</p>
<p id="amenitiesCostDisplay">Amenities Cost: ₹0</p>
<p id="totalCostDisplay">Total Cost: ₹0</p>
<label for="advancePayment">Advance Payment: ₹ 1000/-</label>
<p id="balanceDisplay"><b>Balance to be paid</b> ₹0</p><br>
<button id="confirmBooking" style="width:180px; height:40px;border-radius:5px;background-color: #1b75fd; color: white;border: none;">Confirm Booking</button>
<button id="printButton" style="width:180px; height:40px;border-radius:5px;background-color: #1b75fd; color: white;border: none; margin-left: 10px;">Print Receipt</button>
</div>
</div>
<div class="modal" id="successModal">
<div class="modal-content">
<span class="close-button" id="closeModal">×</span>
<center><h2 style="color: #04cb04;">Thanks for Booking</h2>
<br><br> <p>Your booking is successful!</p></center>
</div>
</div>
<script src="script.js"></script>
<script src="server.js"></script>
</body>
</html>