<!--#include file="../main.asp" -->
<!--#include file="../IsLogin.asp" -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML 
xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>管理中心-这里是所有管理的入口</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK 
href="images/global.css" type=text/css rel=stylesheet><LINK 
href="images/main.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.3790.218" name=GENERATOR>
<script language="javascript">
function Del(id){
if ( confirm("你确定要删除吗？")) {
window.location.href = "pic_individual_del.asp?id="+id
}
}
</script></HEAD>
<BODY id=main background="../images/bj.gif">
<%
dim m_UserID
m_UserID = Request.Cookies("aspxnet")("CurUserID")

%>

<DIV id=wrapper>
<!--#include file="top.asp"-->
<DIV class=row>
<!--#include file="left.asp"-->
<DIV class=right_side>
<DIV class=col id=bulletin>
<DIV class=col_head>
<H3><IMG height=16 alt=a hspace=3 src="images/ico_dots.gif" 
width=20 align=left vspace=3>我的相册</H3>
<SPAN class=float_right><STRONG><a href="photo_add.asp">添加相册</a></STRONG></SPAN><SPAN class=float_right>------</SPAN>
<SPAN class=float_right><STRONG><a href="photo_individual.asp">管理相册</a></STRONG></SPAN><SPAN class=float_right>------</SPAN>
<SPAN class=float_right><STRONG><a href="pic_individual_add.asp">添加相片</a></STRONG></SPAN><SPAN class=float_right>------</SPAN>
<SPAN class=float_right><STRONG><a href="pic_individual.asp">管理相片</a></STRONG></SPAN></DIV>
<DIV class=col_body><P>
<%sql="select * from photo where F_userid="&session("goid")&" order by id desc"
set rs=server.createobject("ADODB.Recordset")
rs.open sql,conn,1,1
if rs.eof then
response.Write("还没有相册,请添加相册!")
else
while not rs.eof%>&#8226;<a href="pic_individual.asp?id=<%=rs("id")%>"><%=rs("F_username")%></a><%rs.movenext
wend
end if
rs.Close()
%></P>
</DIV>
</DIV>
</DIV><DIV class=right_side>
<DIV class=col id=bulletin>
<DIV class=col_head>
<H3><IMG height=16 alt=a hspace=3 src="images/ico_dots.gif" 
width=20 align=left vspace=3>相片管理</H3>
</DIV>
<DIV class=col_body><P>
<table width="98%" border="0" cellspacing="1" cellpadding="0" align=center>
<tr align=center>
<%
if request("id")<>"" then
sql="select * from photo_pic where F_userid="&session("goid")&" and F_picid="&request("id")&" order by F_id desc"
else
sql="select * from photo_pic where F_userid="&session("goid")&" order by F_id desc"
end if
set rs=server.createobject("adodb.recordset")                     
rs.open sql,conn,1,1                     
if rs.eof and rs.bof then                     
	response.write "<tr><td height=194 colspan=5 align=center>暂无内容</td></tr>"
else  
'分页的实现 
listnum=20
Rs.pagesize=listnum
page=Request("page")
if (page-Rs.pagecount) > 0 then
page=Rs.pagecount
elseif page = "" or page < 1 then
page = 1
end if
Rs.absolutepage=page
'编号的实现
j=rs.recordcount
j=j-(page-1)*listnum%>
<%i=0
nn=request("page")
if nn="" then
n=0
else
nn=nn-1
n=listnum*nn
end if%>

<%
a=0
do while not rs.eof and i<listnum
n=n+1
a=a+1
%>

 <td><table border="0" align="center" cellpadding="0" cellspacing="0">
<!--   <tr>
     <td height="25" align="center"><div class="submenu_content"><a href=pic_edit.asp?page==request("page")%>&id=<%=rs("F_id")%> class="STYLE2">=rs("F_username")%></a></div></td>
   </tr> -->
   <tr>
     <td width="90" height="90" align="center" valign="middle" style="border:1px #B5DFDE solid"><img src="../<%=rs("F_pic")%>" width="80" height="80" /></td>
   </tr>
   <tr>
     <td height="25"><table width="100%" height="20" border="0" cellpadding="0" cellspacing="0">
       <tr>
         <td align="center"><a href='javascript:Del(<%=rs("F_id")%>)'> 删 除 </a></td>
         <td align="center"><a href=pic_individual_edit.asp?page=<%=request("page")%>&id=<%=rs("F_id")%>> 修 改 </a></td>
       </tr>
     </table></td>
   </tr>
 </table></td>
 
<%if a mod 7=0 then response.write("</tr><tr>")
rs.movenext 
i=i+1 
j=j-1
loop%></tr></table>
<%filename="pic_individual.asp"%>
共 <%=Rs.pagecount%> 页 
      <% if page=1 then %>
      <%else%>
      <a href=<%=filename%>>|<<</a>
      <a href=<%=filename%>?page=<%=page-1%>><<</a>
      <a href=<%=filename%>?page=<%=page-1%>>[<%=page-1%>]</a>
      <%end if%>
      <% if Rs.pagecount=1 then %>
      <%else%>
      [<%=page%>]
      <%end if%>
	  <% if Rs.pagecount-page <> 0 then %>
      <a href=<%=filename%>?page=<%=page+1%>>[<%=page+1%>]</a>
      <a href=<%=filename%>?page=<%=page+1%>>>></a>
      <a href=<%=filename%>?page=<%=Rs.pagecount%>>>>|</a>
	  <%end if%>
<%end if%>
</P>
</DIV>
</DIV>
</DIV>
</DIV>
<!--#include file="bottom.asp"-->

</DIV></BODY></HTML>
