<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../conn/conn.asp"-->
<!--#include file="../inc/Commoncode.asp"-->
<!--#include file="../inc/CommonFunction.asp"-->
<!--#include file="checkpmember.asp" -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
<link href="../member/css.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/main.js"></script>
<script type="text/javascript" src="../js/input.js"></script>
<script language="JavaScript">
<!--
function GethukouCapital(capitalid)
{
document.frames["hukoucapitalframe"].location.replace("../inc/gethukoucapital.asp?capitalid="+capitalid);
}
function GethukouCity(cityid)
{
document.frames["hukoucityframe"].location.replace("../inc/gethukoucity.asp?cityid="+cityid);
}
function GetCapital(capitalid)
{
document.frames["capitalframe"].location.replace("../inc/getcapital.asp?capitalid="+capitalid);
}
function GetCity(cityid)
{
document.frames["cityframe"].location.replace("../inc/getcity.asp?cityid="+cityid);
}
function GetProfession(professionid)
{
document.frames["professionframe"].location.replace("../inc/getprofession2.asp?professionid="+professionid);
}
function GetPosition(positionid)
{
document.frames["positionframe"].location.replace("../inc/getposition2.asp?positionid="+positionid);
}

//功能：去掉字符串前后空格
//返回值：去掉空格后的字符串
//function fnRemoveBrank(strSource)
//{
// return strSource.replace(/^\s*/,'').replace(/\s*$/,'');
//}
function String.prototype.lenB()
{
return this.replace(/[^\x00-\xff]/g,"**").length;
}
function Juges(theForm)
{
  if (fnRemoveBrank(theForm.start_year.value) == "0")
  {
    alert("请选择时间!");
    theForm.start_year.focus();
    return (false);
  }
  if (fnRemoveBrank(theForm.start_month.value) == "0")
  {
    alert("请选择时间!");
    theForm.start_month.focus();
    return (false);
  }
  if (fnRemoveBrank(theForm.school.value) == "")
  {
    alert("请输入学校名称!");
    theForm.school.focus();
    return (false);
  }
  if (fnRemoveBrank(theForm.mainprofession.value) == "")
  {
    alert("请选择专业!");
    theForm.mainprofession.focus();
    return (false);
  }
  if (fnRemoveBrank(theForm.subprofession.value) == "")
  {
    alert("请选择专业!");
    theForm.subprofession.focus();
    return (false);
  }
  if (fnRemoveBrank(theForm.edu.value) == "")
  {
    alert("请选择学历!");
    theForm.edu.focus();
    return (false);
  }
 }
 
 function Juget(theForm)
{
  if (fnRemoveBrank(theForm.start_year.value) == "0")
  {
    alert("请选择培训时间!");
    theForm.start_year.focus();
    return (false);
  }
  if (fnRemoveBrank(theForm.start_month.value) == "0")
  {
    alert("请选择培训时间!");
    theForm.start_month.focus();
    return (false);
  }
  if (fnRemoveBrank(theForm.train.value) == "")
  {
    alert("请输入培训机构!");
    theForm.train.focus();
    return (false);
  }
  if (fnRemoveBrank(theForm.course.value) == "")
  {
    alert("请输入培训课程!");
    theForm.course.focus();
    return (false);
  }
 }
 function Jugel(theForm)
{
  if (fnRemoveBrank(theForm.language.value) == "0")
  {
    alert("请选择外语语种!");
    theForm.language.focus();
    return (false);
  }
  if (fnRemoveBrank(theForm.master.value) == "0")
  {
    alert("请选择掌握程度!");
    theForm.master.focus();
    return (false);
  }
 }
 
 function Jugew(theForm)
{
  if (fnRemoveBrank(theForm.start_year.value) == "0")
  {
    alert("请选择时间!");
    theForm.start_year.focus();
    return (false);
  }
  if (fnRemoveBrank(theForm.start_month.value) == "0")
  {
    alert("请选择时间!");
    theForm.start_month.focus();
    return (false);
  }
  if (fnRemoveBrank(theForm.comname.value) == "")
  {
    alert("请输入公司名称!");
    theForm.comname.focus();
    return (false);
  }
  if (fnRemoveBrank(theForm.ecoclass.value) == "")
  {
    alert("请选择公司性质!");
    theForm.ecoclass.focus();
    return (false);
  }
  if (fnRemoveBrank(theForm.trade.value) == "")
  {
    alert("请选择所属行业!");
    theForm.trade.focus();
    return (false);
  }
  if (fnRemoveBrank(theForm.dept.value) == "")
  {
    alert("请输入所在部门!");
    theForm.dept.focus();
    return (false);
  }
  if (fnRemoveBrank(theForm.place.value) == "")
  {
    alert("请输入职位名称!");
    theForm.place.focus();
    return (false);
  }
 }
-->
</script></head>
<body>
<center>
<iframe height=0 width=0 src="" id="hukoucapitalframe"></iframe>
<iframe height=0 width=0 src="" id="hukoucityframe"></iframe>
<iframe height=0 width=0 src="" id="capitalframe"></iframe>
<iframe height=0 width=0 src="" id="cityframe"></iframe>
<iframe height=0 width=0 src="" id="positionframe"></iframe>
<iframe height=0 width=0 src="" id="mainpositionframe"></iframe>
<iframe height=0 width=0 src="" id="professionframe"></iframe>
<%
rid=trim(request("rid"))
Action=trim(Request("Action"))
Select Case Action
	Case "Modilang"
		Call Modilang()
	Case "Modiwork"
		Call Modiwork()
	Case "Modiedu"
		Call Modiedu()
	Case "Moditrain"
		Call Moditrain()
	Case "Modilang"
		Call Modilang()
	Case "Modiwork"
		Call Modiwork()
	Case "Saveedu"
		Call Saveedu()
	Case "Savetrain"
		Call Savetrain()
	Case "Savelang"
		Call Savelang()
	Case "Savework"
		Call Savework()
End Select

if FoundErr=True then
	call Show_Err()
end if

Conn.Close
Set Conn=Nothing%>
<%Sub Modiedu()%>
<div class="addedutab" id="addedu">
<%education_id=clng(trim(request("id")))
set rst=server.createobject("ADODB.Recordset")
sql="select * from job_p_education where education_id="&education_id
rst.open sql,conn,1,1
education_school=rst("education_school")
education_detail=rst("education_detail")
education_startyear=rst("education_startyear")
education_startmonth=rst("education_startmonth")
education_endyear=rst("education_endyear")
education_endmonth=rst("education_endmonth")
education_mainprofession=rst("education_mainprofession")
education_subprofession=rst("education_subprofession")
education_edu=rst("education_edu")
rst.close
set rst=nothing%><form name="eduadds" action="person_modiresume.asp?Action=Saveedu&lang=<%=lang%>&rid=<%=rid%>" method="post" onsubmit="return Juges(this);">
<div>编辑<font color="#FF6600" ><b><%=session(""&FRHRCMS&"resume_title")%></b></font>的教育内容（注：带＊号为必填项）</div>
<ul>
<li><font color="#ff6600">　＊</font>时间：  从
<select name="start_year" id="start_year">
<option value="0" selected="selected">年</option>
<%
for i=year(date())-70 to year(date())
if education_startyear=i then
response.write "<option value="&i&" selected>"&i&"</option>"
else
response.write "<option value="&i&">"&i&"</option>"
end if
next
%>
</select>
<select name="start_month" id="start_month">
<option value="0" selected="selected">月</option>
<%
for i=1 to 12
if education_startmonth=i then
response.write "<option value="&i&" selected>"&i&"</option>"
else
response.write "<option value="&i&">"&i&"</option>"
end if
next
%>
</select>
到
<select name="end_year" id="end_year">
<option value="0" selected="selected">年</option>
<%
for i=year(date())-70 to year(date())
if education_endyear=i then
response.write "<option value="&i&" selected>"&i&"</option>"
else
response.write "<option value="&i&">"&i&"</option>"
end if
next
%>
</select>
<select name="end_month" id="end_month">
<option value="0" selected="selected">月</option>
<%for i=1 to 12
if education_endmonth=i then
response.write "<option value="&i&" selected>"&i&"</option>"
else
response.write "<option value="&i&">"&i&"</option>"
end if
next
%>
</select>
(后两项不填表示至今)</li>
<li><font color="#ff6600">　＊</font>学校：
<INPUT name=school id="school" size=50 maxLength=50 value="<%=education_school%>"></li>
<li><font color="#ff6600">　＊</font>专业：
<select name="mainprofession" size="1" id="mainprofession" onChange=GetProfession(this.options[this.selectedIndex].value)>
<option value="" selected>---请选择---</option>
<%
Set rs= Server.CreateObject("ADODB.RecordSet")
sql="select profession_id,profession_name from job_profession where profession_fid=0 order by profession_id"
rs.open sql,conn,1,1
do while not rs.eof
if education_mainprofession=rs("profession_id") then
response.write"<OPTION value="&rs("profession_id")&" selected>"&rs("profession_name")&"</option>"
else
response.write"<OPTION value="&rs("profession_id")&">"&rs("profession_name")&"</option>"
end if
rs.movenext
loop
rs.close
%>
</select>
<span id="load400"></span><span id="cprofession">
<select name=subprofession id="subprofession">
  <option value="">---请选择---</option>
