📄 viewuser.asp
字号:
<%
if session("admin_name")="" then response.end
set rs=server.createobject("adodb.recordset")
%>
<!--#include file="conn.asp"-->
<%
if request("action")="deluser" then
sql="select * from user where user_id="&request("user_id")
rs.open sql,conn,3,3
if rs.eof then
response.write "<center>"
response.write "用户信息已删除!"
else
rs.delete
response.write "<center>"
response.write "用户信息已删除!"
end if
else
sql="select * from user where user_id="&request("user_id")
rs.open sql,conn,3,3
if rs.eof then
response.write "没有此用户信息"
else%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Content-Language" content="zh-cn">
<link href=../style.css rel=STYLESHEET type=text/css>
<title>用户管理</title>
</head>
<table border="0" width="100%" cellspacing="1" bgcolor="#FF9966">
<tr>
<td width="100%">
<table border="0" width="100%" cellspacing="1">
<tr>
<td width="102%" bgcolor="#FFFFFF" colspan="3">
<p align="center">用户:<%=rs("user_name")%>详细信息</td>
</tr>
<tr>
<td width="33%" bgcolor="#FFFFFF">用户id号:<%=rs("user_id")%></td>
<td width="33%" bgcolor="#FFFFFF">用户名:<%=rs("user_name")%></td>
<td width="34%" bgcolor="#FFFFFF">E-mail:<%=rs("user_mail")%></td>
</tr>
<tr>
<td width="33%" bgcolor="#FFFFFF">电话号码:<%=rs("user_tel")%></td>
<td width="33%" bgcolor="#FFFFFF">注册时间:<%=rs("user_regtime")%></td>
<td width="34%" bgcolor="#FFFFFF">注册IP:<%=rs("user_regip")%></td>
</tr>
<tr>
<td width="34%" bgcolor="#FFFFFF">真实姓名:<%=rs("user_namec")%></td>
<td width="68%" bgcolor="#FFFFFF" colspan="2">邮政编码:<%=rs("user_postcode")%></td>
</tr>
<tr>
<td width="102%" bgcolor="#FFFFFF" colspan="3">用户地址:<%=rs("user_adds")%></td>
</tr>
<tr>
<td width="102%" bgcolor="#FFFFFF" colspan="3">
<p align="center"><a href="viewuser.asp?user_id=<%=rs("user_id")%>&action=deluser">删除此用户</a></td>
</tr>
</table>
</td>
</tr>
</table>
<%end if
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -