<% id=Trim(Request.QueryString("id")) if id="" or not IsNumeric(id) then response.Redirect("products.asp") conn.execute("update [Product] set Hits=Hits+1 where Passed=True and ID="&id&"") set ProductRs=Server.CreateObject("adodb.recordset") Productsql="select * from [Product] where Passed=True and ID="&id&"" ProductRs.Open Productsql,conn,1,2 if ProductRs.bof and ProductRs.eof then response.Redirect("products.asp") else %> <% set SEORs=Conn.execute("select * from SEO where ID=1") %> <%= ProductRs("Title") %>-<%=SEORs("Title")%> " name="description"> " name="keywords"> "> "><% SEORs.close set SEORs=nothing %> <% If FuDongQQ=1 Then %> <% End If %>
产品中心
<% '定义下一篇过程!AID是传过来的ID号 Sub ShowHead(AID) NextPageSql = "Select top 1 * from [Product] Where ID >"& AID &" order by ID" Set HRs = Conn.Execute(NextPageSql) If Not HRs.Eof Then Response.Write ""&HRs("Title")&"" Else Response.Write "已是最后一个!" End If HRs.Close Set HRs = Nothing End Sub '定义上一篇过程!AID是传过来的ID号 Sub ShowNext(AID) NextPageSql = "Select top 1 * from [Product] Where ID <"& AID &" order by ID desc" Set HRs = Conn.Execute(NextPageSql) If Not HRs.Eof Then Response.Write ""&HRs("Title")&"" Else Response.Write "已是第一个!" End If HRs.Close Set HRs = Nothing End Sub %>

<% set BigClass_Rs=server.CreateObject("adodb.recordset") BigClass_Sql="select top 1 * from [BigClass] where BigClassID="&ProductRs("ClassID")&" order by BigClassID" BigClass_Rs.open BigClass_Sql,conn,1,2 %> <%= ProductRs("Title") %> 您的位置:首页产品中心" title="<%= BigClass_Rs("BigClassName") %>"><%= BigClass_Rs("BigClassName") %>详细内容 <% BigClass_Rs.close Set BigClass_Rs=nothing %>

<%=ProductRs("Title")%>

发布时间:<%= FormatTime(ProductRs("UpdateTime"),2)%>  浏览:<%= ProductRs("Hits")%>次  字号:  

<% If productRs("DefaultPicUrl")<>"images/nopic.gif" Then %>

" Id="CasePicShow" onload="AutoResizeImage(885,0)" style="border:1px #EDEDED solid; padding:1px;" alt="<%=ProductRs("Tilte")%>" />

<% End If %>
<%=ProductRs("Content")%>
上一篇:<% call ShowNext(ProductRs("ID")) %>
下一篇:<% call ShowHead(ProductRs("ID")) %>
<% ProductRs.close set ProductRs=nothing End if %>