123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- <%@ page contentType="text/html;charset=UTF-8" %>
- <%@ include file="/WEB-INF/views/include/taglib.jsp"%>
- <html>
- <head>
- <title>团购促销</title>
- <meta name="decorator" content="default"/>
- <style type="text/css">
- .table th{text-align: center;}
- .table td{text-align: center;}
- </style>
- <script type="text/javascript">
- $(document).ready(function() {
-
- });
- function page(n,s){
- $("#pageNo").val(n);
- $("#pageSize").val(s);
- $("#searchForm").submit();
- return false;
- }
- //PC端状态修改
- function updateEnabledStatus(status,ids){
- var msg='确定开启?';
- if('0'==status){
- msg='确定停用?';
- }
- top.$.jBox.confirm(msg,'系统提示',function(v,h,f){
- if(v=='ok'){
- $.post("${ctx}/newhome/newPageHomeimage/updateEnabledStatus",{'enabledStatus':status,'ids':ids}, function(data) {
- if(true==data.success){
- $.jBox.tip(data.msg, 'info');
- } else {
- $.jBox.tip(data.msg,'error');
- }
- $("#searchForm").submit();
- },"JSON");//这里返回的类型有:json,html,xml,text
- }
- return;
- },{buttonsFocus:1,persistent: true});
- }
- //CRM端状态修改
- function updateCrmEnabledStatusByIds(status,ids){
- var msg='确定开启?';
- if('0'==status){
- msg='确定停用?';
- }
- top.$.jBox.confirm(msg,'系统提示',function(v,h,f){
- if(v=='ok'){
- $.post("${ctx}/newhome/newPageHomeimage/updateCrmEnabledStatusByIds",{'crmEnabledStatus':status,'ids':ids}, function(data) {
- if(true==data.success){
- $.jBox.tip(data.msg, 'info');
- } else {
- $.jBox.tip(data.msg,'error');
- }
- $("#searchForm").submit();
- },"JSON");//这里返回的类型有:json,html,xml,text
- }
- return;
- },{buttonsFocus:1,persistent: true});
- }
- </script>
- </head>
- <body>
- <ul class="nav nav-tabs">
- <li class="active"><a href="${ctx}/newhome/newActivity/groupList">团购促销</a></li>
- <shiro:hasPermission name="newhome:newActivity:edit"><li><a href="${ctx}/newhome/newActivity/addGroupActivityList">团购促销添加</a></li></shiro:hasPermission>
- </ul>
- <form:form id="searchForm" modelAttribute="product" action="${ctx}/newhome/newActivity/groupList" method="post" class="breadcrumb form-search">
- <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
- <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
- <div class="ul-form">
- <label>供应商名称:</label>
- <form:input path="shopName" htmlEscape="false" maxlength="300" class="input-medium" cssStyle="width: 80px"/>
- <label>商品名称:</label>
- <form:input path="name" htmlEscape="false" maxlength="300" class="input-medium" cssStyle="width: 80px"/>
- <input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
- <div class="clearfix"></div>
- </div>
- </form:form>
- <sys:message content="${message}"/>
- <table id="contentTable" class="table table-striped table-bordered table-condensed">
- <thead>
- <tr>
- <th>ID</th>
- <th>商品名称</th>
- <th>供应商</th>
- <th>会员团购价</th>
- <th>图片</th>
- <th>排序</th>
- <th>活动时间</th>
- <th>状态</th>
- <shiro:hasPermission name="newhome:newActivity:edit"><th>操作</th></shiro:hasPermission>
- </tr>
- </thead>
- <tbody>
- <c:forEach items="${page.list}" var="product">
- <tr>
- <td>${product.id}</td>
- <td>${product.name}</td>
- <td>${product.shopName}</td>
- <td>${product.actPrice1}</td>
- <td><img style="width:120px;height: 80px;" src="${product.mainImage}"/></td>
- <td>${product.actSort}</td>
- <td>${product.actTime}</td>
- <td>${product.actStatus}</td>
- <shiro:hasPermission name="newhome:newActivity:edit"><td>
- <a href="${ctx}/newhome/newActivity/form?id=${product.id}">编辑</a>
- <shiro:hasPermission name="newhome:newActivity:delete">
- <a href="${ctx}/newhome/newActivity/groupDelete?id=${product.id}" onclick="return confirmx('确认要删除该活动吗?', this.href)">删除</a>
- </shiro:hasPermission>
- </td></shiro:hasPermission>
- </tr>
- </c:forEach>
- </tbody>
- </table>
- <div class="pagination">${page}</div>
- </body>
- </html>
|