user-base-search.jsp 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  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-search.do" class="form-inline">
  53. <c:forEach items="${userSchema.userSchemaInfos}" var="item">
  54. <label>${item.label}</label>:
  55. <input type="text" name="${item.name}">
  56. </c:forEach>
  57. <button class="btn btn-small" onclick="document.userForm.submit()">查询</button>
  58. </form>
  59. </div>
  60. </article>
  61. <article class="m-blank">
  62. <div class="pull-left">
  63. <region:region-permission permission="user:create">
  64. <button class="btn btn-small" onclick="location.href='user-base-input.do'">新建</button>
  65. </region:region-permission>
  66. <region:region-permission permission="user:delete">
  67. <button class="btn btn-small" onclick="table.removeAll()">删除</button>
  68. </region:region-permission>
  69. <button class="btn btn-small" onclick="table.exportExcel()">导出</button>
  70. </div>
  71. <div class="pull-right">
  72. 每页显示
  73. <select class="m-page-size">
  74. <option value="10">10</option>
  75. <option value="20">20</option>
  76. <option value="50">50</option>
  77. </select>
  78. </div>
  79. <div class="m-clear"></div>
  80. </article>
  81. <article class="m-widget">
  82. <header class="header">
  83. <h4 class="title"><spring:message code="user.user.list.title" text="用户列表"/></h4>
  84. </header>
  85. <div class="content content-inner">
  86. <form id="userGridForm" name="userGridForm" method='post' action="user-base-remove.do" class="m-form-blank">
  87. <table id="userGrid" class="m-table table-hover">
  88. <thead>
  89. <tr>
  90. <th width="10" class="m-table-check"><input type="checkbox" name="checkAll" onchange="toggleSelectedItems(this.checked)"></th>
  91. <th class="sorting" name="id"><spring:message code="user.user.list.id" text="编号"/></th>
  92. <th class="sorting" name="username"><spring:message code="user.user.list.username" text="账号"/></th>
  93. <th name="password"><spring:message code="user.user.list.password" text="密码"/></th>
  94. <th class="sorting" name="status"><spring:message code="user.user.list.status" text="状态"/></th>
  95. <th name="firstName"><spring:message code="user.user.list.code" text="编号"/></th>
  96. <th name="lastName"><spring:message code="user.user.list.email" text="邮箱"/></th>
  97. <th width="80">&nbsp;</th>
  98. </tr>
  99. </thead>
  100. <tbody>
  101. <c:forEach items="${page.result}" var="item">
  102. <tr>
  103. <td><input type="checkbox" class="selectedItem" name="selectedItem" value="${item.id}"></td>
  104. <td>${item.id}</td>
  105. <td>${item.username}</td>
  106. <td>[protected]</td>
  107. <td>${item.status == 1 ? '启用' : '禁用'}</td>
  108. <td>${item.userExtraMap['code'].value}</td>
  109. <td>${item.userExtraMap['email'].value}</td>
  110. <td>
  111. <a href="user-base-input.do?id=${item.id}"><spring:message code="core.list.edit" text="编辑"/></a>
  112. </td>
  113. </tr>
  114. </c:forEach>
  115. </tbody>
  116. </table>
  117. </form>
  118. </div>
  119. </article>
  120. <article>
  121. <div class="m-page-info pull-left">
  122. 共100条记录 显示1到10条记录
  123. </div>
  124. <div class="btn-group m-pagination pull-right">
  125. <button class="btn btn-small">&lt;</button>
  126. <button class="btn btn-small">1</button>
  127. <button class="btn btn-small">&gt;</button>
  128. </div>
  129. <div class="m-clear"></div>
  130. </article>
  131. </section>
  132. <!-- end of main -->
  133. </div>
  134. </body>
  135. </html>