📄 login.asp
字号:
<!--#include file="inc/dbconn.asp" -->
<!--#include file="inc/config.asp" -->
<%
response.expires = -1
if request("Action")="Sys_LoginCheck" then
username=trim(Request.form("username"))
password=replace(trim(Request.Form("password")),"'","''")
Md5_Pass=password
Sys_CheckCode=replace(trim(Request("Sys_CheckCode")),"'","")
if username="" or password="" then
Response.write"<script>alert(""用户名和密码不能为空!\n\n "&Copyright&" "");location.href=""Login.asp"";</script>"
Response.end
end if
if Sys_CheckCode<>CStr(session("CheckCode")) then
Response.write"<script>alert(""验证码不正确,请刷新后重新登陆 \n\n"&Copyright&" "");location.href=""Login.asp"";</script>"
Response.end
end if
set rs=server.createobject("adodb.recordset")
sql="select * from pro_user where loginname='"&username&"'and pass='"&Md5_Pass&"'"
rs.open sql,conn,1,3
if not rs.EOF then
bianhaoID=Rs("bianhao")
session.Timeout=120
Session("AdminID")=bianhaoID'保存唯一的 人员编号
Session("adminName")=Rs("name1") '中文名
set rst=server.createobject("adodb.recordset") '读取权限
sql="select * from pro_quanxian where yuangongbianhao='"&bianhaoID&"'"
rst.open sql,conn,1,3
if not (rst.eof) then
LoginArray= rst.GetRows()
Session("LoginArray")=LoginArray
else
Response.write"<script>alert(""权限读取错误! "&Copyright&" "");location.href=""Login.asp"";</script>"
Response.end
end if
rst.close
set rst=nothing
response.redirect ("admin.asp") '
else
Response.write"<script>alert(""密码错误或者无此用户!\n\n "&Copyright&" "");location.href=""Login.asp"";</script>"
Response.End
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
end if
if request("Action")="LoginOut" then
Session("AdminID")="" '保存唯一的 人员编号
Session("adminName")=""
Session("LoginArray")=""
Response.Write "<script>location.href=""javascript:window.close()"";</script>"
end if
%>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=APPNAME%></title>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<link href="../other/admin.css" rel="stylesheet" type="text/css">
<STYLE type=text/css>
.style4 {
FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #ffffff
}
BODY {
MARGIN: 0px
}
.style5 {color: #FFFFFF}
</STYLE>
<BODY>
<TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" bgColor=#00309c border=0>
<TBODY>
<TR>
<TD vAlign=center height="26%"> </TD></TR>
<TR>
<TD height=2>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD
style="FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr='#5A7EDC', EndColorStr='#C7DDFF')"
width="31%" height=2></TD>
<TD
style="FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr='#C7DDFF', EndColorStr='#5A7EDC')"
width="69%" height=2></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD bgColor=#5a7edc height="48%">
<TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD style="PADDING-RIGHT: 12px" align=right width="57%">
<DIV style="PADDING-RIGHT: 40px"></DIV>
<DIV style="FONT-WEIGHT: bold; FONT-SIZE: 14pt"><BR>
<TABLE cellSpacing=3 cellPadding=5 width="505" border=0>
<TBODY>
<TR>
<TD width="489" colspan="2"><font color="#FFFFFF"> </font></TD>
</TR>
<TR>
<TD width="214">
<DIV align=left>
</DIV></TD>
<TD width="262" valign="bottom">
<p align="center">
<IMG height=56 alt=JXC系统 src="imgs/xplog.gif" width=164 align="right"></TD></TR>
<TR>
<TD width="489" colspan="2">
<DIV align=right><font color="#FFFFFF">JXC 系统 V 0.1</font></DIV></TD></TR>
<TR>
<TD width="489" colspan="2">
<p align="right"><font color="#FFFFFF">我们一直在努力,所以每天在进步</font></TD></TR>
<TR>
<TD width="489" colspan="2"> </TD></TR></TBODY></TABLE><SPAN
class=style4><BR><BR></SPAN></DIV></TD>
<TD width=1>
<TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%"
border=0>
<TBODY>
<TR>
<TD
style="FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr='#5A7EDC', EndColorStr='#C7DDFF')"
height="50%"></TD></TR>
<TR>
<TD
style="FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr='#C7DDFF', EndColorStr='#5A7EDC')"
height="50%"><IMG height=1
src=""
width=1> </TD></TR></TBODY></TABLE></TD>
<TD id=td0 width="43%">
<form name="login" method="post" action="Login.asp?Action=Sys_LoginCheck" target="_top">
<IMG height=15 alt=JXC系统 src="images/logo/footc.jpg" width=1>
<TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD vAlign=center align=middle>
<div align="center">
<TABLE id=table1 style="MARGIN: 20px" cellSpacing=3
cellPadding=5 width="93%" border=0
valign="middle">
<TBODY>
<TR>
<TD align=middle colSpan=3></TD></TR>
<TR>
<TD noWrap align=right>
<DIV class=style4 align=right>管理帐号:</DIV></TD>
<TD colSpan=2>
<input name="username" type="text" id="UserName" style="BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; BORDER-LEFT: 1px solid; WIDTH: 110px; BORDER-BOTTOM: 1px solid"
maxlength="20" class="login"></TD></TR>
<TR>
<TD align=right>
<DIV class=style4 align=right>管理密码:</DIV></TD>
<TD colSpan=2><input name="password" type="password" id="Password" maxlength="20" class="login" style="BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; BORDER-LEFT: 1px solid; WIDTH: 110px; BORDER-BOTTOM: 1px solid">
</TD></TR>
<TR>
<TD align=right>
<DIV class=style4 align=right>验 证 码:</DIV></TD>
<TD width=83>
<input name="Sys_CheckCode" type="text" class="login" id="Sys_CheckCode" size=12 maxlength="20" style="BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; BORDER-LEFT: 1px solid; WIDTH: 70px; BORDER-BOTTOM: 1px solid"></TD>
<TD width=214><img src="other/GetCode.asp"></TD></TR>
<TR vAlign=center align=left>
<TD colSpan=3 height=40> <STRONG>
<input type="submit" name="Submit3" value=" 登陆 " style="BORDER-RIGHT: #5a7edc 1px; BORDER-TOP: #5a7edc 1px; BORDER-LEFT: #5a7edc 1px; WIDTH: 40px; COLOR: white; BORDER-BOTTOM: #5a7edc 1px; BACKGROUND-COLOR: #5a7edc">
<input type="reset" name="Submit2" value=" 重置 " style="BORDER-RIGHT: #5a7edc 1px; BORDER-TOP: #5a7edc 1px; BORDER-LEFT: #5a7edc 1px; WIDTH: 70px; COLOR: white; BORDER-BOTTOM: #5a7edc 1px; BACKGROUND-COLOR: #5a7edc">
</STRONG>
<DIV align=center></DIV></TD></TR></TBODY></TABLE></div>
</TD></TR></TBODY></TABLE></FORM></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD
style="FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr='#0C3CA1', EndColorStr='#F49538')"
width="31%" height=2></TD>
<TD
style="FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr='#F49538', EndColorStr='#0C3CA1')"
width="69%" height=2></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD vAlign=bottom align=right height="26%">
<DIV align=right class="style5">
<div align="center"><a href="http://hi.baidu.com/aspsoft" target="_blank" class="Pic"><span class="style5">Http://hi.baidu.com/aspsoft JXC v0.1</span></a> </div>
</DIV></TD>
</TR></TBODY></TABLE></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -