<!--#include file="conn.asp"-->
<!--#include file="ad_chk.asp"-->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href=inc/css.css rel=STYLESHEET type=text/css>
<body topmargin="5" leftmargin="5" rightmargin="5" bottommargin="5">
<%
if Request.Cookies("WrzcNet")("admin_class")<>0  then
response.write "你没有这个权限!"
response.end
end if
%>
<%
if request("action")="edit" then
if request("title")="" then
response.write "标题不能为空"
response.end
elseif request("nr")="" then
response.write "内容不能为空"
response.end
end if
title=request("title")
nr=request("nr")
set rs=server.createobject("adodb.recordset")
sql="select * from WrzcNet_book where id="&request.querystring("id")
rs.open sql,conn,1,3
rs("title")=title
rs("nr")=nr
ids=rs("typeid")

if seo_h1=1 then rs("h_title")=request("h_title")
if seo_h3=1 then rs("h_keyword")=request("h_keyword")
if seo_h5=1 then rs("h_d")=request("h_d")

rs.update
rs.close
set rs=nothing
call editok(editt,"ad_edit.asp?id="&request.querystring("id"),"ad_booktype.asp?id="&ids)
end if
set rs=server.createobject("adodb.recordset")
sql="select * from WrzcNet_book where id="&request.querystring("id")
rs.open sql,conn,1,1%>
<table border="0" cellpadding="5" cellspacing="0" class="st">
<form name="form" method="post" action="ad_edit.asp?action=edit&id=<%=request.querystring("id")%>">
<tr><td colspan="2" class="sa"><b>内容修改</b></td></tr>
<tr><td class="s0">标题：</td><td class="s0"><input type="text" name="title" size="50" value="<%=trim(rs("title"))%>"></td></tr>
<tr><td class="s1">优化：</td><td class="s1">
	 <%if seo_h1=1 then%>网页标题：<input type="text" name="h_title" size="50" class=input value="<%=rs("h_title")%>"><br><%end if%>
	 <%if seo_h3=1 then%>关 键 字：<input type="text" name="h_keyword" size="50" class=input value="<%=rs("h_keyword")%>"><br><%end if%>
	 <%if seo_h5=1 then%>网页描述：<input type="text" name="h_d" size="50" class=input value="<%=rs("h_d")%>"><%end if%>
</td></tr>
<tr><td class="s0">内容： </td><td class="s0"></td></tr>
<tr><td colspan="2" class="s1"><!--#include file="ad_in.asp"--></td></tr>
<tr><td colspan="2" align="center" class="s0"><input type="submit" value="提交信息" name="B1" class=input onClick="document.form.nr.value = document.getElementById('message').contentWindow.document.body.innerHTML;" >
<input name="nr" type="hidden" id="nr" value=""></td>
</tr></form></table>
<%rs.close
set rs=nothing
%><!--#include file="ad_bottom.asp"-->