📄 reply.asp
字号:
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="head.asp" -->
<!--#include file="conn/conn.asp" -->
<%
if request("ID")<>"" then
session("ID")=request("ID")
end if
set rsreply=Server.CreateObject("ADODB.RecordSet")
sql_R="Select * from Topic where ID="&session("ID")
rsreply.open sql_R,conn,1,3
if request.Form("topicID")<>"" then
topicID=request.Form("topicID")
Author=request.Form("Author")
Oicq=request.Form("Oicq")
HomePage=request.Form("HomePage")
email=request.Form("email")
Face=request.Form("Face")
content=request.Form("content")
INS="Insert into Reply (TopicID,Author,Oicq,Email,HomePage,Face,Content) values("&TopicID&_
",'"&Author&"','"&Oicq&"','"&Email&"','"&HomePage&"','"&Face&"','"&Content&"')"
conn.execute(INS)
set backreply = Server.CreateObject("ADODB.Recordset")
sql_T= "SELECT * FROM Topic WHERE ID = "&Session("ID")&""
backreply.open sql_T,conn,1,3
UP_R= "UPDATE Topic SET reply=reply+1,replytime=now() WHERE ID = "&session("ID")&" "
conn.Execute(UP_R)
%>
<script language="javascript">
alert("您的回复文章已成功粘至论坛!");
window.location.href="browse.asp?ID=<%=backreply("ID") %>";
</script>
<%end if%>
<html>
<head>
<title>回复主题信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="style.css" rel="stylesheet">
<style type="text/css">
<!--
.style1 {
font-size: 24pt;
color: #0066CC;
}
-->
</style>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="770" height="89" border="0" align="center" cellpadding="-2" cellspacing="-2" background="images/banner/bbs_1.gif">
<tr>
<td background="images/mbg.gif"> <pre class="style1"> 欢迎登录小组论坛</pre></td>
</tr>
</table>
<table width="777" height="35" align="center" cellpadding="-2" cellspacing="-2">
<tr>
<td width="570" background="images/banner/bbs_2.gif"><table width="469" border="0" cellspacing="-2" cellpadding="-2" height="27">
<tr>
<td width="143"><font color="#666699">
<script language="JavaScript">
var today=new Date();
var month=today.getMonth()+1
if (today.getDay()==1)
{document.write(" "+today.getYear()+"年"+month+"月"+today.getDate()+"日 星期一");}
if (today.getDay()==2)
{document.write(" "+today.getYear()+"年"+month+"月"+today.getDate()+"日 星期二");}
if (today.getDay()==3)
{document.write(" "+today.getYear()+"年"+month+"月"+today.getDate()+"日 星期三");}
if (today.getDay()==4)
{document.write(" "+today.getYear()+"年"+month+"月"+today.getDate()+"日 星期四");}
if (today.getDay()==5)
{document.write(" "+today.getYear()+"年"+month+"月"+today.getDate()+"日 星期五");}
if (today.getDay()==6)
{document.write(" "+today.getYear()+"年"+month+"月"+today.getDate()+"日 星期六");}
if (today.getDay()==0)
{document.write(" "+today.getYear()+"年"+month+"月"+today.getDate()+"日 星期日");}
</script>
</font></td>
<td width="111"><font color="#666699">
<div id="bgclock"></div>
</font></td>
<td width="27" align="center" valign="top"><img src="images/Face/icon_smile.gif" width="15" height="15"></td>
<td height="27" valign="top" width="188"> <a href="./post.asp"><font size="2"></font></a> [ <%=session("UserName")%> ]
<script language="JavaScript">
var today=new Date()
if (today.getHours()>=7&&today.getHours()<13)
{document.write ("上午好!")}
else
{if (today.getHours()>=13 &&today.getHours()<18)
{document.write("下午好!")}
else
{document.write("晚上好!")}
}
</script>
</td>
</tr>
</table></td>
<td width="205"><img src="images/banner/bbs_3.gif" width="200" height="35" border="0" usemap="#Map" href="./newtopic.asp"></td>
</tr>
</table>
<map name="Map">
<area shape="rect" coords="56,7,155,26" href="newtopic.asp">
</map>
<script language="javascript">
function ValidateOrder(form)
{
if (form.author.value=="")
{alert("请输入您的姓名!");form.author.focus();return;}
if(form.email.value!=""){
if(form.email.value.indexOf('@',0)==-1||
form.email.value.indexOf('.',0)==-1)
{alert("您输入的E-mail地址无效!");form.email.focus();return;}
}
if (form.content.value=="")
{alert("请输入主题内容!");form.content.focus();return;}
form.submit();}
</script>
<table width="769" height="358" border="0" align="center" cellpadding="-2" cellspacing="-2">
<tr>
<td height="381" width="769" valign="top" align="right">
<table width="771" border="0" cellspacing="-2" cellpadding="-2" height="10">
<tr>
<td width="339" height="9"> </td>
<td width="432" height="9"> </td>
</tr>
</table>
<table width="634" align="center">
<tr>
<td width="150" height="313">
<div align="center"><img src="images/hfzt.gif" width="107" height="249">
</div> </td>
<td width="563" height="313">
<form ACTION="reply.asp" METHOD="POST" name="form1">
<table width="504" background="images/guestaddbg.gif" height="299" >
<tr>
<td colspan="5"> </td>
</tr>
<tr>
<td width="83" height="27">
<div align="right"><b><font color="#336699">原主题:</font></b></div>
</td>
<td colspan="4" height="27"><font color="#336699"><%=rsreply("Title")%></font>
<input type="hidden" name="topicID" value="<%=rsreply("ID")%>">
</td>
</tr>
<tr>
<td width="83" height="27">
<div align="right"><b><font color="#336699">昵称:</font></b></div>
</td>
<td width="196" height="27">
<input name="author" type="text" value="<%=session("UserName")%>" size="24" readonly="yes" maxlength="50">
<font color="#00CCFF">*</font> </td>
<td width="43" height="27">
<div align="center"><b><font color="#336699">OICQ:</font></b></div>
</td>
<td colspan="2" height="27" width="162">
<input type="text" name="oicq" size="13" maxlength="10">
</td>
</tr>
<tr>
<td width="83" height="27">
<div align="right"><b><font color="#336699">Email:</font></b></div>
</td>
<td height="27" width="196">
<input type="text" name="email" size="24" maxlength="50">
<input type="hidden" name="homepage" value="#">
</td>
<td height="27" width="43">
<div align="center"><b><font color="#336699">表情:</font></b></div>
</td>
<td colspan="2" height="27" width="162">
<select name="face">
<option value="00.gif">正常</option>
<option value="01.gif">微笑</option>
<option value="02.gif">愤慨</option>
<option value="03.gif">伤心</option>
<option value="04.gif">唱歌</option>
<option value="05.gif">大哭</option>
<option value="06.gif">OK!</option>
<option value="07.gif">惊喜</option>
<option value="08.gif">发火</option>
<option value="09.gif">害怕</option>
<option value="10.gif">不屑一顾</option>
<option value="11.gif">伤脑筋</option>
<option value="12.gif">气得说不出话</option>
</select>
</td>
</tr>
<tr>
<td width="83" height="57">
<div align="right"><b><font color="#336699">内容:</font></b></div>
</td>
<td colspan="4">
<textarea name="content" cols="47" rows="5"></textarea>
<font color="#336699"> <font color="#00CCFF">*</font> </font></td>
</tr>
<tr>
<td width="83" height="55">
<div align="center"></div> </td>
<td colspan="4" height="30">
<input type="button" name="Button" value="回复主题" style="background-color:RGB(252,252,252)" onClick="ValidateOrder(form1);">
<input type="reset" name="Submit2" value="清除重填" style="background-color:RGB(252,252,252)" >
<input type="button" name="Submit22"
style="background-color:RGB(252,252,252)" value="返回" onClick="JScript:history.back();"></td>
</tr>
<tr>
<td colspan="5" height="10"> </td>
</tr>
</table>
</form> </td>
</tr>
</table>
</td>
</tr>
</table>
<table width="777" border="0" align="center" cellpadding="-2" cellspacing="-2">
<tr>
<td height="41" background="images/BACK.GIF"> <div align="center">本站请用IE5.0或以上版本浏览,800*600为最佳效果 <br>
</div> </td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -