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

<%call head()
Call saycardc("结婚记录")
'检查有几条新留言
dim newguest
newguest = 0
IF myid > 0 THEN
  newguest = ForNewGuest(myid)
END IF
if newguest > 0 then
Response.write "<a href='../msgview.asp?url="&Replace(Replace(R_url(),"sid=","sidoo="),"sid=","sidoo=")&"&amp;saytk="&saytk&"&amp;sid="&sid&"'>您有"&newguest&"条新消息</a><br/>"& chr(13)
end if
dim rs
  set rs=Server.CreateObject("ADODB.Recordset")
  rs.open"select * from marry where reuserid=" & myid & " and about='J' order by id desc",conn,1,1
If Not rs.eof	Then
response.write "嘿嘿,千万别点错哦,一失足成千古恨啊!<br/>"
	Dim PageSize,i
	PageSize=10						
	Dim Count,page,pagecount,gopage			
	gopage="marrylist.asp?saytk="&saytk&"&amp;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	

  dim username
set rs1=Server.CreateObject("ADODB.Recordset")
  rs1.open"select name from Users where id="&rs("userid"),conn,1,1
username=rs1("name")
  rs1.close
  set rs1=nothing
  
response.write""&i+(page-1)*PageSize&"."


    Response.write " <a href='../uinfo.asp?id=" & rs("reuserid") & "&amp;sid=" & sid & "'>" & username & "ID:" & rs("userid") & "</a>向你求婚<br/><a href='marrysave.asp?id=" & rs("userid") & "&amp;TP=1&amp;sid=" & sid & "'>&gt;&gt;同意求婚</a>*<a href='marrysave.asp?id=" & rs("userid") & "&amp;TP=2&amp;sid=" & sid & "'>&gt;&gt;拒绝请求</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><br/>"

Else
response.write"暂时还没有人登记！<br/>"
end if

response.write "<br/>---------"
response.write "<br/><a href=""index.asp?saytk="&saytk&"&amp;sid="&sid&""">婚姻殿堂</a>"
response.write "<br/><a href=""../show.asp?saytk="&saytk&"&amp;sid="&sid&""">空间</a>>>"
response.write "<a href=""../index.asp?saytk="&saytk&"&amp;sid="&sid&""">社区首页</a>"

%>

<%
call headsay()
%>
