⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 default.asp

📁 ASP+mssql 财务系统 【使用说明】 在Windows系统的管理工具中
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="Connections/conn.asp" -->
<%
' *** 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("uid"))
If MM_valUsername <> "" Then
  MM_fldUserAuthorization=""
  MM_redirectLoginSuccess="index1.asp"
  MM_redirectLoginFailed="default.asp"
  MM_flag="ADODB.Recordset"
  set MM_rsUser = Server.CreateObject(MM_flag)
  MM_rsUser.ActiveConnection = MM_conn_STRING
  MM_rsUser.Source = "SELECT username, passwd"
  If MM_fldUserAuthorization <> "" Then MM_rsUser.Source = MM_rsUser.Source & "," & MM_fldUserAuthorization
  MM_rsUser.Source = MM_rsUser.Source & " FROM 用户 WHERE username='" & Replace(MM_valUsername,"'","''") &"' AND passwd='" & Replace(Request.Form("pwd"),"'","''") & "'"
  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 true Then
      MM_redirectLoginSuccess = Request.QueryString("accessdenied")
    End If
    MM_rsUser.Close
	session("uid")=MM_valUsername
    Response.Redirect(MM_redirectLoginSuccess)
  End If
  MM_rsUser.Close
  Response.Redirect(MM_redirectLoginFailed)
End If
%>
<html>
<head>
<title>-=个人财务管理系统=</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<STYLE>.big {
	FONT-FAMILY: Arial, Helvetica, 宋体; FONT-SIZE: 13pt; FONT-WEIGHT: bold
}
.cur {
	COLOR: #ff0000; FONT-FAMILY: 宋体; FONT-SIZE: 9pt
}
.chn {
	FONT-FAMILY: 宋体; FONT-SIZE: 9pt
}
.dir {
	FONT-FAMILY: 宋体; FONT-SIZE: 11pt; FONT-WEIGHT: bold
}
.sub {
	FONT-FAMILY: 宋体; FONT-SIZE: 9pt
}
.hdr {
	FONT-FAMILY: 宋体; FONT-SIZE: 9pt; FONT-WEIGHT: bold
}
.itm {
	FONT-FAMILY: 宋体; FONT-SIZE: 11pt
}
.eng {
	FONT-FAMILY: Arial, Helvetica, 宋体; FONT-SIZE: 9pt
}
.con {
	FONT-FAMILY: 宋体; FONT-SIZE: 10pt
}
A.hover {
	COLOR: red
}
td {
	FONT-SIZE: 9pt
; line-height: 19px
}
</STYLE>




<body bgcolor="#839DB4">
<form name="title" method="post">
  <table width="100%" border="0" cellspacing="1" cellpadding="2" bgcolor="#000000" vspace="0" hspace="0">
    <tr bgcolor="#316395"> 
      <td height="27" bgcolor="#006699"><div align="center">
          <p><font color="#FFFFFF">.:: 个人财务管理系统 ::.</font></p>
          <p><font color="#FFFFFF"><br>
            </font></p>
        </div></td>
    </tr>
  </table>
</form>
<form name="login" method="POST" action="<%=MM_LoginAction%>">
  <p>&nbsp;</p>
  <table width="53%" border="1" align="center" cellpadding="2" cellspacing="0" bordercolor="#FFFFFF" bgcolor="#999999">
    <tr bordercolor="#000000" bgcolor="#006699"> 
      <td colspan="2"><font color="#FFFFFF">用户登录<strong>:</strong></font></td>
    </tr>
    <tr> 
      <td width="37%" bordercolor="#000000" bgcolor="#E3E6E4"><div align="center">           用户名 </div></td>
      <td width="63%" bordercolor="#000000" bgcolor="#E3E6E4"><input name="uid" type="text" id="uid"></td>
    </tr>
    <tr> 
      <td bordercolor="#000000" bgcolor="#006699"><div align="center"><font color="#FFFFFF">           密 码 </font></div></td>
      <td bordercolor="#000000" bgcolor="#006699"><input name="pwd" type="password" id="pwd"></td>
    </tr>
    <tr bordercolor="#000000"> 
      <td colspan="2" bgcolor="#E3E6E4"><div align="center">
          <input type="submit" name="Submit" value="确定">
          <input type="submit" name="Submit2" value="清除">
        </div></td>
    </tr>
  </table>
  <p>&nbsp;</p>
  </form>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -