⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 person_modiresume.asp

📁 嘉缘人才6.0精简 ,很好用的人才系统
💻 ASP
📖 第 1 页 / 共 2 页
字号:
  <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
%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -