📄 manageuser.asp
字号:
<!--#include file="conn.asp"-->
<%
if session("user")="" or session("group")<>1 then
response.write("<script>alert('您没有权限,请与管理员联系');window.location.href('vir.asp')</script>")
response.end
end if
%>
<%
set rs=server.CreateObject("adodb.recordset")
cmd="select * from admin"
rs.open cmd,conn,1,3
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Untitled Document</title>
<style type="text/css">
<!--
.style1 {
font-size: 12px;
color: #FFFFFF;
}
.style4 {color: #6699CC}
.style5 {font-size: 12px}
.style6 {color: #6699CC; font-size: 12px; }
-->
</style>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<table width="500" border="0" align="center" bgcolor="#6699cc">
<tr>
<td colspan="5"><span class="style1">所有用户列表</span></td>
</tr>
<%while not rs.eof%>
<tr bgcolor="#FFFFFF">
<td width="47"><div align="center" class="style5"><span class="style4">
<%=rs("id") %>
</span></div></td>
<td width="91"><div align="center" class="style5"><span class="style4">
<% =rs("user")%>
</span></div></td>
<td width="189"><div align="center" class="style6"><%=rs("pwd") %></div></td>
<td width="69"><div align="center"><a href="edituser.asp?id=<%=rs("id")%>"><img src="images/edit.gif" width="47" height="18" border="0" /></a></div></td>
<td width="82"><a href="deluser.asp?id=<%=rs("id")%>"><img src="images/a_delete.gif" width="52" height="16" border="0" /></a></td>
</tr>
<%
rs.movenext
wend
%>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -