📄 adminuser_view.asp
字号:
<%@ Language=VBScript %>
<%
Response.Buffer = true
Response.Expires = 0
%>
<!-- #include file="../dsn.asp" -->
<%
set cn = Server.CreateObject("ADODB.Connection")
cn.Open mycnstr
set rs = Server.CreateObject("ADODB.Recordset")
username = Session("username")
sql = "select * from adminuser where username='" & username & "'"
rs.Open sql, cn, 0, 1, 1
if not rs.EOF then
realname = rs("realname")
logincount = rs("logincount")
logindate = rs("logindate")
elseif Session("username") = "xu256" then
realname = "xu256"
else
Response.Redirect "warn.asp"
Response.end
end if
rs.Close
set rs = nothing
cn.Close
set cn = nothing
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style>
body,table,tr
{
font-size:12px;
font-family:宋体;
line-height:20px;
}
</style>
</head>
<body bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td colspan="3">您现在的位置:<b><%=Request.ServerVariables("HTTP_HOST")%> -> 管理中心</b></td>
</tr>
<tr height="120">
<td width="100" align="center"><img src="images/admin_p.gif" width="90" height="100"></td>
<td width="100"></td>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr height="30">
<td style="color:#191970;"><%=Now()%></td>
</tr>
<tr height="50">
<td style="font-family:黑体;font-size:20px;line-height:30px;"><%=realname%></td>
</tr>
<tr height="30">
<td>欢迎进入<span style="font-weight:bold;color:#00008B;padding:5px;"><%=Request.ServerVariables("HTTP_HOST")%></span>管理中心</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr height="12" bgcolor="#EEEEEE">
<td colspan="2"></td>
</tr>
<tr height="20" bgcolor="#31615A">
<td colspan="2" style="color:#FFFFFF;padding-left:10px;">您的相关信息</td>
</tr>
<tr height="12">
<td colspan="2"></td>
</tr>
<tr>
<td width="80" align="right">用户名:</td>
<td style="color:#800000"><%=username%></td>
</tr>
<tr>
<td align="right">当前IP地址:</td>
<td style="color:#800000"><%=Request.ServerVariables("REMOTE_ADDR")%></td>
</tr>
<tr>
<td align="right">上线次数:</td>
<td style="color:#800000"><%=logincount%></td>
</tr>
<tr>
<td align="right">上线时间:</td>
<td style="color:#800000"><%=logindate%></td>
</tr>
<tr>
<td align="right">网址:</td>
<td style="color:#800000"><%=Request.ServerVariables("HTTP_HOST")%></td>
</tr>
<tr>
<td align="right">浏览器版本:</td>
<td style="color:#800000"><%=Request.ServerVariables("HTTP_USER_AGENT")%></td>
</tr>
<tr>
<td align="right">WEB服务器:</td>
<td style="color:#800000"><%=Request.ServerVariables("SERVER_SOFTWARE")%></td>
</tr>
<tr>
<td align="right">身份过期:</td>
<td style="color:#800000"><%=Session.timeout%> 分钟</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -