<!--#include file="../../conn/conn.asp"-->
<!--#include file="../../inc/safe.asp"-->
<%
  Response.Buffer = true
  Response.ExpiresAbsolute=now()-1
  Response.Expires=0
  Response.CacheControl="no-cache"
%>
<%
if Not ChkPost then 
response.redirect ("../../login/chklogin.asp?login=4")
response.end
end if

if session("id")="" then
response.Redirect("../../login/login1.asp")
response.end
end if

id=session("id")

name1=Replace_Text(request.form("name"))
ch=Replace_Text(request.form("ch"))
email=Replace_Text(request.form("email"))
phonecountry=Replace_Text(request.form("phonecountry"))
phonearea=Replace_Text(request.form("phonearea"))
phonenumber=Replace_Text(request.form("phonenumber"))
phone=phonecountry&"&nbsp;"&phonearea&"&nbsp;"&phonenumber
faxcountry=Replace_Text(request.form("faxcountry"))
faxarea=Replace_Text(request.form("faxarea"))
faxnumber=Replace_Text(request.form("faxnumber"))
fax=faxcountry&"&nbsp;"&faxarea&"&nbsp;"&faxnumber
mobile=Replace_Text(request.form("mobile"))
post=Replace_Text(request.form("post"))
country=Replace_Text(request.form("country1"))
sf=Replace_Text(request.form("province"))
city=Replace_Text(request.form("city"))
address=Replace_Text(request.form("address"))
qymc=Replace_Text(request.form("qymc"))
zw=Replace_Text(request.form("zw"))
p_z_Z_productionService=Replace_Text(request.form("p_z_Z_productionService"))
categoryid=Replace_Text(request.form("categoryid"))
categoryidarray=split(categoryid,"，")
sortid=categoryidarray(0)
web=Replace_Text(request.form("web"))
isournotify=Replace_Text(request.form("isournotify"))
if isournotify="" then
isournotify=0
else
isournotify=1
end if
isothernotify=Replace_Text(request.form("isothernotify"))
if isothernotify="" then
isothernotify=0
else
isothernotify=1
end if
%>
<%
sql="select * from corporation where id<>"&id&" and (qymc='"&qymc&"' or email='"&email&"')" 
Set rs= Server.CreateObject("ADODB.Recordset") 
rs.open sql,conn,1,1
if not (rs.eof and rs.bof) then
response.write"<SCRIPT language=JavaScript>alert('您填写的公司名称或E-mail已存在，请返回重新填写！！');"
response.write"javascript:history.go(-1)</SCRIPT>"
response.end 
end if

set rs=server.CreateObject ("adodb.recordset")
sql="select * from corporation where id="&id&""
rs.open sql,conn,1,3

rs("name")=name1
rs("ch")=ch
rs("email")=email
rs("phone")=phone
rs("fax")=fax
rs("mobile")=mobile
rs("post")=post
rs("country")=country
rs("sf")=sf
rs("city")=city
rs("address")=address
rs("qymc")=qymc
rs("zw")=zw
rs("zycp")=p_z_Z_productionService
rs("sortid")=sortid
rs("web")=web
rs("isournotify")=isournotify
rs("isothernotify")=isothernotify
rs.update
'session("name")=rs("name")
'session("ch")=rs("ch")
'session("email")=rs("email")
'session("phone")=rs("phone")
'session("fax")=rs("fax")
'session("mobile")=rs("mobile")
'session("post")=rs("post")
'session("country")=rs("country")
'session("sf")=rs("sf")
'session("city")=rs("city")
'session("address")=rs("address")
'session("qymc")=rs("qymc")
'session("zw")=rs("zw")
'session("buykeywords")=rs("buykeywords")
'session("salekeywords")=rs("salekeywords")
'session("buykeywords")=rs("buykeywords")
'session("web")=rs("web")
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>操作成功</title>
<link href="../../images/css.css" rel="stylesheet" type="text/css">
<meta HTTP-EQUIV=refresh Content='1;url=modify_info.asp'>
</head>

<table border="0" cellspacing="0" width="100%" cellpadding="0" height="418" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td width="100%" height="418" valign="middle" align="center">
<b>恭喜您，公司介绍已经修改成功！<a href="modify_info.asp">返回</a></b></td>
</tr>
</table>
</body>
</html>
<%
rs.close
set rs=noting
conn.close
set conn=nothing
%>