123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- <%@ 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() {
- show_title(16);
- //弹出框去滚动条
- top.$('#jbox-content').css("overflow-y","hidden");
- });
- function page(n,s){
- $("#pageNo").val(n);
- $("#pageSize").val(s);
- $("#searchForm").submit();
- return false;
- }
- function edit(id){
- window.parent.window.editInfo(id);
- window.parent.window.jBox.close();
- }
- </script>
- </head>
- <body>
- <form:form id="searchForm" modelAttribute="info" action="${ctx}/info/info/list1" 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}"/>
- <form:hidden path="label"/>
- <div class="ul-form">
- <label>ID:</label>
- <form:input path="id" htmlEscape="false" maxlength="11" class="input-mini"/>
- <label>标题:</label>
- <form:input path="title" htmlEscape="false" maxlength="100" class="input-medium"/>
- <%-- <label>发布人:</label>
- <form:input path="publisher" htmlEscape="false" maxlength="50" class="input-medium"/>
- <br> <br>
- <label>文章分类:</label>
- <form:select path="infoType.id" class="input-small">
- <form:option value="" label=" "/>
- <form:options items="${typeList}" itemLabel="name" itemValue="id" htmlEscape="false"/>
- </form:select>
-
- <label>推荐状态:</label>
- <form:select path="recommendStatus" class="input-mini">
- <form:option value="" label=" "/>
- <form:options items="${fns:getDictList('enabled_status')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
- </form:select>
- <label>状态:</label>
- <form:select path="enabledStatus" class="input-mini">
- <form:option value="" label=" "/>
- <form:options items="${fns:getDictList('enabled_status')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
- </form:select> --%>
- <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>
- </tr>
- </thead>
- <tbody>
- <c:forEach items="${page.list}" var="info">
- <tr>
- <td>${info.id}</td>
- <td>
- <%-- <a href="javascript:void(0);" onclick="edit('${info.id}');"> --%>
- <a href="javascript:edit('${info.id}');">
- <%-- <a href="${ctx}/info/info/form?id=${info.id}"> --%>
- <span class="comitted">${info.title}</span>
- </a>
- </td>
- <td>${info.label}</td>
- <td><fmt:formatDate value="${info.pubdate}" pattern="yyyy-MM-dd HH:mm"/></td>
- <td><a href="${fns:getConfig('wwwServer')}info/detail-${info.id}-1.html" target="_blank">查看</a></td>
- </tr>
- </c:forEach>
- </tbody>
- </table>
- <div class="pagination">${page}</div>
- </body>
- </html>
|