<!--#include file="conn.asp"-->
<!--#include file="webconfig.asp"-->
<%
bookid=request.QueryString("id")
set rs=server.CreateObject("adodb.recordset")
rs.Open "select * from shop_books where bookid="&bookid ,conn,1,3
rs("anclassid")=trim(request("anclassid"))
rs("Nclassid")=trim(request("Nclassid"))
rs("bookname")=trim(request("bookname"))
rs("info")=request.form("info")
rs("lastdate")=trim(request("lastdate"))
rs("zhuang")=trim(request("zhuang"))
Content=Request.Form("Content")

'将里面的链接换成本地链接
 aa="http://"&Request.ServerVariables("server_name")&Request.ServerVariables("path_info")
 aa= mid(aa,1,len(aa)-17)		'16=user/infoedit.asp
 'response.write aa
 'response.end 
content=replace(content,aa,"")
session("content")=content
rs("bookcontent")=content
rs("adddate")=now()
rs("liulancount")=0
rs.update
rs.close
set rs=nothing
session("content")=""
response.write "<script language=javascript>alert('添加成功！');window.location.href='gongqiu.asp';</script>"
response.End
%>