Advertisement
purluno

/WEB-INF/views/book/index.ftl

Apr 24th, 2014
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 1.15 KB | None | 0 0
  1. <#assign mainDiv>
  2. <h2>책 목록</h2>
  3.  
  4. 총 ${params["count"]}
  5. <table>
  6. <thead>
  7. <tr>
  8.     <th>순번</th>
  9.     <th>제목</th>
  10.     <th>저자</th>
  11.     <th>출판년도</th>
  12.     <th>ISBN</th>
  13.     <th>등록일자</th>
  14.     <th>수정일자</th>
  15. </tr>
  16. </thead>
  17. <tbody>
  18. <#list items as item>
  19.     <tr>
  20.         <td>${params["count"] - params["first"] - item_index}</td>
  21.         <td>
  22.             <a href="${contextPath}/book/view?id=${item.id?html}">
  23.                 <#if item.title?has_content>
  24.                     ${item.title?html}
  25.                 <#else>
  26.                     (없음)
  27.                 </#if>
  28.             </a>
  29.         </td>
  30.         <td>${(item.author?html)!}</td>
  31.         <td>${(item.year?c?html)!}</td>
  32.         <td>${(item.isbn?html)!}</td>
  33.         <td>${(item.dateCreated?string("yyyy-MM-dd"))!}</td>
  34.         <td>${(item.dateModified?string("yyyy-MM-dd"))!}</td>
  35.     </tr>
  36. </#list>
  37. </tbody>
  38. <tfoot>
  39. <tr>
  40.     <td colspan="6">
  41.         <#list params["startPage"]..params["endPage"] as i>
  42.             <#if i == params["page"]>
  43.                 <strong>${i}</strong>
  44.             <#else>
  45.                 <a href="${contextPath}/book?page=${i}">${i}</a>
  46.             </#if>
  47.         </#list>
  48.     </td>
  49. </tr>
  50. <tr>
  51.     <td colspan="6">
  52.         <a href="${contextPath}/book/add">추가</a>
  53.     </td>
  54. </tr>
  55. </tfoot>
  56. </table>
  57. </#assign>
  58. <#include "/layout.ftl">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement