📄 huifu.asp
字号:
<!--#include virtual="manage/include/conn.asp"-->
<%
id=request("id")
if request.ServerVariables("CONTENT_LENGTH")>0 then
content=trim(request("content"))
if len(content)=0 then
%>
<script language="javascript">
alert("请填写留言内容!");
window.history.back();
</script>
<%
response.End()
end if
content=replace(content,chr(13),"<br>")
content=replace(content," "," ")
author=trim(request("author"))
postdate=now()
sql="insert into tb_BBS (content,author,postdate,upid) values ('"&content&"','"&author&"','"&postdate&"',"&id&")"
set rs=conn.execute(sql)
sql1="update tb_BBS set backcount=backcount+1 where id="&id
conn.execute(sql1)
response.write "<center><br><h3>回复信息成功!</h3></center>"
%>
<script language="javascript">
opener.location.reload();
setTimeout("window.close();",800);
</script>
<%else%>
<style type="text/css">
<!--
.style1 {
color: #2A1FAA;
font-weight: bold;
}
-->
</style>
<title>回复留言</title><body leftmargin="0" topmargin="0">
<link rel="stylesheet" href="manage/include/style.css" type="text/css">
<script language="javascript">
function achkfields(){
if(document.form1.author.value==''){
alert("请输入您的昵称!");
form1.author.focus();
return false;
}
if (document.form1.content.value==''){
alert("请输入您的内容!");
form1.content.focus();
return false;
}
return true;
}
</script>
<table border="0" width="100%">
<tr>
<td bgcolor="#D0F0FF" height="40" align="center"><span class="style1"><font size="4">回复该留言</font></span></td>
</tr>
<tr>
<td align="center">
<form action="<%=request.ServerVariables("PATH_INFO")%>" method="post" name="form1" onSubmit="return achkfields();">
<table border="0" width="98%">
<tr>
<td width="16%"><div align="right">昵称:</div></td><td width="84%"><input type="text" name="author" size="10" maxlength="10" style="border:1px solid;border-color:000000"></td>
</tr>
<tr>
<td valign="top"><div align="right">回复内容:</div></td><td><textarea cols="50" rows="6" name="content"></textarea></td>
</tr>
<tr>
<td colspan="2">
<input type="hidden" name="id" value="<%=request.QueryString("id")%>">
<input type="submit" name="b1" value="提 交" style="border:1px solid;border-color:#33CCFF;background-color:#FFFFFF"> <input type="reset" name="b2" value="取 消"
style="border:1px solid;border-color:#33CCFF;background-color:#FFFFFF" onClick="window.close();">
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<%end if%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -