12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <%@ 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;
- }
- </script>
- </head>
- <body>
- <ul class="nav nav-tabs">
- <li class="active"><a href="${ctx}/newhome/newPageAdvertising/">广告位管理列表</a></li>
- <shiro:hasPermission name="newhome:newPageAdvertising:edit"><li><a href="${ctx}/newhome/newPageAdvertising/form">广告位管理添加</a></li></shiro:hasPermission>
- </ul>
- <form:form id="searchForm" modelAttribute="newPageAdvertising" action="${ctx}/newhome/newPageAdvertising/" 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>
- <th>广告标题</th>
- <th>广告图</th>
- <th>链接</th>
- <th>创建时间</th>
- <shiro:hasPermission name="newhome:newPageAdvertising:edit"><th>操作</th></shiro:hasPermission>
- </tr>
- </thead>
- <tbody>
- <c:forEach items="${page.list}" var="newPageAdvertising">
- <tr>
- <td>${newPageAdvertising.adTitle}</td>
- <td><img src="${newPageAdvertising.adImage}" style="width: 160px;height: 100px;"></td>
- <%--<td>${newPageAdvertising.adImage}</td>--%>
- <td>${newPageAdvertising.link}</td>
- <td><fmt:formatDate value="${newPageAdvertising.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
- <shiro:hasPermission name="newhome:newPageAdvertising:edit"><td>
- <a href="${ctx}/newhome/newPageAdvertising/form?id=${newPageAdvertising.id}">编辑</a>
- <shiro:hasPermission name="newhome:newPageAdvertising:delete">
- <a href="${ctx}/newhome/newPageAdvertising/delete?id=${newPageAdvertising.id}" onclick="return confirmx('确认要删除该广告位管理吗?', this.href)">删除</a>
- </shiro:hasPermission>
- </td></shiro:hasPermission>
- </tr>
- </c:forEach>
- </tbody>
- </table>
- <div class="pagination">${page}</div>
- </body>
- </html>
|