add_bookmark.asp
上传用户:llrg7406
上传日期:2007-03-02
资源大小:654k
文件大小:3k
源码类别:

教育系统应用

开发平台:

Delphi

  1. <%@ Language=VBScript %>
  2. <!--#include file ="identify.asp"-->
  3. <html>
  4. <head>
  5.   <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  6. <link rel="stylesheet" type="text/css" href="xcss.css">
  7. <meta NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
  8. </head>
  9. <body background="images/zapsmbknd.gif">
  10. <% 
  11. b_bookid = Request.QueryString("bookid")
  12. set conn = server.CreateObject("adodb.connection")
  13. conn.Open Application("dsn")
  14. sql = "select bookid,name,author,dir from BookDetail where bookid=" & b_bookid
  15. set rs = server.CreateObject("adodb.recordset")
  16. rs.Open sql,conn
  17. if rs.EOF then
  18. rs.Close
  19. set rs = nothing
  20. conn.Close
  21. set conn = nothing
  22. Response.Write "找不到您要的文件!"
  23. Response.End
  24. end if
  25. dir = rs("dir")
  26. b_name = rs("name")
  27. author = rs("author")
  28. rs.Close
  29. set rs = nothing
  30. conn.Close
  31. set conn = nothing
  32. dir = replace(dir,"","/")
  33. %>
  34. <form action="add_bmaction0.asp" method="post" id="form1" name="form1">
  35. <h3>添加一个新书签:</h3>
  36. <p><b>用户名:</b><%=session("username")%></p>
  37. <p><b>书名:</b><%=b_name%></p>
  38. <p><b>作者:</b><%=author%></p>
  39. <p><b>选择书签图标:</b></p>
  40. <p>
  41. <img src="images/a08.jpg"><input type="radio" name="imgname" value="a08" checked>&nbsp;
  42. <img src="images/a01.jpg"><input type="radio" name="imgname" value="a01">&nbsp;
  43. <img src="images/a02.jpg"><input type="radio" name="imgname" value="a02">&nbsp;
  44. <img src="images/a03.jpg"><input type="radio" name="imgname" value="a03">&nbsp;
  45. <img src="images/a04.jpg"><input type="radio" name="imgname" value="a04">&nbsp;
  46. <br>
  47. <img src="images/a05.jpg"><input type="radio" name="imgname" value="a05">&nbsp;
  48. <img src="images/a06.jpg"><input type="radio" name="imgname" value="a06">&nbsp;
  49. <img src="images/a07.jpg"><input type="radio" name="imgname" value="a07">&nbsp;
  50. <img src="images/a09.jpg"><input type="radio" name="imgname" value="a09">&nbsp;
  51. <img src="images/a10.jpg"><input type="radio" name="imgname" value="a10">&nbsp;
  52. <br>
  53. <img src="images/a11.jpg"><input type="radio" name="imgname" value="a11">&nbsp;
  54. <img src="images/a12.jpg"><input type="radio" name="imgname" value="a10">&nbsp;
  55. <img src="images/a13.jpg"><input type="radio" name="imgname" value="a13">&nbsp;
  56. <img src="images/a14.jpg"><input type="radio" name="imgname" value="a14">&nbsp;
  57. </p>
  58. <p valign="top"><b>给书签的描述:</b><br>
  59. <input type="hidden" name="username" value="<%=session("username")%>">
  60. <input type="hidden" name="bookid" value="<%=b_bookid%>"><textarea id="detail" name="detail" style="HEIGHT: 38px; WIDTH: 250px" valign="top"></textarea></p>
  61. <table WIDTH="250" BORDER="0" CELLSPACING="1" CELLPADDING="1">
  62. <tr>
  63. <td align="middle"><input type="submit" value="添加" id="submit1" name="submit1">&nbsp;&nbsp;<input type="button" value="取消" onclick="javascript:window.close();" id="button1" name="button1"></td>
  64. </tr>
  65. </table>
  66. </form>
  67. </body>
  68. </html>