<!--#include file="../conn.asp"-->
<%
dim ab(14)
ab(0)  = request.Form("name1")
ab(1)  = request.Form("tel")
ab(2)  = request.Form("youjiAddr")
ab(3)  = request.Form("youbian")
ab(4)  = request.Form("pname")
ab(5)  = request.Form("num")
ab(6)  = request.Form("beizhu")
ab(7)  = request.Form("pid")
ab(8)  = now()
ab(9)  = year(ab(8)) & month(ab(8)) & ab(7)			'编号
ab(10) = request.Form("bigClass")

if ab(7)="" then call wrong("发生错误，商品编号丢失。")
if ab(4)="" then call wrong("发生错误：商品名称不正确。")

set rs_1 = server.CreateObject("adodb.recordset")
rs_1.open "select top 1 * from zh_userBuy",conn,1,3
rs_1.addnew
rs_1("dingdanNum")  = ab(9)
rs_1("Pid")         = ab(7)
rs_1("Name1")       = ab(0)
rs_1("Tel")         = ab(1)
rs_1("youjiAddr")   = ab(2)
rs_1("youbian")     = ab(3)
rs_1("num")         = ab(5)
rs_1("beizhu")      = toHTML(ab(6))
rs_1("shijian")     = ab(8)
rs_1.update
rs_1.close
set rs_1 = nothing
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>报名成功</title>
<link href="../css/comm.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="bodyDiv">
<!--#include file="top.asp"-->
<!--#include file="zh_daohang.asp"-->
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="29%" bgcolor="#f0f0f0">&nbsp;</td>
          <td width="1%">&nbsp;</td>
          <td width="70%">&nbsp;</td>
        </tr>
        <tr>
          <td valign="top" bgcolor="#f0f0f0">
            <!--#include file="paihang.asp"-->
          <div style="text-align:center; padding:10px 0;"><img src="zh_img/Snap2.jpg" width="257" height="67" /></div>
          <!--#include file="chengjiao.asp"--><br />
          <!--#include file="model_cuxiao.asp"--><br />
          <!--#include file="pinpai.asp"--><br /></td>
          <td><div style="width:12px;"></div></td>
          <td valign="top"><div style="border:solid 1px #C8E6F7; background-color:#F0F4FD; padding:10px; line-height:180%;"><%="<font color='#FF0000'>"& ab(0) &"</font>"%>用户您好，您对此商品的购买报名已经成功，系统产生的编号为：<span style="color:#FF0000"><%=ab(9)%></span>，如果您想查询此订单可以凭此编号联系我们的工作人员。我们的工作人员会在短时间内与您取得联系以便更好的为您服务。谢谢您对我们的支持。</div>
          <div style="margin-top:10px; line-height:25px; background-image:url(zh_img/Snap17.jpg); background-repeat:no-repeat;">
        	<span style="margin-left:18px; color:#FFFFFF; font-weight:bold; font-size:14px;">更多此类商品</span>
        </div>
          <div>
            <table width="100%" border="0" cellspacing="0" cellpadding="5">
            <%
			set rs_2 = server.CreateObject("adodb.recordset")
			rs_2.open "select top 30 * from zh_pro where bigClass="& ab(10) &" order by id desc",conn,1,1
			do while not rs_2.eof
			%>
              <tr>
                <td style="border-bottom:solid 1px #CCCCCC;" class="moren"><%="·<a href='view.asp?pid="& rs_2("id") &"'>"& rs_2("Proname") &"</a>"%></td>
              </tr>
              <%
			  rs_2.movenext
			  loop
			  rs_2.close
			  set rs_2 = nothing
			  %>
            </table>
          </div>
          <!-----------列出所有报名人员-------------></td>
        </tr>
      </table>
      <!--#include file="../model_bottom.asp"-->
</div>
</body>
</html>