<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Admin_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 id="Head1" runat="server">
<title>Angel工作室后台管理系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="images/Agecrm.ico" type="image/x-icon" /> 
<link href="css/login.css" rel="stylesheet" type="text/css" />
<script language="javascript">
    function check() {
        var obj = document.loginForm;
        if (obj.UserName.value == '') {
            obj.UserName.focus();
            return false;
        }
        if (obj.Password.value == '') {
            obj.Password.focus();
            return false;
        }
        return true;
    }


    function getimgcode() {
        var getimagecode = document.getElementById("getcode");
        getimagecode.src = "VerifyCode.aspx?id=" + parseInt(10 * Math.random());
    }

</script>
<link href="css/AngelLogin.css" rel="stylesheet" type="text/css" />
<script src="js/jquery-1.4.1.min.js" type="text/javascript"></script>
<script type="text/javascript">
    //表单验证
    $(function () {
        $('#UserName').focus();
    });
</script>
</head>
<body class="loginbody">

<div class="login_div">
    <form id="loginForm" name="loginForm" runat="server" onsubmit="return check();">
	<div class="login_box">
    	<div class="login_logo">LOGO</div>
        <div class="login_content">
          <dl>
			<dt>登录账号：</dt>
            <dd>
             <asp:TextBox ID="UserName"  name="UserName" runat="server"  class="login_input required" style="width:130px;"></asp:TextBox>       
            </dd>
          </dl>
          <dl>
			<dt>登录密码：</dt>
            <dd>    
            <asp:TextBox ID="Password" runat="server" name="Password" type="password" 
                    class="login_input required" style="width:130px;" TextMode="Password"></asp:TextBox>        
            </dd>
          </dl>
          <dl>
			<dt>验证码：</dt>
            <dd>
<asp:TextBox ID="myCode" runat="server"  class="login_input required" style="width:55px;text-transform:uppercase;" size="5" maxlength="5"></asp:TextBox><img ID="getcode" src="VerifyCode.aspx"/><a href="javascript:getimgcode()" title="看不清楚请点击刷新验证码" style="color:White">刷新验证码</a>
            </dd>
          </dl>
        </div>
        <div class="login_foot">
		<div style="float:left;padding-left:70px">
        
  
        
     <asp:Button ID="Button1" class="login_btn" runat="server" Text="登　录" OnClick="Button1_Click" />   
        
        
        </div>
		<div style="padding-left:40px;float:left;"><input type="button" class="login_btn" value="重 置"  onclick="document.form1.reset()"/></div>
			
	 
			<span></span>
		</div>
    </div>
	<div class="login_copyright"><font disabled>Copyright @ 2009 - 2014 <a href="http://www.angelasp.com/" style="color:#cccccc">angelasp.com</a> Inc. All Rights Reserved.<br /><a href="http://www.angelasp.com/" style="color:#cccccc">Angel工作室</a> 版权所有</font></div>
</div>
<div>
</form>
</div>

</body>
</html>
