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

 <%
      call checkuser("zp")
 if issession=0 then
gsid=Replace_Text(request.Cookies("Yxmemberid"))
else
gsid=session("id")
end if
  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
   
 info_id=Replace_Text(request("info_id"))
 jobkind=Replace_Text(request("jobkind"))
 enddate=Replace_Text(request("enddate"))
 country1=Replace_Text(request("country1"))
 province=Replace_Text(request("province"))
 city=Replace_Text(request("city"))
showname=Replace_Text(request("showname"))
zrs=Replace_Text(request("zrs"))
'xs=Replace_Text(request("xs"))
mmfx=Replace_Text(request("type"))
period=Replace_Text(request("period"))
content=Replace_Text(request("content"))
 

if jobkind="0" then 
response.write"<SCRIPT language=JavaScript>alert('对不起，请选择职业类别！');history.back(-1)</SCRIPT>"
response.End()
end if
sql="select info_id from Websen_work where showname='"&showname&"' and gsid="&gsid&" and info_id<>"&info_id&"" 
Set rs= Server.CreateObject("ADODB.Recordset") 
rs.open sql,conn,1,1
if not rs.eof then
response.write"<SCRIPT language=JavaScript>alert('对不起，您已经提交过此类信息！');"
response.write"javascript:history.go(-1)</SCRIPT>"
response.end 
end if

set rs=server.createobject("adodb.recordset")
sql="select * from Websen_work where info_id="&info_id
rs.open sql,conn,1,3
  
rs("jobkind")=jobkind
rs("enddate")=enddate
rs("country")=country1
rs("province")=province
rs("city")=city
rs("showname")=showname
rs("zrs")=zrs
''rs("xs")=xs
rs("type")=mmfx
rs("period")=period
rs("content")=content
rs("dateandtime")=date()
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   

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




conn.close
set conn=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='1;url=edit.asp'>
</head>

<%
Content="<center>恭喜您，招聘信息修改成功!<br><br><input name='' type='button' value='返回' onclick='javascript:history.go(-1)'></center>"

Call Operation(Content,1)%>
</body>
</html>