
<!-- #include file="../conn.asp" -->
<!-- #include file="admin.asp" -->
<%call ling()
Call Head()
Call saycardd("文章分类管理")

        set rs=server.createobject("adodb.recordset")
sql = "select * from wzclass order by pid asc"
rs.open sql,conn,1,1
If Not rs.eof	Then
	Dim PageSize,i
	If saytk>1 Then
	PageSize=30
	Else
	PageSize=10
	End if
	Dim Count,page,pagecount,gopage			
	gopage="wzclass.asp?sid="&sid&"&amp;saytk="&saytk&"&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="wzclasscl.asp?sid=<%=sid%>&amp;id=<%=rs("classid")%>&amp;saytk=<%=saytk%>">管理</a>]<%=i+(page-1)*PageSize%>.<a href="adminsmscl.asp?sid=<%=sid%>&amp;id=<%=rs("classid")%>&amp;saytk=<%=saytk%>"><%=ubb1(left(rs("class"),20))%></a>[栏目ID<%=rs("classID")%>]<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&"页"
if saytk=1 then
response.write "<input name=""page"" format=""*N"" value="""&page&""" type=""text"" maxlength=""5"" emptyok=""true"" size=""3""/><a href="""&gopage&"page=$(page)"">>></a>"
end if
Else
%>
	暂时没有文章栏目！

<%
end if

rs.close
set rs=nothing
%><br/>-----------<br/>
<a href="tjwz.asp?sid=<%=sid%>&amp;saytk=<%=saytk%>">[添加分类]</a><br/>
<a href="index.asp?sid=<%=sid%>&amp;saytk=<%=saytk%>">[文章管理]</a><br/>
<a href="../index.asp?sid=<%=sid%>&amp;saytk=<%=saytk%>">[后台管理]</a>
<%call head3()%>