msg-info-list.jsp 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <%@page contentType="text/html;charset=UTF-8"%>
  2. <%@include file="/taglibs.jsp"%>
  3. <%pageContext.setAttribute("currentHeader", "msg");%>
  4. <%pageContext.setAttribute("currentMenu", "msg");%>
  5. <!doctype html>
  6. <html lang="en">
  7. <head>
  8. <%@include file="/common/meta.jsp"%>
  9. <title><spring:message code="dev.msg-info.list.title" text="列表"/></title>
  10. <%@include file="/common/s.jsp"%>
  11. <script type="text/javascript">
  12. var config = {
  13. id: 'msg-infoGrid',
  14. pageNo: ${page.pageNo},
  15. pageSize: ${page.pageSize},
  16. totalCount: ${page.totalCount},
  17. resultSize: ${page.resultSize},
  18. pageCount: ${page.pageCount},
  19. orderBy: '${page.orderBy == null ? "" : page.orderBy}',
  20. asc: ${page.asc},
  21. params: {
  22. 'filter_LIKES_name': '${param.filter_LIKES_name}'
  23. },
  24. selectedItemClass: 'selectedItem',
  25. gridFormId: 'msg-infoGridForm',
  26. exportUrl: 'msg-info-export.do'
  27. };
  28. var table;
  29. $(function() {
  30. table = new Table(config);
  31. table.configPagination('.m-pagination');
  32. table.configPageInfo('.m-page-info');
  33. table.configPageSize('.m-page-size');
  34. });
  35. </script>
  36. </head>
  37. <body>
  38. <%@include file="/header/msg-info.jsp"%>
  39. <div class="row-fluid">
  40. <%@include file="/menu/msg-info.jsp"%>
  41. <!-- start of main -->
  42. <section id="m-main" class="span10">
  43. <article class="m-widget">
  44. <header class="header">
  45. <h4 class="title">查询</h4>
  46. <div class="ctrl">
  47. <a class="btn"><i id="msg-infoSearchIcon" class="icon-chevron-up"></i></a>
  48. </div>
  49. </header>
  50. <div id="msg-infoSearch" class="content content-inner">
  51. <form name="msg-infoForm" method="post" action="msg-info-list.do" class="form-inline">
  52. <label for="msg-info_name"><spring:message code='msg-info.msg-info.list.search.name' text='名称'/>:</label>
  53. <input type="text" id="msg-info_name" name="filter_LIKES_name" value="${param.filter_LIKES_name}">
  54. <button class="btn btn-small a-search" onclick="document.msg-infoForm.submit()">查询</button>&nbsp;
  55. </form>
  56. </div>
  57. </article>
  58. <article class="m-blank">
  59. <div class="pull-left">
  60. <region:region-permission permission="msg-info:create">
  61. <button class="btn btn-small a-insert" onclick="location.href='msg-info-input.do'">新建</button>
  62. </region:region-permission>
  63. <region:region-permission permission="msg-info:delete">
  64. <button class="btn btn-small a-remove" onclick="table.removeAll()">删除</button>
  65. </region:region-permission>
  66. <button class="btn btn-small a-export" onclick="table.exportExcel()">导出</button>
  67. </div>
  68. <div class="pull-right">
  69. 每页显示
  70. <select class="m-page-size">
  71. <option value="10">10</option>
  72. <option value="20">20</option>
  73. <option value="50">50</option>
  74. </select>
  75. </div>
  76. <div class="m-clear"></div>
  77. </article>
  78. <article class="m-widget">
  79. <header class="header">
  80. <h4 class="title"><spring:message code="msg-info.msg-info.list.title" text="列表"/></h4>
  81. </header>
  82. <div class="content">
  83. <form id="msg-infoGridForm" name="msg-infoGridForm" method='post' action="msg-info-remove.do" class="m-form-blank">
  84. <table id="msg-infoGrid" class="m-table table-hover">
  85. <thead>
  86. <tr>
  87. <th width="10" class="m-table-check"><input type="checkbox" name="checkAll" onchange="toggleSelectedItems(this.checked)"></th>
  88. <th class="sorting" name="name">标题</th>
  89. <th class="sorting" name="name">收件人</th>
  90. <th class="sorting" name="name">发送时间</th>
  91. <th class="sorting" name="name">状态</th>
  92. <th width="80">&nbsp;</th>
  93. </tr>
  94. </thead>
  95. <tbody>
  96. <c:forEach items="${page.result}" var="item">
  97. <tr>
  98. <td><input type="checkbox" class="selectedItem a-check" name="selectedItem" value="${item.id}"></td>
  99. <td>${item.name}</td>
  100. <td>${item.receiverUsername}</td>
  101. <td>${item.createTime}</td>
  102. <td>${item.status == 0 ? '未读' : '已读'}</td>
  103. <td>
  104. <a href="msg-info-input.do?id=${item.id}" class="a-update"><spring:message code="core.list.edit" text="编辑"/></a>
  105. </td>
  106. </tr>
  107. </c:forEach>
  108. </tbody>
  109. </table>
  110. </form>
  111. </div>
  112. </article>
  113. <article>
  114. <div class="m-page-info pull-left">
  115. 共100条记录 显示1到10条记录
  116. </div>
  117. <div class="btn-group m-pagination pull-right">
  118. <button class="btn btn-small">&lt;</button>
  119. <button class="btn btn-small">1</button>
  120. <button class="btn btn-small">&gt;</button>
  121. </div>
  122. <div class="m-clear"></div>
  123. </article>
  124. <div class="m-spacer"></div>
  125. </section>
  126. <!-- end of main -->
  127. </div>
  128. </body>
  129. </html>