cibeUserList.jsp 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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 {
  9. text-align: center;
  10. }
  11. .table td {
  12. text-align: center;
  13. }
  14. </style>
  15. <script type="text/javascript">
  16. $(document).ready(function () {
  17. });
  18. function page(n, s) {
  19. $("#pageNo").val(n);
  20. $("#pageSize").val(s);
  21. $("#searchForm").submit();
  22. return false;
  23. }
  24. </script>
  25. </head>
  26. <body>
  27. <ul class="nav nav-tabs">
  28. <li class="active"><a href="${ctx}/cibe/cibeUser/">美博会用户列表</a></li>
  29. <shiro:hasPermission name="cibe:cibeUser:edit">
  30. <li><a href="${ctx}/cibe/cibeUser/form">美博会用户添加</a></li>
  31. </shiro:hasPermission>
  32. </ul>
  33. <form:form id="searchForm" modelAttribute="cibeUser" action="${ctx}/cibe/cibeUser/" method="post"
  34. class="breadcrumb form-search">
  35. <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
  36. <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
  37. <div class="ul-form">
  38. <label>userID:</label>
  39. <form:input path="userId" htmlEscape="false" maxlength="11" class="input-small"/>
  40. <label>用户姓名:</label>
  41. <form:input path="userName" htmlEscape="false" maxlength="20" class="input-medium"/>
  42. <label>联系方式:</label>
  43. <form:input path="mobile" htmlEscape="false" maxlength="20" class="input-medium"/>
  44. <%--<br>--%>
  45. <label>中奖类型:</label>
  46. <form:select path="prizeType" cssClass="input-medium">
  47. <form:option value="" label=" "></form:option>
  48. <form:options items="${fns:getDictList('cibe_prizeType')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
  49. </form:select>
  50. &nbsp;&nbsp;<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
  51. <div class="clearfix"></div>
  52. </div>
  53. </form:form>
  54. <sys:message content="${message}"/>
  55. <table id="contentTable" class="table table-striped table-bordered table-condensed">
  56. <thead>
  57. <tr>
  58. <th>userID</th>
  59. <th>用户姓名</th>
  60. <th>联系方式</th>
  61. <th>用户类型</th>
  62. <th>地址</th>
  63. <th>奖券ID</th>
  64. <th>中奖类型</th>
  65. <th>兑奖码</th>
  66. <th>抽奖时间</th>
  67. <shiro:hasPermission name="cibe:cibeUser:edit">
  68. <th>操作</th>
  69. </shiro:hasPermission>
  70. </tr>
  71. </thead>
  72. <tbody>
  73. <c:forEach items="${page.list}" var="cibeUser">
  74. <tr>
  75. <td>
  76. <%--<a href="${ctx}/cibe/cibeUser/form?id=${cibeUser.id}">--%>
  77. ${cibeUser.userId}
  78. <%--</a>--%>
  79. </td>
  80. <td>
  81. ${cibeUser.userName}
  82. </td>
  83. <td>
  84. ${cibeUser.mobile}
  85. </td>
  86. <td>
  87. ${fns:getDictLabel(cibeUser.userType, "cibe_userType","4" )}
  88. </td>
  89. <td>
  90. ${cibeUser.address}
  91. </td>
  92. <td>
  93. ${cibeUser.prizeId}
  94. </td>
  95. <td>
  96. ${fns:getDictLabel(cibeUser.prizeType, "cibe_prizeType","0" )}
  97. </td>
  98. <td>
  99. ${cibeUser.prizeCode}
  100. </td>
  101. <td>
  102. <fmt:formatDate value="${cibeUser.prizeTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
  103. </td>
  104. <shiro:hasPermission name="cibe:cibeUser:edit">
  105. <td>
  106. <a href="${ctx}/cibe/cibeUser/form?id=${cibeUser.id}">编辑</a>
  107. <shiro:hasPermission name="cibe:cibeUser:delete">
  108. <a href="${ctx}/cibe/cibeUser/delete?id=${cibeUser.id}"
  109. onclick="return confirmx('确认要删除该美博会用户吗?', this.href)">删除</a>
  110. </shiro:hasPermission>
  111. </td>
  112. </shiro:hasPermission>
  113. </tr>
  114. </c:forEach>
  115. </tbody>
  116. </table>
  117. <div class="pagination">${page}</div>
  118. </body>
  119. </html>