
<!--#include file="Inc/articleCHAR.INC"-->
<!--#include file="Inc/syscode.asp" -->
<!--#include file="Inc/En_TOP.asp"-->
<!-- #include file="Inc/Head.asp" -->
<%

If request.form("Somane")="" Then
Response.Write("<script language=""JavaScript"">alert(""错误：您没输入联系人，请返回检查！！"");history.go(-1);</script>")
response.end
end if
If request.form("Phone")="" Then
Response.Write("<script language=""JavaScript"">alert(""错误：您没输入联系电话，请返回检查！！"");history.go(-1);</script>")
response.end
end if
If request.form("email")="" Then
Response.Write("<script language=""JavaScript"">alert(""错误：您没输入E-mail，请返回检查！！"");history.go(-1);</script>")
response.end
end if
If request.form("Add")="" Then
Response.Write("<script language=""JavaScript"">alert(""错误：您没输入联系地址，请返回检查！！"");history.go(-1);</script>")
response.end
end if
If request.form("Product_name")="" Then
Response.Write("<script language=""JavaScript"">alert(""错误：您没输入产品称名，请返回检查！！"");history.go(-1);</script>")
response.end
end if
If request.form("Number")="" Then
Response.Write("<script language=""JavaScript"">alert(""错误：您没输入产品数量，请返回检查！！"");history.go(-1);</script>")
response.end
end if

flags="尚未处理"

'保存购买人信息
set rs=server.createobject("adodb.recordset")
sqltext="select * from orderlist"
rs.open sqltext,conn,1,3

'添加一个用户到数据库
rs.addnew
rs("Comane")=request.form("Comane")
If rs("Comane")="" then
rs("Comane")="未填"
End If
rs("Somane")=request.form("Somane")
rs("Add")=request.form("Add")
rs("Zip")=request.form("Zip")
If rs("Zip")="" then
rs("Zip")="未填"
End If
rs("Phone")=request.form("Phone")
rs("Fox")=request.form("Fox")
If rs("Fox")="" then
rs("Fox")="未填"
End If
rs("Email")=request.form("Email")
'rs("Pays")=request.form("Pays")
rs("Flag")=flags
rs("Remark")=request.form("Remark")
If rs("Remark")="" then
rs("Remark")="无"
End If
rs.update
rs.close
sql="select Form_Id from OrderList order by regtime desc"
rs.open sql,conn,3,3
a=rs(0)
rs.close

set rs2=server.createobject("adodb.recordset")
sqltext2="select * from shoplist"
rs2.open sqltext2,conn,1,3
rs2.addnew

rs2("Form_Id")=a
rs2("Product_Name")=request.form("Product_Name")
rs2("BigClassName")=request.form("BigClassName")
rs2("Number")=request.form("Number")
'rs2("P_NewPrice")=ccur(rs("P_NewPrice"))
rs2.update
rs2.close

%>
<table width="1003" height="100" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <TD vAlign="top" width="200" background="images/1_24.jpg" style="padding-bottom:8px;">
	<table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
		<tr>
			<td width="200" valign="top"><!-- #include file="L_CoProfile.asp" --></td>
		</tr>
		<tr>
    <td valign="top"><!-- #include file="L_Search.asp" --></td>
  </tr>
  <tr>
    <td valign="top"><!-- #include file="L_product.asp" --></td>
  </tr>
  <tr>
    <td valign="top">&nbsp;</td>
  </tr>
	</table></TD>

    <td width="803" valign="top">
    <TABLE cellSpacing=0 cellPadding=0 border=0>
        <TBODY>
        <TR>
          <TD height="2" colspan="2"></TD>
        </TR>
        <TR>
          <TD width=2 height=160></TD>
          <TD vAlign=top width=801><div id=makewing style="height:160">
        <table width="803"  border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td height="160" bgcolor="#66CCFF"><img src="gg/1.png"></td>
          </tr>
          <tr>
            <td height="160" bgcolor="#FFCC66"><img src="gg/2.png"></td>
          </tr>
          <tr>
            <td height="160" bgcolor="#99CC66"><img src="gg/3.png"></td>
          </tr>
          <tr>
            <td height="160" bgcolor="#66CCFF"><img src="gg/4.png"></td>
          </tr>
          <tr>
            <td height="160" bgcolor="#FFCC66"><img src="gg/5.png"></td>
          </tr>
          <tr>
            <td height="160" bgcolor="#99CC66"><img src="gg/6.png"></td>
          </tr>
        </table>
        <script language=JavaScript src="js/powerpoint.js"></script>
</div></TD>
        </TR>
        <tr>
          <td height="12" colspan="2"></td>
        </tr>
       </TBODY>
    </TABLE>
    <TABLE width="766" border=0 cellPadding=0 cellSpacing=0>
			<TR> 
			<td width="766" height="32" align="center">
				<table width="690" border="0" cellspacing="0" cellpadding="0" height="25">
          <tr>
            <td width="169"><a href="index.asp">首页</a> | 在线订单 | <span style="color: #ff6600">订单提交</span></td>
            <td width="511">
            </td>
          </tr>
        </table>
			</TD>
		</TR>
		<TR> 
			<TD height="1" bgcolor="#666666"><IMG height=1 src="img/1x1_pix.gif" width=10></TD>
		</TR>
		<TR> 
			<TD><div align="center"> 
				<table width="80%" border="0" cellspacing="0" cellpadding="0">
					<tr> 
						<td><div align="center"><strong><br>OK ！</strong></div>
<p align="center"><font color="#FF0000">信息提交成功！</font></p>
<p></p>
<p> <br>
订单提交成功，您的订单号是：<b><font size="4" color="#FF0000"><%=a%></font></b> 请牢记您的订单号，以便查询。<br>
<br>
<br>
</p></td>
					</tr>
				</table>
				<br>
			</div></TD>
		</TR>
		<TR> 
			<TD background=img/naBialym.gif height=1><IMG height=1 src="img/1x1_pix.gif" width=10></TD>
		</TR>
		<TR> 
			<TD height=45>&nbsp; </TD>
		</TR>
	</TABLE>    
     <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="5"></td>
        </tr>
      </table>   
        
</td>
  </tr>
</table>

<!-- #include file="Inc/Foot.asp" -->
</BODY></HTML>