<%
if education_mainprofession<>"" and not isnull(education_mainprofession) and education_mainprofession<>0 then
sql="select profession_id,profession_name from job_profession where profession_fid="&education_mainprofession&" order by profession_id "
rs.open sql,conn,1,1
do while not rs.eof
if education_subprofession=rs("profession_id") then
response.write"<OPTION value="&rs("profession_id")&" selected>"&rs("profession_name")&"</option>"
else
response.write"<OPTION value="&rs("profession_id")&">"&rs("profession_name")&"</option>"
end if
rs.movenext
loop
rs.close
end if
%>
</select>
</span></li>
<li><font color="#ff6600">　＊</font>学历：
<select name="edu">
<option value="" selected="selected">---请选择---</option>
<%sql="select edu_id,edu_name from job_edu order by edu_id desc"
rs.open sql,conn,1,1
do while not rs.eof
if education_edu=rs("edu_id") then
response.write"<OPTION value="&rs("edu_id")&" selected>"&rs("edu_name")&"</option>"
else
response.write"<OPTION value="&rs("edu_id")&">"&rs("edu_name")&"</option>"
end if
rs.movenext
loop
rs.close
%>
</select>
</li>
<li>专业描述：
<textarea name="detail" cols="55" id="detail" style="HEIGHT: 150px"><%=ChangeStrbox(education_detail)%></textarea>
</li>
<li><FONT color=#993300>专业描述您可以填写您所学专业包括什么课程，您的毕业设计等等。 </FONT></li>
<li><input name="id" type="hidden" value="<%=education_id%>" /><INPUT name="submit" type="submit" value="保　存">
<INPUT name=Exit type=button class="inputa3" onClick="javascript:addedu.style.display='none'" value="关　闭"></li>
</ul></form>
</div>
<%End Sub%>


