<!--#include file="Inc.asp"-->
<!--#include file="ydzq.asp"-->




<%call head()
Call saycardd("广告送币")

conn.Execute("delete from bbsads where ttmm<>date()")
Response.Write "点击一个广告每天可以得到相应"&getcent&"!每天都有赠送哦！<br/>"
'============================================================
Set rs = Server.CreateObject("ADODB.Recordset")
sql="Select id,name,cent from gogo where typeId=6 order by id desc"
rs.open sql,conn,1,1 
If Not rs.eof	Then
	Dim PageSize,i
	PageSize=15						
	Dim Count,page,pagecount,gopage			
	gopage="ads.asp?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				
%><%=i+(page-1)*PageSize%>.<a href="url.asp?sid=<%=sid%>&amp;saytk=<%=saytk%>&amp;id=<%=Rs("id")%>"><%=Rs("name")%></a>(<%=rs("cent")%><%=getcent%>)<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><br/>"
Else
%>
	暂时没有记录！<br/>
<%
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
<a href="show.asp?sid=<%=sid%>&amp;saytk=<%=saytk%>">返回我的小屋</a>
<!--#include file="fanhui.asp"-->
<%
call headsay()
%>