OneCompiler

Oĥhhhhhhhhhhhhhhhhhhhhh

1617
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Track Booking</title> <link rel="stylesheet" href="styles.css"> <!-- External CSS for styling --> </head> <body> <h1>Track Your Booking</h1>
<!-- Display the booking information -->
<table id="bookingDetails" class="modern-table">
    <thead>
        <tr>
            <th>Field</th>
            <th>Value</th>
        </tr>
    </thead>
    <tbody>
        <!-- Populate the table with booking data from JSP -->
        <tr>
            <td>Booking ID</td>
            <td>${bookingId}</td>
        </tr>
        <tr>
            <td>Full Name</td>
            <td>${fullName}</td>
        </tr>
        <tr>
            <td>Address</td>
            <td>${address}</td>
        </tr>
        <tr>
            <td>Recipient Name</td>
            <td>${recName}</td>
        </tr>
        <tr>
            <td>Recipient Address</td>
            <td>${recAddress}</td>
        </tr>
        <tr>
            <td>Date of Booking</td>
            <td>${bookingDate}</td>
        </tr>
    </tbody>
</table>
</body> </html> <% String bookingId = request.getAttribute("bookingId").toString(); String fullName = request.getAttribute("fullName").toString(); String address = request.getAttribute("address").toString(); String recName = request.getAttribute("recName").toString(); String recAddress = request.getAttribute("recAddress").toString(); String bookingDate = request.getAttribute("bookingDate").toString(); %> /* Modern table styling */ .modern-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-family: Arial, sans-serif; box-shadow: 0 5px 15px rgba(0,0,0,0.1); border-radius: 10px; overflow: hidden; }

.modern-table thead {
background-color: #007BFF;
color: white;
text-align: left;
}

.modern-table th, .modern-table td {
padding: 12px 15px;
border: 1px solid #ddd;
}

.modern-table tbody tr:nth-child(even) {
background-color: #f3f3f3;
}

.modern-table tbody tr:hover {
background-color: #f1f1f1;
cursor: pointer;
}

.modern-table td {
font-size: 16px;
}

input {
padding: 10px;
margin: 10px 0;
border: 1px solid #ddd;
border-radius: 5px;
width: 300px;
}