cmHeheCouponList.jsp 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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. </script>
  21. </head>
  22. <body>
  23. <ul class="nav nav-tabs">
  24. <li class="${cmHeheCoupon.couponType eq 1?'active':''}"><a href="${ctx}/hehe/cmHeheCoupon/?couponType=1">活动券</a></li>
  25. <li class="${cmHeheCoupon.couponType eq 2?'active':''}"><a href="${ctx}/hehe/cmHeheCoupon/?couponType=2">专享券</a></li>
  26. <li class="${cmHeheCoupon.couponType eq 3?'active':''}"><a href="${ctx}/hehe/cmHeheCoupon/?couponType=3">新人券</a></li>
  27. <li class="${cmHeheCoupon.couponType eq 4?'active':''}"><a href="${ctx}/hehe/cmHeheCoupon/?couponType=4">好友邀请券</a></li>
  28. <li class="${cmHeheCoupon.couponType eq 5?'active':''}"><a href="${ctx}/hehe/cmHeheCoupon/?couponType=5">好友消费券</a></li>
  29. </ul>
  30. <form:form id="searchForm" modelAttribute="cmHeheCoupon" action="${ctx}/hehe/cmHeheCoupon/" method="post" class="breadcrumb form-search">
  31. <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
  32. <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
  33. <form:hidden path="couponType" />
  34. <div class="ul-form">
  35. <label>优惠券名称:</label>
  36. <form:input path="name" htmlEscape="false" maxlength="50" class="input-medium"/>
  37. <label>状态:</label>
  38. <form:select path="status" class="input-medium">
  39. <form:option value="" label="全部"/>
  40. <form:option value="1" label="待上架"/>
  41. <form:option value="2" label="已上架"/>
  42. <form:option value="3" label="已下架"/>
  43. </form:select>
  44. &nbsp;&nbsp;<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
  45. <a class="btn btn-primary" href="${ctx}/hehe/cmHeheCoupon/form?couponType=${cmHeheCoupon.couponType}" style="margin-left: 15px">
  46. 添加${cmHeheCoupon.couponType eq 1?'活动':cmHeheCoupon.couponType eq 2?'专享':cmHeheCoupon.couponType eq 3?'新人':cmHeheCoupon.couponType eq 4?'好友邀请':'好友消费'}券
  47. </a>
  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. <th>使用期限</th>
  63. <th>状态</th>
  64. <th>创建时间</th>
  65. <th>操作</th>
  66. </tr>
  67. </thead>
  68. <tbody>
  69. <c:forEach items="${page.list}" var="cmHeheCoupon">
  70. <tr>
  71. <td>
  72. ${cmHeheCoupon.id}
  73. </td>
  74. <td>
  75. ${cmHeheCoupon.name}
  76. </td>
  77. <td>
  78. ${cmHeheCoupon.couponAmount}
  79. </td>
  80. <td>
  81. <c:if test="${cmHeheCoupon.noThresholdFlag eq 1}">
  82. 无门槛
  83. </c:if>
  84. <c:if test="${cmHeheCoupon.noThresholdFlag ne 1}">
  85. 满${cmHeheCoupon.touchPrice}
  86. </c:if>
  87. </td>
  88. <td>
  89. <fmt:formatDate value="${cmHeheCoupon.startTime}" pattern="yyyy-MM-dd HH:mm"/>
  90. </td>
  91. <td>
  92. <c:if test="${cmHeheCoupon.permanentFlag eq 1}">永久</c:if>
  93. <c:if test="${cmHeheCoupon.permanentFlag ne 1}">
  94. <fmt:formatDate value="${cmHeheCoupon.endTime}" pattern="yyyy-MM-dd HH:mm"/>
  95. </c:if>
  96. </td>
  97. <td>
  98. <c:if test="${cmHeheCoupon.receiveFlag eq 1}">同上下架时间</c:if>
  99. <c:if test="${cmHeheCoupon.receiveFlag ne 1}">${cmHeheCoupon.receivePeriod}</c:if>
  100. </td>
  101. <td>
  102. ${cmHeheCoupon.usePeriod}
  103. </td>
  104. <td>
  105. <label style="color: ${cmHeheCoupon.status eq 1?'#2FA4E7':cmHeheCoupon.status eq 2?'#FF0000':'#999999'}">
  106. ${cmHeheCoupon.status eq 1?'待上架':cmHeheCoupon.status eq 2?'已上架':'已下架'}
  107. </label>
  108. </td>
  109. <td>
  110. <fmt:formatDate value="${cmHeheCoupon.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
  111. </td>
  112. <td>
  113. <a href="${ctx}/hehe/cmHeheCoupon/form?id=${cmHeheCoupon.id}">编辑</a>
  114. <a href="${ctx}/hehe/cmHeheCoupon/delete?id=${cmHeheCoupon.id}&couponType=${cmHeheCoupon.couponType}" onclick="return confirmx('确认要删除该优惠券吗?', this.href)">删除</a>
  115. <a href="${ctx}/hehe/cmHeheCoupon/receive/user/list?couponId=${cmHeheCoupon.id}&couponType=${cmHeheCoupon.couponType}">领取用户</a>
  116. </td>
  117. </tr>
  118. </c:forEach>
  119. </tbody>
  120. </table>
  121. <div class="pagination">${page}</div>
  122. </body>
  123. </html>