Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <#assign mainDiv>
- <h2>책 목록</h2>
- 총 ${params["count"]} 건
- <table>
- <thead>
- <tr>
- <th>순번</th>
- <th>제목</th>
- <th>저자</th>
- <th>출판년도</th>
- <th>ISBN</th>
- <th>등록일자</th>
- <th>수정일자</th>
- </tr>
- </thead>
- <tbody>
- <#list items as item>
- <tr>
- <td>${params["count"] - params["first"] - item_index}</td>
- <td>
- <a href="${contextPath}/book/view?id=${item.id?html}">
- <#if item.title?has_content>
- ${item.title?html}
- <#else>
- (없음)
- </#if>
- </a>
- </td>
- <td>${(item.author?html)!}</td>
- <td>${(item.year?c?html)!}</td>
- <td>${(item.isbn?html)!}</td>
- <td>${(item.dateCreated?string("yyyy-MM-dd"))!}</td>
- <td>${(item.dateModified?string("yyyy-MM-dd"))!}</td>
- </tr>
- </#list>
- </tbody>
- <tfoot>
- <tr>
- <td colspan="6">
- <#list params["startPage"]..params["endPage"] as i>
- <#if i == params["page"]>
- <strong>${i}</strong>
- <#else>
- <a href="${contextPath}/book?page=${i}">${i}</a>
- </#if>
- </#list>
- </td>
- </tr>
- <tr>
- <td colspan="6">
- <a href="${contextPath}/book/add">추가</a>
- </td>
- </tr>
- </tfoot>
- </table>
- </#assign>
- <#include "/layout.ftl">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement