📄 review.asp
字号:
<!--#include file="../film_conn.asp"-->
<!--#include file="session.asp"-->
<!--#include file="../set_url.asp"-->
<!-- #include file="../film_conn_view.asp" -->
<%
sql="select * from film_review order by id desc"
set rsf=server.createObject("ADODB.recordset")
rsf.open sql,connr,1,1
if not rsf.eof then
rsf.PageSize = 20
Page = CLng(Request("Page"))
If Page < 1 Then Page = 1
If Page > rsf.PageCount Then Page = rsf.PageCount%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="css/style.css">
<title>会员评论</title>
<script language="javascript">
<!--
function winopen(url)
{
window.open(url,"search","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=yes,width=580,height=450,top=1,left=1");
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
</head>
<body>
<div align="center">
<center>
<table border="1" cellpadding="0" cellspacing="0" width="100%" bgcolor="#DFF5F7">
<tr>
<SPAN
id=EntirePage>
<td width="100%" bordercolorlight="#C0C0C0" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" height="20">
<p align="right">共有<FONT COLOR="#cc0000"><%=rsf.RecordCount%></FONT>条评论 当前第<%=Page%>页/共<%=rsf.PageCount%>页
<%
If Page <> 1 Then
Response.Write " <font style=font-size:10pt><A HREF=review.asp?Page=1>[首页]</A></font>"
Response.Write "<font style=font-size:10pt><A HREF=review.asp?Page=" & (Page-1) & ">[上页]</A></font>"
End If
If Page <> rsf.PageCount Then
Response.Write "<font style=font-size:10pt><A HREF=review.asp?Page=" & (Page+1) & ">[下页]</A></font>"
Response.Write "<font style=font-size:10pt><A HREF=review.asp?Page=" & rsf.PageCount & ">[末页]</A></font>"
End If
%></p>
</td>
</span>
</tr>
<tr>
<SPAN
id=EntirePage>
<td width="100%" bordercolorlight="#C0C0C0" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" height="20">
<div align="center">
<table border="1" cellpadding="0" cellspacing="0" width="100%" bgcolor="#F9FBEA">
<tr>
<td width="95%" align="center" bordercolorlight="#C0C0C0" bordercolordark="#FFFFFF" height="20"> </td>
</tr>
<%j=0
rsf.AbsolutePage = Page
For iPage = 1 To rsf.PageSize
if int(j/2)*2=j then%> <tr>
<td width="95%" bordercolorlight="#C0C0C0" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" height="25"><p style="line-height: 150%">帐号:<a href="javascript:winopen('user_edit.asp?userid=<%=rsf("user_id")%>')"><%=rsf("user_id")%></a> 笔名:<%=rsf("penname")%> 评分:<%if rsf("vote")=1 then%>☆<%elseif rsf("vote")=2 then%>☆☆<%elseif rsf("vote")=3 then%>☆☆☆<%elseif rsf("vote")=4 then%>☆☆☆☆<%elseif rsf("vote")=5 then%>☆☆☆☆☆<%else%>未评分<%end if%> IP地址:<%=rsf("ip")%> <%=rsf("addtime")%> <a href=review_del.asp?id=<%=rsf("id")%>>删除</a><br>
评论电影:<a href=/view.asp?id=<%=rsf("fid")%> target=_blank><%=rsf("film_name")%></a><br>
内容:<%=rsf("review_text")%></p></td>
</tr><%else%>
<tr>
<td width="95%" bordercolorlight="#C0C0C0" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" height="25"><p style="line-height: 150%">帐号:<a href="javascript:winopen('user_edit.asp?userid=<%=rsf("user_id")%>')"><%=rsf("user_id")%></a> 笔名:<%=rsf("penname")%> 评分:<%if rsf("vote")=1 then%>☆<%elseif rsf("vote")=2 then%>☆☆<%elseif rsf("vote")=3 then%>☆☆☆<%elseif rsf("vote")=4 then%>☆☆☆☆<%elseif rsf("vote")=5 then%>☆☆☆☆☆<%else%>未评分<%end if%> IP地址:<%=rsf("ip")%> <%=rsf("addtime")%> <a href=review_del.asp?id=<%=rsf("id")%>>删除</a><br>
评论电影:<a href=/view.asp?id=<%=rsf("fid")%> target=_blank><%=rsf("film_name")%></a><br>
内容:<%=rsf("review_text")%></p></td>
</tr> <%end if
rsf.MoveNext
j=j+1
If rsf.EOF Then Exit For
Next%>
</table>
</div>
</td>
</span>
</tr>
</table>
</center>
</div>
<%end if
rsf.close
set rsf=nothing
connr.close
set connr=nothing '-------评论结束%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -