📄 list.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"-->
<% if pno="" then response.redirect "index.asp" %>
<wml>
<head>
<meta http-equiv="Cache-Control" content="no-Cache"/>
<meta http-equiv="Cache-Control" content="max-age=0"/>
</head>
<%
ids=request.QueryString("ids")
p=cint(request.QueryString("p"))
if p="" or p<1 then p=1
set rsn=Server.CreateObject("ADODB.Recordset")
rsstrn="select * from [bookclass] where [num]='" & pno & "' and ClassID=" & ids & " order by [ClassID] asc"
rsn.open rsstrn,conn,1,2
%>
<card title='<%=rsn("ClassName")%>类'>
<p>
<%
set rs=Server.CreateObject("ADODB.Recordset")
rsstr="select * from [bookmark] where [num]='" & pno & "' and ClassID=" & ids & " order by [ID] desc"
rs.open rsstr,conn,1,2
maxpage=int((rs.recordcount-1)/10)+1
if p>maxpage then p=maxpage
if rs.recordcount = 0 then response.write("暂无收藏网址!<br/>-----<br/>")
if rs.recordcount > 0 then
response.write("您共收藏" & rs.recordcount & "条网址 ")
if p*10<rs.recordcount or p>1 then response.write("[第" & p & "/" & (int((rs.recordcount-1)/10)+1) & "页]<br/>")
rs.Move((p-1)*10)
dim j
j=1
response.write("<a href='add.asp?ids=" & ids & "'>[添加书签]</a><br/>")
response.write("-----<br/>")
if p*10<rs.recordcount then response.write("<a href='?p=" & p+1 & "'>[下页]</a> ")
if p>1 then response.write("<a href='?p=" & p-1 & "'>[上页]</a> ")
do while ((not rs.EOF) and j<=10)
%>
<%=((p-1)*10+j)%>.<a href='<%=rs("url")%>'><%=rs("site")%></a>
<a href="edit.asp?id=<%=rs("id")%>&ids=<%=ids%>&p=<%=p%>">改</a>
<a href="del.asp?id=<%=rs("id")%>&ids=<%=ids%>&p=<%=p%>">删</a>
<br/>-----<br/>
<%
rs.MoveNext
j=j+1
loop
end if
if p*10<rs.recordcount then response.write("<a href='my.asp?p=" & p+1 & "'>[下页]</a> ")
if p>1 then response.write("<a href='my.asp?p=" & p-1 & "'>[上页]</a> ")
%>
<%if p*10<rs.recordcount or p>1 then%>
<input name="page" title="页码" type="text" format="*N" emptyok="true" size="3" maxlength="4" value="<%if p>=maxpage then response.write(p-1) else response.write(p+1)%>"/>
<anchor>[跳转页面]
<go href="index.asp" accept-charset='utf-8'>
<postfield name="p" value="$(page)"/>
</go>
</anchor><br/>
<%end if%>
<a href="add.asp?ids=<%=ids%>">[添加书签]</a><br/>
<a href="index.asp">[我的书签]</a>
</p>
</card>
</wml>
<%
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -