<!--#include file="../prohead.asp"-->
  <!--#include file="../checkrole.asp"-->
 <%
      call checkuser("zp")
 if issession=0 then
gsid=Replace_Text(request.Cookies("Yxmemberid"))
else
gsid=session("id")
end if
	  %>
<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 (trim(document.Form1.zrs.value)=="")
{
alert("招聘人数不能为空")
document.Form1.zrs.focus()
document.Form1.zrs.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>
<%
 info_id=Replace_Text(request("info_id"))
 sql="select * from Websen_work where info_id="&info_id&" order by info_id desc"
Set rs= Server.CreateObject("ADODB.Recordset") 
rs.open sql,conn,1,1 
id=gsid
%>

<TABLE width=100% 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>      <TABLE cellSpacing=0 cellPadding=0 width=100% border=0>
        <TBODY>
        <TR>
              <TD width="6%"><IMG height=32 src="../images/edit_work.gif" width=152 
            border=0></TD>
              <TD width="94%" 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_edit.asp?info_id=<%=rs("info_id")%>" name="Form1">
<TR><TD height="17" bgcolor="#E1EFFF" width="100%">
<table width="100%" height="508" border="0" cellpadding="1" cellspacing="1" 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%"><span style="font-size: 10.5pt"><b>&nbsp;发布招聘信息</b></span></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=222 height="27" bgcolor="EFF7FF">职业类别：</td>
<TD width="733" height="27" bgcolor="#E0EBF5" 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")%>" <%if rsk("id")=rs("jobkind") then  response.Write("selected") end if%>><%=rsk("kindname")%></option>
<%
rsk.movenext
loop
rsk.close
end if
%>
</select>
                    &nbsp;<font color="#CC3300">*</font></td>
</tr>
<tr>
<TD align=right width=222 height="27" bgcolor="EFF7FF">招聘职位：</td>
<TD width="733" height="27" bgcolor="#E0EBF5" colspan="3">
&nbsp;
                      <input name="showname" type="text" value="<%=rs("showname")%>" size="35" maxlength="20">
                    &nbsp;<font color="#CC3300">*</font></td>
</tr>
<tr>
<TD align="right" width="222" height="23" bgcolor="EFF7FF">有 效 期：</TD>
<TD width=733 height="23" bgcolor="#E0EBF5" colspan="3">
&nbsp;
<script language="JavaScript" src="../../js/calendar.js"> </script> 
<select size="1" name="period" class="f11" style="display:none"> 
<option value="<%=rs("period")%>" selected><%=rs("period")%></option>
<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="<%=rs("enddate")%>" onFocus="calendar()" > <font color="#CC3300">*</font></td>
</tr>
<tr>
<TD align="right" width="222" height="27" bgcolor="EFF7FF">招聘人数：</TD>
<TD width=733 height="27" bgcolor="#E0EBF5" colspan="3">
&nbsp;
                      <input name="zrs" type="text" value="<%=rs("zrs")%>" size="4" maxlength="5" onBlur="if(/[^0-9]/g.test(this.value)){alert('请输入整型数字！');this.value=0}">
                      <span class="a9px"><font color="blue">
</font>人<font color="blue">（<span style="letter-spacing: 1">为</span></font><span style="font-size: 13px; letter-spacing: 1"><font color="#FF0000">0</font></span><font color="blue"><span style="letter-spacing: 1">表示不限</span>）</font></span><font color="#CC3300">*</font></td>
</tr>
<tr>
<TD width="222"  height="28" align="right" bgcolor="EFF7FF">
 工作所在地点：</TD>
<TD width=733 height="28" bgcolor="#E0EBF5" 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 == '<%=rs("country")%>'){
		    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 == '<%=rs("province")%>'){
	        	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 == '<%=rs("city")%>') {
		    boardform.options[i].selected=true;
		}
	}
     if (country1form.options[country1form.selectedIndex].value!='中国') {
	    catform.style.display = 'none';
	    boardform.style.display = 'none';
		}
 -->
</SCRIPT> <font color="#CC3300">*</font></td>
</tr>
<tr>
<TD align="right" width=222 height="25" bgcolor="EFF7FF">招聘类型：</td>
<TD width=733 height="25" bgcolor="#E0EBF5" colspan="3">
&nbsp;
<select size="1" style="font-size: 9pt" name="type">
<option value="全职"  <%if rs("type")="全职" then  response.Write("selected") end if%>>全职</option>
<option value="兼职" <%if rs("type")="兼职" then  response.Write("selected") end if%>>兼职</option>
<option value="全职或兼职" <%if rs("type")="全职或兼职" then  response.Write("selected") end if%>>全职或兼职</option>

</SELECT><font color="#CC3300"> *</font></td>
</tr>
<tr>
<TD align="right" width="222" height="57" bgcolor="EFF7FF">&nbsp;&nbsp;招聘内容描述(说明)：<br>
&nbsp;(最多500字)</TD>
<TD colspan="3" align="left" width="733" height="57" bgcolor="#E0EBF5">
&nbsp;
<textarea rows="11" cols="60" name="content" class="f11" style="font-family: 宋体"><%=rs("content")%></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><BR><BR></TD></TR>
</TABLE>
<%rs.close
set rs=nothing
conn.close
set conn=nothing
%>

