www.gusucode.com > 木犁IT产品管理系统 1.0 beta1码程序 > productshow.asp
<!--#include file="SysProduct.asp"--> <% id=request.querystring("id") if ID="" then response.Redirect("index.asp") end if sql="select * from news where ID=" & ID & "" Set rs= Server.CreateObject("ADODB.Recordset") rs.open sql,conn,1,3 if rs.bof and rs.eof then response.write"<SCRIPT language=JavaScript>alert('Can not find this products!');" response.write"javascript:history.go(-1)</SCRIPT>" else rs("Hits")=rs("Hits")+1 rs.update %> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title><%=rs("title")%>-<%=bb%></title> <link rel="stylesheet" type="text/css" href="115cn.css"> </head> <body> <!--网站顶部开始 --> <!--#include file="head.asp"--> <div class="main"> <!--网站左边开始 --> <div class="left"> <div class="bt">产品类别</div> <div class="flnr"> <div id="PARENT"> <ul id="nav"> <% sql="select * from bigclass" set rsddz=conn.execute(sql) ii=0 do while not rsddz.eof ii=ii+1 %> <li><a onMouseOver="DoMenu('ChildMenu<%=ii%>')" href="sort.asp?bigclassname=<%=rsddz("BigClassName")%>" ><%=rsddz("BigClassName")%></a> <ul id="ChildMenu<%=ii%>" class="collapsed"> <% sql="select * from smallclass where BigClassName='"&rsddz("BigClassName")&"'" set rsxdq=conn.execute(sql) do while not rsxdq.eof %> <li><a href="sort.asp?bigclassname=<%=rsddz("BigClassName")%>&smallclassname=<%=rsxdq("SmallClassName")%>" ><%=rsxdq("SmallClassName")%></a></li> <% rsxdq.movenext loop rsxdq.close set rsxdq=nothing %> </ul> </li> <% rsddz.movenext loop rsddz.close set rsddz=nothing %> </ul> </div> <script language="javascript" type="text/javascript" src="menu.js"></script> </div> </div> <!--网站左边结束 --> <!--网站右边开始 --> <div class="cp"> <div class="bt"><%=rs("title")%></div> <div class="cpnr2"> <table width="100%" border="1" cellpadding="0" height="597" bordercolor="#CC6600" cellspacing="0" id="table1" style="border-collapse: collapse; border-style: solid; border-width: 1px" > <TR> <TD height="25" rowspan="5" width="28%"> <p align="center"><a href="<%=replace(rs("pic1"),"","")%>" target="_blank"> <img src=<%=replace(rs("pic1"),"","")%> width="125" height="97" border="0" ></a></TD> <TD class="title_right" height="25" width="18%" align="right" style="text-align: right"> <b>产品名称:</b></TD> <TD height="25" width="52%" style="padding-left: 5px; text-align:left"><%=rs("title")%></TD> </TR> <TR> <TD height="25" width="18%" align="right" style="text-align: right"> <b>产品类别:</b></TD> <TD class="title_right" height="25" width="52%" style="padding-left: 5px; text-align:left"><%=rs("bigclassname")%></TD> </TR> <TR> <TD height="25" width="18%" align="right" style="text-align: right"> <b>产品规格:</b></TD> <TD height="25" width="52%" style="padding-left: 5px; text-align:left"><%=rs("gg")%></TD> </TR> <TR> <TD height="25" width="18%" align="right" style="text-align: right"> <b>浏览次数:</b></TD> <TD height="25" width="52%" style="padding-left: 5px; text-align:left"><%=rs("hits")%></TD> </TR> <TR> <TD height="25" width="18%" align="right" style="text-align: right"> <b>添加时间:</b></TD> <TD height="25" width="52%" style="padding-left: 5px; text-align:left"><%=rs("time")%></TD> </TR> <TR> <TD height="25" width="99%" colspan="3" bgcolor="#FF7E00"> <p style="text-align: left"> <font color="#FFFFFF"><b>产品详情</b></font></TD> </TR> <TR> <TD height="446" width="99%" colspan="3" style="padding: 5px;text-align:left" valign="top"><%=rs("content")%></TD> </TR> </table> </div> </div> <!--#include file="bottom.html"--> </div> <% rs.close set rs=nothing end if conn.close set conn=nothing%> </body> </html>