📄 nj.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../Connections/radio.asp" -->
<%
Dim userpass
Dim userpass_numRows
Set userpass = Server.CreateObject("ADODB.Recordset")
userpass.ActiveConnection = MM_radio_STRING
userpass.Source = "SELECT * FROM userpass"
userpass.CursorType = 0
userpass.CursorLocation = 2
userpass.LockType = 1
userpass.Open()
userpass_numRows = 0
%>
<%
' *** Validate request to log in to this site.
MM_LoginAction = Request.ServerVariables("URL")
If Request.QueryString<>"" Then MM_LoginAction = MM_LoginAction + "?" + Request.QueryString
MM_valUsername=CStr(Request.Form("textfield"))
If MM_valUsername <> "" Then
MM_fldUserAuthorization="等级"
MM_redirectLoginSuccess="MANAGE.ASP"
MM_redirectLoginFailed="fair.htm"
MM_flag="ADODB.Recordset"
set MM_rsUser = Server.CreateObject(MM_flag)
MM_rsUser.ActiveConnection = MM_radio_STRING
MM_rsUser.Source = "SELECT 用户名, 密码"
If MM_fldUserAuthorization <> "" Then MM_rsUser.Source = MM_rsUser.Source & "," & MM_fldUserAuthorization
MM_rsUser.Source = MM_rsUser.Source & " FROM userpass WHERE 用户名='" & Replace(MM_valUsername,"'","''") &"' AND 密码='" & Replace(Request.Form("textfield2"),"'","''") & "'"
MM_rsUser.CursorType = 0
MM_rsUser.CursorLocation = 2
MM_rsUser.LockType = 3
MM_rsUser.Open
If Not MM_rsUser.EOF Or Not MM_rsUser.BOF Then
' username and password match - this is a valid user
Session("MM_Username") = MM_valUsername
If (MM_fldUserAuthorization <> "") Then
Session("MM_UserAuthorization") = CStr(MM_rsUser.Fields.Item(MM_fldUserAuthorization).Value)
Else
Session("MM_UserAuthorization") = ""
End If
if CStr(Request.QueryString("accessdenied")) <> "" And false Then
MM_redirectLoginSuccess = Request.QueryString("accessdenied")
End If
MM_rsUser.Close
Response.Redirect(MM_redirectLoginSuccess)
End If
MM_rsUser.Close
Response.Redirect(MM_redirectLoginFailed)
End If
%>
<html>
<head>
<title>网络电台--NJ登陆</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../css/radio.css" type="text/css">
<style type="text/css">
<!--
.style1 {font-size: 12px}
body {
background-color: #F0F0F0;
}
-->
</style>
</head>
<body text="#000000" topmargin="0">
<TABLE width="23%" border=0 align="center" cellPadding=0 cellSpacing=0 id=table3>
<TBODY>
<TR>
<TD><IMG
src="../img/title_qq1.gif"
width=228 height=24 border="0" usemap="#Map">
<map name="Map">
<area shape="rect" coords="26,5,71,22" href="nj.ASP">
<area shape="rect" coords="79,2,138,22" href="INDEX.ASP">
<area shape="rect" coords="145,6,205,21" href="../user1.asp">
</map></TD>
</TR>
<TR>
<TD valign="top"><table width="224" border="0">
<tr>
<td width="218" height="135"><table width="4%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td height="140" valign="top"><table width="100%" border="0" cellspacing="00" cellpadding="0">
<tr>
<td align="center"><form method="POST" action="<%=MM_LoginAction%>" name="form1">
<table border="0" width="206" align=center>
<tr>
<td width="100%" height="21" align="center"> <span class="style1">NJ登陆</span></td>
</tr>
<tr>
<td width="100%" align="center"><table border="0" width="200">
<tr>
<td width="27%" align="right" class="style1"><font color="#666666">用户名:</font></td>
<td width="73%" class="style1"><input type="text" name="textfield" size="20">
</td>
</tr>
<tr>
<td width="27%" align="right" class="style1"><font color="#666666">密码:</font></td>
<td width="73%" class="style1"><input type="password" name="textfield2" size="20">
</td>
</tr>
<tr>
<td width="27%" class="style1"></td>
<td width="73%" class="style1">
<input type="submit" value="进入" name="Submit">
<input type="reset" name="Submit2" value="重写">
</td>
</tr>
</table></td>
</tr>
<tr>
<td width="100%" align="center"> </td>
</tr>
<tr>
<td width="100%" align="center"></td>
</tr>
<tr>
<td width="100%" align="center"></td>
</tr>
<tr>
<td width="100%"></td>
</tr>
<tr>
<td width="100%"></td>
</tr>
</table>
</form></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></TD>
</TR>
</TBODY>
</TABLE>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -