user-base-list.jsp 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <%@page contentType="text/html;charset=UTF-8"%>
  2. <%@include file="/taglibs.jsp"%>
  3. <%pageContext.setAttribute("currentHeader", "user");%>
  4. <%pageContext.setAttribute("currentMenu", "user");%>
  5. <!doctype html>
  6. <html>
  7. <head>
  8. <%@include file="/common/meta.jsp"%>
  9. <title><spring:message code="user.user.list.title" text="用户列表"/></title>
  10. <%@include file="/common/s.jsp"%>
  11. <script type="text/javascript">
  12. var config = {
  13. id: 'userGrid',
  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_username': '${param.filter_LIKES_username}',
  23. 'filter_EQI_status': '${param.filter_EQI_status}'
  24. },
  25. selectedItemClass: 'selectedItem',
  26. gridFormId: 'userGridForm',
  27. exportUrl: 'user-base-export.do'
  28. };
  29. var table;
  30. $(function() {
  31. table = new Table(config);
  32. table.configPagination('.m-pagination');
  33. table.configPageInfo('.m-page-info');
  34. table.configPageSize('.m-page-size');
  35. });
  36. </script>
  37. </head>
  38. <body>
  39. <%@include file="/header/user.jsp"%>
  40. <div class="row-fluid">
  41. <%@include file="/menu/user.jsp"%>
  42. <!-- start of main -->
  43. <section id="m-main" class="span10">
  44. <article class="m-widget">
  45. <header class="header">
  46. <h4 class="title">查询</h4>
  47. <div class="ctrl">
  48. <a class="btn"><i id="userSearchIcon" class="icon-chevron-up"></i></a>
  49. </div>
  50. </header>
  51. <div id="userSearch" class="content content-inner">
  52. <form name="userForm" method="post" action="user-base-list.do" class="form-inline">
  53. <label for="user_username"><spring:message code='user.user.list.search.username' text='账号'/>:</label>
  54. <input type="text" id="user_username" name="filter_LIKES_username" value="${param.filter_LIKES_username}">
  55. <label for="user_enabled"><spring:message code='user.user.list.search.status' text='状态'/>:</label>
  56. <select id="user_enabled" name="filter_EQI_status" class="input-mini">
  57. <option value=""></option>
  58. <option value="1" ${param.filter_EQI_status == 1 ? 'selected' : ''}><spring:message code='user.user.list.search.enabled.true' text='启用'/></option>
  59. <option value="0" ${param.filter_EQI_status == 0 ? 'selected' : ''}><spring:message code='user.user.list.search.enabled.false' text='禁用'/></option>
  60. </select>
  61. <button class="btn btn-small" onclick="document.userForm.submit()">查询</button>
  62. </form>
  63. </div>
  64. </article>
  65. <article class="m-blank">
  66. <div class="pull-left">
  67. <region:region-permission permission="user:create">
  68. <button class="btn btn-small a-insert" onclick="location.href='user-base-input.do'">新建</button>
  69. </region:region-permission>
  70. <region:region-permission permission="user:delete">
  71. <button class="btn btn-small a-remove" onclick="table.removeAll()">删除</button>
  72. </region:region-permission>
  73. <button class="btn btn-small a-export" onclick="table.exportExcel()">导出</button>
  74. </div>
  75. <div class="pull-right">
  76. 每页显示
  77. <select class="m-page-size">
  78. <option value="10">10</option>
  79. <option value="20">20</option>
  80. <option value="50">50</option>
  81. </select>
  82. </div>
  83. <div class="m-clear"></div>
  84. </article>
  85. <article class="m-widget">
  86. <header class="header">
  87. <h4 class="title"><spring:message code="user.user.list.title" text="用户列表"/></h4>
  88. </header>
  89. <div class="content">
  90. <form id="userGridForm" name="userGridForm" method='post' action="user-base-remove.do" class="m-form-blank">
  91. <table id="userGrid" class="m-table table-hover">
  92. <thead>
  93. <tr>
  94. <th width="10" class="m-table-check"><input type="checkbox" name="checkAll" onchange="toggleSelectedItems(this.checked)"></th>
  95. <th class="sorting" name="id"><spring:message code="user.user.list.id" text="编号"/></th>
  96. <th class="sorting" name="username"><spring:message code="user.user.list.username" text="账号"/></th>
  97. <th class="sorting" name="nickName">显示名</th>
  98. <th class="sorting" name="status"><spring:message code="user.user.list.status" text="状态"/></th>
  99. <th width="80">&nbsp;</th>
  100. </tr>
  101. </thead>
  102. <tbody>
  103. <c:forEach items="${page.result}" var="item">
  104. <tr>
  105. <td><input type="checkbox" class="selectedItem a-check" name="selectedItem" value="${item.id}"></td>
  106. <td>${item.id}</td>
  107. <td>${item.username}</td>
  108. <td>${item.nickName}</td>
  109. <td>${item.status == 1 ? '启用' : '禁用'}</td>
  110. <td>
  111. <a href="user-avatar-input.do?id=${item.id}">头像</a>
  112. <a href="user-base-input.do?id=${item.id}" class="a-update"><spring:message code="core.list.edit" text="编辑"/></a>
  113. </td>
  114. </tr>
  115. </c:forEach>
  116. </tbody>
  117. </table>
  118. </form>
  119. </div>
  120. </article>
  121. <article>
  122. <div class="m-page-info pull-left">
  123. 共100条记录 显示1到10条记录
  124. </div>
  125. <div class="btn-group m-pagination pull-right">
  126. <button class="btn btn-small">&lt;</button>
  127. <button class="btn btn-small">1</button>
  128. <button class="btn btn-small">&gt;</button>
  129. </div>
  130. <div class="m-clear"></div>
  131. </article>
  132. </section>
  133. <!-- end of main -->
  134. </div>
  135. </body>
  136. </html>