<!--#include file="WebConfig/Conn.asp"-->
<%
	If Request.QueryString("Login")<>"" Then
		Set rsLogin=Server.CreateObject("ADODB.RecordSet")
		rsLogin.Open "Select * from Admin where Admin='"&Request.Form("admin_user")&"' and PassWord='"&Request.Form("Pwd")&"'",conn,1,1
		If Not rsLogin.Eof Then		
			session("Admin")=Request.Form("admin_user")
			Response.Redirect("Index.asp")
		Else
			Response.Write "<script language=javascript>alert('用户名或者密码错误!!');</script>"
		End If
		rsLogin.Close
		Set rsLogin=Nothing
	End If
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>后台管理中心</TITLE>
<SCRIPT language=JavaScript>
<!-- start Javascript

var errfound = false;

function error(elem, text) {
	if (errfound) return;
	window.alert(text);
	elem.select();
	elem.focus();
	errfound = true;
}

function loginCheck(f) {

	errfound = false;

	if (f.admin_user.value == "")
		error(f.admin_user,"请出入管理员ID!");

	if (f.pwd.value == "")
	   error(f.pwd,"请输入管理口令!");
	
  	return ! errfound;
}

// end Java script -->
</SCRIPT>

<META http-equiv=Content-Language content=zh-cn>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<STYLE>BODY {
	FONT-SIZE: 9pt; MARGIN: 5px 10px 2px; COLOR: #000000; FONT-FAMILY: 宋体,MS SONG,SimSun,tahoma,sans-serif; BACKGROUND-COLOR: #ffffff
}
INPUT {
	FONT-SIZE: 9pt; FONT-FAMILY: 宋体,MS SONG,SimSun,tahoma,sans-serif
}
TABLE {
	BORDER-RIGHT: 0px; BORDER-TOP: 0px; FONT-SIZE: 9pt; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px; FONT-FAMILY: 宋体,MS SONG,SimSun,tahoma,sans-serif
}
A {
	COLOR: #000099
}
.Bsbttn {
	BORDER-RIGHT: #305a84 1px solid; BORDER-TOP: #305a84 1px solid; FONT-SIZE: 9pt; BACKGROUND: #ffffff; BORDER-LEFT: #305a84 1px solid; COLOR: #000066; BORDER-BOTTOM: #305a84 1px solid; FONT-FAMILY: 宋体,MS SONG,SimSun,tahoma,sans-serif; TEXT-DECORATION: none
}
.sbttn {
	BORDER-RIGHT: #104a7b 1px solid; BORDER-TOP: #afc4d5 1px solid; FONT-SIZE: 9pt; BACKGROUND: #d6e7ef; BORDER-LEFT: #afc4d5 1px solid; CURSOR: hand; COLOR: #000066; BORDER-BOTTOM: #104a7b 1px solid; FONT-FAMILY: 宋体,MS SONG,SimSun,tahoma,sans-serif; HEIGHT: 19px; TEXT-DECORATION: none
}
.pbttn {
	BORDER-RIGHT: #104a7b 1px solid; PADDING-RIGHT: 4px; BORDER-TOP: #afc4d5 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 9pt; BACKGROUND: #d6e7ef; BORDER-LEFT: #afc4d5 1px solid; CURSOR: hand; COLOR: #000066; PADDING-TOP: 2px; BORDER-BOTTOM: #104a7b 1px solid; FONT-FAMILY: 宋体,MS SONG,SimSun,tahoma,sans-serif; HEIGHT: 19px; TEXT-DECORATION: none
}
.obttn {
	PADDING-RIGHT: 6px; PADDING-LEFT: 6px; FONT-SIZE: 9pt; BACKGROUND: #d6e7ef; PADDING-BOTTOM: 1px; VERTICAL-ALIGN: middle; COLOR: #777777; PADDING-TOP: 1px; FONT-FAMILY: 宋体,MS SONG,SimSun,tahoma,sans-serif; TEXT-DECORATION: none
}
</STYLE>

<META content="MSHTML 6.00.2900.3395" name=GENERATOR></HEAD>
<BODY bottomMargin=0 leftMargin=0 background=Img/bj.gif topMargin=0 rightMargin=0>

<TABLE id=table1 height="91%" cellSpacing=0 cellPadding=0 width="100%" 
  border=0><TBODY>
  <TR>
    <TD>
      <DIV align=center>
      <TABLE id=table2 height=312 width=454 border=0>
        <TBODY>
        <TR>
          <TD vAlign=bottom background=Img/l_og.gif>
            <TABLE id=table3 height=90 width="100%" border=0>
              <TBODY>
              <TR>
                <TD colSpan=5 height=25></TD></TR>
				
              <FORM onSubmit="return loginCheck(this);" action="?Login=1" method=post>
              <TR>
                <TD width="20%" height=20></TD>
                <TD align=right width="12%" height=20><FONT 
                  color=#ffffff>用户名:</FONT></TD>
                <TD width="17%" height=20><INPUT class=Bsbttn tabIndex=1 maxLength=25 size=14 name=admin_user></TD>
                <TD width="20%" height=72 rowSpan=2><INPUT tabIndex=3 type=image height=63 width=61 src="Img/a_l.gif" border=0 name=Submit> </TD></TR>
              <TR>
                <TD width="20%" height=20></TD>
                <TD align=right width="12%" height=20><FONT 
                  color=#ffffff>密&nbsp; 码:</FONT></TD>
                <TD width="17%" height=24><INPUT class=Bsbttn tabIndex=2 type=password maxLength=25 size=14 name=pwd></TD></TR></FORM>
              <TR>
                <TD colSpan=5 
      height=12></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE></BODY></HTML>
