newGroupActivityList.jsp 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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. //PC端状态修改
  21. function updateEnabledStatus(status,ids){
  22. var msg='确定开启?';
  23. if('0'==status){
  24. msg='确定停用?';
  25. }
  26. top.$.jBox.confirm(msg,'系统提示',function(v,h,f){
  27. if(v=='ok'){
  28. $.post("${ctx}/newhome/newPageHomeimage/updateEnabledStatus",{'enabledStatus':status,'ids':ids}, function(data) {
  29. if(true==data.success){
  30. $.jBox.tip(data.msg, 'info');
  31. } else {
  32. $.jBox.tip(data.msg,'error');
  33. }
  34. $("#searchForm").submit();
  35. },"JSON");//这里返回的类型有:json,html,xml,text
  36. }
  37. return;
  38. },{buttonsFocus:1,persistent: true});
  39. }
  40. //CRM端状态修改
  41. function updateCrmEnabledStatusByIds(status,ids){
  42. var msg='确定开启?';
  43. if('0'==status){
  44. msg='确定停用?';
  45. }
  46. top.$.jBox.confirm(msg,'系统提示',function(v,h,f){
  47. if(v=='ok'){
  48. $.post("${ctx}/newhome/newPageHomeimage/updateCrmEnabledStatusByIds",{'crmEnabledStatus':status,'ids':ids}, function(data) {
  49. if(true==data.success){
  50. $.jBox.tip(data.msg, 'info');
  51. } else {
  52. $.jBox.tip(data.msg,'error');
  53. }
  54. $("#searchForm").submit();
  55. },"JSON");//这里返回的类型有:json,html,xml,text
  56. }
  57. return;
  58. },{buttonsFocus:1,persistent: true});
  59. }
  60. </script>
  61. </head>
  62. <body>
  63. <ul class="nav nav-tabs">
  64. <li class="active"><a href="${ctx}/newhome/newActivity/groupList">团购促销</a></li>
  65. <shiro:hasPermission name="newhome:newActivity:edit"><li><a href="${ctx}/newhome/newActivity/addGroupActivityList">团购促销添加</a></li></shiro:hasPermission>
  66. </ul>
  67. <form:form id="searchForm" modelAttribute="product" action="${ctx}/newhome/newActivity/groupList" method="post" class="breadcrumb form-search">
  68. <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
  69. <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
  70. <div class="ul-form">
  71. <label>供应商名称:</label>
  72. <form:input path="shopName" htmlEscape="false" maxlength="300" class="input-medium" cssStyle="width: 80px"/>
  73. <label>商品名称:</label>
  74. <form:input path="name" htmlEscape="false" maxlength="300" class="input-medium" cssStyle="width: 80px"/>
  75. &nbsp;&nbsp;<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
  76. <div class="clearfix"></div>
  77. </div>
  78. </form:form>
  79. <sys:message content="${message}"/>
  80. <table id="contentTable" class="table table-striped table-bordered table-condensed">
  81. <thead>
  82. <tr>
  83. <th>ID</th>
  84. <th>商品名称</th>
  85. <th>供应商</th>
  86. <th>会员团购价</th>
  87. <th>图片</th>
  88. <th>排序</th>
  89. <th>活动时间</th>
  90. <th>状态</th>
  91. <shiro:hasPermission name="newhome:newActivity:edit"><th>操作</th></shiro:hasPermission>
  92. </tr>
  93. </thead>
  94. <tbody>
  95. <c:forEach items="${page.list}" var="product">
  96. <tr>
  97. <td>${product.id}</td>
  98. <td>${product.name}</td>
  99. <td>${product.shopName}</td>
  100. <td>${product.actPrice1}</td>
  101. <td><img style="width:120px;height: 80px;" src="${product.mainImage}"/></td>
  102. <td>${product.actSort}</td>
  103. <td>${product.actTime}</td>
  104. <td>${product.actStatus}</td>
  105. <shiro:hasPermission name="newhome:newActivity:edit"><td>
  106. <a href="${ctx}/newhome/newActivity/form?id=${product.id}">编辑</a>
  107. <shiro:hasPermission name="newhome:newActivity:delete">
  108. <a href="${ctx}/newhome/newActivity/groupDelete?id=${product.id}" onclick="return confirmx('确认要删除该活动吗?', this.href)">删除</a>
  109. </shiro:hasPermission>
  110. </td></shiro:hasPermission>
  111. </tr>
  112. </c:forEach>
  113. </tbody>
  114. </table>
  115. <div class="pagination">${page}</div>
  116. </body>
  117. </html>