<!--#include file="conn.asp"-->
<!--#include file="inc/md5.asp"-->
<!--#include file="bbsuser.asp"-->
<!--#include file="inc/publicfun.asp"-->
<%
userid=request.cookies("clubuser_id")
photo_name=request("photo_name")
tyname="photo_name"
if photo_name="" then
   typestr=""
else
   typestr="and photo_name='"&photo_name&"'"
end if
%>
<!--#include file="memberinfo.asp"-->
<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">
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="layout">
<tr>
<td valign="top" class="c2t3">
<div id="mod_profile" class="mod" rel="drag">
<!--#include file="usercalog.asp" -->
</div>
</td>
          <td valign="top" class="c2t1"> 
            <div id="m_blog" class="modbox">
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr> 
                  <td width="64%" height="35" class=new14><div class="opt"><img src="blogimages/up.gif"> 
                    <strong><a href="up_photo.asp">上传照片到我的相册</a></strong></div></td>
                  <td width="7%" class=new14>&nbsp;</td>
                  <td width="29%" class=new14><div class="opt"><img src="blogimages/wwwup.gif" width="12" height="12"> 
                    <a href="postpic.asp"><strong>网上传图</strong></a></div></td>
                </tr>
              </table>
              <table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0">
                <tr> 
                  <td width="100%" height="1" bgcolor="#336699" class=new14><spacer height="1" type="block"></td>
                </tr>
              </table>
              <br>
              <table width="100%" border="0" cellspacing="1" cellpadding="0" align="center">
                <tr align=center> 
                  <%
str="select * from ftbbs_upload where (bbs_blog_type=2 or bbs_blog_type=1) and clubuser_id="&request.cookies("clubuser_id")&" "&typestr&" order by id desc"
Set rs= Server.CreateObject("ADODB.Recordset")
rs.open str,conn,3,1
page=request("page")
if page="" then
page=1
else 
page=cint(trim(request("page")))
end if
ipagesize=20
rs.pagesize=ipagesize
  if not rs.eof then
	  rs.absolutepage=page
	  i=0
	  do while not rs.eof
	     photourl=""
         photourl=rs("upload_pic")
  %>
                  <td><div class="opt"><img src="<%=photourl%>" width="150" border=0><br>
				   <%if rs("bbs_blog_type")=2 then%> 
				    <a href="edit_photo.asp?id=<%=rs("id")%>&pic=<%=rs("upload_pic")%>&photo_name=<%=rs("photo_name")%>">修改</a> 
                    <A HREF="flag_photo.asp?pic=<%=rs("upload_pic")%>&id=<%=rs("id")%>&flag=1&photo_name=<%=rs("photo_name")%>&bbs_blog_type=<%=rs("bbs_blog_type")%>">[删除]</A> 
                    <a href="flag_photo.asp?id=<%=rs("id")%>&pic=<%=rs("upload_pic")%>&flag=2">设为形象照</a>
				   <%else%>
				    <A HREF="flag_photo.asp?pic=<%=rs("upload_pic")%>&id=<%=rs("id")%>&flag=1&photo_name=<%=rs("photo_name")%>&file_type=<%=rs("file_type")%>">[删除]</A>
				   <%end if%>
				   </div>
					</td>
                  <%
  i=i+1
  if i mod 3=0 then
  response.write "<tr align=center>"
  end if
  
  if i>=ipagesize then exit do
  rs.movenext
  loop
  %>
                </tr>
                <tr align=center> 
                  <td colspan="15"> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                      <tr> 
                        <td width="77%" height="30" align="center"> <div class="opt">共<%=rs.recordcount%>张 
                            第<%=page%>页/共<%=rs.pagecount%>页　 
                            <%if page>1 then%>
                            <a href="<%=request.servervariables("script_name")%>?page=1&photo_name=<%=photo_name%>">［首　页］</a> 
                            <%else%>
                            ［首　页］ 
                            <%end if%>
                            <%if page>1 then%>
                            <a href="<%=request.servervariables("script_name")%>?page=<%=page-1%>&photo_name=<%=photo_name%>">［上一页］</a> 
                            <%else%>
                            ［上一页］ 
                            <%end if%>
                            <%if page<rs.pagecount then%>
                            <a href="<%=request.servervariables("script_name")%>?page=<%=page+1%>&photo_name=<%=photo_name%>">［下一页］</a> 
                            <%else%>
                            ［下一页］ 
                            <%end if%>
                            <%if page<>rs.pagecount then%>
                            <a href="<%=request.servervariables("script_name")%>?page=<%=rs.pagecount%>&photo_name=<%=photo_name%>">［尾　页］</a> 
                            <%else%>
                            ［尾　页］ 
                            <%end if%>
                          </div></td>
                        <form name="form2" method="post" action="<%=request.servervariables("script_name")%>">
                          <td width="23%"> <div align="center">第 
                              <input type="text" name="page" size="3">页 
                              <INPUT TYPE="hidden" name="photo_name" value="<%=photo_name%>">
                              <input type="submit" name="Submit" value="GO！" class="button">
                            </div></td>
                        </form>
                      </tr>
                    </table></td>
                </tr>
                <%else%>
                <tr> 
                  <td height="25" colspan=15 align="center"> <div class="opt"> 暂时还没有照片！</div></td>
                </tr>
                <%end if%>
              </table>
              <br>
              <br>
            </div>
</td>
</tr></table>
</div>
</div>
<br><center>
<!--#include file="tail.asp" -->
</center>
</center>
</body>
</html>
<%closedb%>