<!--#include file="setup.asp" -->
<%
top
if Request.Cookies("username")=empty then error("<li>您还未<a href=login.asp>登录</a>社区")

if Request.Cookies("sex")<>"female" and  Request.Cookies("sex")<>"male" then Response.Cookies("sex")="male"

%>

<title>虚拟形象</title>

<table border=0 width=97% align=center cellspacing=1 cellpadding=4 class=a2>
<tr class=a3>
<td height=25>&nbsp;<img src=images/Forum_nav.gif>&nbsp; <a href=main.asp><%ClubTree%></a> → 虚拟形象 → 我的相册</td>
</tr>
</table><br>
<table cellspacing="1" cellpadding="1" width="97%" align="center" border="0" class="a2">
<TR id=TableTitleLink class=a1 height="25">
		<TD align=center height=25 class=a1><b><a href="myshow.asp">推荐商品</a></b></TH>
		<TD align=center height=25 class=a1><b><a href="myshow.asp?type=1&subtype=0">潮流服装</a></b></TD>
		<TD align=center height=25 class=a1><b><a href="myshow.asp?type=2&subtype=0">化妆整形</a></b></TD>
		<TD align=center height=25 class=a1><b><a href="myshow.asp?type=3&subtype=0">珠宝首饰</a></b></TD>
		<TD align=center height=25 class=a1><b><a href="myshow.asp?type=4&subtype=0">精品场景</a></b></TD>
		<TD align=center height=25 class=a1><b><a href="myshow.asp?type=5&subtype=0">异形天地</a></b></TD>
		<TD align=center height=25 class=a1><b><a href="myshow_myroom.asp">我的衣柜</a></b></TD>
		<TD align=center height=25 class=a1><b><a href="myshow_myphoto.asp">我的相册</a></b></TD>
		<TD align=center height=25 class=a1><b><a href="myshow_photoshow.asp">形象展示</a></b></TD>
</TR>
</TABLE><br>
<TABLE cellSpacing=0 cellPadding=0 width=97% align=center>
<form name="showform" method="post" action="">
<input name="usershow" type="hidden" value=""> 
<TR>
<TD vAlign=top width="180">
	<TABLE style="WIDTH: 95%" height="100%" cellSpacing=1 cellPadding=3 border=0 class=a2>
	<TBODY>
	<TR>
	<TD height=25 class=a1 align="center" ><b>用户形象</b></TH>
	</TR>
	<TR align=middle>
	<TD bgcolor="FFFFFF" height="230"><div id="bodyshow" style="border:0px solid #000000;padding:0;POSITION: relative; Left: 0; TOP: 0; HEIGHT: 226px;  WIDTH: 140px;"></div></TD>
	</TR>
	<TR align=middle>
	<TD bgcolor="FFFFFF" height="20">
	<table width="80%" border="0" cellspacing="0" cellpadding="0">
	  <tr align="center"> 
		<td height="20"><a href="javascript:openScript('myshow_menu.asp?menu=save&myshow='+showform.usershow.value,515,330)">保存</a></td>
		<td><a href="javascript:init()">原始</a></td>
		<td><a href="javascript:cameraprompt('myshow_menu.asp?menu=camera&myshow='+showform.usershow.value,515,330)">快照</a></td>		<td>合影</td>
	  </tr>
	</table>
	</TD>
	</TR>
	<TR>
	<TD height=25 class=a1 align="center"><b>用户状态</b></TH>
	</TR>
	<TR>
	<TD bgcolor=FFFFFF align="center" valign="top">
		<TABLE>	
		<%
		sql2="select * from [user] where username='"&Request.Cookies("username")&"'"
		rs.Open sql2,Conn
		response.write "<TR><TD bgcolor=FFFFFF>用户等级： <Script>document.write(level("&rs("experience")&","&rs("membercode")&",'','')+levelname)</Script><br>用户门派： "&rs("faction")&"<br>用户配偶： "&rs("consort")&"<br>用户体力： "&rs("userlife")&"<br>发表原贴： "&rs("posttopic")&"<br>发表回贴： "&rs("postrevert")&"<br>精华帖数： "&rs("goodtopic")&"<br>被删原贴： "&rs("deltopic")&"<br>社区金币： "&rs("money")&"<br>用户经验： "&rs("experience")&"<br>登录次数： "&rs("degree")&"<br>注册时间： "&rs("regtime")&"</TD></TR>"
		rs.close
		%>   
		</TABLE>
	</TD>
	</TR> 
	</TABLE>
</TD>
<TD vAlign=top>
	<TABLE style="WIDTH: 100%" height=29 cellSpacing=1 cellPadding=3 align=center border=0 class=a2>
    <TR>
		<TD align=left height=25 class=a1>　<b>当前位置：我的相册</TD>
	</TR>
	<TR>
		    <TD align="center" bgcolor="FFFFFF">
			<%
			sql = "select * from [myshow_photo] where username='"&Request.Cookies("username")&"'"
			rs.open sql,conn,1
			
			pagesetup=6
			
			count=rs.recordcount    '数据总条数
			rs.pagesize=pagesetup   '每页显示条数
			TotalPage=rs.pagecount  '总页数
			PageCount = cint(Request.QueryString("ToPage"))
			if PageCount <1 then PageCount = 1
			if PageCount > TotalPage then PageCount = TotalPage
			if TotalPage>0 then rs.absolutepage=PageCount '跳转到指定页数
			
			i=0
			Do While Not RS.EOF and i<pagesetup
			i=i+1
			if Not Response.IsClientConnected then responseend
			if i mod 3 = 1 then response.Write("<table width='99%' border='0' cellspacing='0' cellpadding='0'><tr><td align='center' width='33%'>")
			%>
			<table width="95%" border="0" cellspacing="0" cellpadding="0">
				<TR align=middle>
				<script>document.write("<TD bgcolor='#FFFFFF' height='230' width='33%' title='照片名称：<%=rs("explain")%>"+"\n照相日期：<%=rs("regtime")%>'><div id='bodyshow<%=rs("id")%>' style='border:0px solid #000000;padding:0;POSITION: relative; Left: 0; TOP: 0; HEIGHT: 226px;  WIDTH: 140px;'></div></TD>");showit("<%=rs("photo")%>","<%=rs("id")%>");</script>
				</TR>
                <tr align=middle> 
                  <td valign="middle">
				  <table width="150" align="center"><tr align="center">
				  <td><img src="images/show/changeshow.gif" onClick="showit('<%=rs("photo")%>')"></td>
				  <td><img src="images/show/match.gif" onClick="openScript('myshow_menu.asp?menu=match&photoid=<%=rs("id")%>',515,330);return false;"></td>
				  <td><img src="images/show/dropphoto.gif" onClick="openScript('myshow_menu.asp?menu=dropphoto&photoid=<%=rs("id")%>',515,330);return false;"></td>
				  </tr></table>
				  </td>
                </tr>
              </table>
			<%
			if i mod 3 <> 0 then 
			response.Write("</td><td align='center' width='33%'>")
			else
			response.Write("</td></tr></table><hr width='97%' size='1' color='CCCCCC'>")
			end if
			
			rs.movenext
			loop
			rs.close
			
			if i mod 3 = 2 then response.Write("</td></tr></table><hr width='97%' size='1' color='CCCCCC'>")
			if i mod 3 = 1 then response.Write("</td><td width='33%' align='center'></td></tr></table><hr width='97%' size='1' color='CCCCCC'>")
			%>
			<table width="95%" border="0" cellspacing="0" cellpadding="0">
			<tr>
			<td height="20">
			<b>共有 <font color=990000><%=TotalPage%></font> 页 
			</td>
			<td align="right"><b>页
			[ 
			<script>
			PageCount=<%=TotalPage%>
			topage=<%=PageCount%>
			for (var i=1; i <= PageCount; i++) {
			if (i <= topage+3 && i >= topage-3 || i==1 || i==PageCount){
			if (i > topage+4 || i < topage-2 && i!=1 && i!=2 ){document.write(" ... ");}
			if (topage==i){document.write(" "+ i +" ");}
			else{
			document.write("<a href=?"+"topage="+i+">"+ i +"</a> ");
			}
			}
			}
			</script>
			] </b>
			</td>
			</tr>
			</table>
            </TD>
	</TR>
	</TBODY>
	</TABLE>
</TD>
</TR>
</TBODY>
</form>
</TABLE>
<script src="inc/myshow.js"></script>
<%
htmlend
%>