infoList1.jsp 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <%@ page contentType="text/html;charset=UTF-8" %>
  2. <%@ include file="/WEB-INF/views/include/taglib.jsp"%>
  3. <html>
  4. <head>
  5. <title>文章列表管理</title>
  6. <meta name="decorator" content="default"/>
  7. <style type="text/css">
  8. .table th{text-align: center;}
  9. .table td{text-align: center;}
  10. </style>
  11. <script type="text/javascript">
  12. $(document).ready(function() {
  13. show_title(16);
  14. //弹出框去滚动条
  15. top.$('#jbox-content').css("overflow-y","hidden");
  16. });
  17. function page(n,s){
  18. $("#pageNo").val(n);
  19. $("#pageSize").val(s);
  20. $("#searchForm").submit();
  21. return false;
  22. }
  23. function edit(id){
  24. window.parent.window.editInfo(id);
  25. window.parent.window.jBox.close();
  26. }
  27. </script>
  28. </head>
  29. <body>
  30. <form:form id="searchForm" modelAttribute="info" action="${ctx}/info/info/list1" method="post" class="breadcrumb form-search">
  31. <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
  32. <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
  33. <form:hidden path="label"/>
  34. <div class="ul-form">
  35. <label>ID:</label>
  36. <form:input path="id" htmlEscape="false" maxlength="11" class="input-mini"/>
  37. <label>标题:</label>
  38. <form:input path="title" htmlEscape="false" maxlength="100" class="input-medium"/>
  39. <%-- <label>发布人:</label>
  40. <form:input path="publisher" htmlEscape="false" maxlength="50" class="input-medium"/>
  41. <br> <br>
  42. <label>文章分类:</label>
  43. <form:select path="infoType.id" class="input-small">
  44. <form:option value="" label=" "/>
  45. <form:options items="${typeList}" itemLabel="name" itemValue="id" htmlEscape="false"/>
  46. </form:select>
  47. <label>推荐状态:</label>
  48. <form:select path="recommendStatus" class="input-mini">
  49. <form:option value="" label=" "/>
  50. <form:options items="${fns:getDictList('enabled_status')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
  51. </form:select>
  52. <label>状态:</label>
  53. <form:select path="enabledStatus" class="input-mini">
  54. <form:option value="" label=" "/>
  55. <form:options items="${fns:getDictList('enabled_status')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
  56. </form:select> --%>
  57. &nbsp;&nbsp;<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
  58. <div class="clearfix"></div>
  59. </div>
  60. </form:form>
  61. <sys:message content="${message}"/>
  62. <table id="contentTable" class="table table-striped table-bordered table-condensed">
  63. <thead>
  64. <tr>
  65. <th>文章ID</th>
  66. <th>文章标题</th>
  67. <th>文章标签</th>
  68. <th>发布时间</th>
  69. <th>操作</th>
  70. </tr>
  71. </thead>
  72. <tbody>
  73. <c:forEach items="${page.list}" var="info">
  74. <tr>
  75. <td>${info.id}</td>
  76. <td>
  77. <%-- <a href="javascript:void(0);" onclick="edit('${info.id}');"> --%>
  78. <a href="javascript:edit('${info.id}');">
  79. <%-- <a href="${ctx}/info/info/form?id=${info.id}"> --%>
  80. <span class="comitted">${info.title}</span>
  81. </a>
  82. </td>
  83. <td>${info.label}</td>
  84. <td><fmt:formatDate value="${info.pubdate}" pattern="yyyy-MM-dd HH:mm"/></td>
  85. <td><a href="${fns:getConfig('wwwServer')}info/detail-${info.id}-1.html" target="_blank">查看</a></td>
  86. </tr>
  87. </c:forEach>
  88. </tbody>
  89. </table>
  90. <div class="pagination">${page}</div>
  91. </body>
  92. </html>