<!--#include file="../Include/Head.asp"-->

<%session("ListPage")=session("nowpage")%>

<script type="text/javascript">
	function DoSearch() {
		if (document.getElementById("Keyword").value != "") {
			//location.href = "search.asp?" + encodeURI(document.getElementById("search_keyword").value);
			location.href = "Index.asp?Keyword=" + document.getElementById("Keyword").value ;
		}
		else {
			alert("请输入搜索关键字")
		}
	}
</script>

	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="../Main/Right.asp">首页</a></li>
    <li><a href="#">单页管理</a></li>
    </ul>
    </div>
    
    <div class="rightinfo">
    
    
    <table class="tablelist">
    	<thead>
    	<tr>
        <th width="35"><input name="chk_all" type="checkbox" class="chk_all" /></th>
        <th width="45">排序</th>
        <th>标题</th>
        <th width="60">阅读数</th>
        <th width="130">发布时间</th>
        <th width="80"><A href="javascript:;" id="page1plsc">批量删除</A></th>
        </tr>
        </thead>
        <tbody>
        <%
        Page=Max(Cnum(sqlshow(Request("page"))),1)
        Set Rs=server.createobject("adodb.recordSet")
        Sql="select * from Jin_Page order by SortID,sysID desc"
        Rs.Open Sql,Conn,1,3
        ListPageSize=15
        '显示页数
        AllCount=Rs.RecordCount
        Pages=Fix(AllCount/ListPageSize)
        If Pages*ListPageSize<AllCount Then Pages=Pages+1	
        PastCount=(Page-1)*ListPageSize
        If AllCount>PastCount Then Rs.Move PastCount
        ShowCount=Min(AllCount-PastCount,ListPageSize)
        For i=1 To ShowCount
        %>    
        <tr>
        <td><input name="chk_ids" type="checkbox" class="chk_ids" value="<%= Rs("sysID") %>" /></td>
        <td><input type="text" name="SortID" class="SortID" value="<%= Rs("SortID") %>" id2="<%= Rs("sysID") %>" style="width:35px; height:20px; text-align:center; outline:none;" /></td>
        <td><a href="<%=getJinCmsUrl(Rs("sysID"))%>" target="_blank"><%=Rs("Title")%></a></td>
        <td><%=Rs("Hits")%></td>
        <td><%=Rs("Addtime")%></td>
        <td><a href="Add.asp?action=edit&SysID=<%=Rs("SysID")%>" class="tablelink">编辑</a>  
        <a href="jsvascript:;" id2="<%=Rs("SysID")%>" class="tablelink page1Del">删除</a> </td>
        </tr> 
		<%
        Rs.MoveNext
        Next
        Rs.Close
        Set Rs=nothing
        %>    
        
        </tbody>
    </table>
    
    
    <div class="pagin" style="width:688px;">
    	<div class="message">共<i class="blue"> <%=AllCount%> </i>条记录</div>
        <ul class="paginList">
        <%Response.write ShowPages(Pages,Page,"Index1.asp")%>
        </ul>
    </div>
    
    </div>
    

<%Call BackFoot()%>


<script>
$(document).ready(function(e){
autoSave("SortID");
autoDel("page1Del");
autoChkAll("page1plsc");
});
</script>