123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 |
- <%@ 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() {
- });
- //PC端状态修改
- function updateEnabledStatus(status,ids,www){
- var msg='确定开启?';
- if('0'==status){
- msg='确定停用?';
- }
- top.$.jBox.confirm(msg,'系统提示',function(v,h,f){
- if(v=='ok'){
- $.post("${ctx}/newhome/newPageSecondaryNavigation/updateEnabledStatus",{'enabledStatus':status,'ids':ids,'www':www}, 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});
- }
- //移动端状态修改
- function updateCrmEnabledStatusByIds(status,ids,crm){
- var msg='确定开启?';
- if('0'==status){
- msg='确定停用?';
- }
- top.$.jBox.confirm(msg,'系统提示',function(v,h,f){
- if(v=='ok'){
- $.post("${ctx}/newhome/newPageSecondaryNavigation/updateCrmEnabledStatusByIds",{'crmEnabledStatus':status,'ids':ids,'crm':crm}, 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/newPageSecondaryNavigation/">新首页二级导航栏列表</a></li>--%>
- <%--<shiro:hasPermission name="newhome:newPageSecondaryNavigation:edit"><li><a href="${ctx}/newhome/newPageSecondaryNavigation/form">新首页二级导航栏添加</a></li></shiro:hasPermission>--%>
- <%--</ul>--%>
- <%--<form:form id="searchForm" modelAttribute="newPageSecondaryNavigation" action="${ctx}/newhome/newPageSecondaryNavigation/" 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">--%>
- <%-- <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>--%>
- <%--<shiro:hasPermission name="newhome:newPageSecondaryNavigation:edit"><th>操作</th></shiro:hasPermission>--%>
- <%--</tr>--%>
- <%--</thead>--%>
- <%--<tbody>--%>
- <%--<c:forEach items="${page.list}" var="newPageSecondaryNavigation">--%>
- <%--<tr>--%>
- <%--<shiro:hasPermission name="newhome:newPageSecondaryNavigation:edit"><td>--%>
- <%--<a href="${ctx}/newhome/newPageSecondaryNavigation/form?id=${newPageSecondaryNavigation.id}">编辑</a>--%>
- <%--<shiro:hasPermission name="newhome:newPageSecondaryNavigation:delete">--%>
- <%--<a href="${ctx}/newhome/newPageSecondaryNavigation/delete?id=${newPageSecondaryNavigation.id}" onclick="return confirmx('确认要删除该新首页二级导航栏吗?', this.href)">删除</a>--%>
- <%--</shiro:hasPermission>--%>
- <%--</td></shiro:hasPermission>--%>
- <%--</tr>--%>
- <%--</c:forEach>--%>
- <%--</tbody>--%>
- <%--</table>--%>
- <%--<div class="pagination">${page}</div>--%>
- <%--</body>--%>
- <body>
- <ul class="nav nav-tabs">
- <li class="active"><a href="${ctx}/newhome/newPageSecondaryNavigation/?firstNavigationId=${newPageSecondaryNavigation.firstNavigationId}">二级分类</a></li>
- <shiro:hasPermission name="newhome:newPageSecondaryNavigation:edit"><li><a href="${ctx}/newhome/newPageSecondaryNavigation/form?firstNavigationId=${newPageSecondaryNavigation.firstNavigationId}">二级分类添加</a></li></shiro:hasPermission>
- </ul>
- <form:form id="searchForm" modelAttribute="newPageSecondaryNavigation" action="${ctx}/newhome/newPageSecondaryNavigation/?firstNavigationId=${newPageSecondaryNavigation.firstNavigationId}" method="post" class="breadcrumb form-search">
- </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>PC端状态</th>
- <th>创建日期</th>
- <shiro:hasPermission name="newhome:newPageSecondaryNavigation:edit"><th>操作</th></shiro:hasPermission>
- </tr>
- </thead>
- <tbody>
- <c:forEach items="${page}" var="newPageSecondaryNavigation">
- <tr>
- <td>
- ${newPageSecondaryNavigation.id}
- </td>
- <td>
- ${newPageSecondaryNavigation.navigationName}
- </td>
- <td><a href="${newPageSecondaryNavigation.link}" target="_blank">
- <div style='width:300px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;' title='${newPageSecondaryNavigation.link}'>${newPageSecondaryNavigation.link}</div>
- </a></td>
- <td>
- ${newPageSecondaryNavigation.sort}
- </td>
- <td>
- <shiro:hasPermission name="newhome:newPageSecondaryNavigation:edit">
- <c:if test="${newPageSecondaryNavigation.crmEnabledStatus eq 1 }">
- <a href="javascript:void(0);" onclick="updateCrmEnabledStatusByIds('0','${newPageSecondaryNavigation.id}','CRM');" >
- <img alt="启用" src="/static/images/yes.gif" width="15px" border="none" title="启用">
- </a>
- </c:if>
- <c:if test="${newPageSecondaryNavigation.crmEnabledStatus ne 1 }">
- <a href="javascript:void(0)" onclick="updateCrmEnabledStatusByIds('1','${newPageSecondaryNavigation.id}','CRM');">
- <img alt="停用" src="/static/images/no.gif" width="15px" border="none" title="停用">
- </a>
- </c:if>
- </shiro:hasPermission>
- </td>
- <td>
- <shiro:hasPermission name="newhome:newPageSecondaryNavigation:edit">
- <c:if test="${newPageSecondaryNavigation.wwwEnabledStatus eq 1 }">
- <a href="javascript:void(0);" onclick="updateEnabledStatus('0','${newPageSecondaryNavigation.id}','WWW');" >
- <img alt="启用" src="/static/images/yes.gif" width="15px" border="none" title="启用">
- </a>
- </c:if>
- <c:if test="${newPageSecondaryNavigation.wwwEnabledStatus ne 1 }">
- <a href="javascript:void(0)" onclick="updateEnabledStatus('1','${newPageSecondaryNavigation.id}','WWW');">
- <img alt="停用" src="/static/images/no.gif" width="15px" border="none" title="停用">
- </a>
- </c:if>
- </shiro:hasPermission>
- </td>
- <td>
- <fmt:formatDate value="${newPageSecondaryNavigation.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
- </td>
- <shiro:hasPermission name="newhome:newPageSecondaryNavigation:edit"><td>
- <a href="${ctx}/newhome/newPageSecondaryNavigation/form?id=${newPageSecondaryNavigation.id}&firstNavigationId=${newPageSecondaryNavigation.firstNavigationId}">编辑</a>
- <shiro:hasPermission name="newhome:newPageSecondaryNavigation:delete">
- <a href="${ctx}/newhome/newPageSecondaryNavigation/delete?id=${newPageSecondaryNavigation.id}&firstNavigationId=${newPageSecondaryNavigation.firstNavigationId}" onclick="return confirmx('确认要删除该二级分类栏吗?', this.href)">删除</a>
- </shiro:hasPermission>
- </td></shiro:hasPermission>
- </tr>
- </c:forEach>
- </tbody>
- </table>
- </body>
- </html>
|