<!--#include file="conn.asp"-->
<!--#include file="webconfig.asp"-->
<!--#include file="fuction.asp"-->
<!--#include file="webtop.asp"-->
<%
if session("username")="" then
response.write "<script language=javascript>alert('Pleas login!');window.history.go(-1);</script>"
response.End
end if
%> 
<table width="1000" align="center" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="6" colspan="4"></td>
  </tr>
  <tr>
    <td width="20"></td>
    <td width="479" valign="bottom"><img src="<%=weburl%>images/arrow01.gif" width="11" height="11" /> Your present position: <a href="<%=weburl%>"><%=webname%></a> -> 支付成功<span class="table-shangxia"></span></td>
    <td width="479" valign="bottom"><MARQUEE onmouseover=this.stop(); onmouseout=this.start(); scrollAmount=3 scrollDelay=80 width=500>
       <font color="#ff0000"><span class="bulletin_td"><%=gonggao%></span></font></MARQUEE></td>
    <td width="22" valign="bottom">    </td>
  </tr>
  <tr>
    <td height="6" colspan="4"></td>
  </tr>
</table>
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td>
      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
		<td width="205" valign="top"><table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td height="32" background="<%=weburl%>images/skin<%=cssid%>/left01.gif"><img src="<%=weburl%>images/skin<%=cssid%>/left05.gif" width="200" height="32" /></td>
      </tr>
      <tr>
        <td valign="middle" background="<%=weburl%>images/skin<%=cssid%>/login.gif"><table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
		<form name="userlogin" method="post" action="<%=weburl%>checkuserlogin.asp">
          <tr>
            <td height="25"><%
						set rslg=server.createobject("adodb.recordset")
						sql = "select jifen,yucun,reglx,vipdate from [shop_user] where username='"&nosql(session("username"))&"'"
                        rslg.open sql,conn,1,3
                        if rslg("vipdate")<>"" then 
                          '检查VIP是否过期
                          if rslg("vipdate") < date and rslg("reglx") = 2 then
                          rslg("reglx") = 1
                          rslg.update
                          end if
                        end if
                        session("yucun") = rslg("yucun")
                        session("jifen") = rslg("jifen")
                        session("reglx") = rslg("reglx")
                        rslg.close
                        set rslg = nothing%>
            &nbsp;&nbsp;会员名：<%=session("username")%>						</td>
          </tr>
          <tr>
            <td height="25">&nbsp;&nbsp;等&nbsp;&nbsp;级：<%if session("reglx") = 2 then
				response.write " <font color=red>VIP贵宾</font>"
								elseif session("reglx")=3 then
				response.write "<font color=red>特别会员</font>"
				else
				response.write "<font color=red>普通会员</font>"
				end if%></td>
          </tr>
          
          
          <tr>
            <td height="30"><div align="center"><a href="<%=weburl%>logout.asp"><img src="images/login04.gif" width="80" height="28" border="0" /></a></div></td>
            </tr>
	      </form>
        </table>		</td>
      </tr>
      <tr>
        <td height="117" valign="middle" background="<%=weburl%>images/skin<%=cssid%>/login.gif"><table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td height="25" colspan="2" background="<%=weburl%>images/skin<%=cssid%>/hyzx.gif"><div align="center" style="color: #000000">我 的 资 料 专 区</div></td>
          </tr>
          <tr>
            <td height="25" colspan="2">&nbsp;<img src="<%=weburl%>images/arrow03.gif" width="4" height="6" /> <a href="user.asp?action=myinfo">查看我的信息</a></td>
          </tr>
          <tr>
            <td height="25" colspan="2">&nbsp;<img src="<%=weburl%>images/arrow03.gif" width="4" height="6" /> <a href="user.asp?action=userziliao">修改我的资料</a></td>
          </tr>
          <tr>
            <td height="25" colspan="2">&nbsp;<img src="<%=weburl%>images/arrow03.gif" width="4" height="6" /> <a href="user.asp?action=savepass">管理我的登录密码</a></td>
          </tr>
          <tr>
            <td height="25" colspan="2">&nbsp;<img src="<%=weburl%>images/arrow03.gif" width="4" height="6" /> <a href="user.asp?action=jifen">我的积分与奖品</a></td>
          </tr>
          <tr>
            <td height="25" colspan="2">&nbsp;<img src="<%=weburl%>images/arrow03.gif" width="4" height="6" /> <a href="user.asp?action=syh">我的商友会</a></td>
          </tr>
          <tr>
            <td height="25" colspan="2">&nbsp;<img src="<%=weburl%>images/arrow03.gif" width="4" height="6" /> <a href="bbs/mysms.asp?menu=write">我的站内短信</a></td>
          </tr>
        </table>
          <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td height="25" background="<%=weburl%>images/skin<%=cssid%>/hyzx.gif"><div align="center" style="color: #000000">我 的 购 物 专 区</div></td>
          </tr>
          <tr>
            <td height="25">&nbsp;<img src="<%=weburl%>images/arrow03.gif" width="4" height="6" /> <a href="user.asp?action=dindan">查看我的订单</a></td>
          </tr>
          <tr>
            <td height="25">&nbsp;<img src="<%=weburl%>images/arrow03.gif" width="4" height="6" /> <a href="gouwu.asp?action=show&lx=1">我的购物车</a> </td>
          </tr>
          <tr>
            <td height="25">&nbsp;<img src="<%=weburl%>images/arrow03.gif" width="4" height="6" /> <a href="shoucang.asp?action=show">我的商品收藏夹</a></td>
          </tr>
          <tr>
            <td height="25">&nbsp;<img src="<%=weburl%>images/arrow03.gif" width="4" height="6" /> <a href="to.asp?action=show">查看商品对比架</a></td>
          </tr>
          <tr>
            <td height="25">&nbsp;<img src="<%=weburl%>images/arrow03.gif" width="4" height="6" /> <a href="user.asp?action=myshhr">管理我的收货人</a></td>
          </tr>
        </table>
          <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td height="25" colspan="2" background="<%=weburl%>images/skin<%=cssid%>/hyzx.gif"><div align="center" style="color: #000000">VIP 专 区</div></td>
            </tr>
            <tr>
              <td height="25" colspan="2">&nbsp;<img src="<%=weburl%>images/arrow03.gif" width="4" height="6" /> <a href="user.asp?action=sqvip">申请成为VIP会员</a></td>
            </tr>
            <tr>
              <td height="25" colspan="2">&nbsp;<img src="<%=weburl%>images/arrow03.gif" width="4" height="6" /> <a href="user.asp?action=viphd">VIP活动</a></td>
            </tr>
            
            <tr>
              <td height="25" colspan="2"><a href="to.asp?action=show"></a> &nbsp;<img src="<%=weburl%>images/arrow03.gif" width="4" height="6" /> <a href="vipdyj.asp?action=vipsq">VIP大赢家</a></td>
            </tr>
          </table>
          <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td height="25" colspan="2" background="<%=weburl%>images/skin<%=cssid%>/hyzx.gif"><div align="center" style="color: #000000">会 员 工 具 箱</div></td>
            </tr>
            <tr>
              <td height="25" colspan="2">&nbsp;<img src="<%=weburl%>images/arrow03.gif" width="4" height="6" /> <a href="<%=weburl%>Diary/">撰写我的会员日志</a></td>
            </tr>
            <tr>
              <td height="25" colspan="2">&nbsp;<img src="<%=weburl%>images/arrow03.gif" width="4" height="6" /> <a href="<%=weburl%>fk.asp">留言反馈</a></td>
            </tr>
            <tr>
              <td height="25" colspan="2"><a href="to.asp?action=show"></a> &nbsp;<img src="<%=weburl%>images/arrow03.gif" width="4" height="6" /> <a href="<%=weburl%>qhdj.asp">缺货登记</a></td>
            </tr>
          </table></td>
      </tr>
      <tr>
        <td height="7" valign="middle" background="<%=weburl%>images/skin<%=cssid%>/login01.gif"><img src="<%=weburl%>images/skin<%=cssid%>/left08.gif" /></td>
      </tr>
      
      
</table>
</td>
          <td valign="top"><p>&nbsp;</p>
          <p align="center" class="STYLE2">在线支付成功！</p>
          <p align="center">本站客服人员在确认您的支付款项后，会及时处理您的订单，<br>
          您可以随时通过左侧会员专区随时查询您的订单。</p>
          <p align="center"><a href="index.asp">返回首页</a></p></td>
		  <td width="205" valign="top">
<table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td height="32" valign="top"><img src="<%=weburl%>images/skin<%=cssid%>/right03.gif" width="200" height="32" /></td>
      </tr>
      <tr>
        <td height="153" valign="top" background="images/skin<%=cssid%>/left01.gif">
		<%if session("username")="" then
				 set rsg=server.createobject("adodb.recordset")
				 		rsg.open "select top 8 * from shop_usergg where lx=0 order by id desc",conn,1,1
				 else
				set rsg=server.createobject("adodb.recordset")
				rsg.open "select top 8 * from shop_usergg where  lx="&nosql(session("reglx"))&" or lx=0 order by id desc",conn,1,1
				end if
		if rsg.recordcount=0 then 
		%>
		<table width="90%" height="222" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td width="67%"><div align="center">No Data ！</div></td>
            </tr>
            

            <tr>
              <td><img src="<%=weburl%>images/xuxian.gif" width="163" height="1" /></td>
            </tr>
            <tr>
              <td height="20"><div align="right"><img src="<%=weburl%>images/more.gif" width="36" height="9" /></div></td>
            </tr>
        </table>
		<%else%>
		<table width="90%" height="222" border="0" align="center" cellpadding="0" cellspacing="0">
           <%
			while not rsg.eof
			%>
		    <tr>
              <td width="67%" height="25"><img src="<%=weburl%>images/arrow03.gif" width="4" height="6" /> <a href="<%=weburl%>gg_list.asp?id=<%=rsg("id")%>" title=<%=rsg("zt")%>（<%=year(rsg("adddate"))%>年<%=month(rsg("adddate"))%>月<%=day(rsg("adddate"))%>日发布）>
                      <%if len(trim(rsg("zt")))>12 then
	response.write left(trim(rsg("zt")),12)&""
	else
	response.write trim(rsg("zt"))
	end if%>
                </a></td>
            </tr>
            
            <tr>
              <td><img src="<%=weburl%>images/xuxian.gif" width="163" height="1" /></td>
            </tr>
			<%
			rsg.movenext
		    wend
			
			%>
            
            <tr>
              <td height="20"><div align="right"><a href="<%=weburl%>gg_show.asp"><img src="<%=weburl%>images/more.gif" width="36" height="9" border="0" /></a></div></td>
            </tr>
        </table>
		<%end if
		rsg.close
		set rsg=nothing%>		</td>
      </tr>
      <tr>
        <td height="8" valign="top"><img src="<%=weburl%>images/skin<%=cssid%>/left08.gif" /></td>
      </tr>
    </table><table width="200" borrder="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td height="32" valign="top"><img src="<%=weburl%>images/skin<%=cssid%>/right06.gif" width="200" height="32" /></td>
        </tr>
        <tr>
          <td valign="top" background="images/skin<%=cssid%>/left01.gif">
		  <%set rs=server.createobject("adodb.recordset")
		rs.open "select top 4 newsname,adddate,newsid from shop_news order by adddate desc",conn,1,1
		if rs.recordcount=0 then 
		%>
		<table width="90%" height="222" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td width="67%" height="25">暂时没有新闻！</td>
            </tr>
          </table>
		  <%else%>
		  <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
		  <%while not rs.eof%>
            <tr>
              <td width="67%" height="25"><img src="<%=weburl%>images/arrow03.gif" width="4" height="6" /> <a href="<%=weburl%>news/news.asp?id=<%=rs("newsid")%>" title=<%=rs("newsname")%>（<%=year(rs("adddate"))%>年<%=month(rs("adddate"))%>月<%=day(rs("adddate"))%>日发布）>
                              <%if len(trim(rs("newsname")))>14 then
	response.write left(trim(rs("newsname")),14)&""
	else
	response.write trim(rs("newsname"))
	end if%>
                            </a></td>
            </tr>
            <tr>
              <td><img src="<%=weburl%>images/xuxian.gif" width="163" height="1" /></td>
            </tr>
			 <%rs.movenext
		    wend%>
			<tr>
              <td height="20"><div align="right"><a href="<%=weburl%>news/index.asp"><img src="<%=weburl%>images/more.gif" width="36" height="9" border="0"/></a></div></td>
            </tr>
          </table>
		  <%
		end if
		rs.close
		set rs=nothing
		%></td>
        </tr>			  
        <tr>
          <td height="8" valign="top"><img src="<%=weburl%>images/skin<%=cssid%>/left08.gif" /></td>
        </tr>
      </table>
		  </td>
        </tr>
    </table></td>
  </tr>
</table>
<!--#include file="copyright.asp"-->
</body>
</html>
<SCRIPT LANGUAGE="JavaScript">
<!--
function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}
function checkk()
{
   if(checkspace(document.form2.searchkey.value)&&((document.form2.action.value=="3")||(document.form2.action.value=="1")))  {
	document.form2.searchkey.focus();
	alert("请输入查询关键字！");
	return false;
  }
   document.form2.submit();
}

//-->
</script>