<!--#include file="conn.asp"-->
<!--#include file="check.asp"-->
<%
	useflag=4
%>
<!--#include file="flag.asp"-->
<!--#include file="../inc/char.asp"-->
<!--#include file="../inc/setup.asp"-->
<!--#include file="../inc/sql.asp"-->
<%
	end if
	action=ReplaceBadChar(Trim(Request.QueryString("action")))
	id=int(ReplaceBadChar(Trim(Request.QueryString("id"))))
	if action="edit" then
	
		jobname=ReplaceBadChar(Trim(Request.Form("jobname")))
		text=Trim(Request.Form("text"))
		companyname=ReplaceBadChar(Trim(Request.Form("companyname")))
		adds=ReplaceBadChar(Trim(Request.Form("adds")))
		num=ReplaceBadChar(Trim(Request.Form("num")))
		workmoney=ReplaceBadChar(Trim(Request.Form("workmoney")))
		worktime=ReplaceBadChar(Trim(Request.Form("worktime")))
		paymoney=ReplaceBadChar(Trim(Request.Form("paymoney")))
	
		Set rs = Server.CreateObject("ADODB.Recordset")
		sql="select * from vipjobzp where id="&id
		rs.Open sql,conn,2,3
		rs("jobname")=jobname
		rs("companyname")=companyname
		rs("adds")=adds
		rs("num")=num
		rs("workmoney")=workmoney
		rs("worktime")=worktime
		rs("paymoney")=paymoney
		rs("text")=text
		rs("about_company")=Trim(Request.Form("about_company"))
		rs.update
		rs.close
		set rs=nothing
		response.write "<script language=javascript>alert('猎头职位修改成功，现在为您返回！');window.location.reload('lietou_all.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 check()
{
  if (register.companyname.value=="") {
		alert("请输入招聘公司的名称！");
		register.companyname.focus();		
		    return (false);
  }
  if (register.jobname.value=="") {
		alert("请输入猎头职位！");
		register.jobname.focus();		
		    return (false);
  }if (register.adds.value=="") {
		alert("请输入工作地点！");
		register.adds.focus();		
		    return (false);
  }
  if (register.num.value=="") {
		alert("请输入招聘人数！");
		register.num.focus();		
		    return (false);
  }
  if (register.workmoney.value==""){
		alert("请输入职位年薪！");
		register.workmoney.focus();		
		    return (false);
  }
  if (register.worktime.value=="") {
		alert("请输入工作时间！");
		register.worktime.focus();		
		    return (false);
  }
   if (register.paymoney.value=="") {
		alert("请输入推荐奖金！");
		register.paymoney.focus();		
		    return (false);
  }
else
	return true;
}
//-->
</SCRIPT>
</head>
<body leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'>
<% 
	id=int(ReplaceBadChar(Trim(Request.QueryString("id"))))
	if id="" then   
		response.write"<SCRIPT language=JavaScript>alert('对不起，非法操作！');"
		response.write"javascript:window.close();</SCRIPT>"
		response.end
	end if
	sql="select * from vipjobzp where id="&id&""
	Set rs= Server.CreateObject("ADODB.Recordset") 
	rs.open sql,conn,1,1
	if rs.eof then
		response.write"<SCRIPT language=JavaScript>alert('对不起，非法操作！');"
		response.write"javascript:window.close();</SCRIPT>"
		response.end
	else
%>
<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=edit&id=<%=rs("id")%>' method='post' name='register' onSubmit="return check()">
<tr class="tdbg" onMouseOver="this.className='tdbgmouseover'" onMouseOut="this.className='tdbg'">
<td width="28%"  height='33' align='right' nowrap>招聘公司：</td>
<td width="72%" height='33' nowrap>&nbsp;&nbsp;
  <INPUT MAXLENGTH="30" SIZE="50" NAME="companyname" value="<%=rs("companyname")%>"> 
 *</td>
