?? memberlog.asp
字號:
<!--#include file="../Session.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>億眾購物系統--登陸日志管理</title>
<link href="../../css/site.css" rel="stylesheet" type="text/css">
</head>
<body>
<table border="0" cellspacing="0" width="100%" cellpadding="1">
<tr>
<td height="50" colspan="9" align="center" class="tdstyle"><strong><font color="#000000" size="3">最近10天的用戶登陸日志</font></strong></td>
</tr>
<tr>
<form name="form1" method="post" action="?">
<td height="30" colspan="9" align="center" class="tdstyle">按管用戶帳號查詢:
<input name="keyword" type="text" class="input1"> <input name="Submit" type="submit" class="button" value="查 詢">
</td>
</form>
</tr>
<tr>
<td width="9%" height="25" align="center" class="tdstyle"><strong>ID</strong></td>
<td width="10%" align="center" class="tdstyle"><strong>用戶名</strong></td>
<td width="11%" align="center" class="tdstyle"><strong>登陸IP</strong></td>
<td width="15%" align="center" class="tdstyle"><strong>地 區</strong></td>
<td width="15%" align="center" class="tdstyle"><strong>操作系統</strong></td>
<td width="12%" align="center" class="tdstyle"><strong>瀏覽器</strong></td>
<td width="8%" align="center" class="tdstyle"><strong>分辨率</strong></td>
<td width="12%" align="center" class="tdstyle"><strong>登陸時間</strong></td>
<td width="8%" align="center" class="tdstyle"><strong>狀 態</strong></td>
</tr>
<%Dim keyword
keyword=request("keyword")
if keyword<>"" then
sql="select * from Log where Flag=0 and name like '%"&trim(keyword)&"%' order by id desc"
else
sql="select * from Log where Flag=0 order by id desc"
end if
Set rs= Server.CreateObject("ADODB.Recordset")
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.write "<tr><td height=20 colspan=9 align=center class=text>沒有登陸記錄 </td></tr>"
response.end
end if
rs.pagesize = 15
if request("page")="" or IsNumeric(request("page"))=False then
page = 1
else
page=int(request("page"))
end if
if page>rs.pagecount then
page=rs.pagecount
end if
if not rs.BOF then
Rs.Move Rs.PageSize*(page-1)
end if
i=1
do while not rs.eof and i<=rs.pagesize%>
<tr>
<td height="20" align="center" class="tdstyle"> <%=rs("Id")%> </td>
<td align="center" class="tdstyle"><%=rs("Name")%></td>
<td align="center" class="tdstyle"><%=rs("IP")%></td>
<td align="center" class="tdstyle"><%=rs("Zone")%></td>
<td align="center" class="tdstyle"><%=rs("OS")%></td>
<td align="center" class="tdstyle"><%=rs("Browser")%></td>
<td align="center" class="tdstyle"><%=rs("ScreenSize")%></td>
<td align="center" class="tdstyle"><%=rs("Date")%></td>
<td align="center" class="tdstyle"><%if rs("State")="1" then:Response.Write("成功"):else:Response.Write("<font color=#993300>失敗</font> ")%></td>
</tr>
<%i=i+1
rs.MoveNext
loop %>
<tr align="center">
<form name=form method=get action=?>
<td height="30" colspan="10"class="tdstyle"> <%
if rs.recordcount<>0 then
if page-1 mod 10=0 then
p=(page-1) \ 10
else
p=(page-1) \ 10
end if
response.write "頁次:"& page &"/"& rs.pagecount &"頁 每頁"& rs.pagesize &" 共"& rs.recordcount &"條記錄"&_
" 分頁:"
if p*10>0 then response.write "<a href='?page="&p*10&"' title=上十頁>[<<]</a> "
uming_i=1
for ii=p*10+1 to P*10+10
if ii=page then
response.write "<font color=#ff0000>["+Cstr(ii)+"]</font> "
else
response.write "<a href='?page="&ii&"'>["+Cstr(ii)+"]</a> "
end if
if ii=rs.pagecount then exit for
uming_i=uming_i+1
next
if ii<=rs.pagecount and uming_i=11 then response.write "<a href='?page="&ii&"' title=下十頁>[>>]</a> "
response.write(" 跳頁:<input type=text name=page size=2 maxlength=3 class=input1> <input type=submit name=Submit value=Go class=button>")
end if
rs.close
set rs=nothing
conn.close
set conn=nothing%> </td>
</form>
</tr>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -