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

📄 user_list.asp

📁 在线图书馆管理系统的具有前台后后台。前台用户系统主要功能是显示用户借阅信息及图书查找功能。后台管理员系统主要是负责前台信息的维护和图书书库的管理。本系统可以方便的使用户高效率地找到自己所需要的图书。另
💻 ASP
字号:
<!--#include file="../inc/adconn.asp"-->
<!--#include file="../css.asp"-->
<% set rs=server.CreateObject("adodb.recordset") %>
<%if session("admin_name")="" then 
response.end
end if%>
<% sql="select * from [user]" 
rs.open sql,conn,1,3
if rs.eof then
     response.write "<font color='red'>"
      response.write "暂且用户资料"
	  response.write "</font>"
      response.end
	  else
rs.PageSize =10 '每页记录条数
iCount=rs.RecordCount '记录总数
iPageSize=rs.PageSize
maxpage=rs.PageCount 
page=request("page")
  
  if Not IsNumeric(page) or page="" then
    page=1
  else
    page=cint(page)
  end if
  
  if page<1 then
    page=1
  elseif page>maxpage then
    page=maxpage
  end if
  
  rs.AbsolutePage=Page

if page=maxpage then
x=iCount-(maxpage-1)*iPageSize
else
x=iPageSize
end if
i=0
end if
%>
<table width="100%" height="1" border="0" cellpadding="3"  cellspacing="1" >
  <tr>
    <td width="100%" class="title" bgcolor="#FFFFFF"><div align="center" style="font-weight: bold; font-family: Arial, Helvetica, sans-serif; font-size: 24px">用户管理</div></td>
  </tr>
    <tr>
      <td >[<a href="user_list.asp">用户列表</a>]&nbsp;&nbsp;</td>
    </tr>
</table>
<TABLE border="0" cellspacing="0" width="100%" cellpadding="0">
  <TR>
    <TD height=25 align=left bgcolor="#FFCC00">&gt;&gt;所有用户信息</TD>
  </TR>
</TABLE>
<TABLE width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#336699">
    <tr height=25 > 
      <TD width="79" align="center" background="../images/pics/tile_sub.gif"><font color="#FFFFFF"><b>ID号</b></font></TD>
      <TD width="200" align="center" background="../images/pics/tile_sub.gif"><font color="#FFFFFF"><b>用户名</b></font></TD>
      <TD width="405" align="center" background="../images/pics/tile_sub.gif"><font color="#FFFFFF"><b>E-Mail</b></font></TD>
	  <TD width="405" align="center" background="../images/pics/tile_sub.gif"><font color="#FFFFFF"><b>QQ </b></font></TD>
      <TD width="137" align="center" background="../images/pics/tile_sub.gif"><font color="#FFFFFF"><b>操作</b></font></TD>
    </TR>
	<% do while not rs.eof and i< rs.pagesize
	i=i+1
	%>
    <tr height="15"> 
      <td width="79" height="28" align="center" bgcolor="#ffffff"><font face="Arial"><b><%=rs("ID")%></b></font></td>
      <td width="200" bgcolor="#ffffff"><%=rs("UserName")%></td>
      <td width="405" align="center" bgcolor="#ffffff"><%=rs("Email")%></td>
	   <td width="405" align="center" bgcolor="#ffffff"><%=rs("QQ")%></td>
      <td width="137" align="center" bgcolor="#ffffff"><a href="user_del.asp?id=<%=rs("ID")%>">删除</a></td>
    </tr>
	<%
	rs.movenext
	loop%>
	<TR> 
              <TD height="30" 
colSpan=6 bgcolor="#FFFFFF" id=mainfoot> <div align="center">共<font color=red><%=maxpage%></font>页 第<%=page%>页 <font color=666666> 
                  <%if page-1>0 then%>
                  <a href="../user/user_list.asp?page=<%=page-1%>">上一页</a> 
                  <%else%>
                  <font color=666666>上一页</font> 
                  <%end if%>
                    
                  <%if page+1<=maxpage then%>
                  <a href="../user/user_list.asp?page=<%=page+1%>">下一页</a> 
                  <%else%>
                  <font color=666666>下一页</font> 
                  <%end if%>
      </font>共<% =iCount %>条记录</div></TD>
  </TR>
  </table>

⌨️ 快捷键说明

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