<%@ control language="VB" autoeventwireup="false" inherits="Admin_Hostmatic_CC_MailService, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<div class="row">
    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h3><%= Resources.Content.SPT002120%></h3>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content, DGN1110096 %>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:DropDownList ID="DDL_Provider" runat="server" AutoPostBack="true" />
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content, SPT002121 %>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_FrName" runat="server" ValidationGroup="Mail"></asp:TextBox>
                                <asp:RequiredFieldValidator SetFocusOnError="true" runat="server" ID="RFV_FrName"
                                    ControlToValidate="TxBx_FrName" Display="None" ValidationGroup="Mail">
                                </asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="REV_TxBx_FrName" runat="server" ControlToValidate="TxBx_FrName"
                                    ValidationExpression="[A-Z|a-z|0-9]([a-z|A-Z|_|0-9|\-|\.|\/| ])*" ErrorMessage="Invalid friendly name"
                                    Display="None" SetFocusOnError="true" ValidationGroup="Mail"></asp:RegularExpressionValidator>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <br />
        <div class="card" id="Pnl_ExSetting" runat="server" visible="false">
            <div class="header">
                <h3><%= Resources.Content.SPT002175%></h3>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal16" runat="server" Text="<%$ Resources:Content, SPT002176 %>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-9 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_MSService" Text="http://127.0.0.1:9998/services" runat="server" ValidationGroup="Mail"></asp:TextBox>
                                <asp:RequiredFieldValidator SetFocusOnError="true" runat="server" ID="RFV_MSService"
                                    ControlToValidate="TxBx_MSService" Display="None" ValidationGroup="Mail" Enabled="false">
                                </asp:RequiredFieldValidator>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal17" runat="server" Text="<%$ Resources:Content, SPT002177 %>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-9 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_MSPPath" Text="C:\IMail" runat="server" ValidationGroup="Mail"></asp:TextBox>
                                <asp:RequiredFieldValidator SetFocusOnError="true" runat="server" ID="RFV_MSPPath"
                                    ControlToValidate="TxBx_MSPPath" Display="None" ValidationGroup="Mail" Enabled="false"></asp:RequiredFieldValidator>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row" id="Tr_UserName" runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Ltl_UserName" runat="server" Text="<%$ Resources:Content, USM0061 %>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="Txt_UserName" runat="server" ValidationGroup="Mail"></asp:TextBox>
                                <asp:RequiredFieldValidator SetFocusOnError="true" runat="server" ID="RFV_UserName"
                                    ControlToValidate="Txt_UserName" Display="None" ValidationGroup="Mail" Enabled="false"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="REV_Txt_UserName" runat="server" ControlToValidate="Txt_UserName"
                                    ValidationExpression="[A-Z|a-z|0-9]([a-z|A-Z|_|0-9|\-|\.| ])*" ErrorMessage="Invalid username name"
                                    Display="None" SetFocusOnError="true" ValidationGroup="Mail"></asp:RegularExpressionValidator>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row" id="Tr_Password" runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Ltl_Password" runat="server" Text="<%$ Resources:Content, GN0000569 %>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="Txt_Password" TextMode="Password" runat="server" ValidationGroup="Mail"></asp:TextBox>
                                <%--<asp:RequiredFieldValidator SetFocusOnError="true" runat="server" ID="RFV_Password"
                                    ControlToValidate="Txt_Password" Display="None" ValidationGroup="Mail" Enabled="false"></asp:RequiredFieldValidator>--%>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-5 col-xs-12">
                        <asp:Literal ID="Literal46" runat="server" Text="<%$ Resources:Content,GN00001530%>"
                            EnableViewState="false"></asp:Literal>
                    </div>
                </div>
                <div class="row" id="Tr_SmarterMailIIS" runat="server" visible="false">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal6" runat="server" Text="<%$ Resources:Content, HM001 %>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:CheckBox ID="CB_SmarterMailIIS" AutoPostBack="true" runat="server" Text=" " />
                        </div>
                    </div>
                </div>
                <div class="row" id="Tr_SmarterMailWebsite" runat="server" visible="false">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal7" runat="server" Text="<%$ Resources:Content, HM002 %>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-9 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_SmarterMailWebsite" runat="server" Text="<%$ Resources:Content,SMI0568%>"></asp:TextBox>
                                <asp:RequiredFieldValidator SetFocusOnError="true" runat="server" ID="RequiredFieldValidator2"
                                    ControlToValidate="TxBx_SmarterMailWebsite" Display="None" ValidationGroup="Mail"></asp:RequiredFieldValidator>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row" id="Tr_SmarterMailIP" runat="server" visible="false">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Content, HM003 %>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-9 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_SmarterMailIP" runat="server" Text=""></asp:TextBox>
                                <asp:RequiredFieldValidator SetFocusOnError="true" runat="server" ID="RequiredFieldValidator3"
                                    ControlToValidate="TxBx_SmarterMailIP" Display="None" ValidationGroup="Mail"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ControlToValidate="TxBx_SmarterMailIP"
                                    Display="None" SetFocusOnError="true" ErrorMessage="<%$ Resources:Content,String176 %>"
                                    ValidationExpression="<%$ Resources:Content,ValidateIP%>" ValidationGroup="Mail" />
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row" id="Tr_SmarterMailPort" runat="server" visible="false">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal8" runat="server" Text="<%$ Resources:Content, GN0000565 %>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-9 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_SmarterMailPort" runat="server" Text="80"></asp:TextBox>
                                <asp:RequiredFieldValidator SetFocusOnError="true" runat="server" ID="RequiredFieldValidator4"
                                    ControlToValidate="TxBx_SmarterMailPort" Display="None" ValidationGroup="Mail"></asp:RequiredFieldValidator>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row" id="Tr_SmarterMailHostHeader" runat="server" visible="false">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal10" runat="server" Text="<%$ Resources:Content, HM004 %>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_SmartMailHostHeader" runat="server" Text="<%$ Resources:Content,String16%>"></asp:TextBox>
                                <asp:RequiredFieldValidator SetFocusOnError="true" runat="server" ID="RequiredFieldValidator5"
                                    ControlToValidate="TxBx_SmartMailHostHeader" Display="None" ValidationGroup="Mail"></asp:RequiredFieldValidator>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-5 col-xs-12">
                        .domain.com
                    </div>
                </div>
            </div>
        </div>
        <br />
        <div class="card">
            <div class="header">
                <h3><%= Resources.Content.GN0000997%></h3>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal11" runat="server" Text="<%$ Resources:Content, SPT002760 %>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_MaxLoad" runat="server" ValidationGroup="Mail"></asp:TextBox>
                            </div>
                        </div>
                        <asp:RequiredFieldValidator ControlToValidate="TxBx_MaxLoad" ID="RequiredFieldValidator1"
                            runat="server" ValidationGroup="Mail" Enabled="true"></asp:RequiredFieldValidator>
                        <%--<asp:CheckBox ID="ChBx_Unlimited" runat="server" Text="<%$ Resources:Content, GN0000908%>" />--%>
                        <asp:RegularExpressionValidator ID="REV_TxBx_MaxLoad" runat="server" ControlToValidate="TxBx_MaxLoad"
                            ValidationExpression="([0-9])*" ErrorMessage="Invalid maximum mailboxes" Display="None"
                            SetFocusOnError="true" ValidationGroup="Mail"></asp:RegularExpressionValidator>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal12" runat="server" Text="<%$ Resources:Content, DGN0011104 %>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_CurrLoad" runat="server" ValidationGroup="Mail"></asp:TextBox>
                            </div>
                        </div>
                        <asp:RegularExpressionValidator ID="REV_TxBx_CurrLoad" runat="server" ControlToValidate="TxBx_CurrLoad"
                            ValidationExpression="([0-9])*" ErrorMessage="Invalid current number of mailboxes"
                            Display="None" SetFocusOnError="true" ValidationGroup="Mail"></asp:RegularExpressionValidator>
                        <asp:RequiredFieldValidator ControlToValidate="TxBx_CurrLoad" ID="RFV_CurrLoad" runat="server"
                            ValidationGroup="Mail" Enabled="true"></asp:RequiredFieldValidator>
                        <asp:CompareValidator ID="CFV_TxBx_CurrLoad" runat="server" ValidationGroup="Mail"
                            SetFocusOnError="true" Operator="LessThanEqual" Type="Integer" Enabled="true"
                            ControlToCompare="TxBx_MaxLoad" ControlToValidate="TxBx_CurrLoad" ErrorMessage="Current load should be less than maximum load.">
                        </asp:CompareValidator>
                    </div>
                </div>
            </div>
        </div>
        <br />
        <div class="card">
            <div class="header">
                <h3><%= Resources.Content.SPT002159%></h3>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal4" runat="server" Text="<%$ Resources:Content, SPT002165 %>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:DropDownList ID="DDL_ADNSTemplate" runat="server" />
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12">
                        <asp:Button ID="BtnSave" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,GN0000281%>"
                            ValidationGroup="Mail" />
                        <asp:Button ID="BtnCancel" CausesValidation="False" runat="server" class="btn btn-primary waves-effect"
                            Text="<%$ Resources:Content,GN0000572%>" />
                    </div>
                </div>
            </div>
        </div>


        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="true"
            ShowSummary="false" HeaderText="<%$ Resources:Content,EM000001%>" ValidationGroup="Mail" />
    </div>
</div>
