<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="Stat.web.Manerger.Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>管理员登录</title>
        <link rel="stylesheet" href="css/index.css" type="text/css" media="all"  />
    <script src="js/mgPublic.js" type="text/javascript"></script>
    <script type="text/javascript">
    function CheckForm()
    {
        if(!IsNull("txtUserLoginName",1,20))
        {
            alert("帐号不能为空");
            return false;
        }
        if(!CheckLength("txtUserLoginPwd",1))
        {
            alert("密码不能为空");
            return false;
        }
        if(!CheckEqualsLeng("txtCheckCode",5))
        {
            alert("验证码为5位");
            return false;
        }
    }
    function FormLoad()
    {
        document.form1.txtUserLoginName.focus();
    }
if (self.location != top.location){
	top.location.href='login.aspx';
}
</script>
</head>
<body onload="FormLoad()">
    <form id="form1" runat="server"  onsubmit="return CheckForm();" >
    <table id="tbLogin" cellpadding="0" cellspacing="0" style="text-align:center;">
	<tr>
		<td id="tdLeft" />
		<td id="tdMiddle">
			<table id="tbLoginForm"  cellpadding="0" cellspacing="0">
				<tr>
					<td id="tdTop" />
				</tr>
				<tr>
					<td id="tdMain">
					    <table cellspacing="0" cellpadding="0" id="tbLoginInfo">
						    <tr>
							    <td class="txtInfo">帐&nbsp;&nbsp;&nbsp;&nbsp;号：</td>
							    <td class="controlInfo"><asp:TextBox ID="txtUserLoginName" CssClass="userControl" runat="server"></asp:TextBox></td>
						    </tr>
						    <tr>
							    <td class="txtInfo">密&nbsp;&nbsp;&nbsp;&nbsp;码：</td>
							    <td class="controlInfo"><asp:TextBox ID="txtUserLoginPwd" CssClass="userControl" runat="server" TextMode="Password"  EnableViewState="false"></asp:TextBox></td>
						    </tr>
						    <tr>
							    <td class="txtInfo">验证码：</td>
							    <td class="controlInfo">
							        <table cellspacing="0" cellpadding="0">
							            <tr>
							                <td><asp:TextBox ID="txtCheckCode" CssClass="checkCode" runat="server"></asp:TextBox></td>
							                <td><img alt="点击刷新验证码" onclick="this.src='../plugin/CheckCode.aspx?t='+Math.random();" src="../plugin/CheckCode.aspx" class="pointer"/></td>
							            </tr>
							        </table>
							    </td>
						    </tr>
						    <tr>
							    <td colspan="2">
							        <asp:ImageButton runat="server" ID="btnLogin" ImageUrl="images/admin_index_login.jpg" onclick="Login_Click"  />&nbsp;&nbsp;&nbsp;&nbsp;
							        <img alt="重置" src="images/admin_index_reset.jpg" onclick="reset();" class="pointer"/>
							    </td>
						    </tr>
					    </table>
					</td>
				</tr>
			</table>
		</td>
		<td id="tdRight" />
	</tr>
</table>
    </form>
</body>
</html>
