<!--#include file="conn.asp"-->
<!--#include file="inc/cook2.asp"-->
<!--#include file="inc/dimflag.asp" -->
<!--#include file="top.asp"-->
<!--#include file="inc/htmlconfig.asp"-->
<%
tid = int(Request("tid"))
id=request("id")
%>
<%dim action
action=request.QueryString("action")
select case action
case "save"%>
<%


HrRequireNum=Trim(Request("HrRequireNum"))
HrDate=Trim(Request("HrDate"))
HrValidDate=Trim(Request("HrValidDate"))
Hrtime=Request("Hrtime")
Hrsex=Request("Hrsex")

HrNamecn=Trim(Request("HrNamecn"))
HrAddresscn=Trim(Request("HrAddresscn"))
HrSalarycn=Trim(Request("HrSalarycn"))
HrDatecn=Trim(Request("HrDatecn"))
HrDetailcn=Request("HrDetailcn")
Hrjgcn=Request("Hrjgcn")
Hrmscn=Request("Hrmscn")
Hrscjcn=Request("Hrscjcn")

HrNameen=Trim(Request("HrNameen"))
HrAddressen=Trim(Request("HrAddressen"))
HrSalaryen=Trim(Request("HrSalaryen"))
HrDateen=Trim(Request("HrDateen"))
HrDetailen=Request("HrDetailen")
Hrjgen=Request("Hrjgen")
Hrmsen=Request("Hrmsen")
Hrscjen=Request("Hrscjen")


If HrNamecn="" Then
response.write "SORRY <br>"
response.write "招聘对象内容不能为空!&nbsp;<a href=""javascript:history.go(-1)""><font color=red>返回重输</font></a>"
response.end
end if
If HrRequireNum="" Then
response.write "SORRY <br>"
response.write "招聘人数内容不能为空!&nbsp;<a href=""javascript:history.go(-1)""><font color=red>返回重输</font></a>"
response.end
end if
If HrAddresscn="" Then
response.write "SORRY <br>"
response.write "工作地点内容不能为空!&nbsp;<a href=""javascript:history.go(-1)""><font color=red>返回重输</font></a>"
response.end
end if
If HrSalarycn="" Then
response.write "SORRY <br>"
response.write "工资待遇内容不能为空!&nbsp;<a href=""javascript:history.go(-1)""><font color=red>返回重输</font></a>"
response.end
end if
'If HrValidDate="" Then
'response.write "SORRY <br>"
'response.write "有效期限内容不能为空!<a href=""javascript:history.go(-1)""><font color=red>返回重输</font></a>"
'response.end
'end if
If HrDetailcn="" Then
response.write "SORRY <br>"
response.write "招聘要求内容不能为空!&nbsp;<a href=""javascript:history.go(-1)""><font color=red>返回重输</font></a>"
response.end
end if

Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from com_job where id="&id
rs.open sql,conn,1,3
rs("Hrsex")=Hrsex
rs("HrRequireNum")=HrRequireNum
rs("HrDate")=HrDate
rs("HrValidDate")=HrValidDate
rs("Hrtime")=Hrtime

rs("Hrscjcn")=Hrscjcn
rs("HrNamecn")=HrNamecn
rs("Hrmscn")=Hrmscn
rs("hrjgcn")=hrjgcn
rs("HrAddresscn")=HrAddresscn
rs("HrSalarycn")=HrSalarycn
rs("HrDetailcn")=HrDetailcn
rs("Hrscjen")=Hrscjen
rs("HrNameen")=HrNameen
rs("Hrmsen")=Hrmsen
rs("hrjgen")=hrjgen
rs("HrAddressen")=HrAddressen
rs("HrSalaryen")=HrSalaryen
rs("HrDetailen")=HrDetailen

rs.update
rs.close
response.redirect "job_manage.asp"

%>
<%case ""%>

<form name="myform" method="post" action="?action=save&id=<%=id%>">
<div id="container">
<div class="top_but">
 <li class="left"></li>
 <li><a href="job_manage.asp?tid=<%=tid%>" onClick="parent.frmleft.bb(0,10,'b')"><img src="images/but_11.gif" alt="管理"></a></li>
 <li><img src="images/but_8.gif" alt="刷新" style="cursor:hand" onClick="window.location.reload(true);"></li>
 <li><img src="images/but_9.gif" alt="打印" style="cursor:hand;" onClick="window.print() "/></li>
</div>
<%
id=request.querystring("id")
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open "Select * From com_job where id="&id, conn,1,3
%>
<div class="tableAll titlebgcolor">
  <li style="width:30px;">&nbsp;</li>
 <li style="width:700px;">添加新内容</li>
</div>

<div class="tableAll trbgcolor">
<li style="width:30px;">&nbsp;</li>
<li style="width:100px;">职位名称:</li>
<li><input name="HrNamecn" type="text" id="HrNamecn" size="30" value="<%=rs("HrNamecn")%>" maxlength="30"></li>
</div>
<div class="tableAll trbgcolor">
<li style="width:30px;">&nbsp;</li>
<li style="width:100px;">职位描述:</li>
<li><input name="Hrmscn" type="text" id="Hrmscn" size="60" maxlength="60" value="<%=rs("Hrmscn")%>"></li>
</div>
<div class="tableAll trbgcolor">
<li style="width:30px;">&nbsp;</li>
<li style="width:100px">职位部门:</li>
<li><input name="Hrjgcn" type="text" id="Hrjgcn" size="20" value="<%=rs("Hrjgcn")%>" maxlength="50" ></li>
</div>
<div class="tableAll trbgcolor">
<li style="width:30px;">&nbsp;</li>
<li style="width:100px">招聘人数:</li>
<li><input name="HrRequireNum" type="text" id="HrRequireNum" value="<%=rs("HrRequireNum")%>" size="5" maxlength="30">
                      人</li>
