<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="inc/Conn_User.asp"-->
<%if Request.Cookies("asp163")("UserName")="" or request("UserID")="" then 
  response.Redirect "User_Login.asp"
  else
  end if%>
<html>
<head>
<title>管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="new/css.CSS" rel="stylesheet" type="text/css">
<style type=text/css>
.sec_menu  { border-left:1px solid white; border-right:1px solid white; border-bottom:1px solid white; overflow:hidden; background:#E8E8E8; }
.menu_title  { }
.menu_title span  { position:relative;color:#333333; font-weight:bold; }
.menu_title2  { }
.menu_title2 span  { position:relative; color:#333333; font-weight:bold; }
</style>

<SCRIPT language=javascript1.2>
function showsubmenu(sid)
{
whichEl = eval("submenu" + sid);
if (whichEl.style.display == "none")
{
eval("submenu" + sid + ".style.display=\"\";");
}
else
{
eval("submenu" + sid + ".style.display=\"none\";");
}
}
</SCRIPT>
<SCRIPT language=javascript>

function ConfirmDel()
{
   if(confirm("确定要删除吗？一旦删除将不能恢复！"))
     return true;
   else
     return false;
	 
}

</SCRIPT>
<style type="text/css">
BODY {
	scrollbar-face-color:#DDDDDD;
	scrollbar-highlight-color: #cccccc;
	scrollbar-shadow-color: #CCCCCC;
	scrollbar-3dlight-color: #F5F5F5;
	scrollbar-darkshadow-color: #F5F5F5;
	scrollbar-track-color: #F0F0F0;
	scrollbar-arrow-color: #FFFFFF;
	margin-left: 10px;
	margin-top: 10px;
	margin-right: 10px;
	margin-bottom: 10px;
}
</style>
<link href="new/css.CSS" rel="stylesheet" type="text/css" />
</head>

<body >

 
  <table width="100%" height="10"  border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td></td>
    </tr>
  </table></td>
    </tr>
  </table>

  <%
usernamed=Request.Cookies("asp163")("UserName")
set rs=server.createobject("adodb.recordset")
sql="select * from [userg] where username='"&usernamed&"' order by id desc"
rs.open sql,Conn_User,1,3%>
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="1" height="1"></td>
      <td height="1" bgcolor="#BCBCBC"></td>
      <td width="1" height="1"></td>
    </tr>
    <tr>
      <td bgcolor="#BCBCBC"></td>
      <td height="27" align="center" bgcolor="f6f6f6"><span><strong>---&nbsp;我的挂饰&nbsp;---</strong></span></td>
      <td bgcolor="#BCBCBC"></td>
    </tr>
  </table>
  <table width="100%"  border="0" cellspacing="0" cellpadding="0"  style="display:" id='submenu6'>

      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0" >
            <tr>
              <td height="1" bgcolor="#BCBCBC"></td>
              <td height="1" align="center" bgcolor="#BCBCBC"></td>
              <td height="1" bgcolor="#BCBCBC"></td>
            </tr>
            <tr>
              <td bgcolor="#BCBCBC"></td>
              <td align="center" bgcolor="#FFFFFF"><table width="100%" height="5" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td height="5"></td>
                  </tr>
                </table><%if rs.eof then%><br/> 
                暂时没有挂饰 <br/>
                <br/><%else%>
                  <table  border="0" cellpadding="6" cellspacing="0">
                    <tr  bgcolor="#FFFFFF">
                      <%i=0%>
                      <%do while not rs.eof%>
                      <td align="center"  bgcolor="#FFFFFF"><table width="70"  border="0" cellpadding="0" cellspacing="0" bgcolor="FFFFFFF">
                          <tr>
                            <td width="70" height="90"  bgcolor="#FFFFFF"><img src="userg/<%=rs("gid")%>.gif" width=70 height=170 border="0"> <a href="view.asp?usergid=<%=rs("gid")%>"> </a> </td>
                          </tr>
                           <tr> 
                        
                      <td height="22" align="center" valign="bottom" bgcolor="#FFFFFF"> 
                        <a href=usergsave.asp?gid=<%=rs("gid")%>&userid=<%=Trim(Request("userid"))%>><font class=no>使用</font></a>/<a href=usergdel.asp?gid=<%=rs("gid")%>&userid=<%=Trim(Request("userid"))%> onClick="return ConfirmDel();"><font class=no>删除</font></a> 
                      </td>
                      </tr>
                      </table></td>
                      <%i=i+1%>
                      <%if i mod 5=0 then%>
                    </Tr>
                    <%else%>
                    <%end if%>
                    <%rs.movenext
		loop
		rs.close
		set rs=nothing%>
                </table><%end if%></td>
              <td bgcolor="#BCBCBC"></td>
            </tr>
            <tr>
              <td width="1" height="1" bgcolor="bcbcbc"></td>
              <td height="1"bgcolor="#BCBCBC"></td>
              <td width="1" height="1" bgcolor="bcbcbc"></td>
            </tr>
          </table>
            <table width="100%" height="10"  border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td></td>
              </tr>
          </table></td>
      </tr>

  </table>
          <td bgcolor="#BCBCBC"></td>
        </tr>
        <tr>
          <td width="1" height="1" bgcolor="bcbcbc"></td>
          <td height="1"bgcolor="#BCBCBC"></td>
          <td width="1" height="1" bgcolor="bcbcbc"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</body>
</html>
