<!--#include file=conn.asp-->

<!--#include file="../config.asp"-->
<%
dim rs,sql
if request("kqiqi")="saveweb" then
set rs=server.createobject("adodb.recordset")
sql = "select * from config"
rs.open sql,conn,1,3
rs("title")=HtmlEncode(trim(request("title")))
rs("web")=HtmlEncode(trim(request("web")))
rs("logo")=HtmlEncode(trim(request("logo")))
rs("city")=HtmlEncode(trim(request("city")))
rs("areas")=trim(request("areas"))
rs("area1")=HtmlEncode(trim(request("area1")))
rs("area2")=HtmlEncode(trim(request("area2")))
rs("area3")=HtmlEncode(trim(request("area3")))
rs("area4")=HtmlEncode(trim(request("area4")))
rs("area5")=HtmlEncode(trim(request("area5")))
rs("diqu")=HtmlEncode(trim(request("diqu")))
rs("diqu1")=trim(request("diqu1"))
rs("leixing")=HtmlEncode(trim(request("leixing")))
rs("guan")=trim(request("guan"))
rs("webgate")=trim(request("webgate"))
rs("userreg")=trim(request("userreg"))
rs("userlog")=trim(request("userlog"))
rs("tnum")=HtmlEncode(trim(request("tnum")))
rs("zinum")=HtmlEncode(trim(request("zinum")))
rs("jf")=HtmlEncode(trim(request("jf")))
rs("hb")=HtmlEncode(trim(request("hb")))
rs("jf_hb")=HtmlEncode(trim(request("jf_hb")))
rs("tui_y")=HtmlEncode(trim(request("tui_y")))
rs("a_y")=HtmlEncode(trim(request("a_y")))
rs("b_y")=HtmlEncode(trim(request("b_y")))
rs("s_y")=trim(request("s_y"))
rs("del_kqiqi")=trim(request("del_kqiqi"))
rs("qqa")=HtmlEncode(trim(request("qqa")))
rs("qqb")=HtmlEncode(trim(request("qqb")))
rs("qqc")=HtmlEncode(trim(request("qqc")))
rs("qqd")=HtmlEncode(trim(request("qqd")))
rs("msn")=HtmlEncode(trim(request("msn")))
rs("Tels")=HtmlEncode(trim(request("Tels")))
rs("emails")=HtmlEncode(trim(request("emails")))
rs("delpass")=HtmlEncode(trim(request("delpass")))
rs.update
rs.close
set rs=nothing
response.write "<script language=JavaScript>" & chr(13) & "alert('网站参数设置成功！')</script>"
response.write "<meta http-equiv=refresh content=""1;URL=?"">"
end if
if request("kqiqi")="savead" then
set rs=server.createobject("adodb.recordset")
sql = "select * from config"
rs.open sql,conn,1,3
	rs("adclass")=trim(request("adclass"))
    rs("adclass1")=HtmlEncodes(trim(request("adclass1")))
    rs("adclass2")=HtmlEncodes(trim(request("adclass2")))
    rs("adclass3")=HtmlEncodes(trim(request("adclass3")))
    rs("adclass4")=HtmlEncodes(trim(request("adclass4")))
    rs("adclass5")=HtmlEncodes(trim(request("adclass5")))
    rs("adclass6")=HtmlEncodes(trim(request("adclass6")))
    rs("adclass7")=HtmlEncodes(trim(request("adclass7")))
    rs("adclass8")=HtmlEncodes(trim(request("adclass8")))
    rs("ad1")=""&HtmlEncode(trim(request("ad1a")))&"|"&HtmlEncode(trim(request("ad1b")))&""
    rs("ad2")=""&HtmlEncode(trim(request("ad2a")))&"|"&HtmlEncode(trim(request("ad2b")))&""
    rs("ad3")=""&HtmlEncode(trim(request("ad3a")))&"|"&HtmlEncode(trim(request("ad3b")))&""
    rs("ad4")=""&HtmlEncode(trim(request("ad4a")))&"|"&HtmlEncode(trim(request("ad4b")))&""
    rs("ad5")=""&HtmlEncode(trim(request("ad5a")))&"|"&HtmlEncode(trim(request("ad5b")))&""
    rs("ad6")=""&HtmlEncode(trim(request("ad6a")))&"|"&HtmlEncode(trim(request("ad6b")))&""
    rs("ad7")=""&HtmlEncode(trim(request("ad7a")))&"|"&HtmlEncode(trim(request("ad7b")))&""
    rs("ad8")=""&HtmlEncode(trim(request("ad8a")))&"|"&HtmlEncode(trim(request("ad8b")))&""
    rs("ad9")=""&HtmlEncode(trim(request("ad9a")))&"|"&HtmlEncode(trim(request("ad9b")))&""
    rs("ad10")=""&HtmlEncode(trim(request("ad10a")))&"|"&HtmlEncode(trim(request("ad10b")))&""
    rs("ad11")=""&HtmlEncode(trim(request("ad11a")))&"|"&HtmlEncode(trim(request("ad11b")))&""

    rs("adm1")=""&HtmlEncode(trim(request("adm1a")))&"|"&HtmlEncode(trim(request("adm1b")))&""
    rs("adm2")=""&HtmlEncode(trim(request("adm2a")))&"|"&HtmlEncode(trim(request("adm2b")))&""
    rs("adm3")=""&HtmlEncode(trim(request("adm3a")))&"|"&HtmlEncode(trim(request("adm3b")))&""

    rs("adf1")=""&HtmlEncode(trim(request("adf1a")))&"|"&HtmlEncode(trim(request("adf1b")))&"|"&HtmlEncode(trim(request("adf1c")))&""
    rs("adf2")=""&HtmlEncode(trim(request("adf2a")))&"|"&HtmlEncode(trim(request("adf2b")))&"|"&HtmlEncode(trim(request("adf2c")))&""
    rs("adf3")=""&HtmlEncode(trim(request("adf3a")))&"|"&HtmlEncode(trim(request("adf3b")))&"|"&HtmlEncode(trim(request("adf3c")))&""
    rs("adf4")=""&HtmlEncode(trim(request("adf4a")))&"|"&HtmlEncode(trim(request("adf4b")))&"|"&HtmlEncode(trim(request("adf4c")))&""
    rs("adf5")=""&HtmlEncode(trim(request("adf5a")))&"|"&HtmlEncode(trim(request("adf5b")))&"|"&HtmlEncode(trim(request("adf5c")))&""
    rs("adf6")=""&HtmlEncode(trim(request("adf6a")))&"|"&HtmlEncode(trim(request("adf6b")))&"|"&HtmlEncode(trim(request("adf6c")))&""
   rs("adf7")=""&HtmlEncode(trim(request("adf7a")))&"|"&HtmlEncode(trim(request("adf7b")))&"|"&HtmlEncode(trim(request("adf7c")))&""
   rs("adf8")=""&HtmlEncode(trim(request("adf8a")))&"|"&HtmlEncode(trim(request("adf8b")))&"|"&HtmlEncode(trim(request("adf8c")))&""
   rs("adf9")=""&HtmlEncode(trim(request("adf9a")))&"|"&HtmlEncode(trim(request("adf9b")))&"|"&HtmlEncode(trim(request("adf9c")))&""
   rs("adf10")=""&HtmlEncode(trim(request("adf10a")))&"|"&HtmlEncode(trim(request("adf10b")))&"|"&HtmlEncode(trim(request("adf10c")))&""
   rs("adf11")=""&HtmlEncode(trim(request("adf11a")))&"|"&HtmlEncode(trim(request("adf11b")))&"|"&HtmlEncode(trim(request("adf11c")))&""
   rs("adf12")=""&HtmlEncode(trim(request("adf12a")))&"|"&HtmlEncode(trim(request("adf12b")))&"|"&HtmlEncode(trim(request("adf12c")))&""
   rs("adf13")=""&HtmlEncode(trim(request("adf13a")))&"|"&HtmlEncode(trim(request("adf13b")))&"|"&HtmlEncode(trim(request("adf13c")))&""
   rs("adf14")=""&HtmlEncode(trim(request("adf14a")))&"|"&HtmlEncode(trim(request("adf14b")))&"|"&HtmlEncode(trim(request("adf14c")))&""  

rs.update
rs.close
set rs=nothing
response.write "<script language=JavaScript>" & chr(13) & "alert('广告设置成功！')</script>"
response.write "<meta http-equiv=refresh content=""1;URL=?"">"
end if
if request("kqiqi")="savemail" then
set rs=server.createobject("adodb.recordset")
sql = "select * from config"
rs.open sql,conn,1,3

	rs("mailsys")=""&HtmlEncode(trim(request("mailsmtp")))&"|"&HtmlEncode(trim(request("mailform")))&"|"&HtmlEncode(trim(request("mailname")))&"|"&HtmlEncode(trim(request("mailpass")))&""
rs.update
rs.close
set rs=nothing
response.write "<script language=JavaScript>" & chr(13) & "alert('系统邮件设置成功！')</script>"
response.write "<meta http-equiv=refresh content=""1;URL=?"">"
end if
if request("kqiqi")="saveothers" then
set rs=server.createobject("adodb.recordset")
sql = "select * from config"
rs.open sql,conn,1,3

	rs("metades")=HtmlEncodes(trim(request("metades")))
    rs("metakey")=HtmlEncodes(trim(request("metakey")))
    rs("coryright")=HtmlEncodes(trim(request("coryright")))
    rs("kill")=HtmlEncodes(trim(request("kill")))
    rs("about")=HtmlEncodes(trim(request("about")))
    rs("keys")=HtmlEncodes(trim(request("keys")))
rs.update
rs.close
set rs=nothing
response.write "<script language=JavaScript>" & chr(13) & "alert('其它参数设置成功！')</script>"
response.write "<meta http-equiv=refresh content=""1;URL=?"">"
end if
%>