<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../conn/conn.asp"-->
<!--#include file="../inc/Commoncode.asp"-->
<!--#include file="../inc/CommonFunction.asp"-->
<%link="person_careerwill.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>编辑求职意向--<%=SiteTitle%></title>
<link href="../member/css.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/input.js"></script>
<script language="JavaScript">
<!--
//功能：去掉字符串前后空格
//返回值：去掉空格后的字符串
function fnRemoveBrank(strSource)
{
 return strSource.replace(/^\s*/,'').replace(/\s*$/,'');
}
function Juge(theForm)
{
  if (theForm.trade.value == "")
  {
    alert("请选择希望行业类别!");
	theForm.trades.focus();
    return (false);
  }
  if (theForm.position.value == "")
  {
    alert("请选择希望工作岗位!");
	theForm.positions.focus();
    return (false);
  }
  if (theForm.workadd.value == "")
  {
    alert("请选择希望工作地区!");
	theForm.workadds.focus();
    return (false);
  }
 }
-->
</script></head>
<body>
<div id="bodyly" style="position:absolute;top:0px;FILTER: alpha(opacity=80);background-color:#333; z-index:0;left:0px;display:none;"></div>
<script language = "JavaScript" src="<%=InstallDir%>Js/gettrade.js"></script>
<script language = "JavaScript" src="<%=InstallDir%>Js/getposition.js"></script>
<script language = "JavaScript" src="<%=InstallDir%>Js/GetProvince.js"></script>
<script language = "JavaScript" src="<%=InstallDir%>Js/getprofession.js"></script>
<div id="SearchDivhire" style="border:1px #8BC3F6 solid; position:absolute;background-color:#FFFFFF;width:560px;font-size:12px;  z-index:999; display:none;">
<div class="memmenul">
	<div onmousedown=MDown(SearchDivhire) title="可以随意拖动" style="width:538px; cursor:move;font-size:13px;color:#166AB6; font-weight:bold;" class="leftmenutit"><span style="float:right;font-size:12px; padding-right:10px; font-weight:normal; cursor:pointer;" onClick="unSearchLayers();">[关闭]</span><span id="wintit"></span><span style="font-size:12px; padding-left:10px; font-weight:normal;">最多可选择5个</span></div>
    <form name="form3" id="form3">
	<div style="width:100%;">
		<div id="changbox" style="float:left; margin-left:10px; margin-right:6px; margin-top:10px;"></div>
		<div id="changboxs" style="float:left; margin-left:10px;width:408px;margin-top:10px; display:none;"></div>
		<div id="bigclass" style="margin-left:10px;width:528px;margin-top:4px;"></div>
		<div id="smallclass" style="margin-left:10px;width:528px;margin-top:4px; line-height:150%; height:150px; overflow:auto"></div>
		<div id="checktitle" style="margin-left:10px; width:528px; margin-top:8px; font-size:13px; font-weight:bold;">您已经选择的是：<span style="cursor:pointer;font-size:12px; font-weight:bold; color:#FF0000" onClick="DelAllItem();">清空所有选项</span></div>
		<div id="selectitem" style="margin-left:10px; width:528px; height:40px;margin-top:4px; border:1px dashed #cccccc"></div>
		<div id="selectok" style="margin-left:10px; margin-top:4px; text-align:right; padding-right:40px;"></div>
	</div>
</form>
</div>
</div>
<div class="memmenul">
<div class="leftmenutit"><span>新建简历:<%=session(""&FRHRCMS&"resume_title")%></span></div>
<%rid=Chkint(trim(request("rid")))
Action=trim(Request("Action"))
Select Case Action
	Case "SaveData"
		Call SaveData()
	Case Else
		Call Main()
End Select
%>
<%
Sub Main()
set rst=server.createobject("ADODB.Recordset")
sql="select * from job_p_resume where resume_id="&rid&""
rst.open sql,conn,1,1
resume_title=rst("resume_title")
resume_personinfo=rst("resume_personinfo")
resume_education=rst("resume_education")
resume_train=rst("resume_train")
resume_lang=rst("resume_lang")
resume_work=rst("resume_work")
resume_careerwill=rst("resume_careerwill")
resume_trade=rst("resume_trade")
resume_position=rst("resume_position")
resume_workadd=rst("resume_workadd")
%>
<table width="98%" border="0" cellspacing="0" cellpadding="0" class="mtable" align="center">
<form name="form2" action="person_careerwill.asp?Action=SaveData&rid=<%=rid%>" method="post" onSubmit="return Juge(this)">
  <tr>
    <td colspan="4" class="tdcolor">求职意向（注：带<font color="#ff6600">＊</font>号为必填项）</td>
  </tr>
  <tr>
    <td width="15%" align="right">希望职位类别：</td>
    <td colspan="3">
<input type="radio" value="1" name="type" <%if (rst("resume_jobtype")=1 or rst("resume_jobtype")="" or isnull(rst("resume_jobtype"))) then response.write "checked" end if%> />全职
<input type="radio" value="2" name="type" <%if rst("resume_jobtype")=2 then response.write "checked" end if%> />兼职
<input type="radio" value="3" name="type" <%if rst("resume_jobtype")=3 then response.write "checked" end if%> />全职、兼职均可	</td>
  </tr>
  <tr>
    <td align="right"><font color="#ff6600">＊</font>希望行业类别：</td>
    <td colspan="3"><input type="hidden" name="trade" id="trade" value="<%=resume_trade%>" ><input name="trades" type="text" onClick="JumpSearchLayer(4,'form2','trade','trades');" <%if rid="" then%>value="选择希望行业类别"<%else%>value="<%=TradeName(resume_trade)%>"<%end if%> size="60" readonly /></td>
  </tr>
  <tr>
    <td align="right"><font color="#ff6600">＊</font>希望岗位类别：</td>
    <td colspan="3"><input type="hidden" name="position" id="position" value="<%=resume_position%>" ><input name="positions" type="text" onClick="JumpSearchLayer(1,'form2','position','positions');" <%if rid="" then%>value="选择希望岗位类别"<%else%>value="<%=PosionName(resume_position)%>"<%end if%> size="60" readonly /></td>
  </tr>
  <tr>
    <td align="right"><font color="#ff6600">＊</font>希望工作地区：</td>
    <td><!--调用二级地区--><!--<input name="workadd" type="hidden" id="workadd" value="<%'=resume_workadd%>" /><input name="workadds" type="text" onClick="JumpSearchLayer(2,'form2','workadd','workadds');" id="workadds" <%'if rid="" then%>value="选择希望工作地区"<%'else%>value="<%'=ProvinceName(resume_workadd)%>"<%'end if%> size="60" readonly />-->
	<!--调用三级地区-->
	<input name="workadd" type="hidden" id="workadd" value="<%=resume_workadd%>" /><input name="workadds" type="text" onClick="JumpSearchLayer(5,'form2','workadd','workadds');" id="workadds" <%if rid="" then%>value="选择希望工作地区"<%else%>value="<%=ProvinceName(resume_workadd)%>"<%end if%> size="60" readonly />
	</td>
  </tr>
 
  <tr>
    <td align="right">月薪要求：</td>
    <td colspan="3">
	<INPUT name=pay id="pay" size=6 maxLength=6 value="<%=AddHirepay(rst("resume_pay"))%>">
<select name="paytemp" onChange="pay.value=this.value">
        <option value="" selected>请选择薪资范围</option>
		<option value="800以下">800以下</option>
		<option value="800～1000">800～1000</option>
		<option value="1000～1200">1000～1200</option>
		<option value="1200～1500">1200～1500</option>
		<option value="1500～2000">1500～2000</option>
		<option value="2000～2500">2000～2500</option>
		<option value="2500～3000">2500～3000</option>
		<option value="3000～4000">3000～4000</option>
		<option value="4000～6000">4000～6000</option>
		<option value="6000～9000">6000～9000</option>
		<option value="9000～12000">9000～12000</option>
		<option value="12000～15000">12000～15000</option>
		<option value="15000～20000">15000～20000</option>
		<option value="20000以上">20000以上</option>
      </select>
元 注：0表示面议! &nbsp;&nbsp;&nbsp;&nbsp;
<input name="stay" type="checkbox" id="stay" value="1" <%if rst("resume_stay")=1 then response.write "checked" end if%>>
要求提供住宿</td>    
  </tr>
  <tr>
    <td align="right">到岗时间：</td>
    <td colspan="3">
<SELECT name=workdate id="workdate">
<OPTION value="0" <%if rst("resume_workdate")=0 then response.write "selected" end if%>>随时</option>
<OPTION value="7" <%if rst("resume_workdate")=7 then response.write "selected" end if%>>1周以内</option>
<OPTION value="14" <%if rst("resume_workdate")=14 then response.write "selected" end if%>>2周以内</option>
<OPTION value="30" <%if rst("resume_workdate")=30 then response.write "selected" end if%>>1个月内</option>
<OPTION value="60" <%if rst("resume_workdate")=60 then response.write "selected" end if%>>1～3个月</option>
<OPTION value="90" <%if rst("resume_workdate")=90 then response.write "selected" end if%>>3个月以后</OPTION>
</SELECT>	</td>
  </tr>
  <tr>
    <td colspan="4" class="tdcolor">&nbsp; 以下限2000个字符，请详细地填写，这有助于用人单位充分了解你。</td>
  </tr>
  <tr>
    <td align="right">其他要求：</td>
    <td colspan="3"><TEXTAREA class=FieldText id=request style="FONT-SIZE: 12px" name=request rows=10 cols=80><%=ChangeStrbox(rst("resume_request"))%></TEXTAREA></td>
  </tr>
  <input type="hidden" name="step">
<%set rsact=conn.execute("select * from job_p_resume where resume_cnstatus=1 and resume_pmember='"&pmember_login&"'")
if not rsact.eof then
activate=1
else
activate=0
end if
rsact.close
set rsact=nothing%>
  <tr>
    <td colspan="4">
<input name="save" type="submit" class="inputa3" id="save3" onclick="document.form2.step.value=0" value="保存并激活" />
<input name="save" type="submit" class="inputa3" id="save3" onclick="document.form2.step.value=1" value="保存不激活" />
&nbsp;
<input name="btnNext2" type="button" class="inputa3" id="btnNext22"  onclick="javascript:history.back()" value="返　回" />	</td>
  </tr>
</form>
</table>
<%
set rs=nothing
rst.close:set rst=nothing
End Sub%>
</div>
<%CloseConn%>
<%Sub SaveData()
step=trim(request("step"))
resume_jobtype=cint(trim(request("type")))
resume_trade=trim(request("trade"))
if left(resume_trade,2)="0*" then
resume_trade=Replace(resume_trade,"0*","")
end if
resume_position=trim(request("position"))
resume_workadd=trim(request("workadd"))
if request("pay")<>"" then
	if IsNumeric(trim(request("pay"))) then
	resume_pay=request("pay")
	else
		Select Case trim(request("pay"))
		case "800以下":resume_pay=1
		case "1800～1000":resume_pay=2
		case "1000～1200":resume_pay=3
		case "1200～1500":resume_pay=4
		case "1500～2000":resume_pay=5
		case "2000～2500":resume_pay=6
		case "2500～3000":resume_pay=7
		case "3000～4000":resume_pay=8
		case "4000～6000":resume_pay=9
		case "6000～9000":resume_pay=10
		case "9000～12000":resume_pay=11
		case "12000～15000":resume_pay=12
		case "15000～20000":resume_pay=13
		case "20000以上":resume_pay=14
		end select
	end if
end if
if trim(request("stay"))="1" then
 resume_stay=1 
end if
if trim(request("workdate"))<>"" then
 resume_workdate=cint(trim(request("workdate")))
end if
resume_request=CheckStrbox(request("request"))

Call PersonResumeContentDelHtml(rid)'删除已生成的文件
set rs=server.CreateObject("adodb.recordset")
sql="select * from job_p_resume where resume_id="&rid
rs.open sql,conn,1,3
rs("resume_jobtype")=resume_jobtype
rs("resume_trade")=resume_trade
rs("resume_position")=resume_position
rs("resume_workadd")=resume_workadd
rs("resume_pay")=resume_pay
rs("resume_stay")=resume_stay
rs("resume_workdate")=resume_workdate
rs("resume_request")=resume_request
rs("resume_careerwill")=1
rs("resume_announcedate")=now()
rs("resume_chinese")=1 
rs.update
rs.close:set rs=nothing
if step=0 then
conn.execute("update job_p_resume set resume_cnstatus=0 where resume_pmember='"&pmember_login&"'")
conn.execute("update job_p_resume set resume_cnstatus=1 where resume_id="&rid)
else
conn.execute("update job_p_resume set resume_cnstatus=0 where resume_id="&rid)
end if
'更新静态页面
set rsuc=conn.execute("select * from JOB_Channel where ChannelID=1")
	UseCreateHTML=rsuc("UseCreateHTML")
set rsuc=nothing
if  CreateHTML=1 and UseCreateHTML<>0 then
	Call PersonResumeContentHtml(rid) '生成简历页面
end if
CloseConn
response.redirect "person_resume.asp"
response.end
End Sub%>
<script language="javascript" src="<%=InstallDir%>js/jobjss.js"></script>