<!--#include file="Conn.asp"-->
<%
	Set rsNews=Server.CreateObject("ADODB.RecordSet")
	Id=Request.Form("Id")
	If Id="" Then
		rsNews.Open "Select * from job",conn,1,3
		rsNews.Addnew
	Else
		rsNews.Open "Select * from job where Id="&Id,conn,1,3
	End If
	rsNews("Address")=Request.Form("Address")
	rsNews("bumen")=Request.Form("bumen")
	rsNews("job")=Request.Form("job")
	rsNews("number")=Request.Form("number")
	rsNews("Content")=Request.Form("Content")
	rsNews("addtime")=Request.Form("addtime")
	
	rsNews.Update
	If Id="" Then
		Response.Write "<script language=javascript>alert('添加招聘信息成功!!');location.href='../job.asp';</script>"
	Else
		Response.Write "<script language=javascript>alert('修改招聘信息成功!!');location.href='../joblist.asp';</script>"
	End If
%>