<% data_path="../../" 'ACC连接数据库路径，对SQL无效 %>
<!--#include file="../../conn/conn.asp"-->
<!--#include file="../../inc/safe.asp"-->
  <!--#include file="../checkrole.asp"-->

 <%
postid=request.form("postid")
postname=request.form("postname")
project=request.form("project")
englishname=request.form("englishname")
postxx=request.form("postxx")
type_class1=request.form("p_z_Z_RootCategory")
CategoryId=split(Replace_Text(request("p_z_Z_CategoryId1")),",")
post_info=request.form("post_info")
condition=request.form("condition")
linkman=request.form("linkman")
company=request.form("company")
country=request.form("country1")
province=request.form("province")
city=request.form("city")
phone=request.form("phone")
code=request.form("code")
email=request.form("email")
fax=request.form("fax")
web=request.form("homepage")
address=request.form("address")
mobile=request.form("mobile")
drawalt=request.form("draw")
drawalt1=request.form("draw1")
drawalt2=request.form("draw2")
tm=request.Form("tm")
logo=request("picture")
 type_class2=CategoryId(0)                 
 if ubound(CategoryId)>=1 then
    type_class3=CategoryId(1)                                                               
 else
    type_class3=0
 end if

if postname="" then
Response.Write ("<script>alert('品牌名称必须填写!');history.back();</script>")
end if
if project="" then
Response.Write ("<script>alert('项目标题必须填写!');history.back();</script>")
end if
if type_class1="--请选择行业大类--" then
response.Write("<script>alert('请选择行业大类');history.back();</script>")
end if


username=Replace_Text(request.Cookies("Yxmember"))

Set rs= Server.CreateObject("ADODB.Recordset") 
sql="select * from Websen_post where id="&postid&""
rs.open sql,conn,1,3
rs("username")=username
rs("postname")=postname
rs("project")=project
rs("englishname")=englishname
rs("postxx")=postxx
rs("type_class1")=type_class1
rs("type_class2")=type_class2
rs("post_info")=post_info
rs("condition")=condition
rs("linkman")=linkman
rs("company")=company
rs("country")=country
rs("province")=province
rs("city")=city
rs("phone")=phone
rs("code")=code
rs("email")=email
rs("fax")=fax
rs("web")=web
rs("address")=address
rs("mobile")=mobile
rs("drawalt")=drawalt
rs("drawalt1")=drawalt1
rs("drawalt2")=drawalt2
rs("type_class3")=type_class3
rs("tm")=tm
rs("logo")=logo
rs("flag")=0
rs.update
rs.close
set rs=nothing

//'自动生成用户网站*******20080420********************************
	 
if issession=0 then
   gradeid=Replace_Text(request.Cookies("gradeid"))
else
   gradeid=session("gradeid")
end if 		 
rolelist="no"
set rsgg=server.CreateObject("adodb.recordset")
sqlgg=" select rolelist from Websen_vipgrade where  roleid="&gradeid
rsgg.open sqlgg,conn,1,1
if not rsgg.eof then
   rolelist=rsgg("rolelist")
   rsgg.close
end if
if instr(rolelist,"qw")>0 then
   if autozz=1 and cityscakey="1" then
      %>
      <iframe src=" ../co.asp	" frameborder="0" scrolling="no" width=0 height=0></iframe>
      <%
   end if
//else

end if   

//****************************************************************







 %>

 <%
Content="<center>恭喜您，您的品牌已经发布成功修改!<br><input name='' type='button' value='返回' onclick='javascript:history.go(-1)'></center>"

Call Operation(Content,1)
conn.close
set conn=nothing
 %>