<%dbdns="../../"%>
<!--#include file="../../inc/conn.asp"-->
<!--#include file="../cook.asp"-->
<%if fla10<>1 then
response.write "<script>alert('操作权限出错，您没有权限操作些功能');history.go(-1);</Script>"
Response.End 
end if%>
<%helptit=request("helptit")
help=request("help")
helpsort=request("helpsort")

page=request("page")
if page="" then page=1

if request("action")="add" then
set rs=Server.CreateObject("Adodb.Recordset")
sql="select * from dlxf_help"
rs.open sql,conn,1,3
rs.addnew
rs("dlxf_helptit")=helptit
rs("dlxf_helpsort")=helpsort
rs("dlxf_help")=help
rs.update
rs.close
set rs=nothing
response.redirect"help_add.asp"

elseif request("action")="edit" then
set rs=Server.CreateObject("Adodb.Recordset")
sql="select * from dlxf_help where dlxf_id="&request("id")
rs.open sql,conn,1,3
rs("dlxf_helptit")=helptit
rs("dlxf_helpsort")=helpsort
rs("dlxf_help")=help
rs.update
rs.close
set rs=nothing
Response.Redirect "help.asp?page="&page

end if%>