</div>
<div class="tableAll trbgcolor">
  <li style="width:30px;">&nbsp;</li>
  <li style="width:100px;">性别:</li>
  <li>不限<input name="Hrsex" type="radio" value="0" <%if rs("Hrsex")=0 then%> checked<%end if%>> &nbsp; 男<input name="Hrsex" type="radio" value="1"  <%if rs("Hrsex")=1 then%> checked<%end if%>> &nbsp; 女<input name="Hrsex" type="radio" value="2"  <%if rs("Hrsex")=2 then%> checked<%end if%>>
</li>
</div>

<div class="tableAll trbgcolor">
<li style="width:30px;">&nbsp;</li>
<li style="width:100px">招聘时间</li>
<li><input name="Hrtime" type="text" id="Hrtime" size="50" value="<%=rs("Hrtime")%>" maxlength="60"></li>
</div>
<div class="tableAll trbgcolor">
<li style="width:30px;">&nbsp;</li>
<li style="width:100px">工作地点</li>
<li>  <input name="HrAddresscn" type="text" id="HrAddresscn" size="50" value="<%=rs("HrAddresscn")%>" maxlength="60" ></li>
</div>
<div class="tableAll trbgcolor">
<li style="width:30px;">&nbsp;</li>
<li style="width:100px">工资待遇</li>
<li> <input name="HrSalarycn" type="text" id="HrSalarycn" size="20" value="<%=rs("HrSalarycn")%>" maxlength="50" ></li>
</div>
<div class="tableAll trbgcolor">
<li style="width:30px;">&nbsp;</li>
<li style="width:100px">联系人</li>
<li><input name="Hrscjcn" type="text" id="Hrscjcn" size="20" value="<%=rs("Hrscjcn")%>" maxlength="50"></li>
</div>
<div class="tableAll trbgcolor">
<li style="width:30px;">&nbsp;</li>
<li style="width:100px">发布日期</li>
<li><input name="HrDate" type="text" id="HrDate"  value="<%=rs("HrDate")%>" size="12" maxlength="50"></li>
</div>


<div class="clear"></div> 
<div class="tableAll trbgcolor">
<li style="width:30px;">&nbsp;</li>
<li style="width:90%;"><textarea id="HrDetailcn" name="HrDetailcn" style="width:100%;height:280px;"><%=rs("HrDetailcn")%></textarea></li>
</div>

<%if Const_webEn =1 then%>
<div class="tableAll trbgcolor">
<li style="width:30px;">&nbsp;</li>
<li style="width:100px"><%=language_en%></li>
</div>

<div class="tableAll trbgcolor">
<li style="width:30px;">&nbsp;</li>
<li style="width:100px;">职位名称:</li>
<li><input name="HrNameen" type="text" id="HrNameen" value="<%=rs("HrNameen")%>" size="30" maxlength="30"></li>
</div>
<div class="tableAll trbgcolor">
<li style="width:30px;">&nbsp;</li>
<li style="width:100px;">职位描述:</li>
<li><input name="Hrmsen" type="text" id="Hrmsen" value="<%=rs("Hrmsen")%>" size="60" maxlength="60"></li>
</div>
<div class="tableAll trbgcolor">
<li style="width:30px;">&nbsp;</li>
<li style="width:100px">职位部门:</li>
<li><input name="Hrjgen" type="text" id="Hrjgen" value="<%=rs("Hrjgen")%>" size="20" maxlength="50" ></li>
</div>

<div class="tableAll trbgcolor">
<li style="width:30px;">&nbsp;</li>
<li style="width:100px">工作地点</li>
<li>  <input name="HrAddressen" type="text" id="HrAddressen" value="<%=rs("HrAddressen")%>" size="50" maxlength="60" ></li>
</div>
<div class="tableAll trbgcolor">
<li style="width:30px;">&nbsp;</li>
<li style="width:100px">工资待遇</li>
<li> <input name="HrSalaryen" type="text" id="HrSalaryen" value="<%=rs("HrSalaryen")%>" size="20" maxlength="50"></li>
</div>
<div class="tableAll trbgcolor">
<li style="width:30px;">&nbsp;</li>
<li style="width:100px">联系人</li>
<li><input name="Hrscjen" type="text" id="Hrscjen" value="<%=rs("Hrscjen")%>" size="20" maxlength="50"></li>
</div>


<div class="clear"></div> 
<div class="tableAll trbgcolor">
<li style="width:30px;">&nbsp;</li>
<li style="width:90%;"><textarea id="HrDetailen" name="HrDetailen" style="width:100%;height:280px;"><%=rs("HrDetailen")%></textarea></li>
</div>
<%end if%>

<div class="tableAll trbgcolor">
    <li style="width:30px;">&nbsp;</li>
  <li><input class="button" type="submit" name="Submit" value="确认OK，添加" ></li>
</div>

</div>
</form>
<%end select%>
<!--#include file="footer.asp"-->