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


 <%
  Response.Buffer = true
  Response.ExpiresAbsolute=now()-1
  Response.Expires=0
  Response.CacheControl="no-cache"
 
      call checkuser("st")

if Not ChkPost then 
		response.write "<script language='javascript'>"
		response.write"parent.location.href='"&HOPE_InstallDir&"login/login1.asp';</SCRIPT>"
		response.end
end if
 

 id=Replace_Text(request("id"))
 action=Replace_Text(request("action"))
  picture=Replace_Text(request("picture"))
  oldpic=Replace_Text(request("oldpic"))
  oldpic1=Replace_Text(request("oldpic1"))
  cimg_title=Replace_Text(request("cimg_title")) 
  picture1=Replace_Text(request("picture1"))
set rs=server.createobject("adodb.recordset")
sql="select * from Websen_corporation where id="&id
rs.open sql,conn,1,3

if action="cimg" then 
if picture<>"" then
rs("cimg")=picture
if oldpic<>"" then
 call FileDel(HOPE_InstallDir&"vipcom/"&oldpic) 
end if
end if
rs("cimg_title")=cimg_title
else
if picture1<>"" then 
rs("c_logo")=picture1
if oldpic1<>"" then
 call FileDel(HOPE_InstallDir&"vipcom/"&oldpic1) 
end if
 end if
end if 
rs.update
rs.close
set rs=nothing
conn.close
set conn=nothing
set upload=nothing
%>

<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='3;url=cimg_add.asp?id=<%=id%>'>
</head>

<%
'操作提示
Content="<table width='100%'  border='0' cellspacing='5' cellpadding='0'>"
Content=Content&"       <tr>"
Content=Content&"<td><strong style='color:#6C88A2;font-size:14px;'>操作成功,"
if action="cimg" then 
	Content=Content&"公司图片"
else
	Content=Content&"公司LOGO"
end if


//'自动生成用户网站*******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=Content&"更新成功！<a href='cimg_add.asp?id="&id&"'>返回</a></strong></td>"

Content=Content&"</tr>"
Content=Content&" <tr>"
Content=Content&" <td style='font-size:12px;color:#96A9BA;'><li>恭喜您，"
if action="cimg" then 
	Content=Content&"公司图片"
else
	Content=Content&"公司LOGO"
end if
Content=Content&"修改成功,3秒钟后返回</td>"
 Content=Content&" </tr>"
Content=Content&" </table>"


Call Operation(Content,1)
%>



</body>
</html>