<!--#include file="Inc.asp"-->
<!--#include file="ydzq.asp"-->
<%Call head()
call saycardd("今日广告点击")
Set rs = Server.CreateObject("ADODB.Recordset")
sql="Select * from [bbsads] where ttmm>= '"&date()&"' 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="todayad.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				
%><%=i+(page-1)*PageSize%>.会员<%=Rs("name")%>(ID<%=Rs("UsID")%>)广告ID:<%=rs("adid")%><br/>时间:<%=rs("ttmm")%><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
%>
	暂时没有人点击广告！<br/>
<%
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
		<a href="delad.asp?sid=<%=sid%>&amp;saytk=<%=saytk%>">[清空记录]</a><br/>
		<a href="adminads.asp?sid=<%=sid%>&amp;saytk=<%=saytk%>">[点击送币]</a><br/>
		<a href="../index.asp?sid=<%=sid%>&amp;saytk=<%=saytk%>">[后台管理]</a><br/>
<%response.write""
call headsay()%>
