- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
ProductView.Asp
上传用户:mtjhgs
上传日期:2021-12-08
资源大小:3755k
文件大小:10k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
HTML/CSS
- <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
- <!--#include file="../Include/Const.asp" -->
- <!--#include file="../Include/NoHackSql.Asp" -->
- <!--#include file="../Include/ConnSiteData.asp" -->
- <%
- call SiteInfo
- if ISHTML = 1 then
- Response.expires = 0
- Response.expiresabsolute = Now() - 1
- Response.addHeader "pragma", "no-cache"
- Response.addHeader "cache-control", "private"
- Response.CacheControl = "no-cache"
- End If
- ID=request.QueryString("ID")
- if ID <> "" or IsNumeric(ID) then
- set rs = server.createobject("adodb.recordset")
- sql="select * from Wygkcnflash_Products where ViewFlag"&Language&" and ID="&ID
- rs.open sql,conn,1,3
- If rs("SeoKeywords"&Language) <> "" Then
- SeoKeywords=rs("SeoKeywords"&Language)
- Else
- SeoKeywords=rs("ProductName"&Language)
- End If
- If rs("SeoDescription"&Language) <> "" Then
- SeoDescription=rs("SeoDescription"&Language)
- Else
- SeoDescription=rs("ProductName"&Language)
- End If
- SeoTitle=rs("ProductName"&Language)
- End If
- rs.close
- set rs=nothing
- headid=3
- %>
- <!--#include file="Head.Asp" -->
- <div class="clear"></div>
- <div id="contant">
- <div class="cleft">
- <div class="news">
- <div class="title">
- <b>产品列表</b>
- </div>
- <div>
- <ul>
- <%call CallFolderView()%>
- </ul>
- </div>
- </div>
- <div class="news">
- <div class="title">
- <b>热门产品</b>
- </div>
- <div>
- <ul>
- <%=Producthot(10)%>
- </ul>
- </div>
- </div>
- </div>
- <div class="cright">
- <div class="crightb">
- <div class="crightbtitle">
- <div class="crightbtitlel">
- 当前位置:
- </div>
- <div class="crightbtitler">
- <%=WebLocation()%>
- </div>
- </div>
- <div class="crightbcontent">
- <table border="0" cellpadding="0" cellspacing="0" width="100%">
- <tbody>
- <tr>
- <td width="26"> </td>
- <td>
- <p>
- <table cellspacing="0" cellpadding="0" width="100%" bgcolor="#ffffff" border="0" heihgt="">
- <tbody>
- <tr align="center">
- <td width="1000" align="center" style="color:#000000; font-size:14px; font-weight:bold">
- <%
- ID=request.QueryString("ID")
- if ID="" or not IsNumeric(ID) then
- response.write "<center>暂无相关信息</center>"
- elseif conn.execute("select * from Wygkcnflash_Products Where ViewFlag"&Language&" and ID="&ID).eof then
- response.write "<center>暂无相关信息</center>"
- else
- dim rs,sql
- set rs = server.createobject("adodb.recordset")
- sql="select * from Wygkcnflash_Products where ViewFlag"&Language&" and ID="&ID
- rs.open sql,conn,1,3
- Response.Write ""&rs("ProductName"&Language)&""&VbCrLf
- End If
- %></td>
- </tr>
- <%
- if ViewNoRight(rs("GroupID"),rs("Exclusive")) Then
- Response.Write " <tr>"&VbCrLf
- Response.Write " <td>"&VbCrLf
- Response.Write "<table width=""98%"" border=""0"" cellspacing=""0"" cellpadding=""0"" align=""center"">"&VbCrLf
- Response.Write " <tr height=""25"">"&VbCrLf
- Response.Write " <td>产品名称:"&rs("ProductName"&Language)&"</td>"&VbCrLf
- Response.Write " <td rowspan=""7"" style=""width:180px; text-align:center""><a href="""&rs("BigPic")&""" title=""点击查看大图片"" target=""_blank""><img src="""&HtmlSmallPic(rs("GroupID"),rs("BigPic"),rs("Exclusive"))&""" title="""&rs("ProductName"&Language)&""" style=""border:1px #ccc;"" border=""0""></a><br /><br /><a href=""ProductBuy.asp?ProductNo="&rs("ProductNo")&""" title=""立即订购:"&rs("ProductName"&Language)&"""><img src=""Images/buy.gif"" border=""0"" /></a></td>"&VbCrLf
- Response.Write " </tr>"&VbCrLf
- Response.Write " <tr height=""25"">"&VbCrLf
- Response.Write " <td>产品编号:"&rs("ProductNo") &"</td>"&VbCrLf
- Response.Write " </tr>"&VbCrLf
- Response.Write " <tr height=""25"">"&VbCrLf
- Response.Write " <td>产品型号:"&rs("ProductModel") &"</td>"&VbCrLf
- Response.Write " </tr>"&VbCrLf
- Response.Write " <tr height=""25"">"&VbCrLf
- Response.Write " <td>市场价格:"&rs("N_Price")&"元/"&rs("Unit"&Language)&" 批发价格:"&rs("P_Price")&"元/"&rs("Unit"&Language)&"</td>"&VbCrLf
- Response.Write " </tr>"&VbCrLf
- Response.Write " <tr height=""25"">"&VbCrLf
- Response.Write " <td>更新时间:"&FormatDate(rs("Addtime"),13)&"</td>"&VbCrLf
- Response.Write " </tr>"&VbCrLf
- Response.Write " <tr height=""25"">"&VbCrLf
- Response.Write " <td>出品单位:"&rs("Maker"&Language) &"</td>"&VbCrLf
- Response.Write " </tr>"&VbCrLf
- attribute1=rs("attribute1"&Language)
- attribute1_value=rs("attribute1"&Language&"_value")
- if attribute1 <> "" and attribute1_value <> "" then
- attribute1_1=Split(attribute1,"§§§")
- attribute1_value_1=Split(attribute1_value,"§§§")
- for i=0 to ubound(attribute1_value_1)
- Response.Write " <tr height=""25"">"&VbCrLf
- Response.Write " <td>"&attribute1_1(i)&":"&attribute1_value_1(i)&"</td>"&VbCrLf
- Response.Write " </tr>"&VbCrLf
- Next
- End If
- Response.Write " <tr height=""25"">"&VbCrLf
- Response.Write " <td>浏览次数:<script language=""javascript"" src=""HitCount.asp?id="&rs("ID")&"&LX=Wygkcnflash_Products""></script><script language=""javascript"" src=""HitCount.asp?action=count&LX=Wygkcnflash_Products&id="&rs("ID")&"""></script></td>"&VbCrLf
- Response.Write " </tr>"&VbCrLf
- Response.Write "</table>"&VbCrLf
- Response.Write " </td>"&VbCrLf
- Response.Write " </tr>"&VbCrLf
- Response.Write " <tr>"&VbCrLf
- Response.Write " <td height=""33"" style=""background:url(Images/bg2.gif) repeat-x left bottom""> <img src=""images/arr.gif"" width=""11"" height=""14"" align=""absmiddle"" /> 产品详细介绍</td>"&VbCrLf
- Response.Write " </tr>"&VbCrLf
- Response.Write " <tr>"&VbCrLf
- Response.Write " <td height=""25"" style=""padding-left: 8px; padding-right: 8px"">"&rs("Content"&Language)&"</td>"&VbCrLf
- Response.Write " </tr>"&VbCrLf
- Else
- Response.Write " <tr>"&VbCrLf
- Response.Write " <td rowspan=""2"" align=""center""><img src=""Images/NoRight.jpg""></td>"&VbCrLf
- Response.Write " </tr>"&VbCrLf
- end if
- rs.update
- rs.close
- set rs=Nothing
- %>
- <tr>
- <td height="20"> </td>
- </tr>
- </tbody>
- </table>
- </p>
- </td>
- <td width="26"> </td>
- </tr>
- <tr>
- <td> </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- <!--#include file="Foot.Asp"-->
- <%
- '调用显示节点------------------------------
- Function CallFolderView()
- %>
- <% Folder(0) %>
- <%
- End Function
- '列出所有节点------------------------------
- Function Folder(id)
- Dim rs,sql,i,ChildCount,FolderType,FolderName,onMouseUp,ListType,ViewFlag
- Set rs=server.CreateObject("adodb.recordset")
- sql="Select * From Wygkcnflash_ProductSort where ViewFlag"&Language&" and ParentID="&id&" order by id"
- rs.open sql,conn,1,1
- if id=0 and rs.recordcount=0 then
- response.write ("No Information!")
- response.end
- end if
- i=1
- response.write("<table border='0' cellspacing='0' cellpadding='0' style='margin-left:16px;'>")
- while not rs.eof
- ChildCount=conn.execute("select count(*) from Wygkcnflash_ProductSort where ParentID="&rs("id"))(0)
- if ChildCount=0 then
- if i=rs.recordcount then
- FolderType="SortFileEnd"
- else
- FolderType="SortFile"
- end if
- FolderName=rs("SortNameCh")&" "&ViewFlag
- onMouseUp=""
- else
- if i=rs.recordcount then
- FolderType="SortEndFolderOpen"
- ListType="SortEndListline"
- onMouseUp="EndSortChange('a"&rs("id")&"','b"&rs("id")&"');"
- else
- FolderType="SortFolderOpen"
- ListType="SortListline"
- onMouseUp="SortChange('a"&rs("id")&"','b"&rs("id")&"');"
- end if
- FolderName=rs("SortNameCh")&" "&ViewFlag
- end if
- response.write("<tr>")
- response.write("<td nowrap id='b"&rs("id")&"' class='"&FolderType&"' onMouseUp="&onMouseUp&"></td><td nowrap><a href=""ProductList.asp?SortID="&rs("ID")&""">"&FolderName&"</a> ")
- response.write("</td></tr>")
- if ChildCount>0 then
- %>
- <tr id="a<%= rs("id")%>" style="display:none"><td class="<%= ListType%>" nowrap></td><td ><% Folder(rs("id")) %></td></tr>
- <%
- end if
- rs.movenext
- i=i+1
- wend
- response.write("</table>")
- rs.close
- set rs=nothing
- end function
- function WebLocation()
- WebLocation=" 当前位置:<a href=""index.asp"" class=""agray"">首页</a> - <a href=""ProductList.asp"" class=""agray"">产品中心</a>"&VbCrLf
- if request.QueryString("ID")="" then
- WebLocation=WebLocation
- elseif not IsNumeric(request.QueryString("ID")) then
- WebLocation=WebLocation&"读取错误"
- elseif conn.execute("select * from Wygkcnflash_Products Where ViewFlag"&Language&" and ID="&request.QueryString("ID")).eof then
- WebLocation=WebLocation&"读取错误"
- else
- dim rs,sql
- set rs = server.createobject("adodb.recordset")
- sql="select * from Wygkcnflash_Products where ViewFlag"&Language&" and ID="&request.QueryString("ID")
- rs.open sql,conn,1,1
- WebLocation=WebLocation&SortPathTXT("Wygkcnflash_ProductSort",rs("SortID"))
- rs.close
- set rs=nothing
- end if
- end Function
- function SortPathTXT(DataFrom,ID)
- dim rs,sql
- Set rs=server.CreateObject("adodb.recordset")
- sql="Select * From "&DataFrom&" where ViewFlag"&Language&" and ID="&ID
- rs.open sql,conn,1,1
- if not rs.eof Then
- If ISHTML = 1 Then
- AutoLink = ""&ProSortName&""&Separated&""&rs("ID")&""&Separated&"1."&HTMLName&""
- Else
- AutoLink = "ProductList.asp?SortID="&rs("ID")&""
- End If
- SortPathTXT=SortPathTXT(DataFrom,rs("ParentID"))&" - <a href="""&AutoLink&"""><span style=""color:#EC0000"">"&rs("SortName"&Language)&"</span></a>"
- end if
- rs.close
- set rs=nothing
- end Function
- %>