<!--#include file="../utf-8.asp" -->
<!--#include file="../js/Function.asp" -->
<!--#include file="../CheckAdmin.asp" -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<META NAME="copyright" CONTENT="Copyright 2010-2012 - yidacms.com" />
<META NAME="Author" CONTENT="世纪伟成  yidacms.com" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../js/admin.css" rel="stylesheet" type="text/css">
<title>管理员回复留言！</title>
	<script charset="utf-8" src="<%=webpath%>bianji/kindeditor.js"></script>
	<script charset="utf-8" src="<%=webpath%>bianji/lang/zh_CN.js"></script>
	<script charset="utf-8" src="<%=webpath%>bianji/plugins/code/prettify.js"></script>

	<script>
		KindEditor.ready(function(K) {
			var editor1 = K.create('textarea[name="content1"]', {

				uploadJson : '<%=webpath%>uploadclass/upfile_flash.asp',
				fileManagerJson : '<%=webpath%>uploadclass/file_manager_json.asp',
				allowFileManager : true,
				afterCreate : function() {
					var self = this;
					K.ctrl(document, 13, function() {
						self.sync();
						K('form[name=example]')[0].submit();
					});
					K.ctrl(self.edit.doc, 13, function() {
						self.sync();
						K('form[name=example]')[0].submit();
					});
				}
			});
			prettyPrint();
		});
	</script>
</head>
<body>
<%

		'版权：世纪伟成(http://yidacms.com)
		'本信息不会影响您网站的正常访问，无论免费用户或是收费用户请保留这里的信息.
		'如果您删除了这里的版权信息,将追究法律责任.
		yidacms_id = cint(Request("id"))

		
		if request("t")="replybook" Then 
		Dim rs,sql
		Set rs = Server.CreateObject("ADODB.Recordset")
		sql = "SELECT * FROM shuaiweb_book WHERE id= "&yidacms_id&""
		rs.open sql,dbok,1,3
			rs("bookreply")=trim(request.form("bookreply"))
		rs.update
		rs.close
		set rs=nothing
		response.write "<script language=javascript> alert('回复成功！');location.replace('admin_book.asp');</script>"
		End If
		
		set rs = server.createobject("adodb.recordset")
		sql="select * from shuaiweb_book WHERE id= "&yidacms_id&""
		rs.open sql,dbok,1,1
%>
		  <table width="98%" height="100%" border="0"cellpadding="10" cellspacing="0" bordercolor="#666666" style="border-collapse:collapse" align="center">
		  <form id="form1" name="form1" method="post" action="admin_replybook.asp?t=replybook&id=<%=rs ("id")%>">
			<tr>
			  <td width="570">留言标题：<u><%=rs ("booktitle")%></u></td>
                        </tr> 
                        <tr>
			  <td width="153">留言者姓名：<u><%=rs ("bookname")%></u></td>
			</tr>
			<tr>
			  <td>您给他的回复是：<br />
			  <textarea id="content1" name="bookreply" style="width:670px;height:300px;"></textarea></td>
			</tr>
			<tr>
			  <td><input type="submit" name="Submit" value="回复" class="inanniu"/>
			  <input type="reset" name="Submit2" value="重置" class="inanniu"/> <input type=button onclick="window.location.href('admin_book.asp')"value="返 回" class="inanniu"></td>
			  <td>&nbsp;</td>
			</tr>
			</form>
		</table>
</body>
</html>
