<!--#include file="0.asp"--><!--#include file="../../conn/zkconn.asp"-->
<%if request("x")="yes" then
set rs = conn.execute("select id from user_name where name='"&session("www.loogoo.com")&"'")
userid=rs("id")
rs.close
set rs = conn.execute("select userid from user_guestbook where id="&Request("id")&"")
userid2=rs("userid")
rs.close
set rs=nothing
if userid=userid2 then
conn.execute("Update user_guestbook set hf='"&request("hf")&"' where id="&Request("id")&"")
Response.write "<script>alert(""回复成功"");window.close();window.opener.location.reload();</script>"
else
Response.write "<script>alert(""对不起，你不能修改该条信息。"");window.close();window.opener.location.reload();</script>"
end if
end if
%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>留言本</title>
<link href="../../css/css.css" rel="stylesheet" type="text/css">
</head>

<body>
<table width="350" height="200">
  <form name="form" method="post" action=?x=yes><tr>
    <td height="40" valign="middle">&nbsp;<font color="#FF3333" class="b2"><strong> &gt;&gt;留言回复</strong></font></td>
  </tr>
  <tr>
    <td align="center" valign="middle"><textarea name="hf" cols="50" rows="8" class="wenbenkuang" id="hf"></textarea></td>
  </tr>
  <tr>
    <td height="40" align="center" valign="middle"> 
      <input name="Submit" type="submit" class="go-wenbenkuang" value="提交">
      <input name="Submit" type="reset" class="go-wenbenkuang" value="重置">
      <input name="Submit" type="button" class="go-wenbenkuang" value="关闭窗口"onClick="javascript:self.close();">
        <input name="id" type="hidden" id="id" value="<%=request("id")%>"> </td>
  </tr></form>
</table>
</body>
</html>
