📄 userguanli.asp
字号:
<%@ Language=VBScript %>
<!--#include file="opendb.asp"-->
<html>
<head>
<title>用户管理</title>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
.style2 {color: #6600CC}
.style3 {color: #000099}
-->
</style>
</head>
<script language=vbscript src="images/function.vbs"></script>
<body>
<table cellspacing="0" cellpadding="0" width="99%" align="center" border="0">
<tr><td valign="top" align="left" rowspan="2"><img src="images/logo.gif" width="774" height="107" border="0"></td>
</tr>
</table>
<table cellspacing=4 cellpadding=0 width="97%" align=center border=0>
<tr>
<td colspan =2 align=left><span class="style2">现在时间</span>:<%=date() & time()%></td>
</tr>
</table>
<table cellspacing=0 cellpadding=0 width="99%" align=center bgcolor="#FFCCCC" border=0>
<tr>
<td>
<table cellspacing=1 cellpadding=4 width="100%" border=0>
<tr class=header>
<td align=center width="9%"><span class="style3">编号</span></td>
<td nowrap align=center width="14%"><span class="style3">用户名</span></td>
<td nowrap align=center width="14%"><span class="style3">密码</span></td>
</tr>
<%
strSQL = "Select * from UserInf Order By UserName DESC"
rst.CursorType=3
rst.open strSQL
if rst.RecordCount>0 then
rst.pagesize=5
page=cint(Request.QueryString("page"))
if page<1 then page=1
if page>rst.pagecount then page=rst.pagecount
rst.absolutepage=page
for i=1 to rst.pagesize
if rst.eof then
exit for
else
%>
<tr>
<td align=center bgcolor=#ffffff><%=I%></td>
<td align="center" bgcolor=#ffffff><a href="detail.asp?index=<%=rst("ID")%>"><%=rst("UserName")%></a></td>
<td align=center bgcolor=#ffffff><%=rst("Password")%></td>
</tr>
<%
end if
rst.movenext
next
end if
%>
<tr>
<td colspan=6 bgcolor="#f8f8f8" align=center>
<a href="userguanli.asp?page=1">[第一页]</a>
<a href="userguanli.asp?page=<%=(page-1)%>">[上一页]</a>
<a href="userguanli.asp?page=<%=(page+1)%>">[下一页]</a>
<a href="userguanli.asp?page=<%=rst.pagecount%>">[最后一页]</a>
</td>
</tr>
</table>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -