<%dbs="../"%>
<!--#include file="../inc/config.asp"-->
<!--#include file="../inc/md5.asp"-->
<%
action=request.QueryString("action")
if action="login" then
nick=request.Form("nick")
Password=request.Form("Password")
if nick="" then
response.Write "<script >alert('提示：\n\n对不起，用户名不能为空...');history.back(-1);</script>"
response.end 
end if
if Password="" then
response.Write "<script >alert('提示：\n\n对不起，密码不能为空...');history.back(-1);</script>"
response.end 
end if
Password=md5(Password)
set rs=Server.CreateObject("Adodb.Recordset")
	sql="select * from H_admin where adminuser='"&nick&"' and adminpass='"&Password&"'"
	rs.open sql,conn,1,1
	if not rs.bof then
	session("adminid") = rs("id")
	session("adminuser") = rs("adminuser")
	response.Write "<script >alert('提示：\n\n登陆成功...');location.href='main.asp';</script>"
	response.end 
	else
	response.Write "<script >alert('提示：\n\n对不起，用户名或者密码是错误的...');history.back(-1);</script>"
	response.end 
	end if
rs.close
end if
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><title>管理登陆</title>
<META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK 
href="images/css.css" type=text/css rel=stylesheet>

<META content="MSHTML 6.00.3790.4324" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff leftMargin=0 topMargin=0 MARGINHEIGHT="0" MARGINWIDTH="0">
<CENTER>
<TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" 
background=images/bg.gif border=0>
  <TBODY>
  <TR>
    <TD vAlign=center align=middle>
      <TABLE height=402 cellSpacing=0 cellPadding=0 width=562 bgColor=#f4f4f4 
      border=0>
        <TBODY>
        <TR>
          <TD vAlign=center align=middle>
            <TABLE cellSpacing=0 cellPadding=0 width=560 border=0>
              <TBODY>
              <TR>
                <TD><IMG height=40 alt="" src="images/index_01.gif" 
                  width=142></TD>
                <TD><IMG height=40 alt="" src="images/index_02.gif" 
                  width=171></TD>
                <TD><IMG height=40 alt="" src="images/index_03.gif" 
                  width=130></TD>
                <TD><IMG height=40 alt="" src="images/index_04.gif" 
                  width=117></TD></TR>
              <TR>
                <TD><IMG height=49 alt="" src="images/index_05.gif" 
                  width=142></TD>
                <TD colSpan=2>
                  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                    <TBODY>
                    <TR>
                      <TD width="10%"><IMG height=49 alt="" 
                        src="images/index_06.gif" width=90></TD>
                      <TD width="90%"><IMG height=49 alt="" 
                        src="images/index_07.gif" 
                    width=211></TD></TR></TBODY></TABLE></TD>
                <TD><IMG height=49 alt="" src="images/index_08.gif" 
                  width=117></TD></TR>
              <TR>
                <TD><IMG height=55 alt="" src="images/index_09.gif" 
                  width=142></TD>
                <TD><IMG height=55 alt="" src="images/index_10.gif" 
                  width=171></TD>
                <TD><IMG height=55 alt="" src="images/index_11.gif" 
                  width=130></TD>
                <TD><IMG height=55 alt="" src="images/index_12.gif" 
                  width=117></TD></TR>
              <TR>
                <TD colSpan=4>
                  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                    <TBODY>
                    <TR>
                      <TD width="25%"><IMG height=62 alt="" 
                        src="images/index_13.gif" width=142></TD>
                      <TD vAlign=center align=middle width="61%" bgColor=#f4f4f4 
                      rowSpan=2>
           				
						<form  name="LoginForm" method="post" action="index.asp?action=login" style="margin:0" onSubmit="return CheckLogin();">
                        <TABLE height=80 cellSpacing=1 cellPadding=0 width="92%" 
                        border=0>
                   <TBODY>
                          <TR vAlign=center align=middle bgColor=#ffffff>
                            <TD width="33%"><FONT 
color=#5a514a>后台用户：</FONT></TD>
                            <TD width="67%" height="40"><div align="left"><FONT color=#5a514a>
                              <INPUT 
                              id=UserName size=23 name="nick" style="width:150px;"> 
                            </FONT></div></TD></TR>
                          <TR vAlign=center align=middle bgColor=#ffffff>
                            <TD><FONT color=#5a514a>管理密码：</FONT></TD>
                            <TD height="40"><div align="left"><FONT color=#5a514a> 
                              <INPUT name="Password" type="password" 
                              id=PassWord size=23 style="width:150px;">
                              </FONT></div></TD></TR>
                          </TBODY></TABLE>
                        <TABLE height=25 cellSpacing=0 cellPadding=0 width="70%" 
                        border=0>
                          <TBODY>
                          <TR vAlign=bottom align=middle>
                            <TD><INPUT type=image height=20 width=39 
                              src="images/login.gif" border=0 
name=B1></TD>
                            <TD><A 
                              href="javascript:document.LoginForm.reset();"><IMG 
                              height=20 src="images/clear.gif" width=39 
                              border=0></A></TD></TR></TBODY></TABLE></FORM></TD>
                      <TD width="14%"><IMG height=62 alt="" 
                        src="images/index_15.gif" width=117></TD></TR>
                    <TR>
                      <TD><IMG height=108 alt="" 
                        src="images/index_16.gif" width=142></TD>
                      <TD><IMG height=108 alt="" 
                        src="images/index_18.gif" 
                    width=117></TD></TR></TBODY></TABLE></TD></TR>
              <TR>
                <TD><IMG height=44 alt="" src="images/index_19.gif" 
                  width=142></TD>
                <TD><IMG height=44 alt="" src="images/index_20.gif" 
                  width=171></TD>
                <TD><IMG height=44 alt="" src="images/index_21.gif" 
                  width=130></TD>
                <TD><IMG height=44 alt="" src="images/index_22.gif" 
                  width=117></TD></TR>
              <TR>
                <TD><IMG height=42 alt="" src="images/index_23.gif" 
                  width=142></TD>
                <TD><IMG height=42 alt="" src="images/index_24.gif" 
                  width=171></TD>
                <TD><IMG height=42 alt="" src="images/index_25.gif" 
                  width=130></TD>
                <TD><IMG height=42 alt="" src="images/index_26.gif" 
                  width=117></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></CENTER></BODY></HTML>
