cmHeheCollageList.jsp 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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}/hehe/cmHeheCollage/">拼团记录</a></li>
  25. </ul>
  26. <form:form id="searchForm" modelAttribute="cmHeheCollage" action="${ctx}/hehe/cmHeheCollage/" method="post" class="breadcrumb form-search">
  27. <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
  28. <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
  29. <div class="ul-form">
  30. <label>ID:</label>
  31. <form:input path="id" htmlEscape="false" class="input-medium"/>
  32. <label>商品名称:</label>
  33. <form:input path="productName" htmlEscape="false" class="input-medium"/>
  34. <label>供应商名称:</label>
  35. <form:input path="shopName" htmlEscape="false" class="input-medium"/>
  36. <label>状态:</label>
  37. <form:select path="status" class="input-medium">
  38. <form:option value="" label="请选择"/>
  39. <form:option value="1" label="拼团中"/>
  40. <form:option value="2" label="已拼成"/>
  41. </form:select>
  42. &nbsp;&nbsp;<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
  43. <div class="clearfix"></div>
  44. </div>
  45. </form:form>
  46. <sys:message content="${message}"/>
  47. <table id="contentTable" class="table table-striped table-bordered table-condensed">
  48. <thead>
  49. <tr>
  50. <th>ID</th>
  51. <th>商品名称</th>
  52. <th>供应商名称</th>
  53. <th>拼团价格</th>
  54. <th>拼团人数</th>
  55. <th>开始时间</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="cmHeheCollage">
  66. <tr>
  67. <td>
  68. ${cmHeheCollage.id}
  69. </td>
  70. <td>
  71. ${cmHeheCollage.productName}
  72. </td>
  73. <td>
  74. ${cmHeheCollage.shopName}
  75. </td>
  76. <td>
  77. ${cmHeheCollage.price}
  78. </td>
  79. <td>
  80. ${cmHeheCollage.memberNum}
  81. </td>
  82. <td>
  83. <fmt:formatDate value="${cmHeheCollage.startTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
  84. </td>
  85. <td>
  86. <fmt:formatDate value="${cmHeheCollage.endTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
  87. </td>
  88. <td>
  89. ${cmHeheCollage.status eq 2?cmHeheCollage.memberNum:cmHeheCollage.orderIdList.size()}
  90. </td>
  91. <td>
  92. <c:forEach items="${cmHeheCollage.orderIdList}" var="orderId" varStatus="index">
  93. <a href="${ctx}/hehe/new/order/detail?id=${orderId}">${orderId}${index.index lt (cmHeheCollage.orderIdList.size()-1)?',':''}</a>
  94. </c:forEach>
  95. </td>
  96. <td>
  97. <c:if test="${cmHeheCollage.status eq 1}">
  98. <font color="#00CC00">拼团中</font>
  99. </c:if>
  100. <c:if test="${cmHeheCollage.status ne 1}">
  101. <font color="red">已拼成</font>
  102. </c:if>
  103. </td>
  104. <td>
  105. <c:if test="${cmHeheCollage.status eq 1}">
  106. -
  107. </c:if>
  108. <c:if test="${cmHeheCollage.status ne 1}">
  109. <fmt:formatDate value="${cmHeheCollage.completeTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
  110. </c:if>
  111. </td>
  112. <td>
  113. <c:if test="${cmHeheCollage.status eq 1}">
  114. <a href="${ctx}/hehe/cmHeheCollage/complete?id=${cmHeheCollage.id}">一键成团<a>
  115. </c:if>
  116. <a href="${ctx}/hehe/cmHeheCollage/memberList?collageId=${cmHeheCollage.id}">拼团成员</a>
  117. </td>
  118. </tr>
  119. </c:forEach>
  120. </tbody>
  121. </table>
  122. <div class="pagination">${page}</div>
  123. </body>
  124. </html>