⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 orderform.asp

📁 这个也是一个功能强大的企业整站的ASP源代码
💻 ASP
字号:
<!--#include file="../include/connstr.asp"-->
<%if request("cur_action")="addsave" then
    sql_addsave="Insert into tTailor(Company,ProductName,TrueName,Tel,Fax,Email,Zip,Address,Content,SourceFlag,ReadFlag,AddTime) values('"&request("T_Company")&"','"&request("T_ProductName")&"','"&request("T_TrueName")&"','"&request("T_Tel")&"','"&request("T_Fax")&"','"&request("T_Email")&"','"&request("T_Zip")&"','"&request("T_Address")&"','"&request("T_Content")&"',0,0,'"&now()&"')"
    conn.execute sql_addsave
    response.write "<script>alert('您的定制信息已经成功发送,我们将第一时间与您取得联系!\n谢谢您对我们的支持!');location.replace('OrderForm.asp');</script>"
	response.end
  end if
  
  if session("LoginID")<>"" then
    set rs_Member=conn.execute("select * from tRegMember where LoginID='"&session("LoginID")&"'")
	Company=rs_Member("Company")
	TrueName=rs_Member("TrueName")
	Tel=rs_Member("Tel")
	Fax=rs_Member("Fax")
	Email=rs_Member("Email")
	Zip=rs_Member("Zip")
	Address=rs_Member("Address")
  end if
%>
<html>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
</script>
<head>
<script src="../include/jChar.js"></script>
<script language="JavaScript">
  function check_data(){
    if(Jtrim(document.forminfo.S_ProductName.value)=="-1"){
	  alert('请选择产品名称!');
	  document.forminfo.S_ProductName.focus();
	  return(false)
	}
    if(Jtrim(document.forminfo.T_Company.value)==""){
	  alert('公司名称为必填写,请填写!');
	  document.forminfo.T_Company.focus();
	  return(false)
	}	
    if(Jtrim(document.forminfo.T_TrueName.value)==""){
	  alert('您的姓名为必填写,请填写!');
	  document.forminfo.T_TrueName.focus();
	  return(false)
	}	
    if(Jtrim(document.forminfo.T_Tel.value)==""){
	  alert('联系电话为必填写,请填写!');
	  document.forminfo.T_Tel.focus();
	  return(false)
	}	
    if(Jtrim(document.forminfo.T_Address.value)==""){
	  alert('联系地址为必填写,请填写!');
	  document.forminfo.T_Address.focus();
	  return(false)
	}		
    if(Jtrim(document.forminfo.T_Content.value)==""){
	  alert('订单内容为必填写,请填写!');
	  document.forminfo.T_Content.focus();
	  return(false)
	}		

  }
</script>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>浙江永嘉诚一阀门有限公司</title>
<style type="text/css">
<!--
body {
	margin-top: 0px;
	margin-left: 0px;
	margin-bottom: 0px;
}
-->
</style>
<link href="../include/mycss.css" rel="stylesheet" type="text/css">
<!--  浮动层的开始 -->
<SCRIPT language=javascript>
	var delta=0.15
	var collection;
	function floaters() {	//添加层的子程序
		this.items	= [];
		this.addItem	= function(id,x,y,content)
				  {
					document.write('<DIV id='+id+' style="Z-INDEX: 10; POSITION: absolute;  width:100px; height:240px;left:'+(typeof(x)=='string'?eval(x):x)+';top:'+(typeof(y)=='string'?eval(y):y)+'">'+content+'</DIV>');
					
					var newItem				= {};
					newItem.object			= document.getElementById(id);
					newItem.x				= x;
					newItem.y				= y;

					this.items[this.items.length]		= newItem;
				  }
		this.play	= function()
				  {
					collection				= this.items
					setInterval('play()',10);
				  }
		}
		function play()	//调整层的位置
		{

			for(var i=0;i<collection.length;i++)
			{
				var followObj		= collection[i].object;
				var followObj_x		= (typeof(collection[i].x)=='string'?eval(collection[i].x):collection[i].x);
				var followObj_y		= (typeof(collection[i].y)=='string'?eval(collection[i].y):collection[i].y);

				if(followObj.offsetLeft!=(document.body.scrollLeft+followObj_x)) {
					var dx=(document.body.scrollLeft+followObj_x-followObj.offsetLeft)*delta;
					dx=(dx>0?1:-1)*Math.ceil(Math.abs(dx));
					followObj.style.left=followObj.offsetLeft+dx;
					}

				if(followObj.offsetTop!=(document.body.scrollTop+followObj_y)) {
					var dy=(document.body.scrollTop+followObj_y-followObj.offsetTop)*delta;
					dy=(dy>0?1:-1)*Math.ceil(Math.abs(dy));
					followObj.style.top=followObj.offsetTop+dy;
					}
				followObj.style.display	= '';
			}
		}	
		
	var theFloaters		= new floaters();
	theFloaters.addItem('followDiv2',900,100,'<img src=../images/right.jpg  usemap="#Map1111111111111" border=0>');	//层名,位置X,位置Y,内容
	theFloaters.play();
</SCRIPT>
<!--  浮动层的结束 -->
</head>
<script language="JavaScript">
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
</script>
<body>
<!--#include file="../include/top.asp"-->
<table width="919" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="278" height="502" valign="top" bgcolor="63a639">      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="278" height="502">
            <param name="movie" value="images/left.swf">
            <param name=quality value=high>
            <embed src="images/left.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="278" height="502"></embed>
          </object></td>
        </tr>
      </table>
	<!--#include file="../include/left.asp"-->
	</td>
    <td width="616" valign="top"><table width="99%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="96%" height="721" valign="top"><table width="616"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="136" valign="middle" background="images/order.jpg"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td colspan="3" align="right"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="308" height="80">
                  <param name="movie" value="../images/shuidi.swf">
                  <param name="quality" value="high">
                  <param name="wmode" value="transparent">
                  <embed src="../images/shuidi.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="308" height="80" wmode="transparent"></embed>
                </object></td>
              </tr>
              <tr>
                <td width="6%">&nbsp; </td>
                <td width="57%" class="biaoti">HOME> 产品展示>填写订单</td>
                <td width="37%">&nbsp;</td>
              </tr>
              <tr>
                <td colspan="3">&nbsp;</td>
              </tr>
            </table></td>
            </tr>
          <tr>
            <td height="576" valign="top"><br>              
              <table width="88%"  border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td><table width="90%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC">
                <form name="forminfo" action="Orderform.asp" method="POST" onSubmit="return check_data()">
                  <tr bgcolor="#FFFFFF">
                    <td height="25" colspan="2">请认真选择您所要咨询或购买的产品,以便我们更好的为您服务!(说明:带 * 选项为必填项目)</td>
                  </tr>
                  <tr bgcolor="#FFFFFF">
                    <td width="19%" height="3" align="center">产品名称:</td>
                    <td width="81%" height="25">
                      <select name="S_ProductName" id="S_ProductName">
                        <%set rs_ProductName=conn.execute("select * from tProduct where StateFlag=0 order by Addtime desc")
				   response.write "<option value='-1'>--- 请选择要咨询或购买的产品名称 ---"
				   do while not rs_ProductName.eof
				     if rs_ProductName("IsHot")=1 then
				       response.write "<option value='"&rs_ProductName("Title")&"'>"&left(rs_ProductName("Title"),40)&"(推荐)</option>"
					 else
 				       response.write "<option value='"&rs_ProductName("Title")&"'>"&left(rs_ProductName("Title"),40)&"</option>"
					 end if
				     rs_ProductName.movenext
				   loop
				 %>
                      </select>
        * </td>
                  </tr>
                  <tr bgcolor="#FFFFFF">
                    <td width="19%" height="2" align="center" nowrap>单位名称:</td>
                    <td width="81%" height="25"><font color="#FF0000">
                      <input name="T_Company" type="text" class="button" id="T_Company2" size="30" maxlength="50" value="<%=Company%>">
                    </font>* </td>
                  </tr>
                  <tr bgcolor="#FFFFFF">
                    <td width="19%" height="2" align="center">您的姓名:</td>
                    <td width="81%" height="25">
                      <input name="T_TrueName" type="text" class="button" id="T_TrueName" size="12" maxlength="20" value="<%=TrueName%>">
        * </td>
                  </tr>
                  <tr bgcolor="#FFFFFF">
                    <td width="19%" height="2" align="center">联系电话:</td>
                    <td width="81%" height="25">
                      <input name="T_Tel" type="text" class="button" id="T_Tel" size="25" maxlength="30" value="<%=Tel%>">
        * </td>
                  </tr>
                  <tr bgcolor="#FFFFFF">
                    <td width="19%" height="2" align="center">传  真:</td>
                    <td width="81%" height="25">
                      <input name="T_Fax" type="text" class="button" id="T_Fax" size="25" maxlength="30" value="<%=Fax%>">
                    </td>
                  </tr>
                  <tr bgcolor="#FFFFFF">
                    <td width="19%" height="30" align="center">电子邮件: </td>
                    <td width="81%" height="25">
                      <input name="T_Email" type="text" class="button" id="T_Email" size="40" maxlength="20" value="<%=Email%>">
                    </td>
                  </tr>
                  <tr bgcolor="#FFFFFF">
                    <td width="19%" height="20" align="center">邮  编:</td>
                    <td width="81%" height="25">
                      <input name="T_Zip" type="text" class="button" id="T_postcode" size="6" maxlength="6" value="<%=Zip%>">
                    </td>
                  </tr>
                  <tr bgcolor="#FFFFFF">
                    <td width="19%" height="20" align="center">详细地址:</td>
                    <td width="81%" height="25">
                      <input name="T_Address" type="text" class="button" id="T_Address" size="50" maxlength="100" value="<%=Address%>">
        * </td>
                  </tr>
                  <tr bgcolor="#FFFFFF">
                    <td height="25" colspan="2"> 请将您订购产品详细情况填写在以下文字框中:*</td>
                  </tr>
                  <tr bgcolor="#FFFFFF">
                    <td width="19%" height="133">&nbsp; </td>
                    <td width="81%">
                      <textarea name="T_Content" cols="60" rows="8" class="button" id="T_Content"></textarea>
                    </td>
                  </tr>
                  <tr bgcolor="#FFFFFF">
                    <td width="19%" height="32" align="center">&nbsp; </td>
                    <td width="81%" height="32" align="center"><input name="cur_action" type="hidden" id="cur_action" value="addsave">
                        <input type="submit" name="Submit32" value="正确提交">
                        <input type="reset" name="Submit22" value="重新填写">
                    </td>
                  </tr>
                </form>
              </table></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
        </tr>
    </table></td>
    <td width="25" valign="top" background="../images/about_6.jpg"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="262" background="../images/about_6.jpg"><IMG SRC="../images/about_6.jpg" WIDTH=24 HEIGHT=52 ALT=""></td>
      </tr>
      <tr>
        <td height="459" valign="bottom"><IMG SRC="../images/about_8.jpg" WIDTH=24 HEIGHT=337 ALT=""></td>
      </tr>
    </table></td>
  </tr>
</table>
<!--#include file="../include/bottom.asp"-->
</body>
</html>
  <map name="Map1111111111111" id="Map1111111111111">
    <area shape="rect" coords="18,62,71,116" href="../News/News.asp">
    <area shape="rect" coords="18,125,72,184" href="../aboutus/Cultrue.asp">
    <area shape="rect" coords="20,203,73,258" href="../product/Feedback.asp">
    <area shape="rect" coords="18,272,77,327" href="../Distribution/Distribution.asp">
    <area shape="rect" coords="14,334,81,359" href="../english/main.asp" target="_blank">
</map>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -