<!-- #include file="../conn.asp" -->
<!-- #include file="admin.asp" -->
<%Call Head()
call saycarda("文件分类")
%>





<%
	Set Rs = Server.CreateObject("Adodb.Recordset")
	Sql = "SELECT * from xzclass Where type=0 order by id desc"
	Rs.Open Sql,conn,1,1
	If Not rs.eof	Then
	PageSize=10						
	Dim Count,page,pagecount,gopage,parent			
	gopage="wjclass.asp?saytk="&saytk&"&amp;sid="&sid&"&amp;"
	Count=rs.recordcount
	page=int(request.QueryString ("page"))
	if page<=0 or page="" then page=1		
	pagecount=(count+pagesize-1)\pagesize	
        if page>pagecount then page=pagecount	
	rs.move(pagesize*(page-1))				
	For i=1 To PageSize       						
	If rs.eof Then Exit For				
%>[<a href="wjclasscl.asp?saytk=<%=saytk%>&amp;sid=<%=sid%>&amp;lid=<%=rs("id")%>">管理</a>]<%=i+(page-1)*PageSize%>.<a href="wjdl.asp?saytk=<%=saytk%>&amp;sid=<%=sid%>&amp;idd=<%=rs("id")%>"><%=ubb(rs("name"))%></a>[栏目ID<%=rs("id")%>]<br/>
<%     
	rs.moveNext
  								
	Next
	if page-pagecount<0 then response.write "<a href="""&gopage&"page="&page+1&""">下页</a>"
	if page>1 then response.write "<a href="""&gopage&"page="&page-1&""">上页</a>"
	if pagecount>1 then response.write "<br/><b>"&page&"</b>/"&pagecount&"页<input name=""page"" format=""*N"" value="""&page&""" type=""text"" maxlength=""5"" emptyok=""true"" size=""3""/><a href="""&gopage&"page=$(page)"">[GO]</a>"
Else
%>
	(没有分类)

<%end if%><br/><a href='tjwj.asp?saytk=<%=saytk%>&amp;sid=<%=sid%>'>[添加大类]</a><br/>
<a href='wjcl.asp?saytk=<%=saytk%>&amp;sid=<%=sid%>'>[文件管理]</a><br/>
<a href="../index.asp?saytk=<%=saytk%>&amp;sid=<%=sid%>">[后台管理]</a>
<%
call headsay()
%>
