 <% 
	data_path="../../" 'ACC连接数据库路径，对SQL无效
	numid="21"
	dir="../err.asp" 
  %>
<!--#include file="../../conn/conn.asp"-->
<!--#include file="../../inc/safe.asp"-->
 <!--#include file="../rolecheck.asp"-->
 <%
 
if Not ChkPost then 
response.redirect ("../../login/chklogin.asp?login=4")
response.end
end if
%>
<%
if Chkrequest(request("info_id")) then
info_id=request("info_id")
else
Response.Redirect ("../../login/chklogin.asp?login=4")
end if

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"))
tj=request("tj")
if tj="" then
tj=0
end if
sql="select info_id from Websen_work where showname='"&showname&"' 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("showname")=showname
rs("zrs")=zrs
rs("xs")=xs
rs("type")=mmfx
rs("period")=period
rs("content")=content
rs("TJ")=tj
rs("dateandtime")=date()
rs.update
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="../css/style.css">
 <title>操作成功</title>
</head>
<table cellpadding=2 cellspacing=1 border=0 width=400 class=tableBorder align=center><TR>
  <TH class=tableHeaderText colSpan=2 height=25>修改企业招聘信息</TH>
<TR><tr><td height=85 valign=top class=forumRow><div align=center><br><br>
企业招聘信息修改成功！</div></td></tr><tr align=center><td height=30 class=forumRowHighlight><a href='work.asp'>&lt;&lt; 返回上一页</a></td>

</tr></table>
</body>
</html>