<!--#include file="ljconn.asp"-->
<%
lid=request("id")
sql="select * from gbook where id=cint('"&lid&"')"
set rs=server.createobject("adodb.recordset")
rs.open sql,connstr,1,1
if not rs.eof then
cname=request.form("cname")
chuifu=request.form("chuifu")
if cname<>"" then
sql="select * from gbook where id=cint('"&lid&"')"
set rs=server.createobject("adodb.recordset")
rs.open sql,connstr,3,2
rs("name")=cname
rs("huifu")=chuifu
rs.update
response.redirect "ly1.asp"
end if
end if
%>

<html>
<head>
<style type="text/css">
<!-- 
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>回复留言</title>
<link href="style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.STYLE1 {font-size: 12px}
-->
</style>
</head>

<body background="images/bg.gif">
  <form action="" method="post" name="postart">
    <table  width="100%">
  <tr> 
<td height="20" colspan="7" align="center" background="../img/admin_bg_1.gif"><span class="style1 STYLE1"><strong><font color="#ffffff">留言管理</font></strong></span></td>
</tr>
<tr><td bgcolor="#E8F1FF">
<table width="555" height="104" border="0" align="center" cellpadding="0" cellspacing="0">
   <tr>                                                          
      <td width="100%" align="right" valign="top" height="17">                                                          
        <p align="left" class="STYLE1">回复内容：      </td>                                                           
  </tr>                                                           
  <tr>                                                           
      <td width="100%" align="right" valign="top" height="1">                                                           
        <p align="left">
        <input type="hidden" name="cname" size="10" value="<%=rs("name")%>">
        <textarea name="chuifu" cols="65" rows="8" class="input"><%=rs("huifu")%></textarea>                                                                             
      </td>                                                                             
  </tr>                                                                             
                                                                                 
    <tr>                                                                             
      <td width="100%" align="right" height="30">                                                                             
        <p align="left"><input name="submit" type="submit" class="input" value="提交"> 
        <input name="reset" type="reset" class="input" value="取消">                                                                              
        <input name="back" type="button" class="input" onClick="javascript:history.back()" value="返回"></td>                                                                                
    </tr>                                                                                                                                        
  </table>
</td></tr>
  </table>
  </form>                          
                          
</body>                          
                          
</html>                          
