<!--#include FILE="conn.asp"-->
<!-- #include file="../conn.asp" -->
<!--#include FILE="../admin.asp"-->
<%


call ling()
call head()
Call saycarda("查看评论")

'---------------------------
dim ids,id,cid,pa,TP
ids=Trim(request.QueryString("class"))
TP=Trim(request.QueryString("TP"))
cid=Trim(request.QueryString("cid"))

pa=Trim(request.QueryString("pa"))
idqiu=request.QueryString("idqiu")
delqiu=request.QueryString("delqiu")

If delqiu=111 Then
 connqiu.Execute"delete from yfpin where id="&idqiu
 response.write "删除成功<br/>"
End if

set rs=Server.CreateObject("ADODB.Recordset")
rs.open"select * from yfpin order by id desc",connqiu,1,2
If Not rs.eof Then
	Dim PageSize,i
	PageSize=5
							
	Dim Count,page,pagecount,gopage			
	gopage="yfpinlist.asp?id="&id&"&amp;cid="&cid&"&amp;class="&ids&"&amp;pa="&pa&"&amp;TP="&TP&"&amp;sid="&sid&"&amp;saytk="&saytk&"&amp;"
	Count=connqiu.execute("Select count(ID) from yfpin")(0)	
	page=int(request.QueryString ("page"))
	if page<=0 or page="" then page=1		
	pagecount=(count+pagesize-1)\pagesize	
	rs.move(pagesize*(page-1))					
	For i=1 To PageSize 						
	If rs.eof Then Exit For	
	response.write"<a href=""yfpinlist.asp?idqiu="&rs("id")&"&amp;delqiu=111&amp;saytk="&saytk&"&amp;sid=" & sid & """>[删除]</a>"&chr(13) 
response.write "["&i+(page-1)*PageSize&"]."
response.write""&ubb(rs("ip"))&"说:<br/>"    
response.write ""&rs("pin")&"("&fordate(rs("pltime"))&")<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)"">[GO]</a><br/>"
end if
Else
response.write"暂时没有评论！<br/>"
end If

rs.close
set rs=nothing
conn.close
set conn=nothing
%><br/>

<%
response.write "-----------------<br/><a href='index.asp?saytk="&saytk&"&amp;sid="&sid&"'>返回足球赛事</a><br/>-----------------"
call headsay()%>