<!--#include file="../../conn/conn.asp" -->
<!--#include file="../../Inc/Commoncode.asp" -->
<!--#include file="../checkvalid.asp" -->
<%If Not FRAdminLevel(303) Then
	Call ErrorMsg()
End If%>
<html>
<head>
<title>修改招聘信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css/style<%=sk%>.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../inc/input.js"></script><script type="text/javascript" src="../inc/Admin.js">
</script>
<script language="JavaScript">
<!--
//功能：去掉字符串前后空格
//返回值：去掉空格后的字符串
function fnRemoveBrank(strSource)
{
 return strSource.replace(/^\s*/,'').replace(/\s*$/,'');
}
//计算多行文本框的字节数
function String.prototype.lenB()
{
return this.replace(/[^\x00-\xff]/g,"**").length;
}
function Juge(theForm)
{
   if (fnRemoveBrank(theForm.place.value) == "")
  {
    alert("请输入职位名称!");
    theForm.place.focus();
    return (false);
  }
  if (theForm.profession.value=="")
  {
   theForm.profession.value="0000";
  }
  if (theForm.position.value == "")
  {
    alert("请选择岗位类别!");
	theForm.tempposition.focus();
    return (false);
  }
 
  if (theForm.workadd.value == "")
  {
    alert("请选择工作地区!");
	theForm.tempworkadd.focus();
    return (false);
  }
  var objv = fnRemoveBrank(theForm.number.value);
  var pattern = /^[0-9]+$/;
  flag = pattern.test(objv);
  if(!flag)
  {
    alert("招聘人数：要求为数字!请重新输入。");
    theForm.number.focus();
    return (false);
   }
  var objv = fnRemoveBrank(theForm.pay.value);
  var pattern = /^[0-9]+$/;
  flag = pattern.test(objv);
  if ((theForm.pay.value != "")&&(!flag))
  {
    alert("薪资待遇：要求为数字!请重新输入。");
    theForm.pay.focus();
    return (false);
   } 
  if (fnRemoveBrank(theForm.funddate.value) == "")
  {
    alert("请输入截止日期!");
    theForm.funddate.focus();
    return (false);
  }
  if (fnRemoveBrank(theForm.introduce.value) == "")
  {
    alert("请输入具体要求!");
    theForm.introduce.focus();
    return (false);
  }
  if ((theForm.introduce.value).lenB()>=8000)
  {
	 alert("具体要求太长了，要求不多于8000个字符!");
	 theForm.introduce.focus();
	 return (false);
  }
//  if (fnRemoveBrank(theForm.address.value) == "")
//  {
//    alert("请输入通信地址!");
//    theForm.address.focus();
//    return (false);
//  }
  if (fnRemoveBrank(theForm.contact.value) == "")
  {
    alert("请输入联系人!");
    theForm.contact.focus();
    return (false);
  }
  if (fnRemoveBrank(theForm.tel.value) == "")
  {
    alert("请输入联系电话!");
    theForm.tel.focus();
    return (false);
  }
  var objv = fnRemoveBrank(theForm.email.value);
  var pattern = /^([a-zA-Z0-9_-])+(\.([a-zA-Z0-9_-])+)*@([a-zA-Z0-9_-])+(\.([a-zA-Z0-9_-])+)+$/;
  flag = pattern.test(objv);
  if(!flag)
  {
    alert("电子邮件：格式不正确！请重新输入。");
	theForm.email.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/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>
<%
 hire_cmember=clng(request("member"))
 search=trim(request("search"))
 segment=trim(request("segment"))
 operate=trim(request("operate"))
 page=trim(request("page"))
 Set rst= Server.CreateObject("ADODB.RecordSet")
 sql="select * from job_c_hire where hire_id="&hire_cmember&""
 rst.open sql,conn,1,1
%> 
<table width="100%" border="0" cellpadding="2" cellspacing="1" align=center class="tableBorder">
    <tr> 
        <th height=25 colspan="2" class="tableHeaderText">修改招聘信息</th> 
    </tr>
	<form action="hire_update.asp?id=<%=rst("hire_id")%>&search=<%=search%>&segment=<%=segment%>&operate=<%=operate%>&page=<%=page%>" method="POST" name="form2" onSubmit="return Juge(this)">
    <TR > 
        <TD height=25 colSpan=2 align=left><FONT color=#333333>（注：带</FONT><FONT color=#ff6600>＊</FONT><FONT color=#b00000><FONT color=#333333>号为必填项）</FONT></FONT>        </TD>
    </TR>
    <tr> 
        <TD width="13%" height=25 align="right"><FONT color=#ff6600>＊</FONT>招聘职位：</TD>
        <TD width="87%"><FONT color=#000000><input name="place" type="text" id="place2" size="30" maxlength="50" value="<%=rst("hire_place")%>"></FONT></TD>
    </tr>
    <TR > 
        <TD height=25 align="right">&nbsp;&nbsp;招聘部门：</TD>
        <TD><input name="dept" type="text" id="dept" value="<%=rst("hire_dept")%>" maxlength="10"></TD>
    </TR>     
    <tr > 
        <TD height=25 align="right"><FONT color=#ff6600>＊</FONT>招聘类别：</TD>
        <TD><FONT color=#000000><INPUT name=type type=radio class="checkbox" value=1 <%if rst("hire_type")=1 then response.write "checked" end if%>>
        全职 
        <input name=type type=radio class="checkbox" value=2 <%if rst("hire_type")=2 then response.write "checked" end if%>>
        兼职 
        <input name=type type=radio class="checkbox" value=3 <%if rst("hire_type")=3 then response.write "checked" end if%>>
        全职、兼职均可</FONT></TD>
    </tr>
      <TR> 
        <TD height=30 align=right><FONT color=#ff6600>＊</FONT>所属行业： </TD>
        <TD align=left> <select name=trade id="select">
            <option value=""></option>
            <%Set rs= Server.CreateObject("ADODB.RecordSet")
       sql="select trade_id,trade_name from job_trade"
       rs.open sql,conn,1,1
       do while not rs.eof
	   if rst("hire_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
		 set rs=nothing
		%>
        </SELECT> </TD>
      </TR>
    <TR> 
        <TD height=30 align="right"><FONT color=#ff6600>＊</FONT>招聘岗位：</TD>
        <TD height=30><input type="hidden" name="position" id="position" value="<%=rst("hire_position")%>" ><input name="positions" type="text" onClick="JumpSearchLayer(1,'form2','position','positions');" value="<%=PosionName(rst("hire_position"))%>" size="60" readonly /></TD>
    </TR>
    <TR> 
        <TD height=30 align="right"><FONT color=#ff6600>＊</FONT>工作地区：</TD>
        <TD height=30><input name="workadd" type="hidden" id="workadd" value="<%=rst("hire_workadd")%>" /><input name="workadds" type="text" onClick="JumpSearchLayer(2,'form2','workadd','workadds');" id="workadds" value="<%=ProvinceName(rst("hire_workadd"))%>" size="60" readonly /></TD>
    </TR>
    <TR > 
        <TD height=25 align="right"><FONT color=#ff6600>＊</FONT>招聘人数：</TD>
        <TD><FONT color=#000000><INPUT name=number class=Fieldtext id="number2" size=6 maxLength=5 value="<%=rst("hire_number")%>">人</FONT></TD>
    </TR>
    <TR > 
        <TD height=25 align="right">&nbsp;&nbsp;薪资待遇：</TD>
        <TD height=25><FONT color=#000000><INPUT name=pay class=Fieldtext id="pay2" size=6 maxLength=5 value="<%=rst("hire_pay")%>"></FONT>元/月 （注：0表示为面议，建议输入具体数目）</TD>
    </TR>
<TR > 
<TD height=25 align="right"><FONT color=#ff6600>＊</FONT>截止日期： </TD>
<TD><input name="funddate" type="text" size="10" id=funddate value="<%=rst("hire_enddate")%>"><img src="../images/calendar_bnt.gif" style="cursor:hand;" align="absmiddle" onClick="fPopUpCalendarDlg(funddate);return false" WIDTH="34" HEIGHT="21"></span> </TD>
</TR>
<TR > 
<TD align="right"><FONT color=#ff6600>＊</FONT>具体要求：</TD>
<TD height=25><FONT 
color=#333333>
<textarea class=FieldText id=textarea style="FONT-SIZE: 12px" name=introduce rows=10 cols=80><%=ChangeStrbox(rst("hire_introduce"))%></textarea>
（言简意赅地阐述职位具体要求。</FONT><FONT 
color=#333333>）</FONT></TD>
</TR>

<TR > 
<TD height=25 colspan="2">&nbsp;&nbsp;任职要求：<FONT 
color=#333333>（以便求职者能在设定的查询条件中更好地搜索到贵企业的职位！）</FONT></TD>
</TR>
<tr> 
<td height=25 align="right">&nbsp;人才类型：</td>
<td> 
<INPUT name=usergroup type=radio class="checkbox" id=usergroup value=0 <%if rst("hire_usergroup")="" or isnull(rst("hire_usergroup")) or rst("hire_usergroup")=0 then response.write "checked" end if%>>
普通 
<INPUT name=usergroup type=radio class="checkbox" id=usergroup value=1 <%if rst("hire_usergroup")=1 then response.write "checked" end if%>>
毕业生 
<INPUT name=usergroup type=radio class="checkbox" id=usergroup value=2 <%if rst("hire_usergroup")=2 then response.write "checked" end if%>>
高级人才</td>
</tr>
<tr>
<td height=28 align="right">专业要求：</td>
<td height=21 ><input type="hidden" name="profession" id="profession" value="<%=rst("hire_profession")%>" ><input name="professions" type="text" onClick="JumpSearchLayer(3,'form2','profession','professions');" value="<%=ProfessionName(rst("hire_profession"))%>" size="60" readonly /></td>
</tr>
<TR> 
<TD width=195 height=25 align="right">&nbsp;学&nbsp;&nbsp;&nbsp; 历： </TD>
<TD width="749"><select name="edu">
<option value="0" selected>不限</option>
<%Set rs= Server.CreateObject("ADODB.RecordSet")
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 rst("hire_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
set rs=nothing
%>
</select>
以上</TD>
</TR>
<!--+++++++++++++++++++++++++++++++++++工作经验要求++++++++++++++++++++++++++++++++++++++-->
<TR> 
    <TD height=25 align="right">&nbsp;工作经验：</TD>
    <TD><select name=experience size=1 id="select16">
        <option value=-100 selected>不限</option>
        <option value=-1 <%if rst("hire_edu")=-1 then response.write "selected" end if%>>在读学生</option>
        <option value=0 <%if rst("hire_edu")=0 then response.write "selected" end if%>>毕业生</option>
        <%for i=1 to 10
        if rst("hire_edu")=i then
        response.write "<option value='"&i&"' selected>"&i&"年</option>"
        else
        response.write "<option value='"&i&"'>"&i&"年</option>"
        end if
        next
        %>
    </select>
    以上 &nbsp; </TD>
</TR>
<!--++++++++++++++++++++++++++++++++++++性别要求+++++++++++++++++++++++++++++++++++++++++-->
<TR> 
<TD height=25 align="right">&nbsp;性&nbsp;&nbsp;&nbsp;&nbsp;别： </TD>
<TD><SELECT name=sex size=1>
<OPTION value=0 selected>不限</OPTION>
<OPTION value=1 <%if rst("hire_sex")=1 then response.write "selected" end if%>>男性</OPTION>
<OPTION value=2 <%if rst("hire_sex")=2 then response.write "selected" end if%>>女性</OPTION>
</SELECT> </TD>
</TR>
<TR> 
<TD height=25 align="right">&nbsp;年&nbsp;&nbsp;&nbsp; 龄： </TD>
<TD><SELECT name=age1 size=1 id="select17">
<OPTION value=0 selected>不限</OPTION>
<%
for i=16 to 60
if rst("hire_age1")=i then
response.write "<option value='"&i&"' selected>"&i&"</option>"
else
response.write "<option value='"&i&"'>"&i&"</option>"
end if
next
%>
</SELECT>
至 
<SELECT name=age2 size=1 id="select18">
<OPTION value=0 selected>不限</OPTION>
<%
for i=16 to 60
if rst("hire_age2")=i then
response.write "<option value='"&i&"' selected>"&i&"</option>"
else
response.write "<option value='"&i&"'>"&i&"</option>"
end if
next
%>
</SELECT></TD>
</TR>
<TR > 
<TD height=25 align=right valign="middle"><FONT color=#ff6600>＊</FONT>公司名称：        </TD>
<TD align=left><input name="comname" type="text" id="comname3" value="<%=rst("hire_comname")%>" size="38" maxlength="50">        </TD>
</TR>
<TR > 
<TD height=25 align=right valign="middle"><font color="#ff6600">&nbsp;&nbsp;</font>通讯地址：</TD>
<TD align=left><input name="address" type="text" size="38" maxlength="50" value="<%=rst("hire_address")%>">        </TD>
</TR>
<TR > 
<TD height=25 align="right" valign="middle">&nbsp;&nbsp;邮&nbsp;&nbsp;&nbsp;编： </TD>
<TD align=left> <INPUT name=post id="post2" size=6 maxLength=6 value="<%=rst("hire_post")%>">        </TD>
</TR>
<TR > 
<TD height=25 align="right" vAlign=middle><FONT color=#ff6600>＊</FONT>联 系 人：</TD>
<TD align=left> <INPUT name=contact id="contact2" size=28 maxLength=25 value="<%=rst("hire_contact")%>">        </TD>
</TR>
<TR > 
<TD height=25 align="right" vAlign=middle><FONT color=#ff6600>＊</FONT>联系电话：</TD>
<TD align=left> <input name="tel" type="text" id="tel2" size="38" maxlength="100" value="<%=rst("hire_tel")%>">        </TD>
</TR>
<TR > 
<TD height=25 align=right valign="middle">&nbsp;&nbsp;传&nbsp;&nbsp;&nbsp;真：</TD>
<TD align=left> <input name="fax" type="text" id="fax2" size="38" maxlength="100" value="<%=rst("hire_fax")%>">        </TD>
</TR>
<TR > 
<TD height=25 align=right vAlign=middle><FONT color=#ff6600>＊</FONT>电子邮件：</TD>
<TD align=left vAlign=top> <INPUT maxLength=100 size=38 name=email value="<%=rst("hire_email")%>">        </TD>
</TR>

<TR > 
<TD height=25 colspan="2" align="center"> <input name="submitdd" type="submit" class=inputs  value=" 修 改 "> 
<input name="reset" type="reset" class=inputs value=" 还 原 "> </TD>
</TR>
</form>
</TABLE>
</body>
<%rst.close:set rst=nothing
CloseConn()%>
<script language="javascript" src="<%=InstallDir%>Js/jobjss.js"></script>