📄 ph.asp
字号:
<% @LANGUAGE="VBSCRIPT" CODEPAGE="65001" %>
<%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.inc"-->
<wml>
<head><meta http-equiv='Cache-Control' content='no-cache'/>
</head>
<%id=request("id")
if id="" then bb="list_gxdate"
if id="1" then bb="list_hit"
if id="2" then bb="list_mhit"
if id="3" then bb="list_zhit"
if id="4" then bb="list_jian"
if id="5" then bb="list_mjian"
if id="6" then bb="list_zjian"
if id="7" then bb="list_cang"
if id="8" then bb="list_size"
if id="9" then bb="list_gxdate"
if id="10" then bb="list_date"
if id="" then mmnn="更新时间"
if id="1" then mmnn="总点击"
if id="2" then mmnn="月点击"
if id="3" then mmnn="周点击"
if id="4" then mmnn="总推荐"
if id="5" then mmnn="月推荐"
if id="6" then mmnn="周推荐"
if id="7" then mmnn="总收藏"
if id="8" then mmnn="总字数"
if id="9" then mmnn="更新时间"
if id="10" then mmnn="入站时间"
%>
<card title="排行版">
<p>
<img src="shu.gif" alt="." /><br/>
<%
pag=flps
set brs=Server.CreateObject("ADODB.Recordset")
ssql="select * from list_book order by "&bb&" desc"
brs.open ssql,conn,1,1
if brs.eof then
Response.write "暂无书籍<br/>"
Else
page=cint(request.QueryString("page"))
if page="" or page<1 then page=1
maxpage=int((brs.recordcount-1)/pag)+1
if page>maxpage then page=maxpage
brs.Move((page-1)*pag)
dim p
p=1
do while ((not brs.EOF) and p <=cint(pag))
spmc=left(brs("list_name"),8)
if len(brs("list_name"))>8 then
spmc=spmc+"。。"
End if
Response.write ""&((page-1)*pag+p)&".<a href='class.asp?id="&brs("id")&"&sb="&sb&"'>" & ubb(spmc) & "</a>(作者:" & ubb(brs("list_user")) & ")["&ubb(brs(""&bb&""))&"]<br/>"
brs.Movenext
p=p+1
loop
if page*pag<brs.recordcount then response.write("[<a href='ph.asp?id=" & id & "&page=" & page+1 & "&sb="&sb&"'>下一页</a>]")
if page>1 then response.write("[<a href='ph.asp?id=" & id & "&page=" & page-1 & "&sb="&sb&"'>上一页</a>]")
response.write("<br/>(第"& page & "/" & (int((brs.recordcount-1)/10)+1) &"页/共" & brs.recordcount & "本书籍)")
end if
brs.close
set brs=nothing
%><br/>
跳到第<input name="i<%=minute(now)%><%=second(now)%>" title="页码" type="text" format="*N" emptyok="true" size="3" value="<%response.write(i+1)%>" maxlength="3"/>页
<anchor>[GO]
<go href="ph.asp?id=<%=id%>" accept-charset='utf-8'>
<postfield name="page" value="$(i<%=minute(now)%><%=second(now)%>)"/>
</go>
</anchor><br/>
----------<br/>
当前方式:<b><%=mmnn%></b><br/>
<a href="ph.asp?sb=<%=sb%>&hh=<%=time%>&id=1">总点击</a>|<a href="ph.asp?sb=<%=sb%>&hh=<%=time%>&id=2">月点击</a>|<a href="ph.asp?sb=<%=sb%>&hh=<%=time%>&id=3">周点击</a><br/>
<a href="ph.asp?sb=<%=sb%>&hh=<%=time%>&id=4">总推荐</a>|<a href="ph.asp?sb=<%=sb%>&hh=<%=time%>&id=5">月推荐</a>|<a href="ph.asp?sb=<%=sb%>&hh=<%=time%>&id=6">周推荐</a><br/>
<a href="ph.asp?sb=<%=sb%>&hh=<%=time%>&id=7">总收藏</a>|<a href="ph.asp?sb=<%=sb%>&hh=<%=time%>&id=8">总字数</a>|<a href="ph.asp?sb=<%=sb%>&hh=<%=time%>&id=9">新入库</a><br/>
----------<br/>
<!--#include file="fanhui.asp"-->
</p>
</card>
</wml>
<%endConnection()%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -