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

📄 new.asp

📁 一个WAP站
💻 ASP
字号:
<% @LANGUAGE="VBSCRIPT" CODEPAGE="65001" %>
<%
'=================================================
' Copyright 2007-05 jinqiu. All Rights Reserved.
' Last Update: 2007-05-15   HTTP://www.wapfs.net
'=================================================
%>
<%Response.ContentType = "text/vnd.wap.wml; charset=utf-8"%>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<!--#include file="conn.asp"-->
<!--#include file="char.asp"-->
<wml> 
<head>
<meta http-equiv='Cache-Control' content='no-Cache'/>
<meta http-equiv='Cache-Control' content='max-age=0'/>
</head>
<card id='main' title='&#x6700;&#x65B0;&#x6587;&#x7AE0;' >
<p><% 
        set rs = server.createobject("adodb.recordset")
	sql="select top 80 * from article order by dateandtime desc" 
	rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.write "&#x6CA1;&#x6709;&#x4EFB;&#x4F55;&#x6587;&#x7AE0;<br/>"
else
If Request.QueryString("Page") = "" or Request.QueryString("Page") <= 0 then	
Page = 1
Else
Page = CINT(Request.QueryString("Page"))
End If
rs.pagesize =10
total  = rs.RecordCount
rs.absolutepage=page
mypagesize = rs.pagesize
	dim i 
	   	i=1 
	do while not rs.eof and i<=mypagesize 
        if rs("articleon")=0 then
	response.write "<a href='list.asp?id="&rs("articleid")&"'>"&((page-1)*10+i)&"."&untow(rs("title"))&"</a><br/> "
        end if
        if rs("articleon")=1 then
        response.write "<a href='lianjie.asp?id="&rs("articleid")&"'>"&((page-1)*10+i)&"."&untow(rs("title"))&"</a><br/>"
        end if
        if rs("articleon")=2 then
        response.write "<a href='softdown.asp?id="&rs("articleid")&"&amp;aid="&rs("classid")&"&amp;bid="&rs("Nclassid")&"'>"&((page-1)*10+i)&"."&c2u(rs("title"))&"</a><br/>"
        end if
%>
<%
i=i+1
rs.movenext
loop
%>
<%
if page>1 then%>   
<a href='new.asp?page=<%=page-1%>'>&#x4E0A;&#x9875;&lt;&lt;</a>
<%
end if
%>
<%
if page<rs.pagecount   then%>
<a href='new.asp?page=<%=page+1%>'>&#x4E0B;&#x9875;&gt;&gt;</a>
<%
end if
%>
<br/><%=total%>&#x7BC7;&#x6587;&#x7AE0;&#xFF0C;<%=page%>/<%=pagecount%>&#x9875;<%end if%>
<br/>------------- 
<br/><a href='index.asp'>&#x8FD4;&#x56DE;&#x9996;&#x9875;</a> 
<%
rs.close
set rs=nothing
%>
</p>
</card>
</wml>                         

⌨️ 快捷键说明

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