1007710522_edit.jsp 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
  2. <html>
  3. <head>
  4. <meta name="keywords" content="${website.seoKeywords}" />
  5. <meta name="description" content="${website.seoDescription}" />
  6. <meta name="lanmu" content="${navigation.name}">
  7. <title>${website.seoTitle}站内搜索</title>
  8. <website-include page="head" />
  9. </head>
  10. <body>
  11. <website-include page="navigation" />
  12. <!-- 主体 -->
  13. <div class="content">
  14. <!-- 面包屑 -->
  15. <div class="wrap">
  16. <div class="crumbs">
  17. <c:if test="${isNullKey == '1'}">
  18. ${website.seoTitle}站内搜索
  19. </c:if>
  20. <c:if test="${isNullKey != '1'}">
  21. “${str}” 的搜索结果
  22. </c:if>
  23. </div>
  24. </div>
  25. <div class="content-part wrap">
  26. <div class="content-right">
  27. <c:if test="${isNullKey == '1'}">
  28. <p class="no-data">请输入标题关键词进行搜索</p>
  29. </c:if>
  30. <c:if test="${articleList.size() == 0}">
  31. <p class="no-data">抱歉,没有找到相关结果。</p>
  32. </c:if>
  33. <!-- 文字列表 -->
  34. <div class="list-wrap">
  35. <ul>
  36. <c:forEach items="${articleList}" var="item">
  37. <li>
  38. <a href="${item.url}" target="${item.target}">
  39. <p class="list-title">${item.title}</p>
  40. <span class="list-time"><fmt:formatDate value="${item.release_time}" pattern="yyyy-MM-dd" /></span>
  41. </a>
  42. </li>
  43. </c:forEach>
  44. </ul>
  45. </div>
  46. <!-- 分页 -->
  47. <div class="list-page">
  48. <div id="page-warp"></div>
  49. </div>
  50. </div>
  51. </div>
  52. </div>
  53. <website-include page="footer" />
  54. </body>
  55. <script src="/main/dist/websites/plug-in/laypage/laypage.js"></script>
  56. <script>
  57. laypage({
  58. cont: 'page-warp',
  59. pages: '${pageCount}',
  60. curr: '${curPageNo}',
  61. groups: 10,
  62. skip: true,
  63. jump: function (obj, first) {
  64. if (first) {
  65. return;
  66. }
  67. location.href = "/search?str=${str}&page=" + obj.curr;
  68. }
  69. });
  70. </script>
  71. </html>