📄 login.asp
字号:
<!--#include file="Conn.asp"-->
<!--#include file="../admin/other/Check_Sql.asp" -->
<!--#include file="md5.asp" -->
<% RandNum=Session("CheckCode")
response.expires = -1
if request("Action")="Login" then
username=HtmlEncode(trim(Request.form("username")))
password=HtmlEncode(replace(trim(Request.Form("password")),"'","''"))
Md5_Pass=md5(password)
GaobeiSys_CheckCode=replace(trim(Request("GaobeiSys_CheckCode")),"'","")
if username="" or password="" then
Response.write"<script>alert(""用户名和密码不能为空! "&Copyright&" "");location.href=""login.asp"";</script>"
Response.end
end if
if GaobeiSys_CheckCode<>CStr(session("CheckCode")) then
Response.write"<script>alert(""验证码不正确,请刷新后重新登陆 "&Copyright&" "");location.href=""login.asp"";</script>"
Response.end
end if
set rs=server.createobject("adodb.recordset")
sql="select * from china_city where cityadmin='"&username&"'and citypass='"&Md5_Pass&"'"
rs.open sql,conn,1,1
if not rs.EOF then
session("china_cityadmin")=username
session("china_city")=rs("city")
session("oneid")=rs("id")
session("twoid")=rs("twoid")
session("threeid")=rs("threeid")
rs.close
set rs=nothing
conn.close
set conn=nothing
Response.Redirect ("index.asp")
else
Response.write"<script>alert(""请输入正确的管理员名字或密码! "");location.href=""login.asp"";</script>"
rs.close
set rs=nothing
conn.close
set conn=nothing
Response.End
end if
end if
if request("Action")="LoginOut" then
Session("china_cityadmin")=""
Session("china_city")=""
session("oneid")=""
session("twoid")=""
session("threeid")=""
conn.close
set conn=nothing
Response.write"<script>alert(""退出成功! "&Copyright&" "");location.href=""login.asp"";</script>"
end if
%>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=webname%>--<%=session("china_city")%>分站后台管理系统</title>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<link href="other/style.css" rel="stylesheet" type="text/css">
<STYLE type=text/css>
.style4 {
FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #ffffff
}
BODY {
MARGIN: 0px
}
.style5 {font-size: 9pt}
.style6 {
font-size: 10.5pt;
font-weight: bold;
}
</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"><span class="style6"><font color="#FFFFFF">===分站后台管理系统===</font></span></TD>
</TR>
<TR>
<TD width="214">
<DIV align=left>
<script language="JavaScript">
<!--
// Randomizer
rnd.today=new Date();
rnd.seed=rnd.today.getTime();
function rnd() {
rnd.seed = (rnd.seed*9301+49297) % 233280;
return rnd.seed/(233280.0);
};
function rand(number) {
return Math.ceil(rnd()*number);
};
// end randomizer. -->
</script>
<script language="JavaScript">
<!--
document.write('<IMG SRC="../images/poto/china_logo' + rand(6) + '.jpg">');
//-->
</script>
</DIV>
</TD>
<TD width="262" valign="bottom">
<p><img border="0" src="../<%=chinalogo%>" alt="<%=webname%>"></p>
<p class="style5"><font color="#FFFFFF">中国分类信息网V4.4商业正式版</font></p>
<p class="style5"><font color="#FFFFFF">我们一直在努力,所以每天在进步</font></p>
</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=Login" target="_top">
<IMG height=15 alt=中国分类信息网 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="UserName5" 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="Password3" 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="GaobeiSys_CheckCode" type="text" class="login" id="GaobeiSys_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="../admin/other/china_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>
</DIV></TD></TR></TBODY></TABLE></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -