⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ylliebiao.asp

📁 基于WEB页面的新闻发布系统+毕业论文:实现新闻的显示
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="cn.asp" -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>娱乐新闻列表</title>
<style type="text/css">
<!--
body {
	background-color: #33FFFF;
}
.style1 {	font-size: 18px;
	font-weight: bold;
}
.style3 {	font-size: 24px;
	font-weight: bold;
	font-style: italic;
}
.style5 {font-size: 24px}
.STYLE51 {font-size: 16px}
.style52 {font-size: 18px}
-->
</style></head>

<body>
<p class="style3"><span class="style5">娱乐资讯</span></p>
<p>&nbsp;</p>
<%
set rds=server.CreateObject("adodb.recordset")
rds.open "use1",cn,1,,2
if not rds.bof and not rds.eof then
rds.pagesize=4
if request("page")="" then
	page=1
else
	page=cint(request("page"))
	if page<1 then page=1
	if page>rds.pagecount then page=rds.pagecount
end if
rds.absolutepage=page

%>
<table width="534" height="96" border="0" align="center">
  <tr>
    <td width="280"><span class="style1">标题</span></td>
    <td width="143"><span class="style1">作者</span></td>
    <td width="97"><span class="style1">时间</span></td>
  </tr>
<%
i=1
do while i<5 and not rds.eof
%>
  <tr>
    <td><a href="ylxianshi.asp?id=<%=rds("编号")%>"><%=rds("标题")%></a></td>
    <td><%=rds("作者")%></td>
    <td><%=rds("发表时间")%></td>
  </tr>
<%
	i=i+1
	rds.movenext
loop
%>
</table>

<p>&nbsp;</p>
<form action="ylliebiao.asp" method="post" name="form1" class="style52">
<a href="ylliebiao.asp?page=1">首页</a>
<a href="ylliebiao.asp?page=<%=page-1%>">上页</a>
<a href="ylliebiao.asp?page=<%=page+1%>">下页</a>
<a href="ylliebiao.asp?page=<%=rds.pagecount%>">尾页</a>
共<%=rds.pagecount%>页/4条新闻/每页 转到第
  <input name="page" type="text" size="5"> 
  <input type="submit" name="Submit" value="提交">
  <label></label>
</form>
<p>&nbsp;</p>
<%
else
	response.Write("没有记录!")
end if
%>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -