<!--#include file="../../conn/conn.asp" -->
<!--#include file="../../Inc/Commoncode.asp" -->
<!--#include file="../checkvalid.asp" -->
<%If Not FRAdminLevel(303) Then Call ErrorMsg()%>
<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.login.value)== ""))
	{
	 alert("请输入会员帐号!");
    theForm.login.focus();
    return (false);
	}
	var objv = theForm.login.value;
    var pattern = /^[A-Za-z0-9]{4,20}$/;
    flag = pattern.test(objv);
    if ((!flag)) 
    {
     alert("会员帐号：要求为4-20个字母或数字！请重新输入。");
     theForm.login.focus();
     return(false);
     }
  if (fnRemoveBrank(theForm.place.value) == "")
  {
    alert("请输入职位名称!");
    theForm.place.focus();
    return (false);
  }
  if (theForm.trade.value == "")
  {
    alert("请选择所属行业!");
	theForm.trade.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>
<table width="100%" align="center" border="0" cellpadding="2" cellspacing="1"  class="tableBorder">
<form action="hire_save.asp" method="POST" name="form2" onSubmit="return Juge(this)">
   <tr> 
	   <th  height=25  colspan="2" class="tableHeaderText">添加职位</th>
   </tr>
      <TR> 
        <TD height=28 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="22" align="right">会员帐号：</td>
        <td width="87%" height="22"><input name=login id="login" size=20 maxlength=20> 
        <FONT color=#ff6600>＊</FONT> （为字母或数字，4-20个字符）</td>
      </tr>
	  <tr> 
        <TD height=30 align="right"><FONT 
                      color=#ff6600>＊</FONT>招聘职位：</TD>
        <TD><FONT color=#000000> 
          <input name="place" type="text" id="place" size="30" maxlength="50">
        </FONT></TD>
      </tr>
      <TR> 
        <TD height=30 align="right">&nbsp;&nbsp;招聘部门：</TD>
        <TD><input name="dept" type="text" id="dept" maxlength="10"> </TD>
      </TR>
      <tr> 
        <TD height=30 align="right"><FONT 
                      color=#ff6600>＊</FONT>招聘类别：</TD>
        <TD><FONT color=#000000> 
          <INPUT type=radio class="checkbox" value=1 name=type checked>
          全职 
          <INPUT name=type type=radio class="checkbox" value=2 >
          兼职 
          <input name=type type=radio class="checkbox" value=3 >
        全职、兼职均可</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
	  	 response.write"<OPTION value="&rs("trade_id")&">"&rs("trade_name")&"</option>"
		 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="<%=hire_position%>" ><input name="positions" type="text" onClick="JumpSearchLayer(1,'form2','position','positions');" <%if hire_id="" then%>value="选择希望岗位类别"<%else%>value="<%=PosionName(hire_position)%>"<%end if%> size="60" readonly /></TD>
      </TR>
      <TR bgcolor="#efefef"> 
        <TD height=30 align="right"><FONT color=#ff6600>＊</FONT>工作地区：</TD>
        <TD height=30><input name="workadd" type="hidden" id="workadd" value="<%=hire_workadd%>" /><input name="workadds" type="text" onClick="JumpSearchLayer(2,'form2','workadd','workadds');" id="workadds" <%if hire_id="" then%>value="选择希望工作地区"<%else%>value="<%=ProvinceName(hire_workadd)%>"<%end if%> size="60" readonly /></TD>
      </TR>
      <TR> 
        <TD height=30 align="right"><FONT color=#ff6600>＊</FONT>招聘人数：</TD>
        <TD><FONT color=#000000> 
          <INPUT name=number class=Fieldtext id="number" size=6 maxLength=5>
        人</FONT> </TD>
      </TR>
      <TR> 
        <TD height=30 align="right">&nbsp;&nbsp;薪资待遇：</TD>
        <TD height=30><FONT color=#000000>
          <INPUT name=pay class=Fieldtext id="pay" value="0" size=6 maxLength=5>
        </FONT>元/月 （注：建议输入具体数目） </TD>
      </TR>
      <TR> 
        <TD height=30 align="right"><FONT color=#ff6600>＊</FONT>截止日期： </TD>
        <TD><input name="funddate" type="text" size="10" readonly onClick="fPopUpCalendarDlg(funddate);return false" id=funddate value=""><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=30><FONT color=#333333>（言简意赅地阐述职位具体要求。）</FONT></TD>
      </TR>
      <TR> 
        <TD height=30 align=center>&nbsp;</TD>
        <TD height=30><textarea class=FieldText id=introduce style="FONT-SIZE: 12px" name=introduce rows=10 cols=80></textarea></TD>
      </TR>
      <TR> 
        <TD height=30 colspan="2">&nbsp;&nbsp;任职要求：<FONT 
                        color=#333333>（以便求职者能在设定的查询条件中更好地搜索到贵企业的职位！）</FONT></TD>
      </TR>
      <tr> 
          <td height=28 align="right">&nbsp;人才类型：</td>
          <td height=21 > 
            <INPUT id=usergroup type=radio class="checkbox" CHECKED value=0 name=usergroup>
            普通 
            <INPUT name=usergroup type=radio class="checkbox" id=usergroup value=1>
            毕业生 
            <INPUT name=usergroup type=radio class="checkbox" id=usergroup value=2>
                高级人才</td>
      </tr>
      <tr>
        <td height=28 align="right">专业要求：</td>
        <td height=21 ><input type="hidden" name="profession" id="profession" value="<%=hire_profession%>" ><input name="professions" type="text" onClick="JumpSearchLayer(3,'form2','profession','professions');" <%if hire_id="" then%>value="选择专业要求"<%else%>value="<%=ProfessionName(hire_profession)%>"<%end if%> size="60" readonly /></td>
      </tr>
      <TR> 
        <TD height=28 align="right">学&nbsp;&nbsp;&nbsp;&nbsp;历： </TD>
        <TD height=18><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
		   response.write"<OPTION value="&rs("edu_id")&">"&rs("edu_name")&"</option>"
		   rs.movenext
		  loop
		  rs.close
		  set rs=nothing
		 %>
          </select>
          以上</TD>
      </TR>
      <!--+++++++++++++++++++++++++++++++++++工作经验要求++++++++++++++++++++++++++++++++++++++-->
      <TR> 
        <TD height=28 align="right">工作经验：</TD>
        <TD height=21><select name=experience size=1 id="select21">
            <option value=-100 selected>不限</option>
            <option value=-1>在读学生</option>
            <option value=0>毕业生</option>
            <%
			for i=1 to 10
			 response.write "<option value='"&i&"'>"&i&"年</option>"
			next
			%>
          </select>
        以上 &nbsp; </TD>
      </TR>
      <!--++++++++++++++++++++++++++++++++++++性别要求+++++++++++++++++++++++++++++++++++++++++-->
      <TR> 
        <TD height=28 align="right">性&nbsp;&nbsp;&nbsp;&nbsp;别： </TD>
        <TD height=21><SELECT name=sex size=1>
            <OPTION value=0 selected>不限</OPTION>
            <OPTION value=1>男性</OPTION>
            <OPTION value=2>女性</OPTION>
          </SELECT> </TD>
      </TR>
      <TR> 
        <TD height=28 align="right">年&nbsp;&nbsp;&nbsp;&nbsp;龄： </TD>
        <TD height=21><SELECT name=age1 size=1 id="age1">
            <OPTION value=0 selected>不限</OPTION>
            <%
			for i=16 to 60
			 response.write "<option value='"&i&"'>"&i&"</option>"
			next
			%>
          </SELECT>
          至 
          <SELECT name=age2 size=1 id="select2">
            <OPTION value=0 selected>不限</OPTION>
            <%
			for i=16 to 60
			 response.write "<option value='"&i&"'>"&i&"</option>"
			next
			%>
          </SELECT></TD>
      </TR>
      <TR> 
        <TD height=30 align=right valign="middle"><FONT color=#ff6600>＊</FONT>公司名称：        </TD>
        <TD align=left><input name="comname" type="text" id="comname" size="38" maxlength="50">        </TD>
      </TR>
      <TR> 
        <TD height=30 align=right valign="middle"><FONT color=#ff6600>＊</FONT>通讯地址：        </TD>
        <TD align=left><input name="address" type="text" size="38" maxlength="50">        </TD>
      </TR>
      <TR> 
        <TD height=30 align="right" valign="middle">邮&nbsp;&nbsp;&nbsp;&nbsp;编： </TD>
        <TD align=left> <INPUT name=post id="post" size=6 maxLength=6> </TD>
      </TR>
      <TR> 
        <TD height=30 align="right" vAlign=middle><FONT color=#ff6600>＊</FONT>联 系 人：</TD>
        <TD height=18 align=left> <INPUT name=contact id="contact" size=28 maxLength=25>        </TD>
      </TR>
      <TR> 
        <TD height=30 align="right" vAlign=middle><FONT color=#ff6600>＊</FONT>联系电话：</TD>
        <TD height=22 align=left> <input name="tel" type="text" id="tel" size="38" maxlength="100">        </TD>
      </TR>
      <TR> 
        <TD height=30 align=right valign="middle">传&nbsp;&nbsp;&nbsp;&nbsp;真：</TD>
        <TD height=22 align=left> <input name="fax" type="text" id="fax" size="38" maxlength="100">        </TD>
      </TR>
      <TR> 
        <TD height=30 align=right vAlign=middle><FONT color=#ff6600>＊</FONT>电子邮件：</TD>
        <TD align=left vAlign=top> <INPUT maxLength=100 size=38 name=email> </TD>
      </TR>
      <TR> 
        <TD height=30 align="right" valign="middle" noWrap>&nbsp;公司主页： </TD>
        <TD><INPUT name=url id="url" size=38 maxLength=100> </TD>
      </TR>
      <TR bgcolor="#FFFFFF"> 
        <TD height=30 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>
<script language="javascript" src="<%=InstallDir%>Js/jobjss.js"></script>
<%CloseConn()%>