new.asp
来自「该软件是用asp编写的」· ASP 代码 · 共 47 行
ASP
47 行
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="Connections/conn_news.asp" -->
<%
Dim rs__MMColParam
rs__MMColParam = "true"
If (Request("MM_EmptyValue") <> "") Then
rs__MMColParam = Request("MM_EmptyValue")
End If
%>
<%
Dim rs
Dim rs_numRows
Set rs = Server.CreateObject("ADODB.Recordset")
rs.ActiveConnection = MM_conn_news_STRING
rs.Source = "SELECT * FROM t_news WHERE n_check = " + Replace(rs__MMColParam, "'", "''") + " ORDER BY n_id DESC"
rs.CursorType = 0
rs.CursorLocation = 2
rs.LockType = 1
rs.Open()
rs_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index
Repeat1__numRows = 10
Repeat1__index = 0
rs_numRows = rs_numRows + Repeat1__numRows
%>
<%
While ((Repeat1__numRows <> 0) AND (NOT rs.EOF))
%>
document.write('<link href="news/style/css.css" rel="stylesheet" type="text/css">');
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>');
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
rs.MoveNext()
Wend
%>
<%
rs.Close()
Set rs = Nothing
%>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?