/admin/pf_bulletin_add.asp

https://github.com/hare1987/kaidun180 · ASP · 77 lines · 76 code · 1 blank · 0 comment · 0 complexity · 97e8f607d8262c1c758b9f576adb6e19 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. If request.Form("submit") = "È·ÈÏÌí¼Ó" Then
  7. If request.Form("b_name") = "" Then
  8. Call infoback("¹«¸æÃû³Æ²»ÄÜΪ¿Õ£¡")
  9. End If
  10. If request.Form("b_content") = "" Then
  11. Call infoback("Ïêϸ½éÉܲ»ÄÜΪ¿Õ£¡")
  12. End If
  13. If request.Form("b_link") = "" Then
  14. Call infoback("Á´½ÓµØÖ·²»ÄÜΪ¿Õ£¡")
  15. End If
  16. Set rs = server.CreateObject("adodb.recordset")
  17. sql = "select * from bulletin"
  18. rs.Open sql, conn, 1, 3
  19. rs.addnew
  20. rs("b_name") = request.Form("b_name")
  21. rs("b_content") = request.Form("b_content")
  22. rs("b_link") = request.Form("b_link")
  23. rs.update
  24. Call close_rs
  25. Call close_conn
  26. Call infohref("¹«¸æÌí¼Ó³É¹¦£¡µã»÷È·Èϲ鿴ÐÂÎÅÁÐ±í£¡", "pf_bulletin.asp?id=1")
  27. End If
  28. %>
  29. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  30. <html xmlns="http://www.w3.org/1999/xhtml">
  31. <head>
  32. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  33. <title>¿­Ù¶ùͯÃÀÓïѧУ</title>
  34. <link href="pf_style.css" rel="stylesheet" type="text/css" />
  35. </head>
  36. <body>
  37. <!--#include file="pf_top.asp"-->
  38. <div id="content">
  39. <!--#include file="pf_left.asp"-->
  40. <div id="right">
  41. <div class="right_title">
  42. <h1>Ìí¼Ó¹«¸æ</h1>
  43. </div>
  44. <div class="right_body">
  45. <table>
  46. <form name="pcfinal" method="post">
  47. <tr>
  48. <td width="80" align="center">¹«¸æÃû³Æ£º</td>
  49. <td>
  50. <input type="text" name="b_name" size="50" />
  51. <span class="red">±ØÌî</span> </td>
  52. </tr>
  53. <tr>
  54. <td align="center">Ïêϸ½éÉÜ£º</td>
  55. <td>
  56. <textarea name="b_content" style="display:none"></textarea>
  57. <iframe ID="eWebEditor1" src="ewebeditor/eWebEditor.asp?id=b_content&style=standard" frameborder="0" scrolling="no" width="700" HEIGHT="350"></iframe> </td>
  58. </tr>
  59. <tr>
  60. <td align="center">Á´½ÓµØÖ·£º</td>
  61. <td>
  62. <input type="text" name="b_link" size="70" />
  63. <span class="red">±ØÌî</span> </td>
  64. </tr>
  65. <tr>
  66. <td colspan="2" align="center"><input type="submit" name="submit" class="submit_button" value="È·ÈÏÌí¼Ó" /> </td>
  67. </tr>
  68. </form>
  69. </table>
  70. </div>
  71. </div>
  72. <div class="clear"></div>
  73. </div>
  74. <!--#include file="pf_bottom.asp"-->
  75. </body>
  76. </html>