www.gusucode.com > 绿色环保工作企业网站源码程序 > admin/Admin_HrDemandEdit.asp

    <!--#include file="conn.asp"-->
<!--#include file="admin.asp"-->
<%if Request.QueryString("mark")="southidc" then

id=request("id")
HrName=Trim(Request("HrName"))
HrRequireNum=Trim(Request("HrRequireNum"))
HrAddress=Trim(Request("HrAddress"))
HrSalary=Trim(Request("HrSalary"))
HrDate=Trim(Request("HrDate"))
HrValidDate=Trim(Request("HrValidDate"))
HrDetail=Request("Content")

If HrName="" Then
response.write "SORRY <br>"
response.write "招聘对象内容不能为空!<a href=""javascript:history.go(-1)"">返回重输</a>"
response.end
end if
If HrRequireNum="" Then
response.write "SORRY <br>"
response.write "招聘人数内容不能为空!<a href=""javascript:history.go(-1)"">返回重输</a>"
response.end
end if
If HrAddress="" Then
response.write "SORRY <br>"
response.write "工作地点内容不能为空!<a href=""javascript:history.go(-1)"">返回重输</a>"
response.end
end if
If HrSalary="" Then
response.write "SORRY <br>"
response.write "工资待遇内容不能为空!<a href=""javascript:history.go(-1)"">返回重输</a>"
response.end
end if
If HrValidDate="" Then
response.write "SORRY <br>"
response.write "有效期限内容不能为空!<a href=""javascript:history.go(-1)"">返回重输</a>"
response.end
end if
If HrDetail="" Then
response.write "SORRY <br>"
response.write "招聘要求内容不能为空!<a href=""javascript:history.go(-1)"">返回重输</a>"
response.end
end if

Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from HrDemand where id="&id
rs.open sql,conn,1,3

rs("HrName")=HrName
rs("HrRequireNum")=HrRequireNum
rs("HrAddress")=HrAddress
rs("HrSalary")=HrSalary
rs("HrDate")=HrDate
rs("HrValidDate")=HrValidDate
rs("HrDetail")=HrDetail
rs.update
rs.close
response.redirect "Admin_HrDemand.asp"
end if
%>
<%
id=request.querystring("id")
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open "Select * From HrDemand where id="&id, conn,1,3
%>
<!-- #include file="Inc/Head.asp" -->
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td align="center" valign="top"><br> 
      <table width="650" border="0" cellpadding="2" cellspacing="1" class="table_southidc">
        <tr> 
          <td class="back_southidc" height="25"> <div align="center"><strong>修改招聘<br>
              </strong></div></td>
        </tr>
        <tr> 
          <form method="post" action="Admin_HrDemandEdit.asp?mark=southidc">
            <input type=hidden name=id value=<%=id%>>
            <td><div align="center"> 
                <table width="100%" border="0" cellspacing="1" cellpadding="0">
                  <tr bgcolor="#ECF5FF"> 
                    <td width="19%" height="25"> 
                      <div align="center">招聘对象</div></td>
                    <td width="81%"> 
                      <input name="HrName" type="text" id="HrName" value="<%=rs("HrName")%>" size="30" maxlength="30">
                    </td>
                  </tr>
                  <tr bgcolor="#ECF5FF"> 
                    <td height="22"> 
                      <div align="center">招聘人数</div></td>
                    <td bgcolor="#ECF5FF"> 
                      <input name="HrRequireNum" type="text" id="HrRequireNum" value="<%=rs("HrRequireNum")%>" size="5" maxlength="30">
                      人</td>
                  </tr>
                  <tr bgcolor="#ECF5FF"> 
                    <td height="22"> 
                      <div align="center">工作地点</div></td>
                    <td height="-4" bgcolor="#ECF5FF"> 
                      <input name="HrAddress" type="text" id="HrAddress" value="<%=rs("HrAddress")%>" size="50" maxlength="60">
                    </td>
                  </tr>
                  <tr bgcolor="#ECF5FF"> 
                    <td height="22"> 
                      <div align="center">工资待遇</div></td>
                    <td height="-1" bgcolor="#ECF5FF"> 
                      <input name="HrSalary" type="text" id="Daiy" value="<%=rs("HrSalary")%>" size="20" maxlength="50">
                    </td>
                  </tr>
                  <tr bgcolor="#ECF5FF"> 
                    <td height="22"> 
                      <div align="center">发布日期</div></td>
                    <td height="-3"> <input name="HrDate" type="text" id="HrDate" value="<%=rs("HrDate")%>" size="12" maxlength="50"></td>
                  </tr>
                  <tr bgcolor="#ECF5FF"> 
                    <td height="22"> 
                      <div align="center">有效期限</div></td>
                    <td height="0" bgcolor="#ECF5FF"> 
                      <input name="HrValidDate" type="text" id="HrValidDate" value="<%=rs("HrValidDate")%>" size="5" maxlength="30">
                      天</td>
                  </tr>
                  <tr bgcolor="#ECF5FF"> 
                    <td height="22"> 
                      <div align="center">招聘要求</div></td>
                    <td height="10">                    
					  <input type="hidden" name="content" value="<%=Server.HTMLEncode(rs("HrDetail"))%>"><iframe ID="eWebEditor1" src="Southidceditor/ewebeditor.asp?id=content&style=southidc" frameborder="0" scrolling="no" width="550" HEIGHT="400"></iframe> 
					  
					  
					  </td>
                  </tr>
                  <tr bgcolor="#ECF5FF"> 
                    <td height="25" colspan="2"> 
                      <div align="center"> 
                        <input name="submit" type="submit" value="确定">
                        &nbsp; 
                        <input name="reset" type="reset" value="取消">
                      </div></td>
                  </tr>
                </table>
              </div></td>
          </form>
        </tr>
      </table></td>
  </tr>
</table>
<!-- #include file="Inc/Foot.asp" -->