<%@ codepage ="936" %>
  <% 
	data_path="../../" 'ACC连接数据库路径，对SQL无效
	numid="16"
	dir="../err.asp" 
  %>
 <!--#include file="../../conn/conn.asp"-->
<!--#include file="../../inc/safe.asp"-->
<!--#include file="../rolecheck.asp"-->

<LINK href="../css/style.css" rel=stylesheet type=text/css> 
<SCRIPT language=javascript1.2 src="../css/iXs_Main.js"></SCRIPT>
<script LANGUAGE="JavaScript">
function check()
{
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.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>
<%
if Chkrequest(request("info_id")) then
info_id=request("info_id")
else
Response.Redirect ("../../login/chklogin.asp?login=4")
end if
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 
%>
<table width="98%" border="0" cellspacing="0" cellpadding="0" align=center class="tableBorder"> 
  <tr> 
     <th height=25 colspan="2" class="tableHeaderText">企业招聘信息管理 </th> 
  </tr> 
  <tr> 
     <td colspan="2" ><p><B>注意</B>：<BR> 
         ①任何的删除操作都是不可逆的，执行删除时请慎重。<BR> </td> 
  </tr> 
  <tr> 
     <td width="10%" height=25 > <B>操作选项</B></td> 
         <FORM name=searchForm action="work.asp" method=post onsubmit="javascript:if(doSearch()==false) return false;"><td >
       关键字：<input name="keywords" type="text" value="<%=keywords%>">

       <input type="submit" value="立刻查找" id=submit name=submit>
         </td></form>
  </tr> 
</table>
<SCRIPT LANGUAGE='JavaScript' SRC='/js/search.js' TYPE='text/javascript'></script>
<form method="POST" action="save_edit.asp?info_id=<%=rs("info_id")%>" name="Form1">
  <table wInfo_IDth="100%" border="0" align="center" cellpadding="2" cellspacing="1" class="tableBorder">
    <tr>
      <th width="100%" height=25 colspan="5" class="tableHeaderText">企业招聘信息列表</th>
    <tr>
      <td colspan="5">
       <table width="100%" height="508" border="0" cellpadding="0" cellspacing="1" bordercolor="#111111" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" id="AutoNumber2" style="border-collapse: collapse">
<tr>
<TD colspan="4" height="20" bgcolor="#EEF7FF" width="750">
<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   bgcolor="#F5F5F5" onMouseOut="this.style.backgroundColor='#F5F5F5'" onMouseOver="this.style.backgroundColor='#D7E3F3'" 	>
<TD align=right width=193 height="27" >职业类别：</td>
<TD width="554" height="27"  colspan="3">
&nbsp;&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   bgcolor="#F5F5F5" onMouseOut="this.style.backgroundColor='#F5F5F5'" onMouseOver="this.style.backgroundColor='#D7E3F3'" 	>
<TD align=right width=193 height="27" >招聘职位：</td>
<TD width="554" height="27"  colspan="3">
&nbsp;
                      <input name="showname" type="text" value="<%=rs("showname")%>" size="35" maxlength="20">
                    &nbsp;<font color="#CC3300">*</font></td>
</tr>
<tr bgcolor="#ffffff" onMouseOut="this.style.backgroundColor='#ffffff'" onMouseOver="this.style.backgroundColor='#D7E3F3'">
<TD align="right" width="193" height="23" >截止日期：</TD>
<TD width=554 height="23"  colspan="3"> <script language="JavaScript" src="../../js/calendar.js"> </script> 
&nbsp;
<input type="text" name="enddate" size="16" maxlength="16" value="<%=rs("enddate")%>" onFocus="calendar()" >
<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> <font color="#CC3300">*</font></td>
</tr>
<tr  bgcolor="#F5F5F5" onMouseOut="this.style.backgroundColor='#F5F5F5'" onMouseOver="this.style.backgroundColor='#D7E3F3'" >
<TD align="right" width="193" height="27" >招聘人数：</TD>
<TD width=554 height="27"  colspan="3">
&nbsp;
                      <input name="zrs" type="text" value="<%=rs("zrs")%>" size="4" maxlength="50" 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 bgcolor="#ffffff" onMouseOut="this.style.backgroundColor='#ffffff'" onMouseOver="this.style.backgroundColor='#D7E3F3'">
<TD align="right" width="193" height="28" >
<p>工作所在地点：</TD>
<TD width=554 height="28"  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  bgcolor="#F5F5F5" onMouseOut="this.style.backgroundColor='#F5F5F5'" onMouseOver="this.style.backgroundColor='#D7E3F3'" >
<TD align="right" width=193 height="25" >招聘类型：</td>
<TD width=554 height="25"  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  bgcolor="#ffffff" onMouseOut="this.style.backgroundColor='#ffffff'" onMouseOver="this.style.backgroundColor='#D7E3F3'" >
  <TD align="center" height="25" >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 推&nbsp;&nbsp;&nbsp; 荐：</td>
  <TD height="25"  colspan="3"> &nbsp;
    <input type="checkbox" name="tj" value="1" <%if rs("tj")=1 then %>checked<%end if%> /></td>
</tr>
<tr  bgcolor="#F5F5F5" onMouseOut="this.style.backgroundColor='#F5F5F5'" onMouseOver="this.style.backgroundColor='#D7E3F3'" >
<TD align="right" width="193" height="57" >&nbsp;&nbsp;招聘内容描述(说明)：<br>
&nbsp;(最多500字)</TD>
<TD colspan="3" align="left" width="554" height="57" >
&nbsp;
<textarea rows="8" cols="54" name="content" class="f11" style="font-family: 宋体"><%=rs("content")%></textarea><FONT color="#CC3300">&nbsp;*</FONT></TD>
</tr>
<tr bgcolor="#EFF7FF">
<TD colspan="4" align="center" width="750" height="21">
  <INPUT class="f11" type="button" value="确 定 修 改" onclick="check()">
  &nbsp;&nbsp;&nbsp;&nbsp;<INPUT name="重置" type="reset" class="f11" value="重 新 填 写"></TD>
</tr>
</table>
      </td>
    </tr>

  </table>
</form>
<%rs.close
set rs=nothing
conn.close
set conn=nothing
%>
<!--#include file="../copy.asp" -->