<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!--#include file="../inc/conn.asp"-->
<!--#include file="../inc/Function.asp"-->
<!--#include file="../../inc/Config.asp"-->
<%
Call ChkLogin(session("WebAdminsUserName"))
Call ConnectionDataBase(2)
Action = Request("Action")
Select Case Action
	Case "AddJob"
		Call AddJob
End Select
'发布工作岗位
Sub AddJob()
	PostName = Request.Form("PostName")
	Dept = Request.Form("Dept")
	Edu = Request.Form("Edu")
	Sex = Request.Form("Sex")
	IsWork = Request.Form("IsWork")
	Deal = Request.Form("Deal")
	SortID = Request.Form("SortID")
	Address = Request.Form("Address")
	Content = Request.Form("Content")
	ID = Request.Form("ID")
	
	
	Call ChkIsNumber(ID,"参数类型错误!")
	Call ChkIsNull(PostName,"请输入岗位名称!")
	Call ChkIsNumber(SortID,"参数类型错误!")
	strSql = "Select * From T_Job Where ID=" & ID	
	SetRs Rs,strSql,conn,1,3
	IF Rs.EOF Then	Rs.Addnew()
	Rs("PostName") = PostName
	Rs("Dept") = Dept	
	Rs("Edu") = Edu
	Rs("SortID") = SortID
	Rs("Content") = Content
	Rs("Sex") = Sex
	Rs("IsWork") = IsWork
	Rs("Deal") = Deal
	Rs("Address") = Address
	
	Rs.Update
	DisRs Rs
	Call CloseDatabase
	Call Success("信息提交成功!",Request.ServerVariables("HTTP_REFERER"))
End Sub
%>
