<!--#include file="conn.asp"-->
<!--#include file="../inc/setup.asp"-->
<!--#include file="check.asp"-->
<!--#include file="../inc/sql.asp"-->
<%
	end if
	useflag=4
%>
<!--#include file="flag.asp"-->
<!--#include file="../inc/cinfo.asp"-->
<%
	action=Trim(Request.QueryString("action"))
	if action="add" then
		zptext=Trim(Request.Form("content"))
		job=Trim(Request.Form("province"))
		zpnum=Trim(Request.Form("zpnum"))
		gzdd=Trim(Request.Form("hukouprovince"))
		cname=Trim(Request.Form("cname"))
		nianlings=Trim(Request.Form("nianlings"))
		zyes=request("zyes")
		edus=request("edus")
		moneys=request("moneys")
		youxiaos=request("youxiaos")
		jobtypes=request("jobtypes")
		sexs=request("sexs")
		shisus=request("shisus")
		hkas=request("hkas")
		hkbs=request("hkbs")
		languages=request("languages")
		computers=request("computers")
		marrys=request("marrys")
		pthuas=request("pthuas")
		jtzw=request("capital")
		city=request("hukoucapital") 
		contact=request("contact")
		cypic=request("hukoucity")
		Set rs = Server.CreateObject("ADODB.Recordset")
		sql="select * from wtzp"
		rs.Open sql,conn,2,3
		rs.addnew
		rs("zptext")=zptext
		rs("jobtypes")=jobtypes
		rs("edus")=edus
		rs("shisus")=shisus
		rs("zyes")=zyes
		rs("nianlings")=nianlings
		rs("languages")=languages
		rs("hkas")=hkas
		rs("pthuas")=pthuas
		rs("hkbs")=hkbs
		rs("sexs")=sexs
		rs("marrys")=marrys
		rs("computers")=computers
		rs("job")=job
		rs("jtzw")=jtzw
		rs("moneys")=moneys
		rs("youxiaos")=youxiaos
		rs("zpnum")=zpnum
		rs("gzdd")=gzdd
		rs("city")=city
		rs("cypic")=cypic
		rs("idate")=date()
		rs("cname")=cname
		rs("contact")=contact
		rs("shenhe")=1
		rs.update
		rs.close
		set rs=nothing
		response.write"<SCRIPT language=JavaScript>alert('成功发布委托招聘信息！');"
		response.write"this.location.href='wtzp_xpublish.asp'</SCRIPT>"
		response.end
	end if
%>
<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=gb2312'>
<title>委托招聘职位</title>
<link href='Include/Admin_Style.CSS' rel='stylesheet' type='text/css'>
<script language='JavaScript' src='Include/Common.js'></script>
<script language="JavaScript">
<!--
//功能：去掉字符串前后空格
//返回值：去掉空格后的字符串
function fnRemoveBrank(strSource)
{
 return strSource.replace(/^\s*/,'').replace(/\s*$/,'');
}
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();
}
function String.prototype.lenB()
{
return this.replace(/[^\x00-\xff]/g,"**").length;
}
-->
</script>
<SCRIPT LANGUAGE="JavaScript">
<!--//
function check()
{
  if (register.province.value=="") {
		alert("请选择招聘职位类型！");
		register.province.focus();		
		    return (false);
  }
  if (register.zpnum.value=="") {
		alert("请输入招聘人数！");
		register.zpnum.focus();		
		    return (false);
  }
  if (isNaN(register.zpnum.value)){
		alert("请正确填写招聘人数！");
		register.zpnum.focus();		
		    return (false);
  }
  if (register.hukouprovince.value=="") {
		alert("请选择工作地点！");
		register.hukouprovince.focus();		
		    return (false);
  }
  if (register.cname.value=="") {
		alert("请输入委托招聘的公司名称！");
		register.cname.focus();		
		    return (false);
  }
   if (register.zptext.value=="") {
		alert("请输入岗位描述！");
		register.zptext.focus();		
		    return (false);
  }
  if (register.nianlings.value=="") {
		alert("请输入年龄描述！");
		register.nianlings.focus();		
		    return (false);
}
else
	return (true);
}
//-->
</SCRIPT>
</head>
<body leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'>
<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>
<table width='100%' height='28' border='0' cellpadding='0' cellspacing='1' bgcolor='#efefef'>
<tr>
<td align="center" class='sort'><font color='#990000'>添加委托招聘职位</font></td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CDCDCD">
<form  action='?Action=add' method='post' name='register' onSubmit="return check()">
<tr class="tdbg" onMouseOver="this.className='tdbgmouseover'" onMouseOut="this.className='tdbg'">
<td width='230' height='30' align='right'>职位类型：</td>
<td height='30' colspan="3" nowrap>&nbsp;&nbsp;
  <select name="province" style="width: 160px;font-size: 12px;" onChange=GetCapital(this.options[this.selectedIndex].value)>
<option value="" selected>职位类型</option>
<%
	set rs=server.createobject("adodb.recordset")
	sql="select * from JOB_position where position_fid=0"
	rs.open sql,conn,1,1
	do while not rs.eof
	response.write"<OPTION value="&rs("position_id")&">"&rs("position_name")&"</option>"
	rs.movenext
	loop
	rs.close
	set rs=nothing
%>
</select>* </td>
</tr>
<tr class="tdbg" onMouseOver="this.className='tdbgmouseover'" onMouseOut="this.className='tdbg'">
<td width='230' height='30' align='right'>具体职位：</td>
<td height='30' colspan="3" nowrap>&nbsp;&nbsp;
<span id="load100"></span> <span id="ccapital">
<select name="capital "onchange=GetCity(this.options[this.selectedIndex].value)>
<option value="" selected>职位名称</option>
</select>
</span>
  * </td>
</tr>
<tr class="tdbg" onMouseOver="this.className='tdbgmouseover'" onMouseOut="this.className='tdbg'">
<td height='30' align='right' nowrap>委托招聘公司：</td>
<td height='30' colspan="3" nowrap>&nbsp;&nbsp;
  <input maxlength=30 size=30 name="cname"> 
  *</td>
</tr>
<tr class="tdbg" onMouseOver="this.className='tdbgmouseover'" onMouseOut="this.className='tdbg'">
<td height='30' align='right' nowrap>工作地区：</td>
<td colspan="3" nowrap>&nbsp;&nbsp;
<select name="hukouprovince" size="1" id="select11" onChange=GethukouCapital(this.options[this.selectedIndex].value)>
<option value="" selected>省份</option>
<%
	set rs=server.createobject("adodb.recordset")
	sql="select * from job_provinceandcity where fid=0"
	rs.open sql,conn,1,1
	do while not rs.eof
	response.write"<OPTION value="&rs("id")&">"&rs("province_city")&"</option>"
	rs.movenext
	loop
	rs.close
	set rs=nothing
%>
</select>
<span id="load300"></span><span id="chukoucapital">
<select name="hukoucapital" id="select12" onchange=GethukouCity(this.options[this.selectedIndex].value)>
<option value="" selected>地级市</option>
</select>
</span><span id="load400"></span> <span id="chukoucity">
                          <select name=hukoucity id="hukoucity">
                            <option value="" selected>县级地区</option>
                       </select>
            </span>*</td>
</tr>
<tr class="tdbg" onMouseOver="this.className='tdbgmouseover'" onMouseOut="this.className='tdbg'">
<td height='30' align='right' nowrap>招聘人数：</td>
<td width="339" nowrap>&nbsp;&nbsp;
  <input maxlength=10 size=4 name="zpnum">
　人*</td>
<td width="126" align="right" nowrap>年龄要求:&nbsp;&nbsp;</td>
<td width="258" nowrap>&nbsp;&nbsp;
  <input maxlength=30 size=10 name="nianlings">
  岁*</td>
</tr>
<tr class="tdbg" onMouseOver="this.className='tdbgmouseover'" onMouseOut="this.className='tdbg'">
<td height='30' align='right' nowrap>专业要求：</td>
<td height='30' nowrap>&nbsp;&nbsp;
  <select name="zyes">
    <option value="不限">不限</option>
<%
call listzhy("")
%>
    </select></td>
<td height='30' align="right" nowrap>户籍要求:&nbsp;&nbsp;</td>
<td height='30' nowrap>
  &nbsp;&nbsp;
  <select size=1 name="hkas">
    <option  value="不限">不限</option>
<%
call listarea("")
%>
    </select>
</td>
</tr>
<tr id="OptionsArea" style="play:none" class="tdbg" onMouseOver="this.className='tdbgmouseover'" onMouseOut="this.className='tdbg'">
<td align='right' nowrap>学历要求：</td>
<td height='30' nowrap>&nbsp;&nbsp;
  <select size=1 name="edus">
    <option value="不限">不限</option>
      <option value="初中">初中</option>
        <option value="高中">高中</option>
          <option value="中技">中技</option>
          <option value="中专">中专</option>
          <option value="大专">大专</option>
          <option value="本科">本科</option>
          <option value="硕士">硕士</option>
          <option value="博士">博士</option>
      </select></td>
<td height='30' align="right" nowrap>目前住地:&nbsp;&nbsp;</td>
<td height='30' nowrap><b>
  &nbsp;
  <select size=1 name="hkbs">
    <option  value="不限">不限</option>
<%
call listarea("")
%>
    </select>
</b></td>
</tr>
<tr class="tdbg" onMouseOver="this.className='tdbgmouseover'" onMouseOut="this.className='tdbg'">
<td height='30' align='right' nowrap>外语要求：</td>
<td nowrap>&nbsp;&nbsp;
  <select size=1 name="languages">
    <option value="不限">不限</option>
    <option value="英语">英语</option>
    <option value="日语">日语</option>
    <option value="法语">法语</option>
    <option value="德语">德语</option>
    <option value="俄语">俄语</option>
    <option value="朝鲜语">朝鲜语</option>
    <option value="西班牙语">西班牙语</option>
    <option value="阿拉伯语">阿拉伯语</option>
    <option value="其它">其它</option>
</select></td><td align="right" nowrap>普通话程度:&nbsp;&nbsp;</td>
<td nowrap>&nbsp;&nbsp;
  <select size=1 name="pthuas">
    <option value="标准">标准</option>
    <option value="精通">精通</option>
    <option value="优秀">优秀</option>
    <option value="良好">良好</option>
    <option value="一般">一般</option>
    <option value="较差">较差</option>
</select></td></tr>    <tr class="tdbg" onMouseOver="this.className='tdbgmouseover'" onMouseOut="this.className='tdbg'">
<td height='30' align='right' nowrap>性别要求：</td>
<td nowrap>&nbsp;&nbsp;
  <select size="1" name="sexs">
    <option value="不限">不限</option>
      <option value="男">男</option>
        <option value="女">女</option>
  </select></td>
<td align="right" nowrap>工作性质:&nbsp;&nbsp;</td>
<td nowrap>&nbsp;&nbsp;
  <select size="1" name="jobtypes">
    <option value="全职">全职</option>
    <option value="兼职">兼职</option>
    <option value="两者兼可">两者兼可</option> 
  </select></td></tr>
<tr class="tdbg" onMouseOver="this.className='tdbgmouseover'" onMouseOut="this.className='tdbg'">
<td height='30' align='right' nowrap>婚姻状况：</td>
<td nowrap>&nbsp;&nbsp;
  <select size="1" name="marrys">
    <option value="不限">不限</option>
      <option value="未婚">未婚</option>
        <option value="已婚">已婚</option>
          <option value="离异">离异</option>
      </select></td>
<td align="right" nowrap>计算机能力:&nbsp;&nbsp;</td>
<td nowrap>&nbsp;&nbsp;
  <select size="1" name="computers">
    <option value="不限">不限</option>
    <option value="一般"> 一般</option>
    <option value="精通">精通</option>
    <option value="优秀">优秀</option>
    <option value="良好">良好</option>
    <option value="较差">较差</option>
  </select></td></tr>
<tr class="tdbg" onMouseOver="this.className='tdbgmouseover'" onMouseOut="this.className='tdbg'">
<td height='30' align='right' nowrap>提供食宿：</td>
<td nowrap>&nbsp;&nbsp;
  <select size="1" name="shisus">
    <option value="不提供">不提供</option>
      <option value="提供"> 提供</option>
        <option value="只提供吃">只提供吃</option>
          <option value="只提供住">只提供住</option>
      </select></td>
<td align="right" nowrap>薪金水平:&nbsp;&nbsp;</td>
<td nowrap>&nbsp;&nbsp;
  <select size="1" name="moneys">
    <option value="面议">面议</option>
    <option value="1000以下">1000以下</option>
    <option value="1001—2000">1001—2000</option>
    <option value="2001—3000">2001—3000</option>
    <option value="3001—4000">3001—4000</option>
    <option value="4001—5000">4001—5000</option>
    <option value="5001—6000">5001—6000</option>
    <option value="6001—7000">6001—7000</option>
    <option value="7001—8000">7001—8000</option>
    <option value="8001—9000">8001—9000</option>
    <option value="9001—10000">9001—10000</option>
    <option value="10000以上">10000以上</option>
    </select>
  /月</td></tr>
<tr class="tdbg" onMouseOver="this.className='tdbgmouseover'" onMouseOut="this.className='tdbg'">
<td height='30' align='right' nowrap>有效期限：</td>
<td colspan="3" nowrap>
&nbsp;&nbsp;
<select size=1 name="youxiaos">
<option value="长期有效">长期有效</option>
<option value="一星期">一星期</option>
<option value="半个月">半个月</option>
<option value="一个月">一个月</option>
<option value="三个月">三个月</option>
<option value="半年">半年</option>
<option value="一年">一年</option>
<option value="两年">两年</option>
<option value="三年">三年</option>
<option value="三年以上">三年以上</option>
</select></td>
</tr>
<tr class="tdbg" onMouseOver="this.className='tdbgmouseover'" onMouseOut="this.className='tdbg'">
<td height='30' align='right' nowrap>联系方式：</td>
<td colspan="3" nowrap>&nbsp;&nbsp;
  <input maxlength="100" size="70" name="contact" value="查看该职位联系方式！请与<%=homename%>取得联系！">
  *</td>
</tr>
<tr class="tdbg" onMouseOver="this.className='tdbgmouseover'" onMouseOut="this.className='tdbg'">
<td height='30' colspan="4" align='center' nowrap>岗位职责描述及其它要求*</td>
</tr>
<tr class="tdbg" onMouseOver="this.className='tdbgmouseover'" onMouseOut="this.className='tdbg'">
<td height='30' colspan="4" align='center' nowrap><textarea name="content" style="display:none"></textarea><iframe ID="Editor" name="Editor" src="../HtmlEditor/index.html?ID=content" frameBorder="0" marginHeight="0" marginWidth="0" scrolling="No" style="height:130px;width:100%"></iframe></td>
</tr>
<tr class="tdbg" onMouseOver="this.className='tdbgmouseover'" onMouseOut="this.className='tdbg'">
<td height='30' colspan="4" align='center' nowrap>
<input type="submit" value="发　布" name="button">
</td>
</tr>
</form>
</table>
</body>
</html>