<!--#include file="sd_mdb.asp"-->
<%
if session("User")="" then
	response.write"<SCRIPT language=JavaScript>alert('您尚未登录！');"
	response.write"location.href=""sd_admin_login.asp"";</SCRIPT>"
end if
%>
<%if request("ok")=2 then
id=request("id")
if id="" then
response.write "参数丢失!"
Response.End
end if
set r=server.CreateObject("ADODB.RECORDSET")
sql="select * from [sd_book] where id="&id
r.open sql,conn,1,3
if request("sd_xm")<>"" then
r("sd_xm")=request("sd_xm")
end if
if request("sd_qq")<>"" then
r("sd_qq")=request("sd_qq")
end if
if request("sd_log")<>"" then
r("sd_log")=request("sd_log")
end if
if request("sd_reply")<>"" then
r("sd_reply")=request("sd_reply")
end if
r("sd_shenhe")=request("sd_shenhe")
r("sd_click")=1
r.update
r.close
set r=nothing
response.write "<script>alert('商道提示：修改成功');window.location.href='sd_listbook.asp';</script>"
response.end
end if%>
<HTML>
<HEAD>
<TITLE>雨过天晴工作室 www.adminchn.com</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"> 
<LINK href="images/Admin_css.css" type=text/css rel=stylesheet>
</HEAD>
<BODY>
<form action="?ok=2" method="post" name="shangdao">
<%
set r=server.createobject("adodb.recordset")
r.open "select * from sd_book where id="&request("id"),conn,1,3
if not r.eof then
%>
<table height="1" border="0" cellpadding="3"  cellspacing="1" bgcolor="#F2F9E8" class="admintable1">
  <tr>
    <td colspan="2" class="admintitle">修改留言信息</td>
  </tr>
  <tr>
    <td width="20%" height="30" align="right" bgcolor="#FFFFFF">留言时间：</td>
    <td width="80%" bgcolor="#FFFFFF"><%=r("sd_time")%></td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#FFFFFF">留言者昵称：</td>
    <td bgcolor="#FFFFFF"><input name="sd_xm" size="35" value="<%=r("sd_xm")%>"></td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#FFFFFF">留言者QQ：</td>
    <td bgcolor="#FFFFFF"><input name="sd_qq" size="35" value="<%=r("sd_qq")%>"></td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#FFFFFF">留言内容：</td>
    <td bgcolor="#FFFFFF"><textarea name="sd_log" cols="80" rows="5"><%=r("sd_log")%></textarea></td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#FFFFFF">回复内容：</td>
    <td bgcolor="#FFFFFF"><textarea name="sd_reply" cols="80" rows="5"><%=r("sd_reply")%></textarea></td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#FFFFFF">审核状态：</td>
    <td bgcolor="#FFFFFF"><input name="sd_shenhe" type="radio" value="1" <%if r("sd_shenhe")=1 then%>checked="checked"<%end if%> >已审核　<input name="sd_shenhe" type="radio" value="0" <%if r("sd_shenhe")=0 then%>checked="checked"<%end if%> >未审核</td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#FFFFFF"></td>
    <td bgcolor="#FFFFFF"><input name="id" value="<%=r("id")%>" type="hidden"><input name="sd_click" value="1" type="hidden"><input type="submit" value="确认回复"></td>
  </tr>
</table>
<%
end if
r.close
set r=nothing
%>
</form>
<!--#include file="sd_copy.asp"-->
</BODY>
</HTML>