<%@ Language=VBScript %>
<!--#include file="../db/adovbs.inc"-->
<!--#include file="const.asp" -->
<title><%=rs("title")%>---<%=rs("lovetitle")%></title>
<link rel="stylesheet" href="../images/css.css" type="text/css">
<meta NAME="GENERATOR" Content="Microsoft FrontPage 5.0">
</head>
<body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0">
<object runat=server id=connpic progid="adodb.connection"></object>
<%application.Lock
connpic.Open Application("p_pic")
Application.UnLock
%>
<!--#include file="top.asp" -->
<%
dim id(10)
for i=1 to 10
	id(i)=0
next
dim user_name(10)
for i=1 to 10
	user_name(i)=""
next

sex="女"
if Request("sex")<>"" then
sex=Request("sex")
end if
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from pic where selected=1 and sex='"&sex&"'"
sql=sql&" order by id desc"
'sql="select * from pic where selected=1 and sex='"&sex&"'"
'sql="select a.* from pic a where sex='"&sex&"'"
'sql=sql&" and id in(select max(id) from pic b where a.user_name=b.user_name group by user_name)"
rs.open sql,connpic,3,2
rs.PageSize=10
rows=1
if rs.RecordCount<>0 then

	if Request("move")=1 then
	session("cur_page")=1
	end if
	if Request("move")=2 then
	session("cur_page")=session("cur_page")-1
	end if
	if Request("move")=3 then
	session("cur_page")=session("cur_page")+1
	end if
	if Request("move")=4 then
	session("cur_page")=rs.PageCount
	end if
	if session("cur_page")="" then
	session("cur_page")=1
	end if
	if session("cur_page")<1 then
	session("cur_page")=1
	end if
	if session("cur_page")>rs.PageCount then
	session("cur_page")=rs.PageCount
	end if

	rs.AbsolutePage=session("cur_page")
	while not rs.EOF and rows<=rs.PageSize 
	id(rows)=rs("id")
	user_name(rows)=rs("user_name")
	rs.MoveNext
    rows=rows+1
  wend
end if

if sex="男" then
	def_photo="images/displaypic_b.gif"
else
	def_photo="images/displaypic_g.gif"
end if


%>
<script language=javascript>
<!--
function openPict(id)
		{
		
	
		srcIMG="displaypic1.asp?id="+id;
		var newWin=window.open(srcIMG,"myalbum","fullscreen=1,status=no,scrollbars=0,resizable=1,width=800,height=600");
		}
	 
//-->
</script>
<table id="Table_01" width="778" height="457" border="0" cellpadding="0" cellspacing="0" align="center">
  <tr> 
    <td colspan="7"> <img src="../image/love_image/images/PHOTO_01.gif" width="778" height="16" alt=""></td>
  </tr>
  <tr> 
    <td colspan="4"> <img src="../image/love_image/images/PHOTO_02.gif" width="252" height="99" alt=""></td>
    <td colspan="3"> <img src="../image/love_image/images/PHOTO_03.gif" width="526" height="99" alt=""></td>
  </tr>
  <tr> 
    <td> <img src="../image/love_image/images/PHOTO_04.gif" width="26" height="81" alt=""></td>
    <td> <img src="../image/love_image/images/PHOTO_05.gif" width="1" height="81" alt=""></td>
    <td> <img src="../image/love_image/images/PHOTO_06.gif" width="37" height="81" alt=""></td>
    <td> <a href="show_photo.asp?sex=%C5%AE&move=1"><img src="../image/love_image/images/PHOTO_07.gif" width="188" height="81" alt="" border="0"></a></td>
    <td> <a href="show_photo.asp?sex=%C4%D0&move=1"><img src="../image/love_image/images/PHOTO_08.gif" width="221" height="81" alt="" border="0"></a></td>
    <td> <a href="my_photo.asp"><img src="../image/love_image/images/PHOTO_09.gif" width="221" height="81" alt="" border="0"></a></td>
    <td> <img src="../image/love_image/images/PHOTO_10.gif" width="84" height="81" alt=""></td>
  </tr>
  <tr> 
    <td colspan="7"> <img src="../image/love_image/images/PHOTO_11.gif" width="778" height="25" alt=""></td>
  </tr>
  <tr background="../image/love_image/images/PHOTO_12.gif"> 
    <td background="../image/love_image/images/PHOTO_12.gif" colspan="7" height="170" valign="top"> 
      <table width="80%" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr> 
          <td> 
            <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
              <tr> 
                <td align=center> <font color="#FF5050"><b><%=sex%><font color="#FF3399">会员影集 
                  </font></b></font> </td>
                <td></td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
      <style type="text/css">

.my_boder{border:1px solid #ff6600; &quot}







</style>
      <br>
      <br>
      <table cellspacing="0" cellpadding="0" width="80%" border="0" align="center">
        <tbody> 
        <tr> 
          <%for i=1 to 5
	if id(i)<>0 then
   %>
          <td valign="top" align=center width="150"> 
            <table id="Table_01" width="144" height="175" border="0" cellpadding="0" cellspacing="0">
              <tr> 
                <td colspan="3"> <img src="../image/love_image/images/photo_img_01.gif" width="144" height="16" alt=""></td>
              </tr>
              <tr> 
                <td> <img src="../image/love_image/images/photo_img_02.gif" width="22" height="120" alt=""></td>
                <td background="../image/love_image/images/photo_img_03.gif" width="100" height="120"> 
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td><a target="_blank" href="displaypic1.asp?id=<%=id(i)%>"><img height="120" alt="点击看全图" src="displaypic.asp?id=<%=id(i)%>" width="100"  border="0"></a></td>
                    </tr>
                  </table>
                </td>
                <td> <img src="../image/love_image/images/photo_img_04.gif" width="22" height="120" alt=""></td>
              </tr>
              <tr> 
                <td colspan="3"> <img src="../image/love_image/images/photo_img_05.gif" width="144" height="5" alt=""></td>
              </tr>
              <tr background="../image/love_image/images/photo_img_06.gif"> 
                <td background="../image/love_image/images/photo_img_06.gif" colspan="3" height="23"> 
                  <table cellspacing="0" cellpadding="0" width="125" border="0" class=my_boder style="border-collapse: collapse; border-width: 0" bordercolor="#111111" align="center">
                    <tbody> 
                    <tr height=20> 
                      <td align=center><a href=show_user.asp?user_name=<%=user_name(i)%> target="_blank"><font color="#FF6666"><font color="#FF6666" face="Arial, Helvetica, sans-serif"><%=user_name(i)%></font></font></a></td>
                    </tr>
                    </tbody> 
                  </table>
                </td>
              </tr>
              <tr> 
                <td colspan="3"> <img src="../image/love_image/images/photo_img_07.gif" width="144" height="11" alt=""></td>
              </tr>
            </table>
          </td>
          <%else%>
          <td valign="top" align=center width="150"> 
            <div align="center"> 
              <center>
                <table id="Table_01" width="144" height="175" border="0" cellpadding="0" cellspacing="0">
                  <tr> 
                    <td colspan="3"> <img src="../image/love_image/images/photo_img_01.gif" width="144" height="16" alt=""></td>
                  </tr>
                  <tr> 
                    <td> <img src="../image/love_image/images/photo_img_02.gif" width="22" height="120" alt=""></td>
                    <td background="../image/love_image/images/photo_img_03.gif" width="100" height="120"> 
                      <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr> 
                          <td><img height="120" src="<%=def_photo%>" width="100" border="0"></td>
                        </tr>
                      </table>
                    </td>
                    <td> <img src="../image/love_image/images/photo_img_04.gif" width="22" height="120" alt=""></td>
                  </tr>
                  <tr> 
                    <td colspan="3"> <img src="../image/love_image/images/photo_img_05.gif" width="144" height="5" alt=""></td>
                  </tr>
                  <tr background="../image/love_image/images/photo_img_06.gif"> 
                    <td background="../image/love_image/images/photo_img_06.gif" colspan="3" height="23"> 
                      <table cellspacing="0" cellpadding="0" width="125" border="0" class=my_boder style="border-collapse: collapse; border-width: 0" bordercolor="#111111" align="center">
                        <tbody> 
                        <tr height=20> 
                          <td align=center><a href=show_user.asp?user_name=<%=user_name(i)%> target="_blank">还未上传图片</a></td>
                        </tr>
                        </tbody> 
                      </table>
                    </td>
                  </tr>
                  <tr> 
                    <td colspan="3"> <img src="../image/love_image/images/photo_img_07.gif" width="144" height="11" alt=""></td>
                  </tr>
                </table>
              </center>
            </div>
          </td>
          <%end if
    next%>
        </tr>
        </tbody> 
      </table>
      <br>
      <br>
      <table cellspacing="0" cellpadding="0" width="80%" border="0" align="center" >
        <tbody> 
        <tr> 
          <%for i=6 to 10
	if id(i)<>0 then
   %>
          <td valign="top" align=center width="150"> 
            <table id="Table_01" width="144" height="175" border="0" cellpadding="0" cellspacing="0">
              <tr> 
                <td colspan="3"> <img src="../image/love_image/images/photo_img_01.gif" width="144" height="16" alt=""></td>
              </tr>
              <tr> 
                <td> <img src="../image/love_image/images/photo_img_02.gif" width="22" height="120" alt=""></td>
                <td background="../image/love_image/images/photo_img_03.gif" width="100" height="120"> 
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td><a target="_blank" href="displaypic1.asp?id=<%=id(i)%>"><img height="120" alt="点击看全图" src="displaypic.asp?id=<%=id(i)%>" width="100"  border="0"></a></td>
                    </tr>
                  </table>
                </td>
                <td> <img src="../image/love_image/images/photo_img_04.gif" width="22" height="120" alt=""></td>
              </tr>
              <tr> 
                <td colspan="3"> <img src="../image/love_image/images/photo_img_05.gif" width="144" height="5" alt=""></td>
              </tr>
              <tr background="../image/love_image/images/photo_img_06.gif"> 
                <td background="../image/love_image/images/photo_img_06.gif" colspan="3" height="23"> 
                  <table cellspacing="0" cellpadding="0" width="125" border="0" class=my_boder style="border-collapse: collapse; border-width: 0" bordercolor="#111111" align="center">
                    <tbody> 
                    <tr height=20> 
                      <td align=center><a href=show_user.asp?user_name=<%=user_name(i)%> target="_blank"><font color="#FF6666"><%=user_name(i)%></font></a></td>
                    </tr>
                    </tbody> 
                  </table>
                </td>
              </tr>
              <tr> 
                <td colspan="3"> <img src="../image/love_image/images/photo_img_07.gif" width="144" height="11" alt=""></td>
              </tr>
            </table>
          </td>
          <%else%>
          <td valign="top" align=center width="150" > 
            <table id="Table_01" width="144" height="175" border="0" cellpadding="0" cellspacing="0">
              <tr> 
                <td colspan="3"> <img src="../image/love_image/images/photo_img_01.gif" width="144" height="16" alt=""></td>
              </tr>
              <tr> 
                <td> <img src="../image/love_image/images/photo_img_02.gif" width="22" height="120" alt=""></td>
                <td background="../image/love_image/images/photo_img_03.gif" width="100" height="120"> 
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td><img height="120" src="<%=def_photo%>" width="100" border="0"></td>
                    </tr>
                  </table>
                </td>
                <td> <img src="../image/love_image/images/photo_img_04.gif" width="22" height="120" alt=""></td>
              </tr>
              <tr> 
                <td colspan="3"> <img src="../image/love_image/images/photo_img_05.gif" width="144" height="5" alt=""></td>
              </tr>
              <tr background="../image/love_image/images/photo_img_06.gif"> 
                <td background="../image/love_image/images/photo_img_06.gif" colspan="3" height="23"> 
                  <table cellspacing="0" cellpadding="0" width="125" border="0" class=my_boder style="border-collapse: collapse; border-width: 0" bordercolor="#111111" align="center">
                    <tbody> 
                    <tr height=20> 
                      <td align=center><a href=show_user.asp?user_name=<%=user_name(i)%> target="_blank">还未上传图片</a></td>
                    </tr>
                    </tbody> 
                  </table>
                </td>
              </tr>
              <tr> 
                <td colspan="3"> <img src="../image/love_image/images/photo_img_07.gif" width="144" height="11" alt=""></td>
              </tr>
            </table>
          </td>
          <%end if
    
    next%>
        </tr>
        </tbody> 
      </table>
    </td>
  </tr>
  <tr background="../image/love_image/images/PHOTO_13.gif"> 
    <td background="../image/love_image/images/PHOTO_13.gif" colspan="7" height="66"> 
      <table border="0" cellpadding="5" cellspacing="0" width="100%" align="center">
        <tbody> 
        <tr align="center"> 
          <td> 
            <%'if session("cur_page")>1then %>
            <a href="show_photo.asp?move=1 &sex=<%=sex%>">首页</a>　 <a href="show_photo.asp?move=2 &sex=<%=sex%>">上一页</a> 
            <%' end if%>
            <%' if session("cur_page")<rs.PageCount  then %>
            <a href="show_photo.asp?move=3 &sex=<%=sex%>">下一页</a>　 <a href="show_photo.asp?move=4 &sex=<%=sex%>">末页</a> 
            <% 'end if %>
            &nbsp;&nbsp;&nbsp;第<font color="#FF6666" face="Arial, Helvetica, sans-serif"><%=session("cur_page")%></font>页/共<font color="#FF6666" face="Arial, Helvetica, sans-serif"><%=rs.PageCount%></font>页 </td>
        </tr>
        <tr> 
          <td align=center>&nbsp;</td>
        </tr>
        </tbody> 
      </table>
    </td>
  </tr>
</table>



<!--#include file="../copyright.asp" -->
</body>
</html>