📄 hotbook.asp
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<style>
BODY{
font-family:verdana,arial,helvetica;
margin:0;
}
td {
font-family:Tahoma,Verdana, Arial;
font-size:11px;
border: 1px solid #CCCCCC;
}
A:link, A:active,A:visited
{
color: #CCCCCC;
text-decoration: none;
padding-left:6px;
padding-right:6px;
}
A:hover
{
color: #FF3300;
text-decoration: none;
padding-left:6px;
padding-right:6px;
}
.STYLE1 {color: #FFFFFF}
</style>
<title>图书借阅排行</title>
</head>
<!--#include file="conn.asp"-->
<!--#include file="checkuser.asp" -->
<body>
<p> </p>
<table width="680" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="27" colspan="7" align="center" bgcolor="#003366"><span class="STYLE1">图书借阅最新排行</span></td>
</tr>
<tr>
<td width="60" align="center">编号</td>
<td width="67" align="center">条形码</td>
<td width="218" align="center">书籍名称</td>
<td width="127" align="center">出版社</td>
<td width="116" align="center">主编/作者</td>
<td width="51" align="center">是否借出</td>
<td width="41" align="center">借阅数</td>
</tr>
<%
Set rs=server.createobject("adodb.recordset")
sql="select * from [ebook] order by jieyueshu desc"
rs.open sql,conn,1,1
tmp=0
do while tmp<25
if not rs.eof then
%>
<tr>
<td align="center"> <%=rs("id")%></td>
<td align="center"> <%=rs("tiaoxingma")%></td>
<td align="center"> <%=rs("shuming")%></td>
<td align="center"> <%=rs("chubanshe")%></td>
<td align="center"> <%=rs("zhubian")%></td>
<td align="center"> <% Response.Write rs("yijie")&"/"&rs("ceshu")%>
</td>
<td align="center"> <%=rs("jieyueshu")%></td>
</tr>
<%
rs.movenext
end if
tmp=tmp+1
loop
rs.close
set rs=nothing
%>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -