<!--#include file="Inc.asp"-->
<!--#include file="ydzq.asp"-->
<%
call head()
%>

<%dim ids,uid,tid
ids=request.querystring("ids")
tid=request.querystring("tid")
if ids<>"" then
if ids="" or Isnumeric(ids)=False then
if saytk>1 then
  Call Error("<title>出错</title></head><body><body bgcolor="""&yanse1&"""><p>ID无效！")
else
  Call Error("<card title=""出错""><p>ID无效！")
  end if
end if
'检查ID是否存在
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open "SELECT id FROM users where id="&ids,conn,1,1
if rs.eof then
  rs.close
  set rs=Nothing
if saytk>1 then
  Call Error("<title>出错</title></head><body><body bgcolor="""&yanse1&"""><p>ID无效！")
else
  Call Error("<card title=""出错""><p>会员ID不存在！")
end if
end if
  rs.close
  set rs=Nothing
uid=ids
call saycardd("TA的相册")
else
uid=myid
call saycardd("我的相册")
end if
if clng(ids)=myid or clng(uid)=myid then
response.write"<a href='photofile.asp?sid="&sid&"'><b>我要上传相片</b></a><br/>"
end if
set rs=Server.CreateObject("ADODB.Recordset")
rs.open"select * from upfile where Fid="&uid&" and smallstr=1 order by id desc",conn,1,1
If Not rs.eof	Then
	Dim PageSize,i
	PageSize=5						
	Dim Count,page,pagecount,gopage			
	gopage="photo.asp?ids="&ids&"&amp;tid="&tid&"&amp;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	
response.write("<img src='/bbs/" & rs("files") & "' alt='图' width='65' height='60' /><br/>")

response.write""&i+(page-1)*PageSize&"."&rs("filesname")&"."
response.write"<br/><a href='/bbs/" & rs("files") & "'>下载</a>|"

response.write"<a href='topicdel.asp?action=p&amp;ids="&rs("id")&"&amp;id="&ids&"&amp;sid="&sid&"&amp;saytk="&saytk&"'>删除</a>"

response.write"<br/>"
rs.moveNext
 	Next
	if page-pagecount<0 then response.write "<a href="""&gopage&"page="&page+1&""">下一页</a>"&chr(13)
	if page>1 then response.write "<a href="""&gopage&"page="&page-1&""">上一页</a>"&chr(13)

response.write "<br/>("&page&"/"&pagecount&")共"&count&"张"
	if pagecount>1 and saytk=1 then response.write "<input name=""page"" format=""*N"" value="""&page&""" type=""text"" maxlength=""5"" emptyok=""true"" size=""2""/><a href="""&gopage&"page=$(page)"">页</a><br/>"
Else
response.write"暂时没有记录！<br/>"
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
if clng(ids)=myid or clng(uid)=myid then
response.write"-----------<br/>"
response.write"<a href='photofile.asp?sid="&sid&"&amp;saytk="&saytk&"'><b>上传相片</b></a>"
end if
if tid<>"" then
response.write"<br/><a href='topic.asp?tid="&tid&"&amp;sid="&sid&"&amp;saytk="&saytk&"'>[返回上级]</a>"
end if
response.write"<br/><a href='show.asp?id="&ids&"&amp;sid="&sid&"&amp;saytk="&saytk&"'>用户信息</a>"
%><!--#include file="fanhui.asp"-->
<%response.write""
call headsay()%>
