/admin/pf_hd_modify.asp

https://github.com/hare1987/kaidun180 · ASP · 125 lines · 116 code · 3 blank · 6 comment · 0 complexity · 98b3a2aba5639aa857ddec9aee7f6893 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_link_name") = "" Then
  9. Call infoback("±êÌâ²»ÄÜΪ¿Õ£¡")
  10. End If
  11. If request.Form("pf_link_text") = "" Then
  12. Call infoback("¼òҪ˵Ã÷²»ÄÜΪ¿Õ£¡")
  13. End If
  14. If request.Form("content2") = "" Then
  15. Call infoback("ÄÚÈݲ»ÄÜΪ¿Õ£¡")
  16. End If
  17. 'If request.Form("pf_link_url") = "" Then
  18. 'Call infoback("Á´½ÓµØÖ·²»ÄÜΪ¿Õ£¡")
  19. 'End If
  20. 'If request.Form("pf_link_order") = "" Or Not IsNumeric(request.Form("pf_link_order")) Then
  21. 'Call infoback("ÅÅÐòÊý×Ö²»ÄÜΪ¿Õ£¡¶øÇÒ±ØÐëΪÊý×Ö£¡")
  22. 'End If
  23. Set rs = server.CreateObject("adodb.recordset")
  24. sql = "select * from pf_hd where id = "&request.QueryString("id")&""
  25. rs.Open sql, conn, 1, 3
  26. rs("pf_link_name") = request.Form("pf_link_name")
  27. If request.Form("pf_uploadfile") = "" Then
  28. rs("pf_uploadfile") = "text"
  29. Else
  30. rs("pf_uploadfile") = request.Form("pf_uploadfile")
  31. End If
  32. rs("pf_link_style") = request.Form("pf_link_style")
  33. rs("pf_link_text") = request.Form("pf_link_text")
  34. rs("content") = request.Form("content2")
  35. rs("update_date") = now()
  36. rs.update
  37. Call close_rs
  38. set rsop = server.CreateObject("adodb.recordset")
  39. rsop.open "select * from pf_oprate ",conn,1,3
  40. rsop.addnew
  41. rsop("pf_op_name") = session("pf_admin_name")
  42. rsop("pf_op_sources") = "Ð޸ĻÐÂÎÅ:"&request.Form("pf_link_name")
  43. rsop.update
  44. rsop.close
  45. set rsop = nothing
  46. Call close_conn
  47. Call infohref("Ð޸ijɹ¦£¡", "pf_hd_index.asp")
  48. End If
  49. %>
  50. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  51. <html xmlns="http://www.w3.org/1999/xhtml">
  52. <head>
  53. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  54. <title>¿­Ù¶ùͯÃÀÓïѧУ»Ó­Äú!</title>
  55. <link href="pf_style.css" rel="stylesheet" type="text/css" />
  56. </head>
  57. <body>
  58. <!--#include file="pf_top.asp"-->
  59. <div id="content">
  60. <!--#include file="pf_left.asp"-->
  61. <div id="right">
  62. <div class="right_title">
  63. <h1>Ð޸ĻÐÂÎÅ</h1>
  64. </div>
  65. <div class="right_body">
  66. <table>
  67. <%
  68. Set rs = server.CreateObject("adodb.recordset")
  69. sql = "select * from pf_hd where id = "&request.QueryString("id")&""
  70. rs.Open sql, conn, 1, 1
  71. If rs.EOF Then
  72. Call infoback("²»´æÔÚ´ËÊý¾Ý")
  73. End If
  74. %>
  75. <form name="pcfinal" method="post">
  76. <tr>
  77. <td align="center">ÐÂÎűêÌ⣺</td>
  78. <td><input type="text" name="pf_link_name" value="<%=rs("pf_link_name")%>" size="60" />
  79. <span class="red">±ØÌî</span> </td>
  80. </tr>
  81. <tr>
  82. <td width="80" align="center">¼òҪ˵Ã÷£º</td>
  83. <td><textarea name="pf_link_text" cols="60" id="pf_link_text"><%=rs("pf_link_text")%></textarea>
  84. </td>
  85. </tr>
  86. <tr>
  87. <td rowspan="2" align="center">Ö÷ÌâСͼƬ£º</td>
  88. <td>
  89. <input type="text" name="pf_uploadfile" value="<%=rs("pf_uploadfile")%>" size="40" />
  90. <span class="red">ÇëÊäÈëLogoͼƬµØÖ·£¬»òÖ±½ÓÉÏ´«¡£</span> </td>
  91. </tr>
  92. <tr>
  93. <td>
  94. <iframe src="pf_upload.asp" width="600" height="25" scrolling="auto" frameborder="0"></iframe>
  95. </td>
  96. </tr>
  97. <tr>
  98. <td align="center">ÏêϸÄÚÈÝ£º</td>
  99. <td rowspan="2"><textarea name="content2" style="display:none"><%=rs("content")%></textarea>
  100. <iframe id="eWebEditor1" src="ewebeditor/eWebEditor.asp?id=content2&style=standard" frameborder="0" scrolling="No" width="700" height="350"></iframe>&nbsp; </td>
  101. </tr>
  102. <tr>
  103. <td align="center">&nbsp;</td>
  104. </tr>
  105. <tr>
  106. <td colspan="2" align="center">
  107. <input type="submit" name="submit" class="submit_button" value="È·ÈÏÐÞ¸Ä">
  108. </td>
  109. </tr>
  110. </form>
  111. <%
  112. Call close_rs
  113. Call close_conn
  114. %>
  115. </table>
  116. </div>
  117. </div>
  118. <div class="clear"></div>
  119. </div>
  120. <!--#include file="pf_bottom.asp"-->
  121. </body>
  122. </html>