new.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 rs__MMColParam
  5. rs__MMColParam = "true"
  6. If (Request("MM_EmptyValue") <> "") Then 
  7.   rs__MMColParam = Request("MM_EmptyValue")
  8. End If
  9. %>
  10. <%
  11. Dim rs
  12. Dim rs_numRows
  13. Set rs = Server.CreateObject("ADODB.Recordset")
  14. rs.ActiveConnection = MM_conn_news_STRING
  15. rs.Source = "SELECT * FROM t_news WHERE n_check = " + Replace(rs__MMColParam, "'", "''") + " ORDER BY n_id DESC"
  16. rs.CursorType = 0
  17. rs.CursorLocation = 2
  18. rs.LockType = 1
  19. rs.Open()
  20. rs_numRows = 0
  21. %>
  22. <%
  23. Dim Repeat1__numRows
  24. Dim Repeat1__index
  25. Repeat1__numRows = 10
  26. Repeat1__index = 0
  27. rs_numRows = rs_numRows + Repeat1__numRows
  28. %>
  29. <% 
  30. While ((Repeat1__numRows <> 0) AND (NOT rs.EOF)) 
  31. %>
  32. document.write('<link href="news/style/css.css" rel="stylesheet" type="text/css">');
  33. document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td width="10%"><img src="news/pic_site/arrow.gif" width="15" height="11"></td><td><a href="news/<%=(rs.Fields.Item("n_tid").Value)%>/<%=(rs.Fields.Item("n_fname").Value)%>" target="_blank"><%=(rs.Fields.Item("n_title").Value)%></a></td></tr></table>');
  34. <% 
  35.   Repeat1__index=Repeat1__index+1
  36.   Repeat1__numRows=Repeat1__numRows-1
  37.   rs.MoveNext()
  38. Wend
  39. %>
  40. <%
  41. rs.Close()
  42. Set rs = Nothing
  43. %>