<!--#include file="../inc/config.asp"-->
<!--#include file="../inc/conn.asp"-->
<!-- #include file="inc/Session.asp" -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
-->
</style>
</head>

<body>
<%
dim id,act
id=Cint(request("id"))
act=request("act")
if act="add" then
	content=request("content")
	'conn.execute("insert into revert(content,moditime,reid) values('"&content&"',"&now&","&id&")")
	set rs=server.createobject("adodb.recordset")
  		rs.open "select top 1 * from revert where 1=0",conn,3,3
		rs.addnew
		rs("content")=content
		rs("moditime")=now
		rs("reid")=id
		rs.update
		rs.close
		set rs=nothing
	response.Write("回复成功!")
else
%>
<form name="form1" method="post" action="revert.asp?act=add">
  <table width="400" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td height="22" bgcolor="#FF9900"><div align="center" class="style1">回复建议</div></td>
    </tr>
    <tr>
      <td><div align="center">
        <textarea name="content" cols="40" rows="5" style="width:390px; "></textarea>
      </div></td>
    </tr>
    <tr>
      <td>
        <div align="center">
		<input type="hidden" name="id" value="<%=id%>">
<input type="submit" name="Submit" value="提交">&nbsp;       
<input type="reset" name="Submit2" value="重写">
        </div></td>
    </tr>
  </table>
</form>
<%
end if
%>
</body>
</html>
<%
call connclose()
%>

