<!--#include file="conn.asp" -->
<%
Set conn=Server.CreateObject("ADODB.Connection")
Set rs = Server.CreateObject("ADODB.Recordset")
conn.open ConnStr

buyshow=session("buyshow")
goodsid=request("id")

if buyshow<>empty then 
buyshow=buyshow&"-"&goodsid
else 
buyshow=goodsid
end if


a=Split(buyshow,"-")
c=UBound(a)
For I = 1 To c
	For j=i+1 To c
		if a(i)=a(j) then a(j)=""
	Next
Next

e=0
redim goods(c)
For i = 0 To c
	If a(i) <> "" Then
		goods(e) = a(i)
		e =e+1
	End If
Next
Redim Preserve goods(e-1)
buyshow=join(goods,"-")
session("buyshow")=buyshow
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>购物车</title>
<link href="images/show/gameportal.css" rel="stylesheet" type="text/css">
</head>

<body leftmargin="0" topmargin="0">
<TABLE width=514 border=0 cellPadding=0 cellSpacing=0>
  <TBODY>
    <TR> 
      <TD><IMG height=39 src="images/show/gwc_con01.gif" width=132><IMG 
      height=39 src="images/show/gwc_con02.gif" width=123><IMG height=39 
      src="images/show/gwc_con03.gif" width=131><IMG height=39 
      src="images/show/gwc_con04.gif" width=128></TD>
    </TR>
    <TR> 
      <TD><IMG height=37 src="images/show/gwc_con05.gif" width=132><IMG 
      height=37 src="images/show/gwc_con06.gif" width=123><IMG height=37 
      src="images/show/gwc_con07.gif" width=131><IMG height=37 
      src="images/show/gwc_con08.gif" width=128></TD>
    </TR>
  </TBODY>
</TABLE>
<TABLE width=500 border=0 cellPadding=0 cellSpacing=0>
  <FORM action=shoppingcart.aspx id=_ctl0 method=post name=_ctl0>
    <TBODY>
      <TR> 
        <TD width=10>&nbsp; </TD>
        <TD vAlign=top width=350> <TABLE bgColor=#fed21e border=0 cellPadding=0 cellSpacing=0 
            height=20 width=390>
            <TBODY>
              <TR> 
                <TD width=10></TD>
                <TD width=103>名称</TD>
                <TD width=56>数量</TD>
                <TD width=49>现价</TD>
                <TD width=74>高级用户价</TD>
                <TD width=59>受赠方</TD>
                <TD width=39>&nbsp;</TD>
              </TR>
            </TBODY>
          </TABLE>
          <TABLE bgColor=#eb8f0b border=0 cellPadding=0 cellSpacing=0 height=4 
            width=390>
            <TBODY>
              <TR> 
                <TD width=20></TD>
              </TR>
            </TBODY>
          </TABLE>
          <TABLE border=0 cellPadding=0 cellSpacing=4 width=390>
            <TBODY>
            </TBODY>
          </TABLE>
		  <!--商品列表开始-->
		  <%
		  p1=0
		  p2=0
		  for each gid in goods
		  if gid<>empty then
		  sql="select * from [myshow] where ID="&gid&""
		  'response.Write(sql)
		  'response.End()
		  rs.open sql,conn
		  if not rs.eof then 
		  p1=rs("Price1")+p1
		  p2=rs("Price2")+p2
		  %>
          <TABLE border=0 cellPadding=0 cellSpacing=0 
            height=20 width=390>
            <TBODY>
              <TR> 
                <TD width=10></TD>
                <TD width=103><%=rs("name")%></TD>
                <TD width=56>1</TD>
                <TD width=49><%=rs("Price1")%></TD>
                <TD width=74><%=rs("Price2")%></TD>
                <TD width=59>(自用)</TD>
                <TD width=39>&nbsp;</TD>
              </TR>
            </TBODY>
          </TABLE>
		  <%
		  end if
		  rs.close
		  end if
		  next
		  %>
		  <!--商品列表结束-->
		  </TD>
        <TD align=middle vAlign=top width=100> <TABLE border=1 borderColor=#fed21e cellPadding=0 cellSpacing=0 
            height=160 width=100>
            <TBODY>
              <TR> 
                <TD align=middle bgColor=#ffffff><IMG height=84 id=img1 src="images/show/gwc_con23.gif" width=84> <BR> <TABLE border=0 cellPadding=2 cellSpacing=0 height=40 width=90>
                    <TBODY>
                      <TR> 
                        <TD align=middle><A href="#" onclick="javascript:window.open('see23423.asp','QQShow','height=280,width=560,scrollbars=no');">查看帐户余额</A> 
                        </TD>
                      </TR>
                      <TR> 
                        <TD align=middle><A href="#">个人帐户充值</A></TD>
                      </TR>
                    </TBODY>
                  </TABLE></TD>
              </TR>
            </TBODY>
          </TABLE></TD>
      </TR>
  </FORM>
</TABLE>
<TABLE border=0 cellPadding=0 cellSpacing=0 width=500>
  <TBODY>
    <TR> 
      <TD width=10>&nbsp;</TD>
      <TD> <HR noShade SIZE=1 width="100%"> </TD>
    </TR>
  </TBODY>
</TABLE>
<TABLE border=0 cellPadding=0 cellSpacing=0 height=20 width=500>
  <TBODY>
    <TR> 
      <TD align=middle height=26>价格总计：<%=p1%> <IMG align=absMiddle height=12 
            src="images/show/gwc_con16.gif" width=12> 　　高级用户价总计：<%=p2%> <IMG align=absMiddle height=12 
            src="images/show/gwc_con16.gif" width=12> </TD>
    </TR>
  </TBODY>
</TABLE>
<TABLE border=0 cellPadding=0 cellSpacing=0 height=20 width=500>
  <TBODY>
    <TR> 
      <TD align=middle height=26> <DIV align=right></DIV>
        <A href="myshow_menu.asp?menu=buy"><IMG align=absMiddle alt=帐户支付 border=0 height=22 src="images/show/gwc_con19.gif" width=72></A>&nbsp;&nbsp;
		<A href="myshow_menu.asp?menu=clear"><IMG align=absMiddle alt=清空购物袋 border=0 height=22 onclick="javascript:if(confirm('确定要全部删除吗？')) {return true ;} else return false; " src="images/show/gwc_con17.gif" width=72></A>&nbsp;&nbsp;
		<A href="javascript:window.close();"><IMG align=absMiddle alt=继续购物 border=0 height=22 src="images/show/gwc_con18.gif" width=72></A></TD>
    </TR>
  </TBODY>
</TABLE>
<TABLE border=0 cellPadding=0 cellSpacing=0 width=514>
  <TBODY>
    <TR> 
      <TD><IMG height=26 src="images/show/gwc_con09.gif" width=132><IMG height=26 src="images/show/gwc_con10.gif" width=123><IMG height=26 src="images/show/gwc_con11.gif" width=131><IMG height=26 src="images/show/gwc_con12.gif" width=128> 
      </TD>
    </TR>
  </TBODY>
</TABLE>
</body>
</html>
<% 
set rs=nothing
set conn=nothing
Response.End 
%>