📄 order.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('Your customization information has already been succeeded in sending, we will get in touch with you as soon as possible! Thank you for your support to us');location.replace('Order.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
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>ChengYi valve</title>
<style type="text/css">
<!--
body {
background-color: #188200;
margin-top: 0px;
margin-bottom: 0px;
}
.style2 { font-weight: bold; color: #ffffff
}
-->
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<script src="/include/jchar.js"></script>
<link href="images/site.css" rel="stylesheet" type="text/css">
</head>
<body onLoad="MM_preloadImages('../images/Englsh-about1.jpg','images/eb1.gif','images/eb22.gif','images/eb33.gif','images/eb44.gif','images/eb55.gif','images/eb66.gif')">
<TABLE style="BORDER-RIGHT: #cccccc 1px solid" cellSpacing=0 cellPadding=0
width=800 align=center bgColor=#ffffff border=0>
<TBODY>
<TR>
<TD width=180><IMG height=100 src="images/logo.gif"
width=180></TD>
<TD vAlign=top>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD bgColor=#cdcdcd height=8></TD>
</TR>
<TR>
<TD height=25 align="right"><a href="../main/main.asp" target="_blank" class="synthetical">/Chinese/ </a></TD>
</TR>
<TR>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD><a href="About.asp" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image7','','images/eb1.gif',1)"><img src="images/eb.gif" name="Image7" width="125" height="59" border="0"></a></TD>
<TD><a href="product.asp" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image8','','images/eb22.gif',1)"><img src="images/eb2.gif" name="Image8" width="100" height="59" border="0"></a></TD>
<TD><a href="News.asp" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image9','','images/eb33.gif',1)"><img src="images/eb3.gif" name="Image9" width="100" height="59" border="0"></a></TD>
<TD><a href="Feedback.asp" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image10','','images/eb44.gif',1)"><img src="images/eb4.gif" name="Image10" width="100" height="59" border="0"></a></TD>
<TD><a href="Contacts.asp" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image11','','images/eb55.gif',1)"><img src="images/eb5.gif" name="Image11" width="100" height="59" border="0"></a></TD>
<TD><a href="main.asp" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image12','','images/eb66.gif',1)"><img src="images/eb6.gif" name="Image12" width="100" height="59" border="0"></a></TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
<TR>
<TD bgColor=#cdcdcd
height=8></TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
</TBODY>
</TABLE>
<table style="border-right: #cccccc 1px solid; border-left: #cccccc 1px solid"
cellspacing=0 cellpadding=0 width=800 align=center border=0>
<tbody>
<tr>
<td>
<object
codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0
height=137 width=803 classid=clsid:d27cdb6e-ae6d-11cf-96b8-444553540000>
<param name="movie" value="images/top.swf">
<param name="quality" value="high">
<embed src="images/top.swf" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="803" height="137"></embed>
</object></td>
</tr>
</tbody>
</table>
<table style="border-right: #cccccc 1px solid; border-left: #cccccc 1px solid"
cellspacing=0 cellpadding=0 width=804 align=center bgcolor=#ffffff border=0>
<tbody>
<tr>
<td style="border-right: #cccccc 1px solid" valign=top width=179>
<table cellspacing=0 cellpadding=0 width="100%" border=0>
<tbody>
<tr>
<td><img src="images/product.jpg" width="178" height="39"></td>
</tr>
<tr>
<td height=35>
<!--#include file="images/Left.asp"-->
</td>
</tr>
<tr>
<td height=1><img height=1
src="dazhong valve.files/english-line.jpg" width=178></td></tr>
<tr>
<td height=1><img height=1
src="images/line.jpg" width=178></td>
</tr>
<tr>
<td height=1><img height=60
src="images/bottom.jpg"
width=178></td>
</tr></tbody></table></td>
<td valign=top>
<table cellspacing=0 cellpadding=0 width="98%" align=center border=0>
<tbody>
<tr>
<td height="33" style="border-bottom: #cccccc 1px solid">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="5%" valign="bottom"><img height=25
src="images/brief.jpg" width=29></td>
<td width="36%" valign="bottom" class="model"><a href="product.asp">PRODUCTS</a></td>
<td width="5%" valign="bottom"><img height=25
src="images/brief.jpg" width=29></td>
<td width="54%" valign="bottom" class="model"><a href="Order.asp">ORDER</a></td>
</tr>
</table></td>
</tr>
<tr>
<td>
<table width="90%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC">
<form name="forminfo" action="Order.asp" method="POST" onSubmit="return check_data()">
<tr bgcolor="#FFFFFF">
<td height="25" colspan="2" class="synthetical">Please choose the products that you consulted or bought conscientiously , so that we serve you better! (Comments: Take * Must fill out the project to select one as)</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="20%" height="3" align="center"><span class="lineheight">Product name</span> :</td>
<td width="80%" height="25">
<select name="S_ProductName" class="button" id="S_ProductName">
<%set rs_ProductName=conn.execute("select * from tProduct where StateFlag=0 order by Addtime desc")
response.write "<option value='-1'>--- Please choose the name of product consulted or bought ---"
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="20%" height="2" align="center" nowrap class="lineheight">Unit's name:</td>
<td width="80%" height="25"><font color="#FF0000">
<input name="T_Company" type="text" class="button" id="T_Company2" value="<%=Company%>" size="30" maxlength="50">
</font>* </td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="20%" height="2" align="center" class="lineheight">Your name:</td>
<td width="80%" height="25">
<input name="T_TrueName" type="text" class="button" id="T_TrueName" value="<%=TrueName%>" size="12" maxlength="20">
* </td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="20%" height="2" align="center" class="lineheight">Telephone number:</td>
<td width="80%" height="25">
<input name="T_Tel" type="text" class="button" id="T_Tel" value="<%=Tel%>" size="25" maxlength="30">
* </td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="20%" height="2" align="center" class="lineheight">Fax:</td>
<td width="80%" height="25">
<input name="T_Fax" type="text" class="button" id="T_Fax" value="<%=Fax%>" size="25" maxlength="30">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="20%" height="30" align="center" class="lineheight">E_MAIL: </td>
<td width="80%" height="25">
<input name="T_Email" type="text" class="button" id="T_Email" value="<%=Email%>" size="40" maxlength="20">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="20%" height="20" align="center" class="lineheight"> Zip code :</td>
<td width="80%" height="25">
<input name="T_Zip" type="text" class="button" id="T_postcode" value="<%=Zip%>" size="6" maxlength="6">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="20%" height="20" align="center" class="lineheight">Address:</td>
<td width="80%" height="25">
<input name="T_Address" type="text" class="button" id="T_Address" value="<%=Address%>" size="50" maxlength="100">
* </td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25" colspan="2" class="lineheight">
Content
:*</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="20%" height="133"> </td>
<td width="80%">
<textarea name="T_Content" cols="60" rows="8" id="T_Content"></textarea>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="20%" height="32" align="center"> </td>
<td width="80%" height="32" align="center"><input name="cur_action" type="hidden" id="cur_action" value="addsave">
<input name="Submit32" type="submit" class="button" value="SEND">
<input name="Submit22" type="reset" class="button" value="RESET">
</td>
</tr>
</form>
</table> </td>
</tr></tbody></table></td></tr></tbody></table>
<table cellspacing=0 cellpadding=0 width=804 align=center border=0>
<tbody>
<tr>
<td width=178><img height=30 src="images/english-bottom.jpg"
width=180></td>
<td align=middle bgcolor=#3196D6><span class=style2>copyright @2005 ChengYi valve all rights reserved.</span></td>
</tr>
</tbody>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -