newPageSecondaryNavigationList.jsp 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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. //PC端状态修改
  15. function updateEnabledStatus(status,ids,www){
  16. var msg='确定开启?';
  17. if('0'==status){
  18. msg='确定停用?';
  19. }
  20. top.$.jBox.confirm(msg,'系统提示',function(v,h,f){
  21. if(v=='ok'){
  22. $.post("${ctx}/newhome/newPageSecondaryNavigation/updateEnabledStatus",{'enabledStatus':status,'ids':ids,'www':www}, function(data) {
  23. if(true==data.success){
  24. $.jBox.tip(data.msg, 'info');
  25. } else {
  26. $.jBox.tip(data.msg,'error');
  27. }
  28. $("#searchForm").submit();
  29. },"JSON");//这里返回的类型有:json,html,xml,text
  30. }
  31. return;
  32. },{buttonsFocus:1,persistent: true});
  33. }
  34. //移动端状态修改
  35. function updateCrmEnabledStatusByIds(status,ids,crm){
  36. var msg='确定开启?';
  37. if('0'==status){
  38. msg='确定停用?';
  39. }
  40. top.$.jBox.confirm(msg,'系统提示',function(v,h,f){
  41. if(v=='ok'){
  42. $.post("${ctx}/newhome/newPageSecondaryNavigation/updateCrmEnabledStatusByIds",{'crmEnabledStatus':status,'ids':ids,'crm':crm}, function(data) {
  43. if(true==data.success){
  44. $.jBox.tip(data.msg, 'info');
  45. } else {
  46. $.jBox.tip(data.msg,'error');
  47. }
  48. $("#searchForm").submit();
  49. },"JSON");//这里返回的类型有:json,html,xml,text
  50. }
  51. return;
  52. },{buttonsFocus:1,persistent: true});
  53. }
  54. </script>
  55. </head>
  56. <%--<body>--%>
  57. <%--<ul class="nav nav-tabs">--%>
  58. <%--<li class="active"><a href="${ctx}/newhome/newPageSecondaryNavigation/">新首页二级导航栏列表</a></li>--%>
  59. <%--<shiro:hasPermission name="newhome:newPageSecondaryNavigation:edit"><li><a href="${ctx}/newhome/newPageSecondaryNavigation/form">新首页二级导航栏添加</a></li></shiro:hasPermission>--%>
  60. <%--</ul>--%>
  61. <%--<form:form id="searchForm" modelAttribute="newPageSecondaryNavigation" action="${ctx}/newhome/newPageSecondaryNavigation/" method="post" class="breadcrumb form-search">--%>
  62. <%--<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>--%>
  63. <%--<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>--%>
  64. <%--<div class="ul-form">--%>
  65. <%--&nbsp;&nbsp;<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>--%>
  66. <%--<div class="clearfix"></div>--%>
  67. <%--</div>--%>
  68. <%--</form:form>--%>
  69. <%--<sys:message content="${message}"/>--%>
  70. <%--<table id="contentTable" class="table table-striped table-bordered table-condensed">--%>
  71. <%--<thead>--%>
  72. <%--<tr>--%>
  73. <%--<shiro:hasPermission name="newhome:newPageSecondaryNavigation:edit"><th>操作</th></shiro:hasPermission>--%>
  74. <%--</tr>--%>
  75. <%--</thead>--%>
  76. <%--<tbody>--%>
  77. <%--<c:forEach items="${page.list}" var="newPageSecondaryNavigation">--%>
  78. <%--<tr>--%>
  79. <%--<shiro:hasPermission name="newhome:newPageSecondaryNavigation:edit"><td>--%>
  80. <%--<a href="${ctx}/newhome/newPageSecondaryNavigation/form?id=${newPageSecondaryNavigation.id}">编辑</a>--%>
  81. <%--<shiro:hasPermission name="newhome:newPageSecondaryNavigation:delete">--%>
  82. <%--<a href="${ctx}/newhome/newPageSecondaryNavigation/delete?id=${newPageSecondaryNavigation.id}" onclick="return confirmx('确认要删除该新首页二级导航栏吗?', this.href)">删除</a>--%>
  83. <%--</shiro:hasPermission>--%>
  84. <%--</td></shiro:hasPermission>--%>
  85. <%--</tr>--%>
  86. <%--</c:forEach>--%>
  87. <%--</tbody>--%>
  88. <%--</table>--%>
  89. <%--<div class="pagination">${page}</div>--%>
  90. <%--</body>--%>
  91. <body>
  92. <ul class="nav nav-tabs">
  93. <li class="active"><a href="${ctx}/newhome/newPageSecondaryNavigation/?firstNavigationId=${newPageSecondaryNavigation.firstNavigationId}">二级分类</a></li>
  94. <shiro:hasPermission name="newhome:newPageSecondaryNavigation:edit"><li><a href="${ctx}/newhome/newPageSecondaryNavigation/form?firstNavigationId=${newPageSecondaryNavigation.firstNavigationId}">二级分类添加</a></li></shiro:hasPermission>
  95. </ul>
  96. <form:form id="searchForm" modelAttribute="newPageSecondaryNavigation" action="${ctx}/newhome/newPageSecondaryNavigation/?firstNavigationId=${newPageSecondaryNavigation.firstNavigationId}" method="post" class="breadcrumb form-search">
  97. </form:form>
  98. <sys:message content="${message}"/>
  99. <table id="contentTable" class="table table-striped table-bordered table-condensed">
  100. <thead>
  101. <tr>
  102. <th>ID</th>
  103. <th>二级分类名称</th>
  104. <th>链接</th>
  105. <th>排序</th>
  106. <th>移动端状态</th>
  107. <th>PC端状态</th>
  108. <th>创建日期</th>
  109. <shiro:hasPermission name="newhome:newPageSecondaryNavigation:edit"><th>操作</th></shiro:hasPermission>
  110. </tr>
  111. </thead>
  112. <tbody>
  113. <c:forEach items="${page}" var="newPageSecondaryNavigation">
  114. <tr>
  115. <td>
  116. ${newPageSecondaryNavigation.id}
  117. </td>
  118. <td>
  119. ${newPageSecondaryNavigation.navigationName}
  120. </td>
  121. <td><a href="${newPageSecondaryNavigation.link}" target="_blank">
  122. <div style='width:300px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;' title='${newPageSecondaryNavigation.link}'>${newPageSecondaryNavigation.link}</div>
  123. </a></td>
  124. <td>
  125. ${newPageSecondaryNavigation.sort}
  126. </td>
  127. <td>
  128. <shiro:hasPermission name="newhome:newPageSecondaryNavigation:edit">
  129. <c:if test="${newPageSecondaryNavigation.crmEnabledStatus eq 1 }">
  130. <a href="javascript:void(0);" onclick="updateCrmEnabledStatusByIds('0','${newPageSecondaryNavigation.id}','CRM');" >
  131. <img alt="启用" src="/static/images/yes.gif" width="15px" border="none" title="启用">
  132. </a>
  133. </c:if>
  134. <c:if test="${newPageSecondaryNavigation.crmEnabledStatus ne 1 }">
  135. <a href="javascript:void(0)" onclick="updateCrmEnabledStatusByIds('1','${newPageSecondaryNavigation.id}','CRM');">
  136. <img alt="停用" src="/static/images/no.gif" width="15px" border="none" title="停用">
  137. </a>
  138. </c:if>
  139. </shiro:hasPermission>
  140. </td>
  141. <td>
  142. <shiro:hasPermission name="newhome:newPageSecondaryNavigation:edit">
  143. <c:if test="${newPageSecondaryNavigation.wwwEnabledStatus eq 1 }">
  144. <a href="javascript:void(0);" onclick="updateEnabledStatus('0','${newPageSecondaryNavigation.id}','WWW');" >
  145. <img alt="启用" src="/static/images/yes.gif" width="15px" border="none" title="启用">
  146. </a>
  147. </c:if>
  148. <c:if test="${newPageSecondaryNavigation.wwwEnabledStatus ne 1 }">
  149. <a href="javascript:void(0)" onclick="updateEnabledStatus('1','${newPageSecondaryNavigation.id}','WWW');">
  150. <img alt="停用" src="/static/images/no.gif" width="15px" border="none" title="停用">
  151. </a>
  152. </c:if>
  153. </shiro:hasPermission>
  154. </td>
  155. <td>
  156. <fmt:formatDate value="${newPageSecondaryNavigation.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
  157. </td>
  158. <shiro:hasPermission name="newhome:newPageSecondaryNavigation:edit"><td>
  159. <a href="${ctx}/newhome/newPageSecondaryNavigation/form?id=${newPageSecondaryNavigation.id}&firstNavigationId=${newPageSecondaryNavigation.firstNavigationId}">编辑</a>
  160. <shiro:hasPermission name="newhome:newPageSecondaryNavigation:delete">
  161. <a href="${ctx}/newhome/newPageSecondaryNavigation/delete?id=${newPageSecondaryNavigation.id}&firstNavigationId=${newPageSecondaryNavigation.firstNavigationId}" onclick="return confirmx('确认要删除该二级分类栏吗?', this.href)">删除</a>
  162. </shiro:hasPermission>
  163. </td></shiro:hasPermission>
  164. </tr>
  165. </c:forEach>
  166. </tbody>
  167. </table>
  168. </body>
  169. </html>