<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="BingoWebsiteCollector.Web.Management.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> <%=siteNameAlias %>程序——管理员登陆</title>
    <link href="style/css.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        function refreshVerificationCode() {
            var img = document.getElementById("verificationCodeImage")
            var now = new Date();
            var number = now.getSeconds() * 33
            img.src = "VerificationCode.aspx?type=login&rid=" + number;
            img.src = src;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="header">
        <div class="vision">
            <a href="/" title="返回首页">← 返回首页</a></div>
    </div>
    <div id="login">
        <div class="title">
            <img src="images/login.png" /></div>
        <div class="login_top">
        </div>
        <div class="login_main">
            <ul>
                <li>
                    <label>
                        用户名</label><asp:TextBox ID="username" runat="server"></asp:TextBox></li>
                <li>
                    <label>
                        密码</label><asp:TextBox ID="password" runat="server" TextMode="Password"></asp:TextBox></li>
                <li>
                    <label>
                        验证码</label><asp:TextBox ID="verificationCode" runat="server"></asp:TextBox></li>
                <li>
                    <img id="verificationCodeImage" src="VerificationCode.aspx?type=login" onclick="refreshVerificationCode()" />看不清，<a
                        href="javascript:refreshVerificationCode()">换一张</a></li>
                <li>
                    <div class="bt">
                        <asp:Label ID="FailureText" runat="server" ForeColor="#993300"></asp:Label>
                        <asp:ImageButton ID="ImgBtnLogin" runat="server" ImageUrl="images/bt_login.jpg" BorderWidth="0"
                            OnClick="ImgBtnLoginClick" OnClientClick="showMask()" /></div>
                </li>
            </ul>
        </div>
        <div class="login_bt">
        </div>
    </div>
    <div id="footer">
        Powered by <a href="http://www.Amr-Lab.net/" target="_blank">Amr-Lab.net</a> all right reserved</div>
    <!--遮罩效果-->
    <script type="text/javascript">
        function showMask() {
            document.getElementById('mask').style.cursor = 'wait';
            document.getElementById('mask').style.display = 'block';
        }
        function hideMask() {
            document.getElementById('mask').style.cursor = 'default';
            document.getElementById('mask').style.display = 'none';
        }


        function masterEndRequest() {
            hideMask();
        }

        function masterInitializeRequest() {
            showMask();

        } 
 
 
    </script>
    <div id="mask" style="display: none;">
        <div style="z-index: 1000;border: medium none; margin: 0px; padding: 0px; width: 100%;
            height: 100%; top: 0px; left: 0px; filter: Alpha(opacity=30); background-color: rgb(0, 0, 0);
            opacity: 0.2; cursor: wait; position: fixed;">
        </div>
        <div style="position: fixed; padding: 0px; margin: -18px 0 0 -18px; left: 50%; text-align: center;
            cursor: wait; color: rgb(0, 0, 0); border: 0px none; z-index: 1011; top: 50%;">
            <img src="images/loading.gif"></div>
    </div>
    <%=sCodeBaidu %>
    </form>   
</body>
</html>
