📄 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('您的评论已经发表成功,请查看');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('已经成功删除');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('您的询盘信息已经成功发送,我们将第一时间与您联系!');location.replace('ShowProduct.asp?ID="&request("ID")&"');</script>"
response.End()
end if
set rs=conn.execute("select * from tProduct where ID="&MyRequest(request("ID")))
if rs.eof and rs.bof then
response.write "<script>alert('读取数据时出错,请与管理员联系!');history.back();</script>"
response.End()
end if
conn.execute ("update tProduct set Hits=Hits+1 where ID="&MyRequest(request("ID"))) '点击数
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>诚一阀门-<%=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/showp1.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">请选择产品:</span> <select name="menu1" onChange="MM_jumpMenu('parent',this,0)">
<%set rs_Product=conn.execute("select * from tProduct 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/default.gif'>"%></td>
<td width="15%" height="20" align="right"><font color="#000000">产品名称:</font></td>
<td colspan="2"><%=rs("Title")%></td>
</tr>
<tr>
<td height="20" align="right">产品类别:</td>
<td colspan="2">
<% set rs1=conn.execute("select * from tProductCate where ID="&rs("CateID"))
response.write rs1("Title")
%>
</td>
</tr>
<tr>
<td height="20" align="right"><font color="#000000">产品性质:</font></td>
<td colspan="2">
<%if rs("Ishot")="0" then response.write "普通"
if rs("Ishot")="1" then response.write "推荐"
if rs("Ishot")="2" then response.write "库存"
%>
</td>
</tr>
<tr>
<td height="20" align="right"><font color="#000000">点击次数:</font></td>
<td colspan="2"><%=rs("Hits")%></td>
</tr>
<tr>
<td height="20" align="right"><font color="#000000">产品单价:</font></td>
<td colspan="2"><%=rs("Price")%><font color="#000000">元</font></td>
</tr>
<tr>
<td height="20" align="right"><font color="#000000">资料下载:</font></td>
<td width="38%">
<% if rs("OtherFile")<>"" then response.write "<a href='/UploadFile/ProductFile/"&rs("OtherFile")&"' target='_blank'>点击下载</a>" else response.write "暂无下载"%>
</td>
<td width="17%"><a href="#order"><img src="../images/addtocart.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">产品详细介绍</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">产品询盘区</span></font></strong></td>
</tr>
<tr bgcolor="#EFF3E7">
<td width="15%" height="22" align="right" bgcolor="#F3F7EE">订购的产品:</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">公司名称:</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">联系人:</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">联系电话:</td>
<td width="36%" 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">传真:</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">电子邮件:</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">详细地址:</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">邮编号码:</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">询盘内容:</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="正确提交">
<input type="submit" name="Submit42" value="重新填写"></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 + -