<!--#include file="../prohead.asp"-->
  <!--#include file="../checkrole.asp"-->
 <%
      call checkuser("zp")
	  %>
 <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script LANGUAGE="JavaScript">
function check()
{
if (trim(document.Form1.jobkind.value) =="0")
{
alert("请选择职业类别！"); 
document.Form1.jobkind.focus(); 
return (false); 
}

if (trim(document.Form1.showname.value)=="")
{
alert("招聘职位不能为空")
document.Form1.showname.focus()
document.Form1.showname.select()
return
}
 
if (isNaN(Form1.zrs.value)){
alert("招聘人数只能填数字！");
Form1.zrs.focus(); 
return (false);
}
 if (trim(document.Form1.country1.value) =="中国") 
{ 
if (trim(document.Form1.province.value) =="")
{
alert("请选择省份！"); 
document.Form1.province.focus(); 
return (false); 
}
if (trim(document.Form1.city.value) =="")
{
alert("请选择地级城市！"); 
document.Form1.city.focus(); 
return (false); 
}
} 
if (trim(document.Form1.content.value)=="")
{
alert("招聘内容不能为空")
document.Form1.content.focus()
document.Form1.content.select() 
return
}
document.Form1.submit()
}
//-->
function trim(inputString) {
	   
              if (typeof inputString != "string") { return inputString; }
              var retValue = inputString;
              var ch = retValue.substring(0, 1);
              while (ch == " ") { 
	          //检查字符串开始部分的空格
                  retValue = retValue.substring(1, retValue.length);
                  ch = retValue.substring(0, 1);
              }
              ch = retValue.substring(retValue.length-1, retValue.length);
              while (ch == " ") {
                 //检查字符串结束部分的空格
                 retValue = retValue.substring(0, retValue.length-1);
                 ch = retValue.substring(retValue.length-1, retValue.length);
              }
              while (retValue.indexOf("  ") != -1) { 
	         //将文字中间多个相连的空格变为一个空格
                 retValue = retValue.substring(0, retValue.indexOf("  ")) + retValue.substring(retValue.indexOf("  ")+1, retValue.length); 
              }
              return retValue;
           } 

//--> 
</SCRIPT>

<TABLE width=628 border=0 align="center" cellPadding=0 cellSpacing=0>
  <TBODY>
  <TR>
    <TD 
    style="BACKGROUND-POSITION: right 50%; BACKGROUND-IMAGE: url(i../mages/bg1.gif); BACKGROUND-REPEAT: repeat-y; BACKGROUND-COLOR: #ffffff" 
    vAlign=top align=middle width=628>      <BR>
      <TABLE width=100% border=0 align="center" cellPadding=0 cellSpacing=0>
        <TBODY>
        <TR>
              <TD width="8%"><IMG height=32 src="../images/work.gif" width=164 
            border=0></TD>
              <TD width="92%" background="../images/info_bg.gif">&nbsp;</TD>
        </TR></TBODY></TABLE>
        <TABLE border=0 cellSpacing=0 width="100%" style="border-collapse: collapse" height="505" cellpadding="0">
          
<form method="POST" action="save_info.asp" name="Form1">
<TR><TD height="17" bgcolor="#E1EFFF" width="100%">
<table width="100%" height="508" border="1" cellpadding="3" cellspacing="2" bordercolor="#111111" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" id="AutoNumber2" style="border-collapse: collapse">
<tr>
<TD colspan="4" height="20" bgcolor="#EEF7FF">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2">
<tr>
<TD height="17" bgcolor="#EEF7FF" width="770">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2">
<tr>
                                <td width="62%"></td>
                                <td width="38%"> <font color=#CC3300>【</font><font color="#CC3300">*</font><font color=#CC3300>为必填写】</font></td>
</tr>
</table>
</TD>
</tr>
</table>
</TD>
</tr>
<tr>
<TD align=right width=125 height="27" bgcolor="#EFF7FF">职业类别：</td>
<TD width="479" height="27" bgcolor="#E7EBF7" colspan="3">
&nbsp;
<select size="1" name="jobkind" >
<option value="0">请选择职业类别</option>

<%
set rsk=server.CreateObject("adodb.recordset")
sqlk="select * from Websen_jobkind order by  id"
rsk.open sqlk,conn,1,1
if not rsk.eof then 
do while not rsk.eof 
%>
<option value="<%=rsk("id")%>"><%=rsk("kindname")%></option>
<%
rsk.movenext
loop
rsk.close
end if
%>
</select>
                      
                    &nbsp;<font color="#CC3300">*</font></td>
</tr>
<tr>
<TD align=right width=125 height="27" bgcolor="#EFF7FF">招聘职位：</td>
<TD width="479" height="27" bgcolor="#E7EBF7" colspan="3">
&nbsp;
                      <input name="showname" type="text" size="35" maxlength="20"  onblur="this.value=this.value.replace(/\s/igm,'')">
                    &nbsp;<font color="#CC3300">*</font></td>
</tr>
<tr> <script language="JavaScript" src="../../js/calendar.js"> </script> 
<TD align="right" width="125" height="23" bgcolor="#EEF7FF">截止日期：</TD>
<TD width=479 height="23" bgcolor="#E7EBF7" colspan="3">
&nbsp;
<select size="1" name="period" class="f11"  style="display:none"> 
<option value="一周">一周</option>
<option value="半月">半月</option>
<option value="一个月">一个月</option>
<option value="三个月">三个月</option>
<option value="六个月">六个月</option>
<option value="一年">一年</option>
<option value="长期">长期</option>
</select> 
<input type="text" name="enddate" size="16" maxlength="16" value="<%=date()+2%>" onFocus="calendar()" > 


<font color="#CC3300">*</font></td>
</tr>
<tr>
<TD align="right" width="125" height="27" bgcolor="#EFF7FF">招聘人数：</TD>
<TD width=479 height="27" bgcolor="#E4EBF3" colspan="3">
&nbsp;
                      <input name="zrs" type="text" size="4" maxlength="5" value="0"  onBlur="if(/[^0-9]/g.test(this.value)){alert('请输入整型数字！');this.value=0}">
                    <font color="blue"></font>人<SPAN class=note>（为<font color="#FF0000">0</font>表示不限）</span><font color="#CC3300">*</font></td>
</tr>
<tr>
<TD align="right" width="125" height="28" bgcolor="#EEF7FF">
<p>工作所在地点：</TD>
<TD width=479 height="28" bgcolor="#E7EBF7" colspan="3">
&nbsp;
<SELECT style="WIDTH: 90px"   onchange=javascript:changeCountry1(this); name=country1>
    </SELECT> <SELECT style="WIDTH: 60px"     onchange=changeProvince(this); name=province>
       <OPTION value=""    selected>省份</OPTION>
       </SELECT> 
	   <SELECT name=city>   
	     <OPTION value=""     selected>地级</OPTION>
      </SELECT>
  <SCRIPT language=javascript src="../../js/area1.js"   purpose="INITIALIZER"></SCRIPT>
  <SCRIPT language=javascript>
<!--
    //设置国家1的缺省值
    for (var i=0;i<5;i++){
	    if (country1form.options[i].value == ''){
		    country1form.options[i].selected=true;
		}
	}
     for (var i=0;i<catArr1.length;i++) {
		catform.options[i+1]=new Option(catArr1[i].title,catArr1[i].id);
		//设置省选择框的选择值
		if(catform.options[i+1].value == ''){
	        	catform.options[i+1].selected=true;
	        }
	}
	changeProvince(catform);
	var len = boardform.options.length;
	for (var i=0;i<len;i++) {
		//设置城市选择框的选择值
		if(boardform.options[i].value == '') {
		    boardform.options[i].selected=true;
		}
	}
     if (country1form.options[country1form.selectedIndex].value!='中国') {
	    catform.style.display = 'none';
	    boardform.style.display = 'none';
		}
 -->
</SCRIPT>
                 <BR>    
                    <font color="#CC3300">*</font></td>
</tr>
<tr>
<TD align="right" width=125 height="25" bgcolor="#EFF7FF">招聘类型：</td>
<TD width=479 height="25" bgcolor="#E7EBF7" colspan="3">
&nbsp;
<select size="1" name="type" class="f11">
<option value="全职" selected>全职</option>
<option value="兼职">兼职</option>
<option value="全职或兼职">全职或兼职</option>
</select><font color="#CC3300"> *</font></td>
</tr>
<tr>
<TD align="right"   height="57" bgcolor="EFF7FF"> 招聘说明(描述)：<br>
 (最多500字)</TD>
<TD colspan="3" align="left" width="479" height="57" bgcolor="#E7EBF7">
&nbsp;
<textarea rows="8" cols="54" name="content" class="f11" style="font-family: 宋体"></textarea><FONT color="#CC3300">&nbsp;*</FONT></TD>
</tr>
<tr>
<TD colspan="4" align="center" height="26" bgcolor="#EEF7FF"><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber3">
<tr>
                          <td width="420"></td>
<td style="color: #000; font-size: 12px; font-family: 宋体" height="20" width="231">&nbsp;</td>
</tr>
</table>
</TD>
</tr>

<tr bgcolor="#EFF7FF">
<TD colspan="4" align="center" height="21">
  <INPUT class="f11" type="button" value="确 定" onClick="check()">&nbsp;&nbsp;&nbsp;&nbsp;<INPUT class="f11" type="button" value="返 回"></TD>
</tr>
<tr>
<TD colspan="4" align="center" height="12" bgcolor="#EEF7FF"></TD>
</tr>
</table>
</TD></TR>
</FORM>
</TABLE></TD></TR>
  </TABLE>
