📄 productview.asp
字号:
<!--#include file="Head.asp"-->
<div align="center">
<table width="868" border="0" cellspacing="0" cellpadding="0" class="Outside">
<tr>
<td width="200" height="300" valign="top" bgcolor="#F2F2F2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="200"><img src="Images/Pro_menu_title.gif" width="200" height="40"></td>
</tr>
<tr>
<td bgcolor="#F2F2F2"> </td>
</tr>
<tr>
<td align="center" bgcolor="#F2F2F2"></td>
</tr>
<tr>
<td align="center" bgcolor="#F2F2F2"><% =WebMenu("suqun_Productsort",0)%></td>
</tr>
<tr>
<td height="30" bgcolor="#F2F2F2"> </td>
</tr>
<tr>
<td><img src="Images/Search_title.gif" width="200" height="14"></td>
</tr>
<tr>
<td bgcolor="#F2F2F2"> </td>
</tr>
<tr>
<td align="center" bgcolor="#F2F2F2"><%=SearchForm()%></td>
</tr>
<tr>
<td bgcolor="#F2F2F2"> </td>
</tr>
<td bgcolor="#DEDEDE"><img src="Images/Index_Left_Quick.gif" alt="快速查看" width="190" height="30" /></td>
</tr>
<tr>
<td height="88" align="center"><table width="100" border="0" cellspacing="0" cellpadding="0" class="Index-Left-Bot1">
<tr>
<td width="24" height="21"><img src="Images/Arrow_03.gif" alt="信息检索" width="13" height="13" /></td>
<td width="76" height="21"><a href="CommendProduct.asp">推 荐 产 品</a></td>
</tr>
<tr>
<td height="21"><img src="Images/Arrow_03.gif" alt="信息检索" width="13" height="13" /></td>
<td height="21"><a href="HotProduct.asp">热 门 产 品</a></td>
</tr>
<tr>
<td height="21"><img src="Images/Arrow_03.gif" alt="信息检索" width="13" height="13" /></td>
<td height="21"><a href="NewProduct.asp">新 出 产 品</a></td>
</tr>
</table></td>
</tr>
<tr>
</table></td>
<td width="4"></td>
<td valign="top" class="AllCenter"><table width="664" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="30" height="32" align="center" bgcolor="#F4F4F4"><img src="Images/Arrow_01.gif" width="14" height="11"></td>
<td bgcolor="#F4F4F4" class="Location"><a href="../index.asp">首页</a><img src="Images/Arrow_02.gif" width="13" height="12" align="absmiddle"><a href='ProductList.asp'>产品展示</a><% if not request.QueryString("SortID")="" then WebLocation(request.QueryString("SortID")) %></td>
<td width="30" bgcolor="#F4F4F4" class="Location"> </td>
</tr>
<tr>
<td height="4" bgcolor="#FFFFFF"></td>
<td height="4" bgcolor="#FFFFFF"></td>
<td height="4" bgcolor="#FFFFFF"></td>
</tr>
</table>
<table width="664" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="30" height="12"></td>
<td></td>
<td width="30"></td>
</tr>
<tr>
<td> </td>
<td><%=WebContent()%></td>
<td> </td>
</tr>
<tr>
<td height="30"></td>
<td></td>
<td></td>
</tr>
</table></td>
</tr>
</table>
</div>
<%
Function WebMenu(DataFrom,ID)
Dim rs,sql
Set rs=server.CreateObject("adodb.recordset")
sql="Select * From "&DataFrom&" where ParentID="&id&" and ViewFlag"&LangData&" order by id"
rs.open sql,conn,1,1
response.write("<table width='160' border='0' cellspacing='0' cellpadding='0'>")
if id=0 and rs.bof and rs.eof then
response.write "<tr><td align='center'>暂无相关信息</td></tr>"
else
while not rs.eof
response.write "<tr class='WebMenu'><td width='24'><img src='Images/Arrow_03.gif' width='13' height='13'></td>"
response.write "<td><a href='ProductList.asp?SortID="&rs("ID")&"&SortPath="&rs("SortPath")&"'>"&rs("SortName"&LangData)&"</a></td></tr>"
rs.movenext
wend
end if
response.write("</table>")
rs.close
set rs=nothing
end function
Function WebLocation(ID)
Dim rs,sql,LocationText
Set rs=server.CreateObject("adodb.recordset")
sql="Select * From suqun_Productsort where ViewFlag"&LangData&" and ID="&ID
rs.open sql,conn,1,1
if rs.bof and rs.eof then
response.write "<img src='Images/Arrow_02.gif' align='absmiddle'>"&"错误"
exit function
end if
LocationText="<img src='Images/Arrow_02.gif' align='absmiddle'><a href='ProductList.asp?SortID="&rs("ID")&"&SortPath="&rs("SortPath")&"'>"&rs("SortName"&LangData)&"</a>"
if rs("ParentID")<>0 then WebLocation rs("ParentID")
response.write LocationText
End Function
function WebContent()
dim ID
ID=request.QueryString("ID")
if ID="" or (not isnumeric(ID)) then
response.write "<div align='center'>数据读取异常错误</div>"
exit function
end if
dim rs,sql
set rs = server.createobject("adodb.recordset")
sql="select * from suqun_Products where ViewFlag"&LangData&" and ID="&ID
rs.open sql,conn,1,3
response.write"<table width='100%' border='0' cellspacing='0' cellpadding='0'>"
if rs.bof and rs.eof then
response.write "<tr><td>暂无相关信息</td></tr>"
else
if ViewNoRight(rs("GroupID"),rs("Exclusive")) then
dim BigPicPath
BigPicPath=HtmlSmallPic(rs("GroupID"),rs("BigPic"),rs("Exclusive"))
response.write "<tr><td width='424' height='20' valign='top'><font color='#FF3300'>名称:"&rs("ProductName"&LangData)&"</font></td><td align='center' rowspan='7' width='180' height='180' bgcolor='#FFFFFF'><a href='"&BigPicPath&"' target='_blank'><img src='"&BigPicPath&"' border='0' width='180' height='180' onload='javascript:DrawImage(this,180,180);'></a></td></tr>"
response.write "<tr><td valign='top'>编号:"&rs("ProductNo")&"</td></tr>"
response.write "<tr><td valign='top'>型号:"&rs("ProductModel")&"</td></tr>"
response.write "<tr><td valign='top'>价格:"&rs("Price"&LangData)&"</td></tr>"
response.write "<tr><td valign='top'>厂商:"&rs("Maker"&LangData)&"</td></tr>"
response.write "<tr><td valign='top'>时间:"&rs("AddTime")&"</td></tr>"
response.write "<tr><td valign='top'>购买:<a href='ProductBuy.asp?ProductNo="&rs("ProductNo")&"&ProductName="&server.urlencode(rs("ProductName"&LangData))&"'><img src='Images/Button_buy_01.gif' border='0' align='absmiddle'></a></td></tr>"
response.write "<tr><td colspan='2' height='6'></td></tr>"
response.write "<tr><td height='22' bgcolor='#EEEEEE'><img src='Images/Pro_information_title.gif'></td>"
response.write "<td bgcolor='#EEEEEE' align='center'><a href='"&BigPicPath&"' target='_blank'><img src='Images/Pro_zoom_01.gif' border='0'></a></td></tr>"
response.write "<tr><td colspan='2' height='12'></td></tr>"
response.write "<tr><td colspan='2' width='604'>"&rs("Content"&LangData)&"</td></tr>"
else
response.write "<tr><td colspan='2'><hr width='100%' size='1' noshade='noshade' color='#FF0000'></td></tr>"
response.write "<tr><td width='424'>名称:<font style='font-weight: bold;color: #1874CD'>"&rs("ProductName"&LangData)&"</font></td><td width='180'>时间:"&rs("AddTime")&"</td></tr>"
response.write "<tr><td colspan='2'><hr width='100%' size='1' noshade='noshade' color='#FF0000'><div align='center'><img src='Images/NoRight.jpg'></div></td></tr>"
end if
response.write "<tr><td class='ListTitle' colspan='2'></td></tr>"
response.write "<tr><td>点击次数:"&rs("ClickNumber")&"</td>"
response.write "<td align='right'><a href='#TOP'><img src='Images/Button_top_01.gif' align='absbottom' border='0'></a></td></tr>"
rs("ClickNumber")=rs("ClickNumber")+1
rs.update
end if
response.write"</table>"
rs.close
set rs=nothing
end function
%>
<!--#include file="Foot.asp"-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -