yns_test.asp
上传用户:yjkj1008
上传日期:2020-10-17
资源大小:1496k
文件大小:2k
源码类别:

电子政务应用

开发平台:

HTML/CSS

  1. <%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
  2. <!--#include file="Connections/conn_news.asp" --> <% '请尊重作者劳动成果不要删除以上信息 '业一新闻系统3.0正式版 '主页:http://yeyi.net '论坛:http://bbs.yeyi.net '业一网络 承接各种网站制作 '程序开发 软件开发业务 '业务联系 '电话: 13007310512 '联系人:郝亚平 'QQ:24344842 (只谈业务,技术问题请访问论坛) '请尊重作者劳动成果不要删除以上信息 %>
  3. <%
  4. Dim rst
  5. Dim rst_numRows
  6. Set rst = Server.CreateObject("ADODB.Recordset")
  7. rst.ActiveConnection = MM_conn_news_STRING
  8. rst.Source = "SELECT * FROM t_type"
  9. rst.CursorType = 0
  10. rst.CursorLocation = 2
  11. rst.LockType = 1
  12. rst.Open()
  13. rst_numRows = 0
  14. %>
  15. <%
  16. Dim rsm
  17. Dim rsm_numRows
  18. Set rsm = Server.CreateObject("ADODB.Recordset")
  19. rsm.ActiveConnection = MM_conn_news_STRING
  20. rsm.Source = "SELECT * FROM t_mob"
  21. rsm.CursorType = 0
  22. rsm.CursorLocation = 2
  23. rsm.LockType = 1
  24. rsm.Open()
  25. rsm_numRows = 0
  26. %>
  27. <html>
  28. <head>
  29. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  30. <title>业一新闻系统3.0正式版-------业一网络Yeyi.net制作</title>
  31. </head>
  32. <body>
  33. <form name="form1" method="post" action="yns_cab.asp">
  34.   <select name="t_id" id="t_id">
  35.     <%
  36. While (NOT rst.EOF)
  37. %>
  38.     <option value="<%=(rst.Fields.Item("t_id").Value)%>"><%=(rst.Fields.Item("t_name").Value)%></option>
  39.     <%
  40.   rst.MoveNext()
  41. Wend
  42. If (rst.CursorType > 0) Then
  43.   rst.MoveFirst
  44. Else
  45.   rst.Requery
  46. End If
  47. %>
  48.   </select>
  49.   <select name="m_id" id="m_id">
  50.     <%
  51. While (NOT rsm.EOF)
  52. %>
  53.     <option value="<%=(rsm.Fields.Item("m_id").Value)%>"><%=(rsm.Fields.Item("m_name").Value)%></option>
  54.     <%
  55.   rsm.MoveNext()
  56. Wend
  57. If (rsm.CursorType > 0) Then
  58.   rsm.MoveFirst
  59. Else
  60.   rsm.Requery
  61. End If
  62. %>
  63.   </select>
  64.   <input type="submit" name="Submit" value="更新">
  65. </form>
  66. </body>
  67. </html>
  68. <%
  69. rst.Close()
  70. Set rst = Nothing
  71. %>
  72. <%
  73. rsm.Close()
  74. Set rsm = Nothing
  75. %>