<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Logon.aspx.cs" Inherits="Logon" meta:resourcekey="Page" %>

<!DOCTYPE html>
<html>
<head runat="server">
    <title></title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="libs/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="libs/bootstrapValidator.min.css">
    <script type="text/javascript" src="libs/jquery-3.2.1.min.js"></script>
    <script type="text/javascript" src="libs/bootstrap/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="libs/bootstrapValidator.min.js"></script>
    <link rel="manifest" href="manifest.json" />
</head>
<body>
    <script type="text/javascript">        
        $(document).ready(function () {
            $("#form").bootstrapValidator();
        });
    </script> 
    
    <div class="container-fluid">
        <form id="form" runat="server" defaultbutton="LogonButton"
            data-bv-feedbackicons-valid="glyphicon glyphicon-ok" 
            data-bv-feedbackicons-invalid="glyphicon glyphicon-remove"
            data-bv-feedbackicons-validating="glyphicon glyphicon-refresh">
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
        
            <h3><asp:Label id="TitleLabel" runat="server">MailCarrier WebMobile</asp:Label></h3>

            <div class="form-group">
                <label for="email"><asp:Localize ID="Localize1" runat="server" meta:resourcekey="Localize1">메일 ID</asp:Localize>:</label>
                <input type="text" runat="server" id="id" name="id" class="form-control" placeholder="<%$ Resources:, id_placeholder%>"
                    required data-bv-notempty-message="<%$ Resources:, id_notemptymsg%>" />
            </div>
            <div class="form-group">
                <label for="password"><asp:Localize ID="Localize2" runat="server" meta:resourcekey="Localize2">비밀 번호</asp:Localize>:</label>
                <input type="password" id="password" name="password" class="form-control" value="<%=_pwdValue %>" 
                    required data-bv-notempty-message="<asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:, password_notemptymsg%>" />" />
            </div>
            <div id="langPanel" runat="server" class="form-group">
                <label for="LanguageList"><asp:Localize ID="Localize7" runat="server" meta:resourcekey="Localize7">언어</asp:Localize>:</label>
                <asp:DropDownList ID="LanguageList" runat="server" CssClass="form-control" meta:resourcekey="LanguageList">
                    <asp:ListItem Text="한국어" Value="ko"></asp:ListItem>
                    <asp:ListItem Text="English" Value="en"></asp:ListItem>
                </asp:DropDownList>
            </div>
            <div id="otpPanel" runat="server" class="form-group collapse">
                <label for="otpPassword"><asp:Localize ID="Localize3" runat="server" meta:resourcekey="Localize3">OTP 번호</asp:Localize>:</label>
                <input type="password" runat="server" id="otpPassword" name="otpPassword" class="form-control" />                
            </div>
            <div id="timeZonePanel" runat="server" class="form-group collapse">
                <label for="TimeZoneList"><asp:Localize ID="Localize4" runat="server" meta:resourcekey="Localize4">표준 시간대</asp:Localize>:</label>
                <asp:DropDownList ID="TimeZoneList" runat="server" CssClass="form-control"></asp:DropDownList>
            </div>
            <div class="checkbox">
                <label><asp:CheckBox ID="SaveIDCheckBox" runat="server" /> <asp:Localize ID="Localize5" runat="server" meta:resourcekey="Localize5">메일 ID 저장</asp:Localize></label>
            </div>
            <div class="checkbox">
                <label><asp:CheckBox ID="SavePwdCheckBox" runat="server" /> <asp:Localize ID="Localize6" runat="server" meta:resourcekey="Localize6">비밀번호 저장</asp:Localize></label>
            </div>            
            <asp:Button ID="LogonButton" runat="server" CssClass="btn btn-primary" Text="로그인" OnClick="LogonButton_Click" meta:resourcekey="LogonButton" />
                        
            <div class="row">
                <div class="col-xs-12">
                    <asp:Label ID="ErrorLabel" runat="server" ForeColor="Red" />
                </div>
            </div>
            <p>
                <asp:Literal ID="AlertBrowser" runat="server" Text="※ 현재 사용중인 브라우저에서는 아이디/비밀번호 저장이 지원되지 않습니다." meta:resourcekey="AlertBrowser" />
            </p>
            <input type="hidden" id="version" runat="server" />
        </form>
    </div>
</body>
</html>
