<!--#include file="../include/hf_conn.asp"-->
<!--#include file="checkadmin.asp"-->
<%call checkmanage("01")%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="manage.css" type="text/css">
</head>

<BODY background="../images/admin/back.gif">

<%
id=trim(request("id"))
if  id="" then Response.Redirect("help.asp")
body="body"&id
title="title"&id

'保存修改结果
if request("edit")="ok" then
	set rs=server.createobject("adodb.recordset")
	sql = "select * from page"
	rs.open sql,conn,1,3
		rs(body)=request.form("pageedit")
		rs.update
	rs.close

	if id=99 then     '网页扩展
	response.write "<script language='javascript'>"
	response.write "alert('操作成功，您编辑的 网页扩展 内容已保存！');"
	response.write "location.href='helpedit.asp?id=99';"			
	response.write "</script>"
	response.end
	elseif id=98 then     '导航工具条
	response.write "<script language='javascript'>"
	response.write "alert('操作成功，您编辑的 导航工具条 内容已保存！');"
	response.write "location.href='helpedit.asp?id=98';"			
	response.write "</script>"
	response.end
	else
	response.write "<script language='javascript'>"
	response.write "alert('操作成功，您编辑的内容已保存！');"
	response.write "location.href='help.asp';"	
	response.write "</script>"
	response.end
	end if
else
'显示内容
	set rs = server.createobject("adodb.recordset")
	sql = "select * from page"
	rs.open sql,conn,1,1

%>
<table width="98%" border="1"  style="border-collapse: collapse; border-style: dotted; border-width: 0px"  bordercolor="#333333" cellspacing="0" cellpadding="2">
<tr class=backs><td  class=td height=18>编辑“<%=rs(Title)%>”的内容：</td></tr>
	<form name=page method="post" action="helpedit.asp?ID=<%=id%>">
	 <TR><TD>
	<textarea name="pageedit"  style="display:none"><%=Server.HTMLEncode(rs(body))%></textarea>
	<iframe ID="edit8" src="../webedit/ewebeditor.asp?id=pageedit&style=putong" frameborder="0" scrolling="no"
	    width="98%" HEIGHT="450"></iframe> 
</TD></TR>
<TR><TD><INPUT TYPE="hidden" name=edit value=ok><input type="submit" name="submit" value="保存设置"></TD></TR>

</form>
</TABLE>
<%
rs.close
set rs=nothing
end if
%>

</body>
</html>
