<!--#include file="../conn.asp"-->
<%
name1 = request.Form("name1")
if request.Form("sort4") <> "" then

	carId  = request.Form("carId")
	sort1  = request.Form("sort1")
	sort2  = request.Form("sort2")
	sort3  = request.Form("sort3")
	sort4  = request.Form("sort4")
	
	
	conn.execute("update tuangouCar set cenjiaren = cenjiaren + 1  where sort2 = " & sort2 )		'报名总人数加1

	
	set rs = server.CreateObject("adodb.recordset")
	rs.open "select top 1 * from tuangouBaoMing",conn,1,3
	rs.addnew

	rs("carId")=request.Form("carId")
	rs("sort1")=sort1
	rs("sort2")=sort2
	rs("sort3")=sort3
	rs("sort4")=sort4
	rs("carColor")=request.Form("carColor")
	rs("yugoushijian")=request.Form("yugoushijian")
	rs("fukuantype")=request.Form("fukuantype")
	rs("name1")=request.Form("name1")
	rs("sex")=request.Form("sex")
	rs("shouji")=request.Form("shouji")
	rs("city1")=request.Form("province")
	rs("city2")=request.Form("city")
	rs("email")=request.Form("email")
	rs("beizhu")=toHTML(request.Form("beizhu"))
	rs("regTime")=request.Form("regTime")

	rs.update
	rs.close
	set rs = nothing
	
	'将信息插入统计表里
	set rs = server.CreateObject("adodb.recordset")
	rs.open "select top 1 * from tuangou_tongji where sort1="& sort1 &" and sort2="& sort2 &" and sort3="& sort3 &" and sort4="& sort4 &"",conn,1,3
	
	if not rs.eof then
		rs("carNum") = rs("carNum") + 1
		rs.update
	else
		rs.addnew
		rs("sort1") = sort1
		rs("sort2") = sort2
		rs("sort3") = sort3
		rs("sort4") = sort4
		rs("carNum") = 1
		rs.update
	end if
	
	rs.close
	set rs = nothing
	
end if
%>
<!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="tuangou_top.asp"-->
<!--#include file="daohang.asp"-->
      <table width="100%" height="123" border="0" cellpadding="0" cellspacing="0" bgcolor="#eef7fc">
        <tr>
          <td><p>　</p>
            <table width="665" height="65" border="0" align="center" cellpadding="10" cellspacing="0" style="border:solid 1px #a9bcca;">
            <tr>
              <td valign="top">
              <table width="100%" cellpadding="5" cellspacing="0" style="font-size:14px; color:#666666; line-height:180%;">
                <tr>
                  <td style="font-weight:bold;">尊敬的<font color="#FF0000"><%=name1%></font>：</td>
                </tr>
                <tr>
                  <td><p>您好！恭喜你已成功报名此汽车的团购。<br />
                  我们的团购专员将在24小内与你取得联系，进一步确定你的团购信息，为你提供专业的购车咨询服务，并热心解答你的问题。我们将尽全力为您和其他报名团购的网友争取更大的优惠。</p>
                    <table width="638" border="0" align="center" cellpadding="0" cellspacing="0" background="img/Snap28.gif">
                      <tr>
                        <td height="60"><table width="503" border="0" align="center" cellpadding="0" cellspacing="0">
                          <tr>
                            <td><font color="#000000">团购咨询热线：15080378485</font></td>
                          </tr>
                        </table></td>
                      </tr>
                    </table>
                  </td>
                </tr>
              </table></td>
            </tr>
          </table>
            <div style="padding:20px; text-align:center;">
            	<div style="width:114px; height:34px; line-height:34px; background-image:url(img/Snap33.jpg); background-repeat:no-repeat; font-size:14px; font-weight:bold; cursor:pointer;" onclick="window.open('index.asp','_self')">返回团购</div>
            </div>
            <p>　</p>
          <p>　</p></td>
        </tr>
      </table>
<!--#include file="../model_bottom.asp"-->
</div>
</body>
</html>
