Gitlab@Informatics

Skip to content
Snippets Groups Projects
Select Git revision
  • 4b707dd4a24469db979ea1aa7ba3ec197ddb2159
  • main default protected
2 results

bookinglist.ejs

Blame
  • 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>