<% data_path="../../" 'ACC连接数据库路径，对SQL无效 %>

<!--#include file="../../inc/safe.asp"-->
  <!--#include file="../checkrole.asp"-->
       <!--#include file="../co.asp"-->
 <%
     call checkuser("sz")
  
  Response.Buffer = true
  Response.ExpiresAbsolute=now()-1
  Response.Expires=0
  Response.CacheControl="no-cache"
 
if Not ChkPost then 
		response.write "<script language='javascript'>"
		response.write"parent.location.href='"&HOPE_InstallDir&"login/login1.asp';</SCRIPT>"
		response.end
end if

    
name1=Replace_Text(Request("name"))
bh=Replace_Text(Request("bh"))
counter=Replace_Text(Request("counter"))
fzjg=Replace_Text(Request("fzjg"))
typeid=Replace_Text(Request("typeid"))
fzrq=Replace_Text(Request("fzrq"))
gqrq=Replace_Text(Request("gqrq"))

if issession=0 then
gsid=Replace_Text(request.Cookies("Yxmemberid"))
else
gsid=session("id")
end if

picture=Replace_Text(Request("picture"))
 
set rs=server.createobject("adodb.recordset")
sql="select * from Websen_bizre where name='"&name1&"' and gsid="&gsid&""
 rs.open sql,conn,1,3
if not rs.eof then
response.write"<SCRIPT language=JavaScript>alert('对不起，您已经提交过此信息！');"
response.write"javascript:history.go(-1)</SCRIPT>"
response.end 
else
rs.addnew
rs("name")=name1
rs("bh")=bh
rs("counter")=counter
rs("fzjg")=fzjg
rs("typeid")=typeid
rs("fzrq")=fzrq
rs("gqrq")=gqrq

if picture="" then picture="nopicture.gif"
rs("picture")=picture
rs("gsid")=gsid
rs("dateandtime")=now()
rs.update
rs.close
set rs=nothing



//***************************更新用户网站20080419******************************
if autozz=1 then
      
	call	update_index               '生成首页
	call	update_Suppry()            '生成供应
	call	update_Suppry2()
	call	update_product             '生成产品
	call	update_product2 
	call	update_CaiGou()            '生成采购
	call	update_CaiGou2()           '生成采购
	call	update_SkinCompanyInfo     '生成公司
	call	update_SkinCusApp          '客户评价
	call	update_SkinUnInfo          '生成展会
	call	update_SkinCusMsg          '客户留言
	call	update_SkinCantact         '联系方式
	call	update_SkinEmpInfo()       '生成招聘
end if
//******************************end*********************************************




conn.close
set conn=nothing
  end if
 %>
<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=../bizre/index.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="../bizre/index.asp">返回</a></b></td>
</tr>
</table>
</body>
</html>