<!--#include file="include/nowshop.asp" -->
<!--#include file="md5.asp"-->
<%
call checklogin()
call aspsql()

set rs=conn.execute("select * from buser where UserId='"&request.cookies("buyok")("userid")&"'")
usertype=rs("usertype")
userid=rs("UserID")
totallogin=rs("totallogin")
if usertype="2" then
usertype=type2
userkou=kou2
elseif usertype="3" then
usertype=type3
userkou=kou3
elseif usertype="4" then
usertype=type4
userkou=kou4
elseif usertype="5" then
usertype=type5
userkou=kou5
elseif usertype="6" then
usertype=type6
userkou=kou6
else
usertype=type1
userkou=kou1
end if
response.cookies("buyok")("userkou")=userkou
IP=Request.serverVariables("REMOTE_ADDR")
%>

<%
call aspsql()
if reg<>"1" then
if request.cookies("buyok")("userid")="" then 
response.redirect "error.asp?error=006"
response.end
end if
end if
buylist = request.cookies("buyok")("cart")
if buylist="" then
response.redirect "error.asp?error=007"
response.end
end if
%> 
<html>
<head>
<title>填写订单详细信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="Robots" content="index,follow">
<LINK href="images/css.css" type=text/css rel=stylesheet>
<LINK href="list/newhead.css" type=text/css rel=stylesheet>
<STYLE type=text/css>TD {
	FONT-SIZE: 12px; LINE-HEIGHT: 20px; FONT-FAMILY: "宋体"
}
.title1 {
	FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #ce3e47; FONT-FAMILY: "宋体"
}
A:link {
	FONT-SIZE: 12px; COLOR: #000000; FONT-FAMILY: "宋体"; TEXT-DECORATION: none
}
A:visited {
	FONT-SIZE: 12px; COLOR: #000000; FONT-FAMILY: "宋体"; TEXT-DECORATION: none
}
A:active {
	FONT-SIZE: 12px; COLOR: #000000; FONT-FAMILY: "宋体"; TEXT-DECORATION: none
}
A:hover {
	FONT-SIZE: 12px; COLOR: #000000; FONT-FAMILY: "宋体"; TEXT-DECORATION: underline
}
</STYLE>
<SCRIPT language=JavaScript>

function show_hide(obj1, value, obj2)
{
	if(obj1.value == value)
		obj2.style.display='';
	else
		obj2.style.display='none';
}



function show_officeinfo() 
{
	show_hide_bank();
	if (document.order.Pay_Mode[2].checked)
		show_hide(document.order.Pay_Mode[2], "21", document.all.officeinfo);
}

function show_huodaoinfo() 
{
	show_hide_bank();
	if (document.order.Pay_Mode[1].checked)
		show_hide(document.order.Pay_Mode[1], "23", document.all.huodaoinfo);
}

function show_teleinfo() 
{
	show_hide_bank();
	if (document.order.Pay_Mode[4].checked)
		show_hide(document.order.Pay_Mode[4], "24", document.all.teleinfo);
}

function show_bankinfo() 
{
	show_hide_bank();
	if (document.order.Pay_Mode[3].checked)
		show_hide(document.order.Pay_Mode[3], "22", document.all.bankinfo);
}

function show_hide_bank() 
{
	show_hide(document.order.Pay_Mode[2], "0", document.all.officeinfo);
	show_hide(document.order.Pay_Mode[2], "0", document.all.bankinfo);
	show_hide(document.order.Pay_Mode[2], "0", document.all.teleinfo);
	show_hide(document.order.Pay_Mode[2], "0", document.all.huodaoinfo);

}

</SCRIPT>

<script language="JavaScript">

function resetslz()
{
	document.order.Friend.selectedIndex = 1;
	document.order.FriendCustID.value = "";
}
</script>

<script language="JavaScript">
function CheckForm()
{
if (document.order.Recname.value.length <2 || document.order.Recname.value.length>20 ) {
alert("请检查您输入的收货人姓名");
document.order.Recname.focus();
return false;
}
if (document.order.Recaddress.value.length < 4) {
alert("请检查您输入的收货地址");
document.order.Recaddress.focus();
return false;
}
if (document.order.ZipCode.value.length < 4) {
alert("请检查您输入的邮政编码");
document.order.ZipCode.focus();
return false;
}

if (document.order.RecPhone.value.length < 6 || document.order.RecPhone.value.length > 15) {
alert("请检查您输入的联系电话");
document.order.RecPhone.focus();
return false;
}
if (document.order.Recmail.value.length <5 || document.order.Recmail.value.length >=100) {
alert("请检查您输入的电子信箱");
document.order.Recmail.focus();
return false;
}
if (document.order.Recmail.value.length > 0 && !document.order.Recmail.value.match( /^.+@.+$/ ) ) {
 alert("请检查您输入的电子信箱");
 document.order.Recmail.focus();
return false;
}
return true;
}
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="20">
<center>
  <%
Sum=request.cookies("buyok")("total")
%>
  <!--#include file="top.asp"-->
  <TABLE cellSpacing=0 cellPadding=0 width=768 align=center border=0>
    <TBODY>
      <TR> 
        <TD><IMG height=48 src="order/gouwuche/800buy_car_step.gif" width=160></TD>
        <TD background=order/gouwuche/800buy_car_bg.gif><IMG height=48 
      src="order/gouwuche/800buy_car_step1.gif" width=153></TD>
        <TD background=order/gouwuche/800buy_car_bg.gif><IMG height=48 
      src="order/gouwuche/800buy_car_step2.gif" width=153></TD>
        <TD background=order/gouwuche/800buy_car_bg.gif><IMG height=48 
      src="order/gouwuche/800buy_car_step3.gif" width=154></TD>
        <TD><IMG height=48 src="order/gouwuche/800buy_car_step4.gif" 
  width=108></TD>
      </TR>
    </TBODY>
  </TABLE>
  <TABLE cellSpacing=0 cellPadding=0 width=768 align=center border=0>
    <TBODY>
      <TR> 
        <TD height="50" align="left" valign="top"><IMG height=40 src="order/gouwuche/800buy_car_gouwu.gif" 
  width=260></TD>
      </TR>
    </TBODY>
  </TABLE>
  <%
call aspsql()
userkou=checkuserkou()
buylist=request.cookies("buyok")("cart")
if trim(request("del"))<>"" then 
buylist=replace(buylist,trim(request("del")),"XXXXXXXX")
response.cookies("buyok")("cart")=buylist
end if
If Request("edit") = "ok" Then
buylist = ""
buyid = Split(Request("ProdId"), ", ")
For I=0 To UBound(buyid)
if i=0 then
buylist = "'" & buyid(I) & "', '"&request(buyid(I))&"'"
else
buylist = buylist & ", '" & buyid(I) & "', '"&request(buyid(I))&"'"
end if
Next
response.cookies("buyok")("cart") = buylist
End If
if buylist="" then
response.cookies("buyok")("total")=0
response.redirect "error.asp?error=007"
response.end
else
Set rs=conn.execute("select * from bproduc where ProdId in ("&buylist&") order by ProdId")
if rs.eof and rs.bof then
response.cookies("buyok")("cart") = ""
response.cookies("buyok")("total")=0
response.redirect "error.asp?error=007"
response.end
end if
end if
%>
  <TABLE cellSpacing=1 cellPadding=0 width=768 bgColor=#999999 border=0>
    <TBODY>
      <TR align=middle bgColor=#f0f0f0> 
        <TD height="25">商品名称</TD>
        <TD width=100>市场价</TD>
        <TD width=100>优惠价</TD>
        <TD width=100>会员价</TD>
        <TD width=100>数量</TD>
        <TD width=100>小计</TD>
      </TR>
      <%
