📄 special_view.asp
字号:
<!--#include file="film_conn.asp"-->
<!-- #include file="film_conn_view.asp" -->
<%if request("n")=1 then%>
<%
if request.cookies("userid")="" then errmsg=errmsg & "未注册用户不能发表评论!\n"
if trim(request("penname")) ="" then errmsg=errmsg & "昵称不能为空!\n"
if trim(request("review_text")) ="" then errmsg=errmsg & "评论内容不能为空!\n"
if errmsg<>"" then
response.write("<script>alert('" & errmsg & "');history.go(-1)</script>")
response.end
end if
penname=trim(request("penname"))
badwords1=""&bad_words&""
badwords1=split(badwords1,",")
for i = 0 to ubound(badwords1)
if instr(penname,badwords1(i))>0 then
penname=replace(penname,badwords1(i),"***")
end if
next
content=trim(request("review_text"))
badwords1=""&bad_words&""
badwords1=split(badwords1,",")
for i = 0 to ubound(badwords1)
if instr(content,badwords1(i))>0 then
content=replace(content,badwords1(i),"***")
end if
next
penname=penname
vote=cint(request("vote"))
review_text=content
fid=trim(request("id"))
user_id=request.cookies("userid")
film_name=trim(request("film_name"))
sql="select * from spec_review"
set rs=server.createObject("ADODB.recordset")
rs.open sql,connr,1,3
rs.addnew
rs("fid")=fid
rs("penname")=penname
rs("vote")=vote
rs("review_text")=review_text
rs("user_id")=user_id
rs("film_name")=film_name
rs("ip")=Request.ServerVariables("REMOTE_ADDR")
rs("addtime")=now()
rs.update
response.redirect "special_view.asp?id="&request("id")&""
rs.close
set rs=nothing
connr.close
end if
%>
<%
dim sql
dim rs
if trim(request("id"))="" then
response.write "<p align=center>对不起,ID号不能为空!</p>"
response.end
end if
if IsNumeric(trim(request("id")))=false then
response.write "<p align=center>对不起,ID号只能是数字!</p>"
response.end
end if
if len(trim(request("id")))>5 then
response.write "<p align=center>对不起,ID号长度不正确!</p>"
response.end
end if
id=request("id")
set rs=server.createobject("adodb.recordset")
sql="update special set hits=hits+1 where ID="&id
rs.open sql,conn,1,3
sql="select * from special where id="&id
rs.open sql,conn,1,1
if rs.eof then
response.write "错误,该影星专辑不存在!"
else
special=rs("special")
name=rs("name")
%>
<HTML><HEAD><TITLE><%=webname%> - 影星专辑 - <%=name%></TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<script language=javascript src=js/sendsms.js></script>
<script language=javascript src=js/login.js></script>
<script Language="JavaScript">
<!--
function check(theForm)
{
if (theForm.penname.value.length<2)
{
alert("对不起,笔名应在2个字符以上!");
theForm.penname.focus();
return (false);
}
if (theForm.penname.value.length>10)
{
alert("对不起,笔名应在10个字符以内!");
theForm.penname.focus();
return (false);
}
if (theForm.review_text.value.length<2)
{
alert("对不起,评论内容不能小于2个字符!");
theForm.review_text.focus();
return (false);
}
if (theForm.review_text.value.length>500)
{
alert("对不起,评论内容不能大于500个字符!");
theForm.review_text.focus();
return (false);
}
return true;
}
//-->
</script>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
<script>
function killErrors()
{
return true
}
window.onerror = killErrors
</script>
</HEAD>
<BODY bgColor=#71757b leftMargin=0 topMargin=0 rightMargin=0 marginheight="0" marginwidth="0" botmargin="0" oncontextmenu="window.event.returnValue=false" ondragstart="window.event.returnValue=false" onselectstart="event.returnValue=false">
<!--#include file="top.asp"-->
<TABLE cellSpacing=0 cellPadding=0 width=778 align=center background=images/bg-content.gif border=0 valign="top">
<TBODY>
<TR>
<TD width=778 height=1>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#111111 height=1
cellSpacing=0 cellPadding=0 width=778 align=left border=0 valign="top">
<TBODY>
<TR>
<TD width=13 height=1><IMG height=100 src="images/clear.gif"
width=13>
<TD width=753 height=1>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#111111
height=1 cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD width=752 background=images/clear0.gif height=1>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#111111
height="100%" cellSpacing=2 cellPadding=2 width="100%"
border=0>
<TBODY>
<TR>
<TD align=middle width="93%" valign="middle">
<iframe frameBorder="no" height="0" marginHeight="0" marginWidth="0" name="mq" scrolling="no" src="js/move.htm" width="0">
</iframe>
<iframe frameBorder="no" height="86" marginHeight="0" marginWidth="0" name="mq" scrolling="no" src="move.asp" width="100%">
</iframe></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD>
<TD width=12 height=1><IMG height=100 src="images/clear1.gif"
width=13> </TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD width=778 height=188>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#111111 cellSpacing=0
cellPadding=0 width=778 border=0>
<TBODY>
<TR>
<TD width=15 height=151> </TD>
<TD vAlign=top width=194 height=151><!--#include file="left.asp"--></TD>
<TD vAlign=top width=4></TD>
<TD vAlign=top width=550 height=151>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#111111
cellSpacing=5 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD vAlign=top width="100%" height=386>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#111111
height=519 cellSpacing=0 cellPadding=0 width="91%" border=0>
<TBODY>
<TR>
<TD vAlign=top width="100%" height=39><!--#include file="query.asp"--></TD></TR>
<TR>
<TD width="100%" height=5></TD></TR>
<TR>
<TD width="100%" height=8>
<TABLE style="BORDER-COLLAPSE: collapse"
borderColor=#111111 height=1 cellSpacing=0 cellPadding=0
width="100%" border=0>
<TBODY>
<tr>
<TD width="100%" height=30><DIV align=center><SPAN
style="LETTER-SPACING: 2pt"><STRONG><FONT
size=3><%=title%></FONT></STRONG></SPAN></DIV></TD>
</tr>
</TBODY></TABLE></TD></TR>
<TR>
<TD width="100%" height=5></TD></TR>
<TR>
<TD width="100%" height=3><IMG height=21
src="images/b.gif" width=538 border=0></TD></TR>
<TR>
<TD width="100%" background=images/b01.gif height=738 valign="top">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="99%" id="AutoNumber1" height="675">
<tr>
<TD vAlign=top width="100%" background=images/b01.gif height="272">
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#e3e3e3 height=75 cellSpacing=0 borderColorDark=#d6d6d6 cellPadding=0 width="99%" align=center borderColorLight=#e3e3e3 border=1>
<TBODY>
<TR bgColor=#666666>
<TD colSpan=2 height=21>
<TABLE cellSpacing=0 cellPadding=0 width="100%"
border=0>
<TBODY>
<TR>
<TD
style="BORDER-TOP: #ffffff 1px solid; BORDER-BOTTOM: #ffffff 1px solid"
width="97%" bgColor=#dddddd height=21><B><FONT
color=#666666> <%=special%></FONT></B> </TD>
</TR></TBODY></TABLE></TD></TR>
<TR>
<TD align=middle width=124 bgColor=#ffffff height=271
rowSpan=15>
<TABLE cellSpacing=1 cellPadding=0 width="50%"
align=center bgColor=#cccccc border=0>
<TBODY>
<TR>
<TD><DIV align=center><IMG
style="BORDER-RIGHT: #ffffff 3px solid; BORDER-TOP: #ffffff 3px solid; BORDER-LEFT: #ffffff 3px solid; BORDER-BOTTOM: #ffffff 3px solid"
height=245 src="<%if rs("pic")="" then%>IMAGES/nopic1.gif<%else%><%=rs("pic")%><%end if%>" width=168></DIV></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD style="BORDER-TOP: #ffffff 1px solid"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -