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

%>

<title>虚拟形象</title>

<table border=0 width=<%=dkuan%> 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=<%=dkuan%> 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>
<% if showtype<6 and showtype>0 then%>
<TR height="25">
		<TD align=center height=20 colspan="9" class=a3>
		<div id="menushow" style="border:0px solid #000000;padding:0;POSITION: relative; Left: 20; TOP: 0; HEIGHT: 10px;  WIDTH: 100%;"> 
        <% 
		sql2 = "select * from [myshow_subtype] where TypeSeq="&showtype&""
		rs.open sql2,conn
		do while not rs.eof
		response.Write("&nbsp;｜&nbsp;<a href=?type="&rs("TypeSeq")&"&subtype="&rs("SeqNo")&">"&rs("SubTypeName")&"</a>")
		rs.movenext
		loop
		response.Write("&nbsp;｜&nbsp;")
		rs.close		
		%>
      </div>
		</TD>
</TR>
<% end if %>
</TABLE><br>
<TABLE cellSpacing=0 cellPadding=0 width=<%=dkuan%> 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" colspan="2"><b>用户形象</b></TH>
	</TR>
	<TR align=middle>
	<TD colspan="2" class=a3 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 colspan="2" class=a3 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" colspan="2"><b>用户状态</b></TH>
	</TR>
	<TR>
	<TD class=a3 align="center" valign="top">
		<TABLE>	
		<%
		sql2="select * from [user] where username='"&Request.Cookies("username")&"'"
		rs.Open sql2,Conn
		response.write "<TR><TD class=a3>用户等级： <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%" cellSpacing=1 cellPadding=0 align=center border=0 class=a2>
    <TR>
		<TD align=left height=25 class=a1>
			<table cellspacing="1" cellpadding="1" width="99%" align="center" border="0">
			<TR height="20">
					<TD height=20 align="left"><span class=a1><b>-=> 我的衣柜</b></span></TD>
					<TD height=20 align="right"><b><span class=a1>收藏记录</span>　<a href="myshow_mypresent.asp"><span class=a1>获赠记录</span></a></TD>
			</TR>
			</TABLE>
		</TD>
	</TR>
	<TR>
		<TD align="center" class=a3>
		<%
		sql = "select mybuyshow from [user] where username='"&Request.Cookies("username")&"'"
		rs.open sql,conn
		mybuyshow=rs("mybuyshow")
		rs.close
		if len(mybuyshow)>4 then
			showid=split(mybuyshow,"-")
			
			pagesetup=8'每页显示数量
			TotalPage=cint(UBound(showid)/pagesetup)+1
			PageCount = cint(Request.QueryString("ToPage"))
			if PageCount=0 then PageCount=1
		
			for i=(PageCount-1)*pagesetup to UBound(showid)
			if i>(PageCount-1)*pagesetup+pagesetup-1 then exit for
			'response.Write(i)
			'on error resume next
				'if showid(i)>15 then 
					sql = "select * from [myshow] where id="&showid(i)&""
					rs.open sql,conn
					if rs("sex")=1 then sex="(男)"
					if rs("sex")=0 then sex="(女)"
					if rs("sex")=2 then sex=""
					if i mod 2 = 0 then response.Write("<table width='99%' border='0' cellspacing='0' cellpadding='0'><tr><td colspan=2 height=10></td></tr><tr><td align='center' width='50%'>")
					%>
					<table width="95%" border="0" cellspacing="0" cellpadding="0">
					  <tr> 
						<td width="90" height="90" align="center" rowspan="5" valign="middle"><img src="http://qqshow-item.tencent.com/<%=rs("ID")%>/00/00/" width="84" height="84" border="1"  style="border-color:cccccc" onclick="testdress('<%=rs("Content")%>',<%=rs("ID")%>,<%=rs("sex")%>);return false;"></td>
						<td>　<b><%=rs("Name")%><%=sex%></td>
					  </tr>
					  <tr> 
						<td>　会员价：<%=rs("Price1")%> 金币</td>
					  </tr>
					  <tr> 
						<td>　嘉宾价：<%=rs("Price2")%> 金币</td>
					  </tr>
					  <tr> 
						<td>　说　明：普通</td>
					  </tr>
					  <tr> 
						<td>　
						<img src="images/show/show_test.gif" width="36" height="17" onclick="testdress('<%=rs("Content")%>',<%=rs("ID")%>,<%=rs("sex")%>);return false;">
						<img src="images/show/show_give.gif" width="36" height="17" onclick="presentprompt('myshow_menu.asp?menu=present&id=<%=rs("ID")%>',515,330);return false;">
						<img src="images/show/dropphoto.gif" width="36" height="17" onclick="openScript('myshow_menu.asp?menu=dropclothes&clothesid=<%=rs("ID")%>',515,330);return false;">
						</td>
					  </tr>
					</table>
					<%
					if i mod 2 = 0 then 
					response.Write("</td><td align='center' width='50%'>")
					else
					response.Write("</td></tr></table><hr width='97%' size='1' color='CCCCCC'>")
					end if
					
					rs.close
				'end if
			next
			
			if i mod 2 = 1 then response.Write("</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>
		<%
		else
			response.write("您还没有购买任何衣服。")
		end if
		%>
		</TD>
	</TR>
	</TBODY>
	</TABLE>
</TD>
</TR>
</TBODY>
</form>
</TABLE>
		
<script src="inc/myshow.js"></script>
<%
htmlend
%>