Select Git revision
bookinglist.ejs
bookinglist.ejs 756 B
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Bookings</title>
<link rel="stylesheet" href="/css/booklist.css">
</head>
<body>
<h1>Your Bookings</h1>
<table border="1">
<thead>
<tr>
<th>Booking ID</th>
<th>Booking User</th>
<th>Tour Title</th>
</tr>
</thead>
<tbody>
<% bookings.forEach(booking => { %>
<tr>
<td><%= booking.id %></td> <!-- booking_id -->
<td><%= booking.user_name %></td> <!-- ชื่อผู้จอง -->
<td><%= booking.tour_name %></td> <!-- tour_title -->
</tr>
<% }) %>
</tbody>
</table>
</body>
</html>