<!--#include file="conn.asp"-->
<!--#include file="inc/publicfun.asp"-->
<%
userid=request.QueryString("userid")
id=request("id")
photo_name=request("photo_name")
sign=request("sign")
if session("passok")<>"" and session("userid")=userid then
   sign="(sign=0 or sign=2)"
else
   sign="sign=0"
end if
tyname="photo_name"
%>
<!--#include file="memberinfo.asp"-->
<%
sql="SELECT * FROM ftbbs_upload WHERE (bbs_blog_type=1 or bbs_blog_type=2) and photo_name='"&photo_name&"' and clubuser_id="&userid&" and "&sign&" order by indate desc"
set smt=server.createobject("adodb.recordset")
smt.open sql,conn,3,1
%>
<html><head><meta http-equiv=content-type content="text/html; charset=gb2312">
</head>

<body>
<center>
<title><%=username%>的个人相册</title>
<link rel="stylesheet" type="text/css" href="<%=cssfile%>">
<!--#include file="usernav.asp" -->
<!--#include file="photohead.asp" -->
<div class="stage">
<div class="stagepad">

<div style="width:100%">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="modth">
<tr><td class="modtl" width="7">&nbsp;</td>
<td class="modtc" nowrap><div class="modhead"><a href="myphoto.asp?id=<%=id%>&userid=<%=userid%>" class="modtit">相册列表</a> &gt;&gt; <span class="modtit"><%=request("photo_name")%></span></div></td>
<td class="modtc" nowrap align="right"></td>
<td class="modtr" width="7">&nbsp;</td>
</tr></table>
<div id="m_albumlist" class="modbox">
<!--<strong>简介：</strong>-->
<div style="width:100%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<%
if not smt.eof then
  wzrep =20
  wzpage = clng(request.querystring("page"))
  if len(wzpage) = 0 or wzpage = 0 then wzpage = 1
  smt.PageSize=wzrep
  smt.AbsolutePage=wzpage
  wzpagecount=smt.PageCount
  wzcount=smt.RecordCount
a=0
for i = 0 to wzrep-1
    if smt.eof then exit for
    if smt("bbs_blog_type")=2 then
       photourl=smt("upload_pic")
    else
       photourl=smt("upload_pic")
    end if
%>
<td align="center" valign="bottom" width="25%">
	<a href="mypic.asp?id=<%=smt("id")%>&userid=<%=userid%>&photo_name=<%=smt("photo_name")%>" target="_blank"><img src="<%=photourl%>" width="200" border="0" resize="1"></a>
	<div class="tit"><span class="size"><%=smt("upload_size")%>K</span><br><%=split(smt("upload_pic"),"/")(1)%></div>
</td>
<%
  a=a+1
  if a mod 4=0 then
  response.write "</tr><tr><td colspan=""4""><div class=""line"">&nbsp;</div></td></tr><tr>"
  end if
  smt.movenext
next
end if
%>
</tr>
</tr><tr><td colspan="4"><div class="line">&nbsp;</div></td></tr><tr>
</table>
<div id="page"><%= pagenar(wzpagecount,userid,tyname,photo_name)%></div>
</div>
</div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="8">
<tr><td class="modbl" width="7">&nbsp;</td>
<td class="modbc">&nbsp;</td>
<td class="modbr" width="7">&nbsp;</td>
</tr></table>
</div>
</div>
</div>
</div>
<br>
<center><!--#include file="tail.asp" --></center>
</center>
</body>
</html>
<%closedb%>