📄 showproduct.asp
字号:
<!--#include file="../include/connstr.asp"-->
<!--#include file="../include/DefFunction.asp"-->
<%
if request("cur_action")="commentany" then
conn.execute("insert into tCommentany(CollateID,ClassID,Title,AddTime) values("&request("H_CollateID")&",'Product','"&request("T_Title")&"','"&now()&"')")
response.write "<script>alert('Your comment has already been issued successfully, please look over');location.replace('ShowProduct.asp?ID="&request("H_CollateID")&"');</script>"
response.end
end if
if request("cur_action")="delete" and request.Cookies("AdminUser")<>"" then
conn.execute("delete from tCommentany where ID="&request("EditID"))
response.write "<script>alert('Have already succeeded in deleting');location.replace('ShowProduct.asp?ID="&request("ID")&"');</script>"
response.end
end if
'-------------------------
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('The information of your inquiry has already been succeeded in sending, we will contact you as soon as possible!');location.replace('ShowProduct.asp?ID="&request("ID")&"');</script>"
response.End()
end if
set rs=conn.execute("select * from tenProduct where ID="&MyRequest(request("ID")))
if rs.eof and rs.bof then
response.write "<script>alert('Make mistakes while reading the data, please contact administrator!');history.back();</script>"
response.End()
end if
conn.execute ("update tenProduct set Hits=Hits+1 where ID="&MyRequest(request("ID"))) '点击数
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>ChengYi valve-<%=rs("Title")%></title>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
<link href="../include/mycss.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="80" border="0" cellspacing="0" cellpadding="0">
<tr valign="top" background="../images/showp1.jpg">
<td height="173" colspan="3"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td background="../images/showp11.jpg"><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="691" height="157">
<param name="movie" value="../images/showpro.swf">
<param name="quality" value="high">
<param name="wmode" value="transparent">
<embed src="../images/showpro.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="691" height="157" wmode="transparent"></embed>
</object></td>
</tr>
<tr>
<td height="16" align="right" valign="bottom">
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td align="right"> <span class="font1">Please choose the products:</span> <select name="menu1" onChange="MM_jumpMenu('parent',this,0)">
<%set rs_Product=conn.execute("select * from tenProduct where StateFlag=0 order by Addtime desc")
do while not rs_Product.eof
if cstr(rs_Product("ID"))=cstr(request("ID")) then
response.write "<option value='?ID="&rs_Product("ID")&"' selected>"&left(rs_Product("Title"),40)&"</option>"
else
response.write "<option value='?ID="&rs_Product("ID")&"'>"&left(rs_Product("Title"),40)&"</option>"
end if
rs_Product.movenext
loop
%>
</select></td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="3"><img src="../images/showp2.jpg" width="691" height="21"></td>
</tr>
<tr>
<td width="30" background="../images/showp3.jpg"><img src="../images/showp3.jpg" width="30" height="349"></td>
<td width="625">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#FFFFFF" background="../images/pro_8.jpg">
<td height="27"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td></td>
</tr>
</table> </td>
</tr>
<tr>
<td width="94%" bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="3" cellpadding="0">
<tr>
<td width="30%" rowspan="6" align="center">
<%if rs("ProductPic")<>"" then response.write "<a href='/UploadFile/ProductFile/"&rs("ProductPic")&"' target='_blank'><img src='/UploadFile/ProductFile/"&rs("ProductPic")&"' border=0 width=150 title='点击放大'></a>" else response.write "<img src='/UploadFile/default1.gif'>"%></td>
<td width="20%" height="20" align="right"><font color="#000000">Name:</font></td>
<td colspan="2"><%=rs("Title")%></td>
</tr>
<tr>
<td height="20" align="right">Classification:</td>
<td colspan="2">
<% set rs1=conn.execute("select * from tenProductCate where ID="&rs("CateID"))
response.write rs1("Title")
%>
</td>
</tr>
<tr>
<td height="20" align="right"><font color="#000000">Nature:</font></td>
<td colspan="2">
<%if rs("Ishot")="0" then response.write "Ordinary"
if rs("Ishot")="1" then response.write "Recommendation"
if rs("Ishot")="2" then response.write "Stock"
%>
</td>
</tr>
<tr>
<td height="20" align="right"><font color="#000000">Time:</font></td>
<td colspan="2"><%=rs("Hits")%></td>
</tr>
<tr>
<td height="20" align="right"><font color="#000000">price:</font></td>
<td colspan="2"><%=rs("Price")%><font color="#000000">Yuan</font></td>
</tr>
<tr>
<td height="20" align="right"><font color="#000000">Materials download:</font></td>
<td width="33%">
<% if rs("OtherFile")<>"" then response.write "<a href='/UploadFile/ProductFile/"&rs("OtherFile")&"' target='_blank'>Click download</a>" else response.write "There is no download temporarily"%>
</td>
<td width="17%"><a href="#order"><img src="../images/addtocart1.gif" width="75" height="18" border="0"></a></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#008E6B">
<td width="70%" height="22" bgcolor="#CCCCCC" class="fontdz"> <strong><font color="#FFFFFF">Detailed introduction of the products</font></strong></td>
</tr>
<tr>
<td height="20"><%=rs("Content")%></td>
</tr>
<tr>
<td height="20"> </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<form name="form2" method="post" action="" onSubmit="return check_data()">
<tr>
<td colspan="4"> </td>
</tr>
<tr bgcolor="#CCCCCC">
<td height="22" colspan="4" class="font1"> <strong><a name="order"></a><font color="#FFFFFF"><span class="fontdz">Inquirying area of the products</span></font></strong></td>
</tr>
<tr bgcolor="#EFF3E7">
<td width="22%" height="22" align="right" bgcolor="#F3F7EE">Products ordered:</td>
<td colspan="3" bgcolor="#F3F7EE"><input name="T_ProductName" type="text" id="T_ProductName2" value="<%=rs("Title")%>" size="50">
<font color="#CC0000">*</font></td>
</tr>
<tr bgcolor="#EFF3E7">
<td height="22" align="right" bgcolor="#F3F7EE">Company's name:</td>
<td colspan="3" bgcolor="#F3F7EE"><input name="T_Company" type="text" id="T_Company2" size="40">
<font color="#CC0000">*</font></td>
</tr>
<tr bgcolor="#EFF3E7">
<td height="22" align="right" bgcolor="#F3F7EE">Person to contact:</td>
<td colspan="3" bgcolor="#F3F7EE"><input name="T_TrueName" type="text" id="T_TrueName2" size="12"></td>
</tr>
<tr bgcolor="#EFF3E7">
<td height="22" align="right" bgcolor="#F3F7EE">Telephone number:</td>
<td width="29%" bgcolor="#F3F7EE"><input name="T_Tel" type="text" id="T_Tel2" size="15">
<font color="#CC0000">*</font></td>
<td width="16%" align="right" bgcolor="#F3F7EE">Fax:</td>
<td width="33%" bgcolor="#F3F7EE"><input name="T_Fax" type="text" id="T_Fax2" size="15"></td>
</tr>
<tr bgcolor="#EFF3E7">
<td height="23" align="right" bgcolor="#F3F7EE">E_mail:</td>
<td colspan="3" bgcolor="#F3F7EE"><input name="T_Email" type="text" id="T_Email2"></td>
</tr>
<tr bgcolor="#EFF3E7">
<td height="22" align="right" bgcolor="#F3F7EE">Address:</td>
<td bgcolor="#F3F7EE"><input name="T_Address" type="text" id="T_Address2" size="30">
<font color="#CC0000">*</font></td>
<td align="right" bgcolor="#F3F7EE">Zip code:</td>
<td bgcolor="#F3F7EE"><input name="T_Zip" type="text" id="T_Zip2" size="10"></td>
</tr>
<tr bgcolor="#EFF3E7">
<td height="20" align="right" bgcolor="#F3F7EE">Inquiry the content:</td>
<td colspan="3" bgcolor="#F3F7EE"><textarea name="T_Content" cols="55" rows="7" id="textarea"></textarea></td>
</tr>
<tr align="center" bgcolor="#EFF3E7">
<td height="30" colspan="4" bgcolor="#F3F7EE">
<input name="ID" type="hidden" id="ID2" value="<%=request("ID")%>">
<input name="cur_action" type="hidden" id="cur_action2" value="addsave">
<input type="submit" name="Submit32" value="SEND">
<input type="submit" name="Submit42" value="RESET"></td>
</tr>
<tr align="center">
<td height="20" colspan="4"> </td>
</tr>
</form>
</table>
<p> </p>
<p>
</p>
</td>
</tr>
</table>
</td>
<td width="36" background="../images/showp4.jpg"><img src="../images/showp4.jpg" width="36" height="349"></td>
</tr>
<tr>
<td colspan="3"><img src="../images/showp5.jpg" width="691" height="36"></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -