userAllCouponList.jsp 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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. });
  14. function page(n,s){
  15. $("#pageNo").val(n);
  16. $("#pageSize").val(s);
  17. $("#searchForm").submit();
  18. return false;
  19. }
  20. /**
  21. * @param obj
  22. * jquery控制input只能输入数字
  23. */
  24. function onlynum(obj) {
  25. obj.value = obj.value.replace(/[^\d]/g, ""); //清除"数字"以外的字符
  26. }
  27. </script>
  28. </head>
  29. <body>
  30. <ul class="nav nav-tabs">
  31. <li class="active"><a href="${ctx}/hehe/cmHeheCoupon/user/list">用户领取列表</a></li>
  32. </ul>
  33. <form:form id="searchForm" modelAttribute="cmHeheReceiveUser" action="${ctx}/hehe/cmHeheCoupon/user/list" method="post" class="breadcrumb form-search">
  34. <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
  35. <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
  36. <div class="ul-form">
  37. <label>微信昵称:</label>
  38. <form:input path="nickName" htmlEscape="false" maxlength="20" class="input-medium"/>
  39. <label>手机号:</label>
  40. <form:input path="mobile" htmlEscape="false" maxlength="15" class="input-medium" onkeyup="onlynum(this)"/>
  41. <label>身份:</label>
  42. <form:select path="userIdentity" class="input-small">
  43. <form:option value="" label="全部"/>
  44. <form:option value="1" label="普通用户"/>
  45. <form:option value="2" label="分销者"/>
  46. </form:select>
  47. <input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
  48. <div class="clearfix"></div>
  49. </div>
  50. </form:form>
  51. <sys:message content="${message}"/>
  52. <table id="contentTable" class="table table-striped table-bordered table-condensed" >
  53. <thead>
  54. <tr>
  55. <th>ID</th>
  56. <th>微信昵称</th>
  57. <th>手机号</th>
  58. <th>身份</th>
  59. <th>领取优惠券总数</th>
  60. <th>可用优惠券总数</th>
  61. <th>操作</th>
  62. </tr>
  63. </thead>
  64. <tbody>
  65. <c:forEach items="${page.list}" var="user" varStatus="index">
  66. <tr>
  67. <td>
  68. ${user.userId}
  69. </td>
  70. <td>
  71. ${user.nickName}
  72. </td>
  73. <td>
  74. ${user.mobile}
  75. </td>
  76. <td>
  77. ${user.userIdentity eq 1 ? "普通用户":"分销者"}
  78. </td>
  79. <td>
  80. ${user.receiveNum}
  81. </td>
  82. <td>
  83. ${user.ableNum}
  84. </td>
  85. <td>
  86. <a href="${ctx}/hehe/cmHeheCoupon/receiveDetails?userId=${user.userId}" >查看详情</a>
  87. </td>
  88. </tr>
  89. </c:forEach>
  90. </tbody>
  91. </table>
  92. <div class="pagination">${page}</div>
  93. </body>
  94. </html>