<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%
Server.ScriptTimeOut=5000
dbs="../"
%>
<!--#include file="../inc/config.asp"-->
<!--#include file="uccook.asp"-->
<!--#include file="uc.asp"-->
<!--#include FILE="../inc/UpLoadClass.asp"-->
<!--#include file="../inc/Code2Info.en.asp"-->
<%
	set rs=Server.CreateObject("Adodb.Recordset")
	sql="select id from H_job where UID="&UID&""
	rs.open sql,conn,1,1
	if not rs.eof then
	response.Write "<script >alert('提示：\n\n对不起，你已经登记过简历了！...');history.back(-1);</script>"
	response.End()
	end if
dim request2 
'建立上传对象
set request2=New UpLoadClass
'设置为手动保存模式
request2.AutoSave=2
'打开对象，默认为 gb2312 字符集，故没有显示设置
request2.Open()
'对象打开结束
H_name=Replace(Replace(Left(request2.Form("H_name"),100),"<","["),">","]")
H_Age=Replace(Replace(Left(request2.Form("H_Age"),5),"<","["),">","]")
H_Education=Replace(Replace(Left(request2.Form("H_Education"),5),"<","["),">","]")
H_Gender=Replace(Replace(Left(request2.Form("H_Gender"),5),"<","["),">","]")
H_Costs=Replace(Replace(Left(request2.Form("H_Costs"),100),"<","["),">","]")
H_Experience=Replace(Replace(Left(request2.Form("H_Experience"),100),"<","["),">","]")
H_Process=Replace(Replace(Left(request2.Form("H_Process"),1000),"<","["),">","]")
H_Mean=Replace(Replace(Left(request2.Form("H_Mean"),1000),"<","["),">","]")
H_Industry=Replace(Replace(Left(request2.Form("H_Industry"),10),"<","["),">","]")
H_Tel=Replace(Replace(Left(request2.Form("H_Tel"),30),"<","["),">","]")
H_QQ=Replace(Replace(Left(request2.Form("H_QQ"),15),"<","["),">","]")
H_email=Replace(Replace(Left(request2.Form("H_email"),15),"<","["),">","]")
H_txt=Left(request2.Form("H_txt"),5000)
H_txt=replace(H_txt,"table","表格")
H_txt=replace(H_txt,"TABLE","表格")
H_txt=replace(H_txt,"<tr","表格")
H_txt=replace(H_txt,"<td","表格")
H_txt=replace(H_txt,"</tr","表格")
H_txt=replace(H_txt,"</td","表格")
H_txt=replace(H_txt,"</DIV","表格")
if H_name="" then
response.Write "<script >alert('提示：\n\n对不起，请填写真实姓名！...');history.back(-1);</script>"
response.End()
end if
if H_Age="" then
response.Write "<script >alert('提示：\n\n对不起，请填写年龄！...');history.back(-1);</script>"
response.End()
end if
if H_Education="" then
response.Write "<script >alert('提示：\n\n对不起，请选择学历！...');history.back(-1);</script>"
response.End()
end if
if H_Gender="" then
response.Write "<script >alert('提示：\n\n对不起，请选择性别！...');history.back(-1);</script>"
response.End()
end if
if H_Costs="" then
response.Write "<script >alert('提示：\n\n对不起，要求月薪没有填写！...');history.back(-1);</script>"
response.End()
end if
if H_Experience="" then
response.Write "<script >alert('提示：\n\n对不起，工作经验没有填写！...');history.back(-1);</script>"
response.End()
end if
if H_Process="" then
response.Write "<script >alert('提示：\n\n对不起，工作经历没有填写！...');history.back(-1);</script>"
response.End()
end if
if H_Mean="" then
response.Write "<script >alert('提示：\n\n对不起，求职意向没有填写！...');history.back(-1);</script>"
response.End()
end if
if H_Industry="" then
response.Write "<script >alert('提示：\n\n对不起，职能选择 没有选择！...');history.back(-1);</script>"
response.End()
end if
if H_txt="" then
response.Write "<script >alert('提示：\n\n对不起，教育情况 没有填写！...');history.back(-1);</script>"
response.End()
end if
if H_Age="" or IsNumeric(H_Age)<>true then
response.Write "<script >alert('提示：\n\n对不起，年龄只能是数字形式！...');history.back(-1);</script>"
response.End()
end if
if H_Education="" or IsNumeric(H_Education)<>true then
response.Write "<script >alert('提示：\n\n对不起，学历不是正常的选择！...');history.back(-1);</script>"
response.End()
end if
if IsNumeric(H_Gender)<>true then
response.Write "<script >alert('提示：\n\n对不起，性别是数字形式！...');history.back(-1);</script>"
response.End()
end if
if H_Experience="" or IsNumeric(H_Experience)<>true then
response.Write "<script >alert('提示：\n\n对不起，工作经验只能填写数字！...');history.back(-1);</script>"
response.End()
end if
if H_Industry="" or IsNumeric(H_Industry)<>true then
response.Write "<script >alert('提示：\n\n对不起，性别职能是数字形式！...');history.back(-1);</script>"
response.End()
end if
'图片上传写入
request2.FileType="gif/jpg"
request2.MaxSize=153600000
request2.SavePath="../UpLoadUC/"
if request2.Save("H_pic",0) then
	H_pic=request2.Form("H_pic")
end if
''开始写入数据
set rs=Server.CreateObject("Adodb.Recordset")
	sql="select * from H_job"
	rs.open sql,conn,1,3
	rs.addnew
	rs("UID")=UID
	rs("H_Industry")=H_Industry
	rs("H_name")=H_name
	rs("H_Age")=H_Age
	rs("H_Gender")=H_Gender
	rs("H_Education")=H_Education
	rs("H_Tel")=H_Tel
	rs("H_QQ")=H_QQ
	rs("H_email")=H_email
	rs("H_Costs")=H_Costs
	rs("H_Mean")=H_Mean
	rs("H_Experience")=H_Experience
	rs("H_Process")=H_Process
	rs("H_txt")=H_txt
	rs("H_PIC")=H_PIC
	rs("H_Recommend")=0
	rs("H_Audit")=0
	rs("Rdate")=date()
	rs.update
	rs.close
	set rs=nothing	
	response.Write "<script >alert('提示：\n\n登记成功,立即返回...');location.href='job_edit.asp';</script>"
	response.End()
	'释放上传对象
	set request2=nothing
%>