?? user_list.asp
字號:
<!--#include file="Conn.asp"-->
<!--#include file="Check.asp"-->
<!--#include file ="Inc/MD5.asp"-->
<html>
<head>
<title>管理中心</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="Image/style.css" type=text/css rel=stylesheet>
<script language="JavaScript" src="Image/js.js"></SCRIPT>
</head>
<body text="#000000">
<%If Request.QueryString("action")="del" Then
Call userdel
Else
%>
<table width="98%" border="0" cellpadding="0" cellspacing="0" align="center" class=TableBorder>
<tr height="22" valign="middle" align="center">
<th width="10%">ID</th>
<th width="30%">登陸名</th>
<th width="20%">登陸時間</th>
<th width="10%">登陸IP</th>
<th width="20%">操作</th>
</tr>
<%
Dim ll
Set ll = Conn.Execute("Select ID,admin,loginTime,ip From [Admin]")
Do While Not ll.Eof
%>
<tr valign="middle" bgcolor="#FFFFFF" align="center" height="22">
<td width="10%"><%=ll(0)%></td>
<td width="30%"><a href="User_Edit.asp?id=<%=ll(0)%>" title="點擊編輯"><%=ll(1)%></a></td>
<td width="20%"><%=ll(2)%></td>
<td width="10%"><%=ll(3)%></td>
<td width="20%"><a href="User_Edit.asp?id=<%=ll(0)%>">編輯</a>
| <a href="?action=del&id=<%=ll(0)%>" onclick="{if(confirm('確定刪除嗎?')){return true;}return false;}">刪除</a></td>
</tr>
<%
ll.MoveNext
Loop
ll.Close
Conn.Close
Set ll=Nothing
Set Conn=Nothing
%>
</table>
<%End if%>
</html>
<%
Sub userdel
Dim id,dd
id = Request.QueryString("id")
Set dd = Conn.Execute("Delete From [Admin] Where ID = "&id)
Response.write "<script language='javascript'>alert('刪除成功!');" & chr(13)
Response.write "window.document.location.href='User_List.asp';</script>"
End Sub
%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -