<%@ include file="/includes/setup.inc" %>
<html>
  <head>
    <title>
      Library Administration
    </title>
    <link rel="stylesheet" type="text/css" href='<c:url value="/css/app.css"/>'>
  </head>
  <body>
    <h1>
      Library Administration
    </h1>
    <hr>
    <html:form action="/adminBooks">
      <html:link forward="home">
        Return Home
      </html:link>
      <table>
        <thead>
          <tr>
            <th class="tableHeader" scope="col">
              Title
            </th>
            <th class="tableHeader" scope="col">
              Author
            </th>
            <th class="tableHeader" scope="col">
              Checked Out
            </th>
          </tr>
        </thead>
        <tbody>
          <c:forEach var="book" items="${library.bookList}">
            <tr>
              <td>
                <c:out value="${book.title}"/>
              </td>
              <td>
                <c:out value="${book.author}"/>
              </td>
              <td>
                <html:multibox property="picks" onclick="submit()">
                  <c:out value="${book.trackingID}"/>
                </html:multibox>
              </td>
            </tr>
          </c:forEach>
        </tbody>
      </table>
    </html:form>
  </body>
</html>
