newPageAdvertisingList.jsp 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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}/newhome/newPageAdvertising/">广告位管理列表</a></li>
  25. <shiro:hasPermission name="newhome:newPageAdvertising:edit"><li><a href="${ctx}/newhome/newPageAdvertising/form">广告位管理添加</a></li></shiro:hasPermission>
  26. </ul>
  27. <form:form id="searchForm" modelAttribute="newPageAdvertising" action="${ctx}/newhome/newPageAdvertising/" method="post" class="breadcrumb form-search">
  28. <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
  29. <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
  30. <%--<div class="ul-form">--%>
  31. <%--&nbsp;&nbsp;<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>--%>
  32. <%--<div class="clearfix"></div>--%>
  33. <%--</div>--%>
  34. </form:form>
  35. <sys:message content="${message}"/>
  36. <table id="contentTable" class="table table-striped table-bordered table-condensed">
  37. <thead>
  38. <tr>
  39. <th>广告标题</th>
  40. <th>广告图</th>
  41. <th>链接</th>
  42. <th>创建时间</th>
  43. <shiro:hasPermission name="newhome:newPageAdvertising:edit"><th>操作</th></shiro:hasPermission>
  44. </tr>
  45. </thead>
  46. <tbody>
  47. <c:forEach items="${page.list}" var="newPageAdvertising">
  48. <tr>
  49. <td>${newPageAdvertising.adTitle}</td>
  50. <td><img src="${newPageAdvertising.adImage}" style="width: 160px;height: 100px;"></td>
  51. <%--<td>${newPageAdvertising.adImage}</td>--%>
  52. <td>${newPageAdvertising.link}</td>
  53. <td><fmt:formatDate value="${newPageAdvertising.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
  54. <shiro:hasPermission name="newhome:newPageAdvertising:edit"><td>
  55. <a href="${ctx}/newhome/newPageAdvertising/form?id=${newPageAdvertising.id}">编辑</a>
  56. <shiro:hasPermission name="newhome:newPageAdvertising:delete">
  57. <a href="${ctx}/newhome/newPageAdvertising/delete?id=${newPageAdvertising.id}" onclick="return confirmx('确认要删除该广告位管理吗?', this.href)">删除</a>
  58. </shiro:hasPermission>
  59. </td></shiro:hasPermission>
  60. </tr>
  61. </c:forEach>
  62. </tbody>
  63. </table>
  64. <div class="pagination">${page}</div>
  65. </body>
  66. </html>