morenews.asp
来自「asp的新闻网站」· ASP 代码 · 共 100 行
ASP
100 行
<%
'*********************************************************************************
'模块名称:体育新闻更多新闻
'开发人:潘树文
'时间:2001年1月20日
'注:本页不许外部访问
'*********************************************************************************
dim rs '数据访问对象
dim sql 'select 语句
dim i '循环控制变量
%>
<html>
<!--#include file="../include/odbc.asp"-->
<!--#include file="../include/showbody.asp"-->
<!--#include file="../include/checkserver.asp"-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="../style.css">
<title>千夜网->新闻->体育新闻</title>
</head>
<body topmargin="3" leftmargin="3">
<div align="center"><center>
<%flag="005000"%>
<!--#include file="../include/secondhead.asp"-->
</center></div><div align="center"><center>
<table border="0" width="770" cellspacing="0" cellpadding="0">
<tr>
<td width="20%" style="border-right: 3px solid rgb(228,228,228)" valign="top"
bgcolor="#D6852C"> <!--#include file="include/liansai.asp"-->
<p><br>
</td>
<td width="60%" valign="top"><br><center>
<table border="0" width="96%" cellspacing="0" cellpadding="0">
<tr>
<td width="30%" bgcolor="#C0C0C0" height="19"><p align="center"><font color="#000000"><span
style="font-size: 14px"> <%Response.Write request("menuname")&"<br>"
%></span></font></td><input type=hidden name=menuname value=<%=request("menuname")%>>
<td width="70%"
style="border-right: 1px none rgb(255,128,64); border-top: 1px solid rgb(192,192,192)"
height="19"> </td>
</tr>
<tr>
<td width="100%" colspan="2"><ul>
<%if request("mysql") ="" then
sql="select * from news2_info where menuid in ("&trim(request("menuid"))&") order by regtime desc"
else
sql=request("mysql")
end if
rs.Open sql,conn,3,1
%><!--#include file="../include/rollpage.asp"--><%
if not rs.EOF then
rs.PageSize = 40
rs.AbsolutePage = getPageNo(rs)
for i=1 to rs.PageSize
If rs.EOF Then Exit For
%>
<li><a class="l7"
href="../looknews.asp?menuid=<%=rs("menuid")%>&infoid=<%=rs("infoid")%>"
target="_blank"><%=rs("newstitle")%></a><% showtime(rs("regtime"))%> <br>
</li>
<%rs.MoveNext
if right(trim(cstr(i)),1)="0" then '隔十行空一行*******************************************
Response.Write "<br>"
end if
If rs.EOF Then Exit For
next
end if
%>
</td>
</tr>
<tr>
<td width="100%" height="19" colspan="2"><%call listPage(rs)%></td>
</tr>
<% rs.Close%>
</table>
</td>
<td width="20%" valign="top" bgcolor="#000000"> <!--#include file="include/right.asp"-->
<p><br>
</td>
</tr>
</table>
</center></div>
<hr width="90%" size="1" color="#FF0000">
<div align="center"><center>
<!--#include file="../include/bottom.txt"-->
</center></div>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?