cmMoneyCouponList.jsp 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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="active"><a href="${ctx}/coupon/cmCoupon/list?moneyCouponFlag=1&&couponType=5">价值优惠券列表</a></li>
  25. </ul>
  26. <form:form id="searchForm" modelAttribute="cmCoupon" action="${ctx}/coupon/cmCoupon/" method="post" class="breadcrumb form-search">
  27. <input type="hidden" name="moneyCouponFlag" value="1"/>
  28. <input type="hidden" name="couponType" value="5"/>
  29. <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
  30. <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
  31. <div class="ul-form">
  32. <label>优惠券名称:</label>
  33. <form:input path="name" htmlEscape="false" maxlength="50" class="input-medium"/>
  34. <label>状态:</label>
  35. <form:select path="status" class="input-medium required">
  36. <form:option value="" label="所有"/>
  37. <form:option value="0" label="待上架"/>
  38. <form:option value="1" label="已上架"/>
  39. <form:option value="3" label="已下架"/>
  40. <form:option value="2" label="已关闭"/>
  41. </form:select>
  42. <label>购买方式:</label>
  43. <form:select path="couponPayWay" class="input-medium required">
  44. <form:option value="" label="全部"/>
  45. <form:option value="1" label="直接购买"/>
  46. <form:option value="2" label="采美豆抵扣"/>
  47. </form:select>
  48. &nbsp;&nbsp;<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
  49. <input class="btn btn-primary" style="width: 120px" onclick="window.location='${ctx}/coupon/cmCoupon/moneyCouponForm'" value="添加价值优惠券"/>
  50. <div class="clearfix"></div>
  51. </div>
  52. </form:form>
  53. <sys:message content="${message}"/>
  54. <table id="contentTable" class="table table-striped table-bordered table-condensed">
  55. <thead>
  56. <tr>
  57. <th>ID</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. <th>状态</th>
  67. <th>创建时间</th>
  68. <th>操作</th>
  69. </tr>
  70. </thead>
  71. <tbody>
  72. <c:forEach items="${page.list}" var="cmCoupon">
  73. <tr>
  74. <td>
  75. ${cmCoupon.id}
  76. </td>
  77. <td>
  78. ${cmCoupon.name}
  79. </td>
  80. <td>
  81. ${cmCoupon.couponAmount}
  82. </td>
  83. <td>
  84. 满${cmCoupon.touchPrice}
  85. </td>
  86. <td>
  87. <c:if test="${cmCoupon.couponPayWay == 1}">¥${cmCoupon.moneyCouponPrice}</c:if>
  88. <c:if test="${cmCoupon.couponPayWay == 2}">${cmCoupon.moneyCouponPrice}采美豆</c:if>
  89. </td>
  90. <td>
  91. <fmt:formatDate value="${cmCoupon.startDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
  92. </td>
  93. <td>
  94. <fmt:formatDate value="${cmCoupon.endDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
  95. </td>
  96. <td>
  97. <c:if test="${cmCoupon.receivePeriod > 0}">${cmCoupon.receivePeriod}天</c:if>
  98. <c:if test="${empty cmCoupon.receivePeriod || cmCoupon.receivePeriod < 0}">--</c:if>
  99. </td>
  100. <td>
  101. <c:if test="${cmCoupon.usePeriod > 0}">${cmCoupon.usePeriod}天</c:if>
  102. <c:if test="${empty cmCoupon.usePeriod || cmCoupon.usePeriod < 0}">--</c:if>
  103. </td>
  104. <td>
  105. <c:if test="${cmCoupon.status eq 0}">
  106. <font color="#800080">待上架</font>
  107. </c:if>
  108. <c:if test="${cmCoupon.status eq 1}">
  109. <font color="#00CC66">已上架</font>
  110. </c:if>
  111. <c:if test="${cmCoupon.status eq 2}">
  112. <font color="red">已关闭</font>
  113. </c:if>
  114. <c:if test="${cmCoupon.status eq 3}">
  115. <font color="#FF6600">已下架</font>
  116. </c:if>
  117. </td>
  118. <td>
  119. <fmt:formatDate value="${cmCoupon.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
  120. </td>
  121. <td>
  122. <a href="${ctx}/coupon/cmCoupon/moneyCouponForm?id=${cmCoupon.id}">编辑</a>
  123. <%-- <c:if test="${cmCoupon.status eq 2}">--%>
  124. <%-- <a href="${ctx}/coupon/cmCoupon/open?id=${cmCoupon.id}" onclick="return confirmx('确定开启该活动吗?', this.href)">开启</a>--%>
  125. <%-- </c:if>--%>
  126. <%-- <c:if test="${cmCoupon.status ne 2}">--%>
  127. <%-- <a href="${ctx}/coupon/cmCoupon/close?id=${cmCoupon.id}" onclick="return confirmx('确定关闭该活动吗?', this.href)">关闭</a>--%>
  128. <%-- </c:if>--%>
  129. <a href="${ctx}/coupon/cmCoupon/delete?id=${cmCoupon.id}&moneyCouponFlag=1" onclick="return confirmx('确定删除该优惠券吗?', this.href)">删除</a>
  130. <a href="${ctx}/coupon/cmCouponClub/list?couponId=${cmCoupon.id}&couponType=0&moneyCouponFlag=1">购买用户</a>
  131. </td>
  132. </tr>
  133. </c:forEach>
  134. </tbody>
  135. </table>
  136. <div class="pagination">${page}</div>
  137. </body>
  138. </html>