add_bookmark0.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 = session("bookid")
  12. if len(b_bookid)=0 then
  13. Response.Write "您没有打开任何一本书!"
  14. Response.End
  15. end if
  16. set conn = server.CreateObject("adodb.connection")
  17. conn.Open Application("dsn")
  18. sql = "select bookid,name,author,dir from BookDetail where bookid=" & b_bookid
  19. set rs = server.CreateObject("adodb.recordset")
  20. rs.Open sql,conn
  21. if rs.EOF then
  22. rs.Close
  23. set rs = nothing
  24. conn.Close
  25. set conn = nothing
  26. Response.Write "找不到您要的文件!"
  27. Response.End
  28. end if
  29. dir = rs("dir")
  30. b_name = rs("name")
  31. author = rs("author")
  32. rs.Close
  33. set rs = nothing
  34. conn.Close
  35. set conn = nothing
  36. dir = replace(dir,"","/")
  37. %>
  38. <FORM action="add_bmaction0.asp" method=POST id=form1 name=form1> <h3>添加一个新书签:</h3>
  39. <P><b>用户名:</b><%=session("username")%></P>
  40. <P><b>书名:</b><%=b_name%></P>
  41. <P><b>作者:</b><%=author%></P>
  42. <p><b>选择书签图标:</b></p>
  43. <p>
  44. <img src="images/a08.jpg"><input type="radio" name="imgname" value="a08" checked>&nbsp;
  45. <img src="images/a01.jpg"><input type="radio" name="imgname" value="a01">&nbsp;
  46. <img src="images/a02.jpg"><input type="radio" name="imgname" value="a02">&nbsp;
  47. <img src="images/a03.jpg"><input type="radio" name="imgname" value="a03">&nbsp;
  48. <img src="images/a04.jpg"><input type="radio" name="imgname" value="a04">&nbsp;
  49. <br>
  50. <img src="images/a05.jpg"><input type="radio" name="imgname" value="a05">&nbsp;
  51. <img src="images/a06.jpg"><input type="radio" name="imgname" value="a06">&nbsp;
  52. <img src="images/a07.jpg"><input type="radio" name="imgname" value="a07">&nbsp;
  53. <img src="images/a09.jpg"><input type="radio" name="imgname" value="a09">&nbsp;
  54. <img src="images/a10.jpg"><input type="radio" name="imgname" value="a10">&nbsp;
  55. <br>
  56. <img src="images/a11.jpg"><input type="radio" name="imgname" value="a11">&nbsp;
  57. <img src="images/a12.jpg"><input type="radio" name="imgname" value="a10">&nbsp;
  58. <img src="images/a13.jpg"><input type="radio" name="imgname" value="a13">&nbsp;
  59. <img src="images/a14.jpg"><input type="radio" name="imgname" value="a14">&nbsp;
  60. </p>
  61. <p valign="top"><b>给书签的描述:</b><br>
  62. <input type=hidden name="username" value="<%=session("username")%>">
  63. <input type=hidden name="bookid" value="<%=b_bookid%>">
  64. <TEXTAREA id=detail name=detail style="HEIGHT: 38px; WIDTH: 250px" valign="top"></TEXTAREA></P>
  65. <TABLE WIDTH=250 BORDER=0 CELLSPACING=1 CELLPADDING=1>
  66. <TR>
  67. <TD align=center><INPUT type="submit" value="添加" id=submit1 name=submit1>&nbsp;&nbsp;<INPUT type="button" value="取消" onclick="javascript:window.close();"></TD>
  68. </TR>
  69. </TABLE>
  70. </FORM>
  71. </BODY>
  72. </HTML>