</tr>
<tr class="tdbg" onMouseOver="this.className='tdbgmouseover'" onMouseOut="this.className='tdbg'">
<td height='35' align='right' nowrap>猎头职位：</td>
<td nowrap>&nbsp;&nbsp;
<INPUT MAXLENGTH="30" SIZE="50" NAME="jobname" value="<%=rs("jobname")%>">
*</td>
</tr>
<tr class="tdbg" onMouseOver="this.className='tdbgmouseover'" onMouseOut="this.className='tdbg'">
<td height='34' align='right' nowrap>工作地点：</td>
<td nowrap>&nbsp;&nbsp;
<INPUT MAXLENGTH="30" SIZE="50" NAME="adds" value="<%=rs("adds")%>">
* (如：网愿科技) </td>
</tr>
<tr class="tdbg" onMouseOver="this.className='tdbgmouseover'" onMouseOut="this.className='tdbg'">
<td height='33' align='right' nowrap>招聘人数：</td>
<td height='33' nowrap>&nbsp;&nbsp;
<INPUT MAXLENGTH="30" SIZE="50" NAME="num" value="<%=rs("num")%>">
* (单位:人) </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='31' nowrap>&nbsp;&nbsp;
<select style="FONT-SIZE: 12px; WIDTH: 130px" name="workmoney" width="10">
    <option value='0' <% If rs("workmoney")="0" Then Response.Write("selected")%>>年薪不限</option>
    <option value='5-10' <% If rs("workmoney")="5-10" Then Response.Write("selected")%>>5 - 10万</option>
    <option value='11-20' <% If rs("workmoney")="11-20" Then Response.Write("selected")%>>11 - 20万</option>
    <option value='21-30' <% If rs("workmoney")="21-30" Then Response.Write("selected")%>>21 - 30万</option>
    <option value='31-40' <% If rs("workmoney")="31-40" Then Response.Write("selected")%>>31 - 40万</option>
    <option value='41-50' <% If rs("workmoney")="41-50" Then Response.Write("selected")%>>41 - 50万</option>
    <option value='51-100' <% If rs("workmoney")="51-100" Then Response.Write("selected")%>>50 - 100万</option>
    <option value='100' <% If rs("workmoney")="100" Then Response.Write("selected")%>>100万以上</option>
</select>
* (单位:万) </td>
</tr>
<tr class="tdbg" onMouseOver="this.className='tdbgmouseover'" onMouseOut="this.className='tdbg'">
<td height='31' align='right' nowrap>工作时间：</td>
<td nowrap>&nbsp;&nbsp;
<INPUT MAXLENGTH="30" SIZE="50" NAME="worktime" value="<%=rs("worktime")%>">
* (单位:年) </td>
</tr>
<tr class="tdbg" onMouseOver="this.className='tdbgmouseover'" onMouseOut="this.className='tdbg'">
<td height='32' align='right' nowrap>悬赏金额：</td>
<td nowrap>&nbsp;&nbsp;
<INPUT MAXLENGTH="30" SIZE="50" NAME="paymoney" value="<%=rs("paymoney")%>">
* (单位:元) </td>
</tr>
<tr class="tdbg" onMouseOver="this.className='tdbgmouseover'" onMouseOut="this.className='tdbg'">
  <td height='32' align='right' nowrap>联系方式：</td>
  <td nowrap> &nbsp;&nbsp;
    <INPUT NAME=lxfs id="lxfs" SIZE=50  value="<%=rs("lxfs")%>"></td>
</tr>
<tr class="tdbg" onMouseOver="this.className='tdbgmouseover'" onMouseOut="this.className='tdbg'">
<td height='38' colspan="2" align='center' nowrap>岗位职责描述及其它要求</td>
</tr>
<tr class="tdbg" onMouseOver="this.className='tdbgmouseover'" onMouseOut="this.className='tdbg'">
<td height='30' colspan="2" align='center' nowrap><textarea name="text" rows="8" style="width: 500px;font-size: 12px;display:none;" cols="20"><%=rs("text")%></textarea><iframe ID="Editor" name="Editor" src="../HtmlEditor/index.html?ID=text" frameBorder="0" marginHeight="0" marginWidth="0" scrolling="No" style="height:131px;width:100%"></iframe></td>
</tr>
<tr class="tdbg" onMouseOver="this.className='tdbgmouseover'" onMouseOut="this.className='tdbg'">
<td height='38' colspan="2" align='center' nowrap>招聘公司简介</td>
</tr>
<tr class="tdbg" onMouseOver="this.className='tdbgmouseover'" onMouseOut="this.className='tdbg'">
<td height='30' colspan="2" align='center' nowrap><textarea name="about_company" rows="8" style="width: 500px;font-size: 12px;display:none;" cols="20"><%=rs("about_company")%></textarea><iframe ID="Editor" name="Editor" src="../HtmlEditor/index.html?ID=about_company" frameBorder="0" marginHeight="0" marginWidth="0" scrolling="No" style="height:131px;width:100%"></iframe></td>
</tr>
<tr class="tdbg" onMouseOver="this.className='tdbgmouseover'" onMouseOut="this.className='tdbg'">
<td height='31' colspan="2" align='center' nowrap>
<input type="submit" value="更  新" name="button"></td>
</tr>
</form>
</table>
<%
	End If
	rs.close
	set rs=nothing
	conn.close
	set conn=nothing
%>
</body>
</html>