注册 登录
编程论坛 ASP技术论坛

产品展示 添加下一页 上一页

hdfsvod 发布于 2011-07-08 14:56, 192 次点击
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
<html xmlns="http://www.
<!--#include file="inc/conn.asp"-->
<%
owen=request("id")              
Set rs=Server.CreateObject("ADODB.RecordSet")
sql="update Product set hits=hits+1 where ArticleID="&cstr(request("id"))
conn.execute sql
sql="select * from Product where ArticleID="&owen
rs.Open sql,conn,1,1
title=rs("title")
spec=rs("Spec")
price=rs("price")
memo=rs("Memo")
unit=rs("Unit")
content=rs("content")
Buy_price=rs("Buy_price")
hits=rs("Hits")
atime=FormatDateTime(rs("UpdateTime"),2)
UploadFiles=rs("UploadFiles")
owen1=rs("BigClassName")
owen2=rs("SmallClassName")
if rs.eof and rs.bof then
response.Write("数据库出错")
else
%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><%=title%>-<%if owen1="" then%>产品中心<%else%><%=owen1%><%end if%>-汇森烤漆门-郑州汇森烤漆套装门</title>
<link href="images/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<!-- #include file="Hd.asp" -->
<!-- mainer -->
<div id="mainer">
<table width="1000" align="center" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="221" valign="top" bgcolor="#9c2e07">
    <!-- left -->
        <!-- #include file="Left.asp" --></td>
    <td width="779" valign="top" bgcolor="#ffe7a5">
    <!-- right -->
    <div id="right">
        <div class="border_1">
            <div id="guider"><h2>产品中心 &gt;&gt; <%=owen1%></h2></div>
            <div id="guider1">
                         <p><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td class="td_22"><table width="98%" align="center" cellspacing="0">
          <tr>
            <td width="100%" height="50" align="center" valign="middle"><strong><font color="#FF0000" size="+2"><%=title%></font></strong><br /></td>
            </tr>
         
          <tr>
            <td align="right" class="td_xuxian" >规格型号:<%=Spec%> 浏览次数:<font color="#FF0000"><%=hits%></font>产品类别:<%=owen1%></td>
          </tr>
          <tr>
            <td align="left" ><strong>&nbsp;<%=title%>详细信息</strong></td>
          </tr>
          <tr>
            <td height="10"></td>
          </tr>
          <tr>
            <td height="20" align="left" class="td_22"><%=content%></td>
          </tr>
<%
End if
%>
          <tr>
            <td>&nbsp;</td>
            </tr>
        </table></td>
          </tr>
        </table>
                         </p>
            </div>
        </div>
    </div>
    </td>
  </tr>
</table>
</div>
<!-- #include file="Button.asp" -->
</BODY>
</HTML>
0 回复
1