/admin/pf_recruitment_modify.asp
https://github.com/hare1987/kaidun180 · ASP · 150 lines · 145 code · 5 blank · 0 comment · 0 complexity · a32ee6609a15ca342a97d20077e66afb MD5 · raw file
- <%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
- <!--#include file="pf_conn.asp"-->
- <!--#include file="pf_function.asp"-->
- <!--#include file="pf_session.asp"-->
- <%
- Call iderror
- If Request.Form("submit") = "È·ÈÏÐÞ¸Ä" Then
- If request.Form("pf_recruitment_name") = "" Then
- Call infoback("ְλÃû³Æ²»ÄÜΪ¿Õ£¡")
- End If
- Set rs = Server.CreateObject("ADODB.Recordset")
- sql = "select * from pf_recruitment where id="&request.QueryString("id")&""
- rs.Open sql, conn, 1, 3
- rs("pf_recruitment_name") = request.Form("pf_recruitment_name")
- rs("pf_recruitment_age") = request.Form("pf_recruitment_age")
- rs("pf_recruitment_gender") = request.Form("pf_recruitment_gender")
- rs("pf_recruitment_education") = request.Form("pf_recruitment_education")
- rs("pf_recruitment_number") = request.Form("pf_recruitment_number")
- rs("pf_recruitment_content") = request.Form("content2")
- rs("pf_recruitment_area")=request.Form("pf_recruitment_area")
- rs("pf_recruitment_link")=request.Form("pf_recruitment_link")
- rs.update
- Call close_rs
-
-
- set rsop = server.CreateObject("adodb.recordset")
- rsop.open "select * from pf_oprate",conn,1,3
- rsop.addnew
- rsop("pf_op_name") = session("pf_admin_name")
- rsop("pf_op_sources") = "ְλ:" & request.Form("pf_recruitment_name") &"ÒªÇóÐÞ¸Ä"
- rsop.update
- rsop.close
- set rsop = nothing
-
-
- Call close_conn
- Call infohref("ÕÐÆ¸ÐÅÏ¢Ð޸ijɹ¦£¡", "pf_recruitment.asp")
- End If
- %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
- <title>ÍøÕ¾¹ÜÀíºǫ́</title>
- <link href="pf_style.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <!--#include file="pf_top.asp"-->
- <div id="content">
- <!--#include file="pf_left.asp"-->
- <div id="right">
- <div class="right_title">
- <h1>ÐÞ¸ÄÕÐÆ¸ÐÅÏ¢</h1>
-
- </div>
- <div class="right_body">
- <table class="table">
- <%
- Set rs = server.CreateObject("adodb.recordset")
- sql = "select * from pf_recruitment where id="&request.QueryString("id")&""
- rs.Open sql, conn, 1, 1
- If rs.EOF Then
- Call close_rs
- Call close_conn
- Call infoback("²»´æÔÚ´ËÊý¾Ý")
- End If
- %>
- <form method="post">
- <tr>
- <td width="80" align="center">ְλÃû³Æ£º</td>
- <td>
- <input name="pf_recruitment_name" type="text" size="40" value="<%=rs("pf_recruitment_name")%>" />
- <span class="red">±ØÌî</span> </td>
- </tr>
- <tr>
- <td align="center">ְλÁ¬½Ó£º</td>
- <td><input name="pf_recruitment_link" type="text" id="pf_recruitment_link" value="<%=rs("pf_recruitment_link")%>" size="40" /></td>
- </tr>
- <tr>
- <td align="center">ËùÔÚÐ£Çø£º</td>
- <td><select name="pf_recruitment_area" id="pf_recruitment_area">
- <option value="<%=rs("pf_recruitment_gender")%>">²»ÐÞ¸Ä</option>
- <option>×ܲ¿</option>
- <option>Ðì»ãÌïÁÖУ</option>
- <option>»ÆÆÖÊé³ÇУ</option>
- <option>ÆÖ¶«½ðÇÅУ</option>
- <option>ãÉÐÐݷׯУ</option>
- <option>ºç¿Ú¶«±¦Ð£</option>
- <option>³¤ÄþºçÇÅУ</option>
- <option>Ëɽ¾ÅͤУ</option>
- <option>±¦É½´ó»ªÐ£</option> </select>
- </td>
- </tr>
- <tr>
- <td align="center">ÄêÁäÒªÇó£º</td>
- <td>
- <input name="pf_recruitment_age" type="text" size="20" value="<%=rs("pf_recruitment_age")%>" /> </td>
- </tr>
- <tr>
- <td align="center">ÐÔ±ðÒªÇó£º</td>
- <td>
- <select name="pf_recruitment_gender">
- <option value="<%=rs("pf_recruitment_gender")%>">²»ÐÞ¸Ä</option>
- <option>²»ÏÞ</option>
- <option>ÄÐ</option>
- <option>Å®</option>
- </select> </td>
- </tr>
- <tr>
- <td align="center">ѧÀúÒªÇó£º</td>
- <td>
- <select name="pf_recruitment_education">
- <option value="<%=rs("pf_recruitment_education")%>">²»ÐÞ¸Ä</option>
- <option>²»ÏÞ</option>
- <option>³õÖÐ</option>
- <option>¸ßÖÐ</option>
- <option>ÖÐר</option>
- <option>´óר</option>
- <option>±¾¿Æ</option>
- <option>Ñо¿Éú</option>
- </select> </td>
- </tr>
- <tr>
- <td align="center">ÕÐÆ¸ÈËÊý£º</td>
- <td>
- <input name="pf_recruitment_number" type="text" size="10" value="<%=rs("pf_recruitment_number")%>" /> </td>
- </tr>
- <tr>
- <td align="center"></td>
- <td>
- <textarea name="content2" style="display:none"><%=rs("pf_recruitment_content")%></textarea>
- <iframe ID="eWebEditor1" src="ewebeditor/eWebEditor.asp?id=content2&style=standard" frameborder="0" scrolling="no" width="700" HEIGHT="350"></iframe> </td>
- </tr>
- <tr align="center">
- <td colspan="2">
- <input type="submit" name="submit" class="submit_button" value="È·ÈÏÐÞ¸Ä" /> </td>
- </tr>
- </form>
- <%
- Call close_rs
- Call close_conn
- %>
- </table>
- </div>
- </div>
- <div class="clear"></div>
- </div>
- <!--#include file="pf_bottom.asp"-->
- </body>
- </html>