📄 admin_index.asp
字号:
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="conn.asp"-->
<!--#include file="fun.asp"-->
<!--#include file="top.asp"-->
<!--#include file="chk.asp"-->
<br><br>
<b>书籍列表</b>
<br><br>
<%
on error resume next '找不到站点资料时忽略错误
kindid=request("kindid")
sql="select * from book where kindid="&kindid&" order by bookid desc"
set Rs = Server.CreateObject("ADODB.Recordset")
Rs.open sql,conn,1,1
Rs.pagesize=36
page=Request("page")
if (page-Rs.pagecount) > 0 then
page=Rs.pagecount
elseif page = "" or page < 1 then
page = 1
end if
Rs.absolutepage=page
%>
<%
do while not Rs.eof
i = i + 1
if i > Rs.pagesize then
exit do
end if
%>
<table width=680 height=24 border=0 align="center" cellPadding=3 cellSpacing=0 style="border-collapse: collapse word-break:break-all">
<tr>
<td colspan="2" style="word-break:break-all" width="400">
<%=Rs("zuozhe")%><a href="admin_bookread.asp?bookid=<%=Rs("bookid")%>&bookname=<%=Rs("bookname")%>"><b>《<%=Rs("bookname")%>》</a></b> <a href="admin_edit2.asp?bookid=<%=rs("bookid")%>&bookname=<%=Rs("bookname")%>">[编辑]</a> <a href="admin_delbook.asp?bookid=<%=rs("bookid")%>">[删除]</a>
</td>
<td width="270">
推荐度:<%=encode1(rs("tuijian"))%> 阅读<b><%=Rs("hit")%></b>次<br>
</td>
</tr></table>
<%
Rs.movenext
loop
%>
</td>
</tr>
</table>
<table border=0 cellpadding=0 cellspacing=1 width=640>
<tr><td align="center" style="line-height: 150%">
<p>目前共收录此类书籍书籍<%=Rs.recordcount%>种 <%=page%>/<%=Rs.pagecount%>页 跳到第
<% for go=1 to Rs.pagecount
%>
<a href=admin_index.asp?kindid=<%=kindid%>&page=<%=go%>><%=go%></a>
<%next%>
页
<% if page=1 then %>
<%else%>
<a href=admin_index.asp?kindid=<%=kindid%>&page=<%=page-1%>>上一页</a>
<%end if%>
<% if Rs.pagecount-page <> 0 then %>
<a href=admin_index.asp?kindid=<%=kindid%>&page=<%=page+1%>>下一页</a>
<%else%>
<%end if%>
</td></tr></table>
<br><br>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -