<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="RedGlovePermission.Web.Admin.Login" %>

<%@ Import Namespace="RedGlove.Core.Languages" %>
<%@ Register assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.UI" tagprefix="asp" %>
<!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><%=ResourceManager.GetString("login_title_01")%></title>
    <link href="../Inc/Style/default/css/indexControl.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript">

        //
        //防止frameset中的frame頁面跳轉到登錄頁面。
        //----------------------------------------------------------------
        if (window.top.length > 0) {
            window.top.location = "login.aspx";
        }
        //----------------------------------------------------------------

        //
        //防止模態視窗跳轉到登錄頁面。
        //----------------------------------------------------------------
        if (window.external.dialogTop != undefined) {
            alert("您的登錄已超時，請註銷後重新登錄。");
            window.close();
        }

        function $id(s) {
            return document.getElementById(s);
        }

        function checklogin() {
            var ret = true;
            if ($id("UserName").value == "") {
                alert('请输入登录用户名!');
                ret = false;
            }
            else if ($id("Password").value == "") {
                alert('请输入登录密码!');
                ret = false;
            }
            return ret;
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div id="bodyhead">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td height="300" valign="top">
                <table width="377" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td style="padding-left:20px; padding-top:20px;">
                            <span style="font-family:MS Reference Sans Serif; font-weight:bold; font-size:32px;color:#fff;">RedGlove</span><br />
                            <span style="font-family:MS Reference Sans Serif; font-size:24px;color:#fff;">Management system</span>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </div>
    <asp:UpdatePanel ID="CustomPanel1" runat="server">
        <ContentTemplate>
            <table border="0" align="center" cellpadding="0" cellspacing="2" style="width: 260px;
                margin-top: 10px; margin-left: 120px;">
                <tr>
                    <td>
                        <div align="right">
                            用户名：</div>
                    </td>
                    <td>
                        <asp:TextBox ID="UserName" runat="server" TabIndex="1" class="FormBase" onfocus="this.className='FormFocus';"
                            onblur="this.className='FormBase';" Width="120px"></asp:TextBox>
                    </td>
                    <td width="120" rowspan="2">
                        <div align="center">
                            <asp:ImageButton ID="btn_login" TabIndex="3" runat="server" ImageUrl="~/Inc/Style/default/ui/btn_login.gif"
                                OnClick="btn_login_Click" /></div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div align="right">
                            密&nbsp;&nbsp;&nbsp;码：</div>
                    </td>
                    <td>
                        <asp:TextBox ID="Password" runat="server" TabIndex="2" class="FormBase" onfocus="this.className='FormFocus';"
                            onblur="this.className='FormBase';" Width="120px" TextMode="Password"></asp:TextBox>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    
    </form>
</body>
</html>
