📄 user_last_list.asp
字号:
<!--#include file="conn.asp" -->
<%
if session("username")="" then
response.write "<table><tr><td>你还未登陆,或登陆已超时,请重新登陆!</td></tr>"
response.write "<tr><td><a href='login.htm' target=_parent>返回</a></td></tr></table>"
response.end
end if
%>
<html>
<head>
<title>无标题文档</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../style.css" type="text/css">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table cellspacing=0 cellpadding=0 width=100% align=center border=0>
<tbody>
<tr>
<td valign="TOP">
<div align=center>
<table cellspacing=0 cellpadding=5 width="100%" border=0>
<tbody>
<tr>
<td align="center" class="headbold"> <font color=ff0000> 最近登录会员</font>列表</td>
</tr>
</tbody>
</table>
<table cellspacing=1 cellpadding=0 width="100%" border=0 class="table1">
<tbody>
<form method="post" action="user_del.asp">
<tr class="th1">
<td width=30 height=21 align="center">编号</td>
<td align="center">会员ID</td>
<td align="center">真实姓名</td>
<td align="center">性别</td>
<td align="center">所在省</td>
<td align="center">QQ号码</td>
<td width=30 align="center">订单</td>
<td width=30 align="center">积分</td>
<td width=60 align="center">登录日期</td>
<td width=30 align="center">消息</td>
<td width=30 align="center">修改</td>
<td width=30 align="center"><b>
<input type="submit" name="Submit" value="删" class="input_cccccc">
</b></td>
</tr>
<%
sql="select * from Net008_user order by logindate desc"
set rs=server.createobject("adodb.recordset")
rs.open sql ,conn,1,2
if rs.recordcount<1 then
response.write"暂无信息!"
'response.end
end if
const maxperpage=30 '定义每一页显示的数据记录的常量
dim currentpage '定义当前页的变量
rs.pagesize=maxperpage
currentpage=request.querystring("pageid")
if currentpage="" then
currentpage=1
elseif currentpage<1 then
currentpage=1
else
currentpage=clng(currentpage)
if currentpage > rs.pagecount then
currentpage=rs.pagecount
end if
end if
'如果变量currentpage的数据类型不是数值型
'就1赋给变量currentpage
if not isnumeric(currentpage) then
currentpage=1
end if
dim totalput,n '定义变量
totalput=rs.recordcount
if totalput mod maxperpage=0 then
n=totalput\maxperpage
else
n=totalput\maxperpage+1
end if
if n=0 then
n=1
end if
rs.move(currentpage-1)*maxperpage
i=0
do while i< maxperpage and not rs.eof
%>
<tr class="th2">
<td width=30 height=21 align="center"> <%response.write rs("id")
%> </td>
<td align="center"> <%response.write rs("userid")
%> </td>
<td align="center"> <%response.write rs("guestname")
%> </td>
<td align="center"> <%response.write rs("sex")
%> </td>
<td align="center"> <%
cityid=rs("city")
sql_temp="select * from Net008_province where cityid='"&cityid&"'"
set rs_temp=server.createobject("adodb.recordset")
rs_temp.open sql_temp,conn,1,2
response.write rs_temp("cityname")
rs_temp.close
set rs_temp=nothing
%> </td>
<td align="center"> <%response.write rs("qq")
%> </td>
<td align="center" width="30"> <%
userid=rs("userid")
sql_temp="select * from Net008_orderlist where userid='"&userid&"'"
set rs_temp=server.createobject("adodb.recordset")
rs_temp.open sql_temp,conn,1,2
response.write rs_temp.recordcount
rs_temp.close
set rs_temp=nothing
%> </td>
<td align="center" width="30"> <%
response.write "<a href=emoney_per_list.asp?userid="&rs("userid")&" class=LeftTypeLinkU>"
'计算并显示积分
sql_money="select * from Net008_emoney where userid='"&cstr(userid)&"'"
set rs_money=server.createobject("adodb.recordset")
rs_money.open sql_money,conn,1,2
sum_emoney=0
if rs_money.recordcount<1 then
response.write sum_emoney
else
for money_i=1 to rs_money.recordcount
if rs_money("addsub")="+" then
sum_emoney=sum_emoney+rs_money("emoney")
else
sum_emoney=sum_emoney-rs_money("emoney")
end if
rs_money.movenext
next
response.write sum_emoney
end if
response.write "</a>"
rs_money.close
%> </td>
<td align="center" width="60"> <%=FormatDateTime(rs("logindate"),2)%> </td>
<td width=30 align="center"><a href="send_info.asp?userid=<%=rs("userid")%>" class="LeftTypeLinkU">消息</a></td>
<td width=30 align="center"><a href="user_modi.asp?id=<%=rs("id")%>" class="LeftTypeLinkU">修改</a></td>
<td align="center"> <input type="checkbox" name="deleteid" value="<%=rs("id")%>" class="input_no">
</td>
</tr>
<%
i=i+1
rs.movenext
loop
%>
</form>
</table>
<br>
<table class="table1" cellspacing=1 cellpadding=0 width="100%" border=0>
<tbody>
<tr class="th1">
<td align=middle colspan=3
height=22>页数:<%=currentpage%>/
<% =n%>
<%k=currentpage
if k<>1 then%>
[<a href="user_last_list.asp?pageid=1" class="LeftTypeLinkU">首页</a>]
[<a href="user_last_list.asp?pageid=<%=k-1%>" class="LeftTypeLinkU">上一页</a>]
<%else%>
[首页] [上一页]
<%end if%>
<%if k<>n then%>
[<a href="user_last_list.asp?pageid=<%=k+1%>" class="LeftTypeLinkU">下一页</a>]
[<a href="user_last_list.asp?pageid=<%=n%>" class="LeftTypeLinkU">尾页</a>]
<%else%>
[下一页] [尾页]
<%end if%>
共有<font color="red"><%=totalput%></font>条信息</td>
</tr>
</tbody>
</table>
<br>
</div>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -