/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

  1. <%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
  2. <!--#include file="pf_conn.asp"-->
  3. <!--#include file="pf_function.asp"-->
  4. <!--#include file="pf_session.asp"-->
  5. <%
  6. Call iderror
  7. If Request.Form("submit") = "È·ÈÏÐÞ¸Ä" Then
  8. If request.Form("pf_recruitment_name") = "" Then
  9. Call infoback("ְλÃû³Æ²»ÄÜΪ¿Õ£¡")
  10. End If
  11. Set rs = Server.CreateObject("ADODB.Recordset")
  12. sql = "select * from pf_recruitment where id="&request.QueryString("id")&""
  13. rs.Open sql, conn, 1, 3
  14. rs("pf_recruitment_name") = request.Form("pf_recruitment_name")
  15. rs("pf_recruitment_age") = request.Form("pf_recruitment_age")
  16. rs("pf_recruitment_gender") = request.Form("pf_recruitment_gender")
  17. rs("pf_recruitment_education") = request.Form("pf_recruitment_education")
  18. rs("pf_recruitment_number") = request.Form("pf_recruitment_number")
  19. rs("pf_recruitment_content") = request.Form("content2")
  20. rs("pf_recruitment_area")=request.Form("pf_recruitment_area")
  21. rs("pf_recruitment_link")=request.Form("pf_recruitment_link")
  22. rs.update
  23. Call close_rs
  24. set rsop = server.CreateObject("adodb.recordset")
  25. rsop.open "select * from pf_oprate",conn,1,3
  26. rsop.addnew
  27. rsop("pf_op_name") = session("pf_admin_name")
  28. rsop("pf_op_sources") = "ְλ:" & request.Form("pf_recruitment_name") &"ÒªÇóÐÞ¸Ä"
  29. rsop.update
  30. rsop.close
  31. set rsop = nothing
  32. Call close_conn
  33. Call infohref("ÕÐÆ¸ÐÅÏ¢Ð޸ijɹ¦£¡", "pf_recruitment.asp")
  34. End If
  35. %>
  36. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  37. <html xmlns="http://www.w3.org/1999/xhtml">
  38. <head>
  39. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  40. <title>ÍøÕ¾¹ÜÀíºǫ́</title>
  41. <link href="pf_style.css" rel="stylesheet" type="text/css" />
  42. </head>
  43. <body>
  44. <!--#include file="pf_top.asp"-->
  45. <div id="content">
  46. <!--#include file="pf_left.asp"-->
  47. <div id="right">
  48. <div class="right_title">
  49. <h1>ÐÞ¸ÄÕÐÆ¸ÐÅÏ¢</h1>
  50. </div>
  51. <div class="right_body">
  52. <table class="table">
  53. <%
  54. Set rs = server.CreateObject("adodb.recordset")
  55. sql = "select * from pf_recruitment where id="&request.QueryString("id")&""
  56. rs.Open sql, conn, 1, 1
  57. If rs.EOF Then
  58. Call close_rs
  59. Call close_conn
  60. Call infoback("²»´æÔÚ´ËÊý¾Ý")
  61. End If
  62. %>
  63. <form method="post">
  64. <tr>
  65. <td width="80" align="center">ְλÃû³Æ£º</td>
  66. <td>
  67. <input name="pf_recruitment_name" type="text" size="40" value="<%=rs("pf_recruitment_name")%>" />
  68. <span class="red">±ØÌî</span> </td>
  69. </tr>
  70. <tr>
  71. <td align="center">ְλÁ¬½Ó£º</td>
  72. <td><input name="pf_recruitment_link" type="text" id="pf_recruitment_link" value="<%=rs("pf_recruitment_link")%>" size="40" /></td>
  73. </tr>
  74. <tr>
  75. <td align="center">ËùÔÚÐ£Çø£º</td>
  76. <td><select name="pf_recruitment_area" id="pf_recruitment_area">
  77. <option value="<%=rs("pf_recruitment_gender")%>">²»ÐÞ¸Ä</option>
  78. <option>×ܲ¿</option>
  79. <option>Ðì»ãÌïÁÖУ</option>
  80. <option>»ÆÆÖÊé³ÇУ</option>
  81. <option>ÆÖ¶«½ðÇÅУ</option>
  82. <option>ãÉÐÐݷׯУ</option>
  83. <option>ºç¿Ú¶«±¦Ð£</option>
  84. <option>³¤ÄþºçÇÅУ</option>
  85. <option>Ëɽ­¾ÅͤУ</option>
  86. <option>±¦É½´ó»ªÐ£</option> </select>
  87. </td>
  88. </tr>
  89. <tr>
  90. <td align="center">ÄêÁäÒªÇó£º</td>
  91. <td>
  92. <input name="pf_recruitment_age" type="text" size="20" value="<%=rs("pf_recruitment_age")%>" /> </td>
  93. </tr>
  94. <tr>
  95. <td align="center">ÐÔ±ðÒªÇó£º</td>
  96. <td>
  97. <select name="pf_recruitment_gender">
  98. <option value="<%=rs("pf_recruitment_gender")%>">²»ÐÞ¸Ä</option>
  99. <option>²»ÏÞ</option>
  100. <option>ÄÐ</option>
  101. <option>Å®</option>
  102. </select> </td>
  103. </tr>
  104. <tr>
  105. <td align="center">ѧÀúÒªÇó£º</td>
  106. <td>
  107. <select name="pf_recruitment_education">
  108. <option value="<%=rs("pf_recruitment_education")%>">²»ÐÞ¸Ä</option>
  109. <option>²»ÏÞ</option>
  110. <option>³õÖÐ</option>
  111. <option>¸ßÖÐ</option>
  112. <option>ÖÐר</option>
  113. <option>´óר</option>
  114. <option>±¾¿Æ</option>
  115. <option>Ñо¿Éú</option>
  116. </select> </td>
  117. </tr>
  118. <tr>
  119. <td align="center">ÕÐÆ¸ÈËÊý£º</td>
  120. <td>
  121. <input name="pf_recruitment_number" type="text" size="10" value="<%=rs("pf_recruitment_number")%>" /> </td>
  122. </tr>
  123. <tr>
  124. <td align="center"></td>
  125. <td>
  126. <textarea name="content2" style="display:none"><%=rs("pf_recruitment_content")%></textarea>
  127. <iframe ID="eWebEditor1" src="ewebeditor/eWebEditor.asp?id=content2&style=standard" frameborder="0" scrolling="no" width="700" HEIGHT="350"></iframe> </td>
  128. </tr>
  129. <tr align="center">
  130. <td colspan="2">
  131. <input type="submit" name="submit" class="submit_button" value="È·ÈÏÐÞ¸Ä" /> </td>
  132. </tr>
  133. </form>
  134. <%
  135. Call close_rs
  136. Call close_conn
  137. %>
  138. </table>
  139. </div>
  140. </div>
  141. <div class="clear"></div>
  142. </div>
  143. <!--#include file="pf_bottom.asp"-->
  144. </body>
  145. </html>