<%Sub Moditrain()%>
<div class="addedutab" id="addtrain">
<%
train_id=clng(trim(request("id")))
set rst=server.createobject("ADODB.Recordset")
sql="select * from job_p_training where train_id="&train_id&""
rst.open sql,conn,1,1
train_startyear=rst("train_startyear")
train_startmonth=rst("train_startmonth")
train_endyear=rst("train_endyear")
train_endmonth=rst("train_endmonth")
train_train=rst("train_train")
train_address=rst("train_address")
train_course=rst("train_course")
train_certificate=rst("train_certificate")
train_detail=rst("train_detail")
rst.close
set rst=nothing
%>
<form name="trainadd" action="person_modiresume.asp?Action=Savetrain&rid=<%=rid%>" method="post" onSubmit="return Juget(this)">
<div>编辑<font color="#FF6600" ><b><%=session(""&FRHRCMS&"resume_title")%></b></font>的培训内容（注：带＊号为必填项）</div>
<ul>
<li><font color="#ff6600">＊</font>培训时间：从
<select name="start_year" id="start_year">
<option value="0" selected="selected">年</option>
<%
for i=year(date())-70 to year(date())
if train_startyear=i then
response.write "<option value="&i&" selected>"&i&"</option>"
else
response.write "<option value="&i&">"&i&"</option>"
end if
next
%>
</select>
<select name="start_month" id="start_month">
<option value="0" selected="selected">月</option>
<%
for i=1 to 12
if train_startmonth=i then
response.write "<option value="&i&" selected>"&i&"</option>"
else
response.write "<option value="&i&">"&i&"</option>"
end if
next
%>
</select>
到
<select name="end_year" id="end_year">
<option value="0" selected="selected">年</option>
<%
for i=year(date())-70 to year(date())
if train_endyear=i then
response.write "<option value="&i&" selected>"&i&"</option>"
else
response.write "<option value="&i&">"&i&"</option>"
end if
next
%>
</select>
<select name="end_month" id="end_month">
<option value="0" selected="selected">月</option>
<%
for i=1 to 12
if train_endmonth=i then
response.write "<option value="&i&" selected>"&i&"</option>"
else
response.write "<option value="&i&">"&i&"</option>"
end if
next
%>
</select>
 (后两项不填表示至今)</li>
<li><font color="#ff6600">＊</font>培训机构：
  <input name="train" id="train" size="50" maxlength="50" value="<%=train_train%>" />
</li>
<li> 　培训地点：
  <input name="address" id="address" size="50" maxlength="50" value="<%=train_address%>" />
</li>
<li><font color="#ff6600">＊</font>培训课程：
  <input name="course" id="course" size="50" maxlength="50" value="<%=train_course%>" />
</li>
<li>　获得证书：
  <font color="#993300">
  <input name="certificate" id="certificate" size="50" maxlength="50" value="<%=train_certificate%>" />
  </font></li>
<li> 　详细描述：
  <textarea name="detail" cols="55" rows="8" id="detail" style="HEIGHT: 150px"><%=ChangeStrbox(train_detail)%></textarea>
</li>
<li><input name="id" type="hidden" value="<%=train_id%>" /><INPUT name="submit" type="submit" value="保　存">
<INPUT name=Exit type=button class="inputa3" onClick="javascript:addtrain.style.display='none'" value="关　闭"></li>
</ul>
</form>
</div>
<%End Sub%>

<%Sub Modilang()%>
<div class="addlangtab" id="addlang">
<%lang_id=clng(trim(request("id")))
set rst=server.createobject("ADODB.Recordset")
sql="select lang_name,lang_master from job_p_lang where lang_id="&lang_id&""
rst.open sql,conn,1,1
lang_name=rst("lang_name")
lang_master=rst("lang_master")
rst.close
set rst=nothing
%>
<form name="langadd" action="person_modiresume.asp?Action=Savelang&rid=<%=rid%>" method="post" onSubmit="return Jugel(this)">
<div>编辑<font color="#FF6600" ><b><%=session(""&FRHRCMS&"resume_title")%></b></font>的语言能力（注：带＊号为必填项）</div>
<ul>
<li><font color="#ff6600">＊</font>外语语种：<select name="language" id="language">
<option value=0 selected>---请选择---</option>
<%Set rs= Server.CreateObject("ADODB.RecordSet")
sql="select foreign_id,foreign_name from job_foreignlanguage"
rs.open sql,conn,1,1
do while not rs.eof
if lang_name=rs("foreign_id") then
response.write"<OPTION value="&rs("foreign_id")&" selected>"&rs("foreign_name")&"</option>"
else
response.write"<OPTION value="&rs("foreign_id")&">"&rs("foreign_name")&"</option>"
end if
rs.movenext
loop
rs.close
%></select><font color="#ff6600">＊</font>掌握程度：
<select name="master" id="select5">
<option value=0 selected>---请选择---</option>
<%
sql="select degree_id,degree_name from job_foreigndegree"
rs.open sql,conn,1,1
do while not rs.eof
if lang_master=rs("degree_id") then
response.write"<OPTION value="&rs("degree_id")&" selected>"&rs("degree_name")&"</option>"
else
response.write"<OPTION value="&rs("degree_id")&">"&rs("degree_name")&"</option>"
end if
rs.movenext
loop
rs.close
%>
</select>
</li>
<li><input name="id" type="hidden" value="<%=lang_id%>" /><INPUT name="submit" type="submit" value="保　存">
<INPUT name=Exit type=button class="inputa3" onClick="javascript:addlang.style.display='none'" value="关　闭"></li>
</ul>
</form>
</div>
<%End Sub%>
<%Sub Modiwork()%>
<div class="addedutab" id="addwork">
<%work_id=clng(trim(request("id")))
if work_id<>"" then
set rse=server.createobject("ADODB.Recordset")
sql="select * from job_p_work where work_id="&work_id&""
rse.open sql,conn,1,1
work_startyear=rse("work_startyear")
work_startmonth=rse("work_startmonth")
work_endyear=rse("work_endyear")
work_endmonth=rse("work_endmonth")
work_ecoclass=rse("work_ecoclass")
work_trade=rse("work_trade")
work_dept=rse("work_dept")
work_mainposition=rse("work_mainposition")
work_subposition=rse("work_subposition")
work_place=rse("work_place")
work_leftreason=rse("work_leftreason")
work_comname=rse("work_comname")
work_introduce=rse("work_introduce")
rse.close
set rse=nothing
end if
%><form name="workadd" action="person_modiresume.asp?Action=Savework&rid=<%=rid%>" method="post" onSubmit="return Jugew(this)">
<div>编辑<font color="#FF6600" ><b><%=session(""&FRHRCMS&"resume_title")%></b></font>的工作经历内容（注：带＊号为必填项）</div>
<ul>
<li><font color="#ff6600">＊</font>时间范围：
  从
<select name="start_year" id="start_year">
<option value="0" selected="selected">年</option>
<%
for i=year(date())-70 to year(date())
if work_startyear=i then
response.write "<option value="&i&" selected>"&i&"</option>"
else
 response.write "<option value='"&i&"'>"&i&"</option>"
end if
next
%>
</select>
<select name="start_month" id="start_month">
<option value="0" selected="selected">月</option>
<%
for i=1 to 12
if work_startmonth=i then
response.write "<option value="&i&" selected>"&i&"</option>"
else
response.write "<option value="&i&">"&i&"</option>"
end if
next
%>
</select>
到
<select name="end_year" id="end_year">
<option value="0" selected="selected">年</option>
<%
for i=year(date())-70 to year(date())
if work_endyear=i then
response.write "<option value="&i&" selected>"&i&"</option>"
else
response.write "<option value="&i&">"&i&"</option>"
end if
next
%>
</select>
<select name="end_month" id="end_month">
<option value="0" selected="selected">月</option>
<%
for i=1 to 12
if work_endmonth=i then
response.write "<option value="&i&" selected>"&i&"</option>"
else
response.write "<option value="&i&">"&i&"</option>"
end if
next
%>
</select>
 (后两项不填表示至今)</li>
<li><font color="#ff6600">＊</font>公司名称：
  <input name=comname id="comname" size=50 maxLength=50 value="<%=work_comname%>">
</li>
<li><font color="#ff6600">＊</font>公司性质：
  <select name="ecoclass" size="1" id="select4">
<option value="" selected>---请选择---</option>
<%
Set rs= Server.CreateObject("ADODB.RecordSet")							
sql="select ecoclass_id,ecoclass_name from job_ecoclass"
rs.open sql,conn,1,1
do while not rs.eof
if work_ecoclass=rs("ecoclass_id") then
response.write"<OPTION value="&rs("ecoclass_id")&" selected>"&rs("ecoclass_name")&"</option>"
else
response.write"<OPTION value="&rs("ecoclass_id")&">"&rs("ecoclass_name")&"</option>"
end if
rs.movenext
loop
rs.close
%>
</select>
</li>
<li><font color="#ff6600">＊</font>所属行业：
  <select name=trade id="select2">
<option value="" selected>---请选择---</option>
<%
sql="select trade_id,trade_name from job_trade"
rs.open sql,conn,1,1
do while not rs.eof
if work_trade=rs("trade_id") then
response.write"<OPTION value="&rs("trade_id")&" selected>"&rs("trade_name")&"</option>"
else
response.write"<OPTION value="&rs("trade_id")&">"&rs("trade_name")&"</option>"
end if
rs.movenext
loop
rs.close
%>
</SELECT>
</li>
<li><font color="#ff6600">＊</font>所在部门：
  <INPUT name=dept id="dept" size=30 maxLength=25 value="<%=work_dept%>"></li>
<li><font color="#ff6600">＊</font>岗位类别：
<select name="mainposition" size="1" id="mainposition" onChange=GetPosition(this.options[this.selectedIndex].value)>
<option value="" selected>---请选择---</option>
<%
sql="select position_id,position_name from job_position where position_fid=0"
rs.open sql,conn,1,1
do while not rs.eof
if work_mainposition=rs("position_id") then
response.write"<OPTION value="&rs("position_id")&" selected>"&rs("position_name")&"</option>"
else
response.write"<OPTION value="&rs("position_id")&">"&rs("position_name")&"</option>"
end if
rs.movenext
loop
rs.close
%>
</select>
<span id="load300"></span><span id="cposition">
<select name=subposition id="subposition">
<option value="" selected>---请选择---</option>
<%
if work_mainposition<>"" and not isnull(work_mainposition) and work_mainposition<>0 then							
sql="select position_id,position_name from job_position where position_fid="&work_mainposition&" order by position_id"
rs.open sql,conn,1,1
do while not rs.eof
if work_subposition=rs("position_id") then
 response.write"<OPTION value="&rs("position_id")&" selected>"&rs("position_name")&"</option>"
else
 response.write"<OPTION value="&rs("position_id")&">"&rs("position_name")&"</option>"
end if
 rs.movenext
 loop
 rs.close
end if
set rs=nothing
%>
</select>
                </span></li>
<li><font color="#ff6600">＊</font>职位名称：
  <INPUT name=place id="place" size="30" maxLength=50 value="<%=work_place%>"></li>
<li><font color="#ff6600">　</font>工作描述：
  <TEXTAREA name=introduce cols=55 id="introduce" style="HEIGHT: 100px"><%=ChangeStrbox(work_introduce)%></TEXTAREA></li>
<li><FONT color=#ff6600>工作描述限2000个字符，请详细描述您的职责范围、工作任务以及取得的成绩等。 </FONT></li>
<li><font color="#ff6600">　</font>离职原因：
  <INPUT name=leftreason id="leftreason" size="28" maxLength=50 value="<%=work_leftreason%>"></li>
<li><FONT color=#ff6600>简明扼要地阐述离职原因，字数在50字以内。</FONT></li>
<li><input name="id" type="hidden" value="<%=work_id%>" /><INPUT name="submit" type="submit" value="保　存">
<INPUT name=Exit type=button class="inputa3" onClick="javascript:addwork.style.display='none'" value="关　闭"></li>
</ul>
</form>
</div>
<%End Sub%>
</center>
</body>
</html>
<%
Sub Saveedu()
education_id=clng(trim(request("id")))
education_school=CheckStr(trim(request("school")))
if education_school="" then
 Response.Write ("<script language=JavaScript>{alert('错误：院校名称不能为空!');location.href = 'javascript:history.go(-1)';}</script>")
 Response.End
end if

set rs=server.createobject("ADODB.Recordset")
sql="select education_school from job_p_education where education_school='"&education_school&"' and education_resumeid="&rid&" and education_id<>"&education_id
rs.open sql,conn,1,1
if not rs.eof then
 rs.close
 set rs=nothing
 conn.close
 set conn=nothing
 Response.Write ("<script language=JavaScript>{alert('错误：此教育记录已经添加！');location.href = 'javascript:history.go(-1)';}</script>")
 Response.End
end if
rs.close
set rs=nothing

education_detail=CheckStrbox(request("detail"))
If lenmix(education_detail)>=8000 Then 
response.write "<script language=javascript>alert('错误：专业描述太长了，要求不多于8000个字符！');location.href='javascript:history.back()';</script>"
response.end 
end if

education_startyear=cint(trim(request("start_year")))
education_startmonth=cint(trim(request("start_month")))
education_endyear=cint(trim(request("end_year")))
education_endmonth=cint(trim(request("end_month")))
education_mainprofession=cint(trim(request("mainprofession")))
education_subprofession=cint(trim(request("subprofession")))
education_edu=cint(trim(request("edu")))
'判断时间时候正确
if education_endyear<>0 then
	if education_startyear=<education_endyear then
		if education_endmonth<>0 then
			if education_startyear=education_endyear and education_startmonth>education_endmonth then
			response.write "<script language=javascript>alert('错误：教育时间填写不正确！');location.href='javascript:history.back()';</script>"
			response.end 
			end if
		end if
	else
	response.write "<script language=javascript>alert('错误：教育时间填写不正确！');location.href='javascript:history.back()';</script>"
	response.end 
	end if
end if
'把信息存入教育表education

sql="select * from job_p_education where education_id="&education_id
set rs=server.CreateObject("adodb.recordset")
rs.open sql,conn,1,3
rs("education_startyear")=education_startyear
rs("education_startmonth")=education_startmonth
rs("education_endyear")=education_endyear
rs("education_endmonth")=education_endmonth
rs("education_school")=education_school
rs("education_mainprofession")=education_mainprofession
rs("education_subprofession")=education_subprofession
rs("education_edu")=education_edu
rs("education_detail")=education_detail
rs("education_pmember")=pmember_login
rs("education_resumeid")=rid
rs("education_language")=lang
rs.update
conn.execute("update job_p_resume set resume_announcedate="&FR_HR_Now&" where resume_id="&rid)
Response.Write ("<script language=JavaScript>{window.opener.location.reload();window.close();}</script>")
response.end
End Sub


Sub Savetrain()
train_id=clng(trim(request("id")))
train_train=CheckStr(trim(request("train")))
if train_train="" then
 Response.Write ("<script language=JavaScript>{alert('错误：培训机构不能为空!');location.href = 'javascript:history.go(-1)';}</script>")
 Response.End
end if
train_detail=CheckStrbox(request("detail"))
If lenmix(train_detail)>=8000 Then 
response.write "<script language=javascript>alert('错误：详细描述太长了，要求不多于8000个字符!！');location.href='javascript:history.back()';</script>"
response.end 
end if
train_startyear=cint(trim(request("start_year")))
train_startmonth=cint(trim(request("start_month")))
train_endyear=cint(trim(request("end_year")))
train_endmonth=cint(trim(request("end_month")))
train_address=CheckStr(trim(request("address")))
train_course=CheckStr(trim(request("course")))
train_certificate=CheckStr(trim(request("certificate")))
'判断时间时候正确
if train_endyear<>0 then
	if train_startyear=<train_endyear then
		if train_endmonth<>0 then
			if train_startyear=train_endyear and train_startmonth>train_endmonth then
			response.write "<script language=javascript>alert('错误：培训时间填写不正确！');location.href='javascript:history.back()';</script>"
			response.end 
			end if
		end if
	else
	response.write "<script language=javascript>alert('错误：培训时间填写不正确！');location.href='javascript:history.back()';</script>"
	response.end 
	end if
end if

sql="select * from job_p_training where  train_id="&train_id
set rs=server.CreateObject("adodb.recordset")
rs.open sql,conn,1,3
if not rs.eof then
rs("train_startyear")=train_startyear
rs("train_startmonth")=train_startmonth
rs("train_endyear")=train_endyear
rs("train_endmonth")=train_endmonth
rs("train_train")=train_train
rs("train_address")=train_address
rs("train_course")=train_course
rs("train_certificate")=train_certificate
rs("train_detail")=train_detail
rs.update
end if
rs.close
set rs=nothing
	conn.execute("update job_p_resume set resume_announcedate="&FR_HR_Now&" where resume_id="&rid)
Response.Write ("<script language=JavaScript>{window.opener.location.reload();window.close();}</script>")
response.end
End Sub

Sub Savelang()
lang_id=clng(trim(request("id")))
lang_name=cint(trim(request("language")))
lang_master=cint(trim(request("master")))

'--把基本资料存入语言表lang中
conn.execute("update job_p_lang set lang_name='"&lang_name&"',lang_master='"&lang_master&"' where lang_id="&lang_id)
'--更新简历时间
conn.execute("update job_p_resume set resume_announcedate="&FR_HR_Now&"  where resume_id="&rid)
Response.Write ("<script language=JavaScript>{window.opener.location.reload();window.close();}</script>")
response.end
End Sub

Sub Savework()
work_id=clng(trim(request("id")))
work_comname=CheckStr(trim(request("comname")))
if work_comname="" then
 Response.Write ("<script language=JavaScript>{alert('错误：公司名称不能为空!');location.href = 'javascript:history.go(-1)';}</script>")
 Response.End
end if
work_introduce=CheckStrbox(request("introduce"))
If lenmix(work_introduce)>=8000 Then 
response.write "<script language=javascript>alert('错误：工作描述太长了，要求不多于8000个字符!！');location.href='javascript:history.back()';</script>"
response.end 
end if

work_startyear=cint(trim(request("start_year")))
work_startmonth=cint(trim(request("start_month")))
work_endyear=cint(trim(request("end_year")))
work_endmonth=cint(trim(request("end_month")))
work_ecoclass=cint(trim(request("ecoclass")))
work_trade=cint(trim(request("trade")))
work_dept=CheckStr(trim(request("dept")))
work_mainposition=cint(trim(request("mainposition")))
work_subposition=cint(trim(request("subposition")))
work_place=CheckStr(trim(request("place")))
work_leftreason=CheckStr(trim(request("leftreason")))
'判断时间时候正确
if work_endyear<>0 then
	if work_startyear=<work_endyear then
		if work_endmonth<>0 then
			if work_startyear=work_endyear and work_startmonth>work_endmonth then
			response.write "<script language=javascript>alert('错误：工作时间填写不正确！');location.href='javascript:history.back()';</script>"
			response.end 
			end if
		end if
	else
	response.write "<script language=javascript>alert('错误：工作时间填写不正确！');location.href='javascript:history.back()';</script>"
	response.end 
	end if
end if
'  --把基本资料存入工作经验表work中
sql="select * from job_p_work where work_id="&work_id
set rs=server.CreateObject("adodb.recordset")
rs.open sql,conn,1,3
rs("work_startyear")=work_startyear
rs("work_startmonth")=work_startmonth
rs("work_endyear")=work_endyear
rs("work_endmonth")=work_endmonth
rs("work_comname")=work_comname
rs("work_ecoclass")=work_ecoclass
rs("work_trade")=work_trade
rs("work_dept")=work_dept
rs("work_mainposition")=work_mainposition
rs("work_subposition")=work_subposition
rs("work_place")=work_place
rs("work_introduce")=work_introduce
rs("work_leftreason")=work_leftreason 
rs.update
rs.close
set rs=nothing
'   --更新简历时间
conn.execute("update job_p_resume set resume_announcedate="&FR_HR_Now&"  where resume_id="&rid)
Response.Write ("<script language=JavaScript>{window.opener.location.reload();window.close();}</script>")
response.end
End Sub
%>