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

📄 list.asp

📁 WAP 书站程序 WAP 书站程序 WAP 书站程序
💻 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"-->
<%
id=request("id")
set zhlhp=Server.CreateObject("ADODB.Recordset")
  zhhssqllp="select * from list_type where cstr(typeid)="&id
  zhlhp.open zhhssqllp,conn,1,1
if zhlhp.eof then 
ltname="无此分类"
else
ltname=zhlhp("list_tpye")
ltid=zhlhp("typeid")
end if
zhlhp.close
set zhlhp=nothing%>
<wml>
<head><meta http-equiv='Cache-Control' content='no-cache'/>
</head>
<card title="泡书网-<%=ltname%>">
<p>
<!--#include file="xxts.asp"-->
<img src="shu.gif" alt="." /><br/>
<b><%=ltname%></b>-<b><a href="fenlei.asp?sb=<%=sb%>">类型</a></b><br/>
<%
pag=flps
set brs=Server.CreateObject("ADODB.Recordset")
ssql="select * from list_book where cstr(list_class)='"&ltid&"' order by list_gxdate 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") & "&amp;sb="&sb&"'>" & ubb(spmc) & "</a>(作者:" & ubb(brs("list_user")) & ")<br/>"
brs.Movenext  
p=p+1
loop

if page*pag<brs.recordcount then response.write("[<a href='list.asp?id=" & id & "&amp;page=" & page+1 & "&amp;bb=" & bb & "&amp;sb="&sb&"'>下一页</a>]")
if page>1 then response.write("[<a href='list.asp?id=" & id & "&amp;page=" & page-1 & "&amp;bb=" & bb & "&amp;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="list.asp?id=<%=id%>" accept-charset='utf-8'>
        <postfield name="page" value="$(i<%=minute(now)%><%=second(now)%>)"/>
    </go>
</anchor><br/>
<!--#include file="guanggao1.asp"--><br/>
~~~~~<br/>
<!--#include file="fanhui.asp"-->
</p>
</card>
</wml>
<%endConnection()%>

⌨️ 快捷键说明

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