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

📄 index.asp

📁 像数据库(SQL2000)中存取图像数据
💻 ASP
字号:
<%@ Language=VBScript %>
<!--#include file="conn.asp"-->
<html>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
.12 {
	font-size: 12px;
}
-->
</style>
</head>
<body bgcolor="CAD7F7" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" scroll=yes>
<%
 Set rs=Server.CreateObject("Adodb.RecordSet")
 sql="select * from img order by id desc"
 rs.Open sql,conn,1,3
 %>
 <table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF" class="12">
  <tr>
  <%
  rs.pagesize=16
  epage=CLng(Request("page"))
  If epage<1 Then epage=1
  rs.absolutepage=epage
  for i=1 to rs.pagesize
     do while not rs.eof%>
    <td bgcolor="#f1f3f5"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="12">
        <tr> 
          <td><div align="center"><A href="detail.asp?id=<%=rs("id")%>" width="300" height="400" class="STYLE1"><img src="show.asp?id=<%=rs("id")%>&tbName=img" width="150" height="150" border="0",height="133">
		  </a></div></td>
        </tr>
      </table></td><%if i mod 4=0 then%>
       </tr>
	  <%end if
	  i=i+1
	 rs.movenext
	 loop
  If rs.Eof Then exit For
  Next 
    %>
</table>
<p align="center">
<% if page<>1 then %>
<a href= page=1 class="white"><font color="#666666">首页</font></a>
<a href="">前一页</a>&nbsp;
<%end if
if page<>rs.pagecount then%>
<a href="">后一页</a>&nbsp;
<a href="">末页</a>
 <%end if%>
</p>
<p align="center">现在是第<%=epage%>页一共有<%=rs.pagecount%>页 [<%=page%>/<%=rs.pagecount%>];每页<%=rs.pagesize%>条;共<%=rs.pagecount%>条记录</p>		
</body>
</html>

⌨️ 快捷键说明

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