Sum = 0
While Not rs.eof
buynum=split(replace(buylist,"'",""),", ")
for i=0 to ubound(buynum)
if rs("prodid")=buynum(i) then
Quatity=buynum(i+1)
exit for
end if
next
if not isNumeric(Quatity) then Quatity=1
If Quatity <= 0 Then Quatity = 1
Sum = Sum + csng(rs("PriceList"))*Quatity*checkuserkou()/10
shichangSum = shichangSum + csng(rs("PriceOrigin"))*Quatity*checkuserkou()/10
%>
      <TR align=middle> 
        <TD height="20" bgColor=#ffffff> <input type="hidden" name="ProdId2" value="<%=rs("ProdId")%>"> 
          <a href='list.asp?ProdId=<%=rs("ProdId")%>' target="_blank"><%=rs("ProdName")%></a></TD>
        <TD class=shich_cont bgColor=#ffffff><%=FormatNum(rs("PriceOrigin"),2)%></TD>
        <TD class=zk_cont bgColor=#ffffff><font color="#FF0000"><%=FormatNum(rs("PriceList"),2)%></font></TD>
        <TD bgColor=#ffffff><font color="#FF0000"><b>
          <%=FormatNum(rs("PriceList")*checkuserkou()/10,2)%>
          </b></font></TD>
        <!--<td bgcolor="#FFFFFF" class="zk_cont"><font color="#A72B31">￥</font></td>-->
        <TD bgColor=#ffffff><%=Quatity%></TD>
        <TD class=zk_cont bgColor=#ffffff><font color="#FF0000"><%=FormatNum(rs("PriceList")*Quatity*checkuserkou()/10,2)%></font></TD>
      </TR>
      <%
rs.MoveNext
Wend
rs.close
set rs=nothing
%>
    </TBODY>
  </TABLE>
  <TABLE width=768 height="50" border=0 align=center cellPadding=0 cellSpacing=0>
    <TBODY>
      <TR> 
        <TD width=300> <TABLE height=50 cellSpacing=0 cellPadding=0 width="100%" border=0>
            <TBODY>
              <TR> 
                <TD width=280>购物款总计(优惠价)：<SPAN class=zk_cont><FONT 
            color=#ff0000>￥</FONT><font color=red><b><%=FormatNum(Sum,2)%></b></font></SPAN></TD>
                <TD width=150>节省： <SPAN class=zk_cont><FONT 
            color=#a72b31>￥</FONT><font color="#A72B31"><%=FormatNum(shichangsum-sum,2)%></font> 
                  </SPAN></TD>
              </TR>
            </TBODY>
          </TABLE></TD>
        <TD width=60>您还可以：</TD>
        <TD><a href="shop.asp?ProdId=<%=rsprod("ProdId")%>">
		<IMG style="CURSOR: hand" 
      height=32 src="order/gouwuche/800buy_car_botton1.gif" width=73 
  border=0></a></TD>
      </TR>
    </TBODY>
  </TABLE>
<%
  show=request("show") 
%>

<% set rs_pay=conn.execute("select * from pay") 

if rs_pay("pay")=3 then
%>
  <form name="order" action="preview_xpay.asp" method=post  onSubmit="return CheckForm();">
<% else %>  
  <form name="order" action="preview_cncard.asp" method=post  onSubmit="return CheckForm();">
<% end if %>
  <TABLE cellSpacing=0 cellPadding=0 width=768 align=center border=0>
    <TBODY>
      <TR> 
        <TD>
<%
set rs=conn.execute ("select * from buser where userid='"&request.cookies("buyok")("userid")&"'")
if not (rs.eof and rs.bof) then
Zipcode=rs("ZipCode")
HomePhone=rs("HomePhone")
CompPhone=rs("CompPhone")
Recaddress=rs("address")
email=rs("UserMail")
name=rs("UserName")
end if
%>

		 </TD>
      </TR>
    </TBODY>
  </TABLE>
    <TABLE cellSpacing=0 cellPadding=0 width=768 align=center border=0>
      <TBODY>
        <TR bgcolor="#d1d2d3"> 
          <TD colSpan=4 height=10></TD>
        </TR>
        <TR> 
          <TD width=10 bgColor=#d1d2d3></TD>
          <TD><TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
              <TBODY>
                <TR> 
                  <TD vAlign=top width=20><IMG height=48 
            src="order/gouwuche/800buy_car_arrow.gif" width=20></TD>
                  <TD vAlign=top> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                      <TBODY>
                        <TR> 
                          <TD><IMG height=31 src="order/gouwuche/800buy_car_songhuo.gif" 
                  width=242></TD>
                        </TR>
                        <TR> 
                          <TD> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                              <TBODY>
                                <TR> 
                                  <TD> <TABLE height=25 cellSpacing=0 cellPadding=0 
                        width="100%" border=0>
                                      <TBODY>
                                        <TR> 
                                          <TD width=75>定货人姓名：</TD>
                                          <TD width=90><input class=buttonface type="text" name="Recname" maxlength=16 size="8" value=<%=name%>>
                                          </TD>
                                          <TD width=50>性别：</TD>
                                          <TD width=50><SELECT class=buttonface id=select3 
                              size=1 name=sex>
                                              <OPTION value=F>女</OPTION>
                                              <OPTION value=M selected>男</OPTION>
                                            </SELECT> </TD>
                                          <TD width=58>&nbsp;省份：</TD>
                                          <TD width=71><input  type="text" name="Province" maxlength=16 size="15" value="<%=rs("Province")%>"></TD>
                                          <TD align=middle width=68>城市：</TD>
                                          <TD><input name="city"  type="text" id="city" value="<%=rs("City")%>" size="15" maxlength=16></TD>
                                        </TR>
                                      </TBODY>
                                    </TABLE>
</TD></TR>

                        <TR> 
                          <TD> <TABLE cellSpacing=0 cellPadding=0 width="100%" 
border=0>
                              <TBODY>
                                <TR> 
                                  <TD width=92>定货人地址：</TD>
                                  <TD colSpan=10><TEXTAREA id=textarea4 name=Recaddress rows=4 wrap=off cols=50><%=Recaddress%></TEXTAREA> 
                                    <FONT 
                        color=#9d282f>(地址限50字以内)</FONT></TD>
                                </TR>
                              </TBODY>
                            </TABLE></TD>
                        </TR>
                        <TR> 
                          <TD> <TABLE height=25 cellSpacing=0 cellPadding=0 
                        width="100%" border=0>
                              <TBODY>
                                <TR> 
                                  <TD width=45>&nbsp;邮编：</TD>
                                  <TD width=60><input type="text" name="ZipCode" size="8" maxlength=6 value=<%=Zipcode%>> 
                                  </TD>
                                  <TD width=40>电话：</TD>
                                  <TD width=70><input type="text" name="RecPhone" size="10" maxlength=15 value=<%=HomePhone%>> 
                                  </TD>
                                  <TD width=40>手机：</TD>
                                  <TD width=100><input type="text" name="CompPhone"  size="10" maxlength=15 value=<%=CompPhone%>> 
                                  </TD>
								                                    
                                          <TD width=60>E-Mail：</TD>
                                  <TD width=100><input type="text" name="Recmail"  size="15" maxlength=100 value=<%=email%>> 
                                  </TD>

                                  <TD width=25><INPUT 
                              onclick='javascript:showSLZ(this, "1", document.all.bb);' 
                              type=radio CHECKED value=0 name=Fetch_Mode> </TD>
                                  <TD width=50>本人提货</TD>
                                  <TD width=25><INPUT 
                              onclick='javascript:showSLZ(this, "1", document.all.bb);' 
                              type=radio value=1 name=Fetch_Mode> </TD>
                                  <TD>为他人定购</TD>
                                </TR>
                              </TBODY>
                            </TABLE></TD>
                        </TR>
                      </TBODY>
                    </TABLE></TD>
                </TR>
              </TBODY>
            </TABLE>
        
        </TR>
        <TR> 
          <TD bgColor=#d1d2d3 colSpan=4 height=10></TD>
        </TR>
      
    </TABLE>
    <TD width=10 bgColor=#d1d2d3></TD></tr></table>

    <TABLE id=bb style="DISPLAY: none" cellSpacing=0 cellPadding=0 width=768 
align=center border=0><TBODY>
        <TR> 
          <TD height=10></TD>
        </TR>

      <TR bgColor=#d1d2d3> 
        <TD colSpan=3 height=10>	
</TD>
      </TR>
      <TR> 
        <TD width=10 bgColor=#d1d2d3></TD>
        <TD width=768> 
          <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
            <TBODY>
              <TR> 
                <TD vAlign=top width=20><IMG height=48 
            src="order/gouwuche/800buy_car_arrow.gif" width=20></TD>
                <TD height=25><STRONG><FONT 
        size=3>收货人详细信息</FONT></STRONG></TD>
              </TR>
            </TBODY>
          </TABLE>
          <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
            <TR> 
              <TD width=20>&nbsp;</TD>
              <TD> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                  <TBODY>
                    <SCRIPT>
function showSLZ(obj1, value, obj2)
{
	if(obj1.value == value)
	{
		obj2.style.display='';
	}
	else
	{
		obj2.style.display='none';
	}
}

</SCRIPT>
                    <TR> 
                      <TD> <TABLE height=20 cellSpacing=0 cellPadding=4 width="100%" 
                  border=0>
                          <TBODY>
                            <TR> 
                              <TD align=right width=110>您朋友的姓名：</TD>
                              <TD><input name="Recname2"  type="text" id="Recname2" value=<%=name%> size="15" maxlength=16> <FONT color=#9d282f>*</FONT> </TD>
                            </TR>
                          </TBODY>
                        </TABLE></TD>
                    </TR>
                    <TR> 
                      <TD> <TABLE height=20 cellSpacing=0 cellPadding=4 width="100%" 
                  border=0>
                          <TBODY>
                            <TR> 
                              <TD align=right width=110>如何称呼您朋友：</TD>
                              <TD><SELECT class=buttonface id=select19 size=1 
                        name=t_sex>
                                  <OPTION value=F selected>女士</OPTION>
                                  <OPTION 
                value=M>先生</OPTION>
                                </SELECT></TD>
                            </TR>
                          </TBODY>
                        </TABLE></TD>
                    </TR>
                    <TR> 
                      <TD> <TABLE height=20 cellSpacing=0 cellPadding=4 width="100%" 
                  border=0>
                          <TBODY>
                            <TR>
                              <TD align=right>收货人所在省份：</TD>
                              <TD><TABLE height=20 cellSpacing=0 cellPadding=4 width="80%" border=0>
                                  <TBODY>
                                    <TR> 
                                      <TD width=55><input  type="text" name="Province2" maxlength=16 size="15" value="<%=rs("Province")%>"></TD>
                                      <TD width=40>城市：</TD>
                                      <TD width=55><input name="city2"  type="text" id="city2" value="<%=rs("City")%>" size="15" maxlength=16></TD>
                                      <TD><INPUT type=hidden size=8 
                  name=inBillNo value="<%=rs("City")%>"></TD>
                                    </TR>

                                  </TBODY>
                                </TABLE></TD>
                            </TR>
                            <TR> 
                              <TD align=right width=110>您朋友的详细地址： </TD>
                              <TD><TEXTAREA id=textarea4 name=Recaddress2 rows=4 wrap=off cols=50><%=Recaddress%></TEXTAREA> 
                                <FONT color=#9d282f>(地址限50字以内)</FONT> </TD>
                            </TR>
                          </TBODY>
                        </TABLE></TD>
                    </TR>
                    <TR> 
                      <TD> <TABLE height=20 cellSpacing=0 cellPadding=4 width="100%" 
                  border=0>
                          <TBODY>
                            <TR> 
                              <TD align=right width=110>您朋友的电话：</TD>
                              <TD><input name="RecPhone2" type="text" id="RecPhone2" value=<%=HomePhone%> size="15" maxlength=15>  <FONT color=#9d282f>*</FONT> </TD>
                            </TR>
                          </TBODY>
                        </TABLE></TD>
                    </TR>
                    <TR> 
                      <TD> <TABLE height=20 cellSpacing=0 cellPadding=4 width="100%" 
                  border=0>
                          <TBODY>
                            <TR> 
                              <TD align=right width=110>您朋友的邮政编码： </TD>
                              <TD><input  type="text" name="ZipCode2" size="15" maxlength=10 value=<%=Zipcode%>> 
                              </TD>
                            </TR>
                          </TBODY>
                        </TABLE></TD>
                    </TR>
                    <TR> 
                      <TD> <TABLE height=20 cellSpacing=0 cellPadding=4 width="100%" 
                  border=0>
                          <TBODY>
                            <TR> 
                              <TD align=right width=110>您朋友的E-Mail： </TD>
                              <TD><input name="Recmail2" type="text" id="Recmail2" value=<%=email%>  size="15" maxlength=100> 
                              </TD>
                            </TR>
                          </TBODY>
                        </TABLE></TD>
                    </TR>
                </TABLE></TD>
            </TR></TBODY>
          </TABLE></TD>
        <TD width=10 bgColor=#d1d2d3></TD>
      </TR>
      <TR bgColor=#d1d2d3> 
        <TD colSpan=3 height=10></TD>
      </TR></TBODY>
    </TABLE>
    <TABLE cellSpacing=0 cellPadding=0 width=768 align=center border=0>
      <TBODY>
        <TR> 
          <TD height=10></TD>
        </TR>
      </TBODY>
    </TABLE>
    <TABLE cellSpacing=0 cellPadding=0 width=768 align=center border=0>
      <TBODY>
        <TR bgColor=#d1d2d3> 
          <TD colSpan=3 height=6></TD>
        </TR>
        <TR> 
          <TD width=6 bgColor=#d1d2d3></TD>
          <TD> <TABLE height=25 cellSpacing=0 cellPadding=0 width="100%" border=0>
              <TBODY>
                <TR> 
                  <TD align=middle 
            width=150>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;贺卡留言或要求：</TD>
                  <TD width=300><textarea  name="Notes" cols="45" rows="3"></textarea></TD>
                  <TD>&nbsp;&nbsp;(60字内)</TD>
                </TR>
              </TBODY>
            </TABLE></TD>
          <TD width=6 bgColor=#d1d2d3></TD>
        </TR>
        <TR bgColor=#d1d2d3> 
          <TD colSpan=3 height=6></TD>
        </TR>
        <TR> 
          <TD width=6 bgColor=#d1d2d3></TD>
          <TD> <TABLE height=25 cellSpacing=0 cellPadding=0 width="100%" border=0>
              <TBODY>
                <TR> 
                  <TD>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT 
            color=red>精美包装盒，</FONT><font color="#FF0000">让您的礼物更神秘、漂亮。</font>（注：工作人员会根据礼物大小选择包装盒。外形超大的礼物，不支持本服务）</TD>
                  <TD></TD>
                </TR>
              </TBODY>
            </TABLE></TD>
          <TD width=6 bgColor=#d1d2d3></TD>
        </TR>
        <TR bgColor=#d1d2d3> 
          <TD colSpan=3 height=6></TD>
        </TR>
      </TBODY>
    </TABLE>
    <TABLE cellSpacing=0 cellPadding=0 width=768 align=center border=0>
      <TBODY>
        <TR> 
          <TD height=10></TD>
        </TR>
      </TBODY>
    </TABLE>
    
    <TABLE cellSpacing=0 cellPadding=0 width=768 align=center border=0>
      <TBODY>
        <TR bgColor=#d1d2d3> 
          <TD colSpan=3 height=10></TD>
        </TR>
        <TR> 
          <TD width=10 bgColor=#d1d2d3></TD>
          <TD> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
              <TBODY>
                <TR> 
                  <TD vAlign=top width=20><IMG height=48 
            src="order/gouwuche/800buy_car_arrow.gif" width=20></TD>
                  <TD vAlign=top> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                      <TBODY>
                        <TR> 
                          <TD> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                              <TBODY>
                                <TR> 
                                  <TD width=128><IMG height=30 
                        src="order/gouwuche/800buy_car_shfs.gif" width=128></TD>
                                  <TD align=right> <IMG height=29 
                        src="order/gouwuche/800buy_car_shfs1.gif" 
                    width=111></TD>
                                </TR>
                              </TBODY>
                            </TABLE></TD>
                        </TR>
                        <TR>
                          <TD height="30" align="left">
						  <%
						  set rs=conn.execute("select * from bconfig")
						  mianyoufei_msg=rs("mianyoufei_msg")
						  response.write mianyoufei_msg
						  %>
</TD>
                        </TR>
                        <TR> 
                          <TD align="left"><%
set rs=conn.execute("select * from bconfig")
fei1=rs("fei1")
fei2=rs("fei2")
fei3=rs("fei3")
fei4=rs("fei4")
fei5=rs("fei5")
fei6=rs("fei6")
pei1=rs("pei1")
pei2=rs("pei2")
pei3=rs("pei3")
pei4=rs("pei4")
pei5=rs("pei5")
pei6=rs("pei6")
mianyoufei=clng(rs("mianyoufei"))
mianyoufei_msg=rs("mianyoufei_msg")
if clng(request.cookies("buyok")("total"))<mianyoufei then	
pei1=rs("pei1") & "，配送费用：" & fei1 &"元"
if pei2<>"" then pei2=pei2 & "，配送费用：" & fei2 &"元"
if pei3<>"" then pei3=pei3 & "，配送费用：" & fei3 &"元"
if pei4<>"" then pei4=pei4 & "，配送费用：" & fei4 &"元"
if pei5<>"" then pei5=pei5 & "，配送费用：" & fei5 &"元"
if pei6<>"" then pei6=pei6 & "，配送费用：" & fei6 &"元"
end if
set rs=nothing
response.write "<tr bgcolor='#FFFFFF'><td>"
response.write "<input type='radio' name='post' value='1' checked>"&pei1&""
if pei2<>"" then response.write "<input type='radio' name='post' value='2'>"&pei2&""
if pei3<>"" then response.write "<input type='radio' name='post' value='3'>"&pei3&""
if pei4<>"" then response.write "<input type='radio' name='post' value='4'>"&pei4&""
if pei5<>"" then response.write "<input type='radio' name='post' value='5'>"&pei5&""
if pei6<>"" then response.write "<input type='radio' name='post' value='6'>"&pei6&""
if clng(request.cookies("buyok")("total"))>=mianyoufei then
response.write mianyoufei_msg
end if
%> </TD>
                        </TR>
						<tr><td height="20"></td></tr>
                      </TBODY>
                    </TABLE></TD>
                </TR>
              </TBODY>
            </TABLE></TD>
          <TD width=10 bgColor=#d1d2d3></TD>
        </TR>
        <TR bgColor=#d1d2d3> 
          <TD colSpan=3 height=10></TD>
        </TR>
      </TBODY>
    </TABLE>
	<TABLE cellSpacing=0 cellPadding=0 width=768 align=center border=0>
      <TBODY>
        <TR> 
          <TD height=10></TD>
        </TR>
      </TBODY>
    </TABLE>
    <TD width=10 bgColor=#d1d2d3></TD>
    <TR bgColor=#d1d2d3> 
      <TD colSpan=3 height=10></TD>
    </TR></TBODY>
    <TABLE cellSpacing=0 cellPadding=0 width=768 align=center border=0>
      <TBODY>
        <TR> 
          <TD width=12 colSpan=3 height=6></TD>
        </TR>
      </TBODY>
    </TABLE>
    <TABLE cellSpacing=0 cellPadding=0 width=768 align=center border=0>
      <TBODY>
        <TR> 
          <TD align=middle height=50>
<INPUT name=Submit3 type=image height=42 width=105 src="images/car_botton2.gif">
<input type=hidden  name="gettime" size=30  maxlength=30  value='无'>
<INPUT TYPE="hidden" name="pei" value="<%=pei%>">
<INPUT TYPE="hidden" name="fei" value="<%=fei%>">
<INPUT TYPE="hidden" name="sum" value="<%=sum%>">
</TD>
        </TR>
      </TBODY>
    </TABLE>
  </FORM>
  <!--#include file="down.asp"-->

</center>
</body></html>
<%
conn.close
set conn=nothing
%>
