<!--#include file="Inc.asp"-->
<!--#include file="ydzq.asp"-->
<%Call head()
Call saycarda("项目移动管理")%>

请选择要移动到的页面:<br/>
<%id= request.QueryString("id")
p= request.QueryString("p")
if id="" or IsNumeric(id)=False then
  Call Error("ID无效！")
  end if
  id= request.QueryString("id")
if id="" or IsNumeric(id)=False then id=0
        set rs=server.createobject("adodb.recordset")
sql = "select * from ydbbs Where lx=3"
rs.open sql,conn,1,1
If Not rs.eof Then
	PageSize=10						
	Dim Count,page,pagecount,gopage,parent			
	gopage="movebbs.asp?saytk="&saytk&"&amp;sid="&sid&"&amp;id="&id&"&amp;ids="&ids&"&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="adminbbsll.asp?saytk=<%=saytk%>&amp;sid=<%=sid%>&amp;id=<%=rs("id")%>"><%=ubb1(rs("Name"))%></a>[<a href="movebbscl.asp?saytk=<%=saytk%>&amp;sid=<%=sid%>&amp;id=<%=id%>&amp;iid=<%=rs("id")%>">选择</a>]<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)"">>></a>"
Else
%>
	(没有栏目)

<%end if
rs.close
set rs=nothing
conn.close
set conn=nothing%><br/>
<a href="movebbscl.asp?saytk=<%=saytk%>&amp;sid=<%=sid%>&amp;iid=0&amp;id=<%=id%>">[移到社区首页]</a><br/>
----------<br/>
<a href="admineditbbsbk.asp?id=<%=id%>&amp;p=<%=p%>&amp;saytk=<%=saytk%>&amp;sid=<%=sid%>">[返回上级]</a><br/>
<a href="adminbbs.asp?saytk=<%=saytk%>&amp;sid=<%=sid%>">[功能设计]</a><br/>
<a href="../index.asp?saytk=<%=saytk%>&amp;sid=<%=sid%>">[后台管理]</a>
<%Call headsay()%>