📄 px.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%response.buffer=true%>
<%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"-->
<%
'====================================================================
' 请你保留这段说明,这并不会影响你的速度. 交流QQ:31424717
' 程序制作:找北
' 升级时间: 2006-2-5
' E-Mail: g362hao@gmail.com
'====================================================================
%>
<wml>
<head>
<meta http-equiv="Cache-Control" content="no-Cache"/>
<meta http-equiv="Cache-Control" content="max-age=0"/>
</head>
<%
p=cint(request.QueryString("p"))
if p="" or p<1 then
p=1
end If
%>
<card title='排行'>
<p>
<!--#include file="admin/i.asp"-->
<%
e=cint(request.QueryString("e"))
if e="" or e=0 then
e=2
end if
if e=1 then
response.write("按:人气||<a href='px.asp?e=2'>最新</a>||<a href='px.asp?e=3'>推荐</a>||<a href='px.asp?e=8'>评论</a><br/><br/>")
end if
if e=2 then
response.write("按:<a href='px.asp?e=1'>人气</a>||最新||<a href='px.asp?e=3'>推荐</a>||<a href='px.asp?e=8'>评论</a><br/><br/>")
end if
if e=3 then
response.write("按:<a href='px.asp?e=1'>人气</a>||<a href='px.asp?e=2'>推荐</a>||最新||<a href='px.asp?e=8'>评论</a><br/><br/>")
end if
if e=8 then
response.write("按:<a href='px.asp?e=1'>人气</a>||<a href='px.asp?e=2'>最新</a>||<a href='px.asp?e=3'>推荐</a><br/>||评论<br/><br/>")
end if
set rs=Server.CreateObject("ADODB.Recordset")
select case e
case "1"
titlename="人气排行"
rsstr="select id,title,hot from art where pass order by hot desc"
rs.open rsstr,conn,1,2
case "2"
titlename="最新排行"
rsstr="select id,title,hot from art where pass order by good desc"
rs.open rsstr,conn,1,2
case "3"
titlename="推荐排行"
rsstr="select id,title,hot from art where pass order by id desc"
rs.open rsstr,conn,1,2
case "8"
titlename="评论排行"
rsstr="select id,title,hot from art where pass order by pl desc"
rs.open rsstr,conn,1,2
case else
titlename="最新排行"
rsstr="select id,title,hot from art where pass order by hot desc"
rs.open rsstr,conn,1,2
end select
maxpage=int((rs.recordcount-1)/10)+1
if p>maxpage then
p=maxpage
end If
if rs.recordcount = 0 then
response.write("暂无!<br/>")
end If
if rs.recordcount > 0 then
response.write("=="&titlename&"==<br/>")
rs.Move((p-1)*10)
end If
dim j
j=1
do while ((not rs.EOF) and j<=10)
%>
<%
Response.write "<a href='read.asp?id="&rs("id")&"&p="&p&"'>"&((p-1)*10+j)&"."&rs("title")&"</a> 点击:"&rs("hot")&"<br/>"
%>
<%
rs.MoveNext
j=j+1
loop
%>
<%
if p*10<rs.recordcount then
response.write("<a href='px.asp?e=" & e & "&p=" & p+1 & "'>[下页]</a> ")
end If
if p>1 then
response.write("<a href='px.asp?e=" & e & "&p=" & p-1 & "'>[上页]</a> ")
end If
if p*10<rs.recordcount or p>1 then
response.write("<br/>第" & p & "页,共" & (int((rs.recordcount-1)/10)+1) & "页<br/>")
end If
%>
<%if p*10<rs.recordcount or p>1 then%>
<input name="page" title="页码" type="text" format="*N" emptyok="true" size="3" maxlength="4" value=""/>
<anchor>Go!
<go href="px.asp" accept-charset='utf-8'>
<postfield name="p" value="$(page)"/>
<postfield name="e" value="$(e)"/>
</go>
</anchor><br/>
<%end if%>
<%
rs.close
Set rs=nothing
%>
<%
Response.write "--------<br/>"
Response.write "<a href='http://"&url&"'>"&name&"</a><br/>"
response.write "<br/></p></card></wml>"
response.end
objgbrs.close
Set objgbrs=nothing
conn.close
set conn=nothing
%>
</p>
</card>
</wml>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -