📄 listpl.asp
字号:
<!--
┌─9911.com.cn────────────┐
│ 动感购物 WWW.9911.com.cn 版权所有 │
│ 动感购物2005Vb 联系:web@snsn.net │
└───────────9911.com.cn──┘
-->
<!--#include file="conn.asp"-->
<!--#include file="webconfig.asp"-->
<!--#include file="fuction.asp"-->
<html>
<head>
<title><%=webname%>--商品信息</title>
<link rel="SHORTCUT ICON" href="/shortcut.ico">
<meta name="generator" content="snsn-shop">
<meta name=keywords content="<%=webgjz%>">
<meta name="description" content="<%=webmx%>">
<meta name="MSSmartTagsPreventParsing" content="TRUE">
<meta http-equiv="MSThemeCompatible" content="Yes">
<link href="/css.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!--#include file="webtop.asp"-->
<table width="940" align="center" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="6" colspan="3"></td>
</tr>
<tr>
<td width="17"><img src="/img/index_1.gif" width="15" height="16"></td>
<td valign="bottom">您现在的位置是:<a href="<%=weburl%>"><%=webname%></a> -> <span class="table-shangxia"><span class="fontglow"><span class="b14">商品评论 ->
<%set rs=server.createobject("adodb.recordset")
rs.open "select * from shop_snsn where shopid="&nosql(request("id"))&" order by shopname desc",conn,1,1
if rs.EOF or rs.bof then
response.write"<SCRIPT language=JavaScript>alert('对不起,该商品不存在!');"
response.write"javascript:history.go(-1)</SCRIPT>"
response.end
end if
%>
<%=trim(rs("shopname"))%></span></span></span></td>
<td valign="bottom">
</td>
</tr>
<tr>
<td height="6" colspan="3"></td>
</tr>
</table>
<table width="945" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top">
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="8"></td>
</tr>
</table>
<%set rs=server.createobject("adodb.recordset")
rs.open "select * from shop_pinglun where shopid="&nosql(request("id"))&" order by pinglunid desc",conn,1,1
if rs.EOF or rs.bof then
response.write"<SCRIPT language=JavaScript>alert('对不起,该商品不存在!');"
response.write"javascript:history.go(-1)</SCRIPT>"
response.end
end if
if rs.recordcount=0 then
%>
<table width="370" border="0" cellspacing="0" cellpadding="5" align="center">
<tr>
<td align=center>暂无评论</td>
</tr>
</table>
<%
else
rs.PageSize =10'每页记录条数
iCount=rs.RecordCount '记录总数
iPageSize=rs.PageSize
maxpage=rs.PageCount
page=request("page")
if Not IsNumeric(page) or page="" then
page=1
else
page=cint(page)
end if
if page<1 then
page=1
elseif page>maxpage then
page=maxpage
end if
rs.AbsolutePage=Page
if page=maxpage then
x=iCount-(maxpage-1)*iPageSize
else
x=iPageSize
end if
%>
<table width="100%" border="0" cellspacing="0" cellpadding="5" align="center">
<%
For i=1 To x
%>
<tr>
<td> <table width="98%" border="0" align="center" cellpadding="0" cellspacing="1">
<tr bgcolor="#FFFFFF">
<td width="5%" align="right"><div align="center"><img src="img/top2.gif" width="12" height="13"></div></td>
<td bgcolor="#FFFFFF"><strong>主题:<a href="javascript:;" onClick="javascript:window.open('pinglunll.asp?id=<%=rs("pinglunid")%>','pinglun','width=300,height=400,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=no');return false;" title="<%=trim(rs("pingluntitle"))%>"><%=trim(rs("pingluntitle"))%></a> 评级:<img src="img/pingji/<%=rs("pingji")%>.gif"> IP: <%=trim(rs("ip"))%></strong></td>
</tr><tr>
<td height="1" background="images/xian_001.gif"></td>
<td height="1" background="images/xian_001.gif"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="5%" height="22"> </td>
<td height="22" bgcolor="#FFFFFF"><b>作者:</b><%=trim(rs("pinglunname"))%> (<%=trim(rs("pinglundate"))%>)</td>
</tr><tr>
<td height="1" background="images/xian_001.gif"></td>
<td height="1" background="images/xian_001.gif"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="5%" height="22"> </td>
<td height="22"> <%=rs("pingluncontent")%>
</td>
</tr><tr>
<td height="1" background="/img/skin<%=cssid%>/x.gif"></td>
<td height="1" background="/img/skin<%=cssid%>/x.gif"></td>
</tr>
<%if trim(rs("huifu"))<>"" then%>
<tr bgcolor="#FFFFFF">
<td width="5%" height="22"> </td>
<td height="22" bgcolor="#FFFFFF"><b>管理员回复:</b><%=rs("huifu")%>
</td>
</tr><tr>
<td height="1" background="/img/skin<%=cssid%>/x.gif"></td>
<td height="1" background="/img/skin<%=cssid%>/x.gif"></td>
</tr>
<%end if%>
</table>
<br></td>
</tr>
<%
rs.movenext
next
%>
<tr>
<td align="center"> <input name="Submit2" type="reset" class="go-wenbenkuang" value="推荐给朋友" onClick="javascript:window.open('shangpintj.asp?id=<%=request("id")%>','pingluntj','width=325,height=200,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=no')">
<input name="Submit22" type="reset" class="go-wenbenkuang" value="发表评论" onClick="javascript:window.open('pinglun.asp?id=<%=request("id")%>','pinglun','width=295,height=325,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=no')">
</td>
</tr>
</table>
<%
call PageControl(iCount,maxpage,page,"border=0 align=center","<p align=center>")
end if
rs.close
set rs=nothing
Sub PageControl(iCount,pagecount,page,table_style,font_style)
'生成上一页下一页链接
Dim query, a, x, temp
action = "http://" & Request.ServerVariables("HTTP_HOST") & Request.ServerVariables("SCRIPT_NAME")
query = Split(Request.ServerVariables("QUERY_STRING"), "&")
For Each x In query
a = Split(x, "=")
If StrComp(a(0), "page", vbTextCompare) <> 0 Then
temp = temp & a(0) & "=" & a(1) & "&"
End If
Next
Response.Write("<table " & Table_style & ">" & vbCrLf )
Response.Write("<form method=get onsubmit=""document.location = '" & action & "?" & temp & "Page='+ this.page.value;return false;""><TR>" & vbCrLf )
Response.Write("<TD align=right>" & vbCrLf )
Response.Write(font_style & vbCrLf )
if page<=1 then
Response.Write ("首页 " & vbCrLf)
Response.Write ("上页 " & vbCrLf)
else
Response.Write("<A HREF=" & action & "?" & temp & "Page=1>首页</A> " & vbCrLf)
Response.Write("<A HREF=" & action & "?" & temp & "Page=" & (Page-1) & ">上页</A> " & vbCrLf)
end if
if page>=pagecount then
Response.Write ("下页 " & vbCrLf)
Response.Write ("尾页 " & vbCrLf)
else
Response.Write("<A HREF=" & action & "?" & temp & "Page=" & (Page+1) & ">下页</A> " & vbCrLf)
Response.Write("<A HREF=" & action & "?" & temp & "Page=" & pagecount & ">尾页</A> " & vbCrLf)
end if
Response.Write(" 页次:" & page & "/" & pageCount & "页" & vbCrLf)
Response.Write(" 共有" & iCount & "种商品" & vbCrLf)
Response.Write(" 转到 " & "<INPUT TYEP=TEXT NAME=page SIZE=1 class=wenbenkuang Maxlength=5 VALUE=" & page & ">" & " 页" & vbCrLf & "<input name=go type=image src=/img/butn_go.gif alt=GO align=absMiddle border=0>")
Response.Write("</TD>" & vbCrLf )
Response.Write("</TR></form>" & vbCrLf )
Response.Write("</table>" & vbCrLf )
End Sub
%> </td>
</tr>
</table></td>
</tr>
</table>
<!--#include file="copyright.asp"-->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -