/wsj/Manage/GG/G_Edit.asp

https://github.com/hare1987/kaidun180 · ASP · 64 lines · 62 code · 2 blank · 0 comment · 3 complexity · 0b200b8ba7871f7979f55796f5f9b8ca MD5 · raw file

  1. <!-- #include file="../Include/Chk.asp" -->
  2. <!-- #include file="../Include/Conn.asp" -->
  3. <%
  4. SQL="Select * from gg where id="&Request("id")
  5. set rs=server.createobject("adodb.recordset")
  6. rs.open SQL,conn,1,3
  7. if rs.eof and rs.bof then
  8. Response.Write "<script language='javascript'>alert('²ÎÊý´íÎó!');document.location.href('G_Manage.asp');</script>"
  9. Response.End()
  10. end if
  11. if Request("Action")=1 then
  12. if Trim(Request("title"))="" then
  13. Response.write "<script language='javascript'>alert('ÐÅÏ¢Ìîд²»ÍêÕû£º\n±êÌâ±ØÐëÌîд£¡');history.go(-1);</script>"
  14. Response.End()
  15. end if
  16. SQL="Select * from gg where id="&Request("id")
  17. set rs=server.createobject("adodb.recordset")
  18. rs.open SQL,conn,1,3
  19. rs("title")=Trim(Request("title"))
  20. rs("info")=Trim(Request("info"))
  21. rs.Update
  22. rs.Close
  23. Set rs=nothing
  24. Response.Write "<script language='javascript'>alert('¹«¸æÐ޸ijɹ¦!');document.location.href('G_Manage.asp');</script>"
  25. Response.End()
  26. else
  27. %>
  28. <html xmlns="http://www.w3.org/1999/xhtml">
  29. <head>
  30. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  31. <title></title>
  32. <link href="../Images/font.css" rel="stylesheet" type="text/css" />
  33. </head>
  34. <body>
  35. <form id="form1" name="form1" method="post" action="?Action=1&id=<%=Request("id")%>">
  36. <table width="100%" border="0">
  37. <tr>
  38. <td height="25" colspan="2" bgcolor="#3385D1" class="bt2">¡¡Ð޸Ĺ«¸æ</td>
  39. </tr>
  40. <tr>
  41. <td width="69" align="right" valign="middle" bgcolor="#efefef" class="font1">±ê¡¡¡¡Ì⣺</td>
  42. <td width="672" bgcolor="#efefef"><input name="title" type="text" id="title" value="<%=rs("title")%>" size="50" maxlength="50" /></td>
  43. </tr>
  44. <tr>
  45. <td align="right" valign="middle" bgcolor="#efefef" class="font1">˵Ã÷£º</td>
  46. <td bgcolor="#efefef"><iframe id="eWebEditor1" src="../webedit/ewebeditor.asp?id=info&style=s_blue" frameborder="0" scrolling="no" width="100%" height="350"></iframe></td>
  47. </tr>
  48. <tr>
  49. <td height="25" align="right" valign="middle" bgcolor="#efefef">&nbsp;</td>
  50. <td height="25" bgcolor="#efefef"><input type="submit" name="Submit" value="Ìá½»" />
  51. <span style="visibility:hidden;">
  52. <textarea name="info" rows="1" id="info"><%=rs("info")%>
  53. </textarea>
  54. </span></td>
  55. </tr>
  56. </table>
  57. </form>
  58. </body>
  59. </html>
  60. <%
  61. end if
  62. %>