<!--#include file = admin_conn.asp -->
<%
function HTMLEncode2(fString)
	fString = Replace(fString, CHR(13), "")
	fString = Replace(fString, CHR(10) & CHR(10), "</P><P>")
	fString = Replace(fString, CHR(10), "<BR>")
	HTMLEncode2 = fString
end function
%>
<%
if request("sitename")="" then
response.write "<script LANGUAGE='javascript'>alert('请输入网站名称！');history.go(-1);</script>"
response.End
end if
if request("siteurl")="" then
response.write "<script LANGUAGE='javascript'>alert('请输入网站网址！');history.go(-1);</script>"
response.End
end if
if request("adm_mail")="" then
response.write "<script LANGUAGE='javascript'>alert('请输入联系邮箱！');history.go(-1);</script>"
response.End
end if

set rs=server.CreateObject("adodb.recordset")
rs.open "select  * from  shopsetup ",conn,1,3
rs("sitename")=request("sitename")
rs("key")=request("key")
rs("des")=request("des")
rs("siteurl")=request("siteurl")
rs("adm_mail")=request("adm_mail")
rs("t1")=htmlencode2(trim(request("t1")))
rs("t11")=request("t11")
rs("t2")=request("t2")
rs("t22")=request("t22")
rs("t3")=request("t3")
rs("t33")=request("t33")
rs("t4")=request("t4")
rs("t44")=request("t44")
rs("t5")=request("t5")
rs("t55")=request("t55")
rs("t6")=request("t6")
rs("t66")=request("t66")
'rs("pei1")=request("pei1")
'rs("zhmc1")=request("zhmc1")
'rs("zh1")=request("zh1")
'rs("pei2")=request("pei2")
'rs("zhmc2")=request("zhmc2")
'rs("zh2")=request("zh2")
'rs("pei3")=request("pei3")
'rs("zhmc3")=request("zhmc3")
'rs("zh3")=request("zh3")
'rs("pei4")=request("pei4")
'rs("zhmc4")=request("zhmc4")
'rs("zh4")=request("zh4")
rs("adm_address")=request("adm_address")
rs("adm_post")=request("adm_post")
rs("adm_tel")=request("adm_tel")
rs("adm_fax")=request("adm_fax")
rs("adm_msn")=request("adm_msn")
rs("adm_qq")=request("adm_qq")
'rs("fei1")=request("fei1")
'rs("fei2")=request("fei2")
'rs("fei3")=request("fei3")
'rs("fei4")=request("fei4")
rs.update
rs.close
set rs=nothing
response.write "<script language='javascript'>"
response.write "alert('修改成功！');"
response.write "location.href='setup.asp';"			
response.write "</script>"
 %> 
