<%@ control language="VB" autoeventwireup="false" inherits="Admin_Hostmatic_CC_MailDomain, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/Template/ResourcesQuota.ascx" TagName='ResourceQuota' TagPrefix='EM' %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>

<script type="text/javascript">
    function disablePreviousButton() {
        document.getElementById('ctl00_CPH_Content_Wizard1_FinishNavigationTemplateContainerID_FinishPreviousButton').style.display = "none";
        //    document.getElementById('ctl00_CPH_Content_div_s2').style.display="none";
    }
</script>

<div class="row">
    <div class="col-xs-12">
        <div class="card">
            <div class="header hide">
                <div class="displayInlineBlock">
                    <h2>
                        <asp:Literal ID="Ltl_SubsInfo" runat="server" /></h2>
                </div>
                <asp:LinkButton ID="Btn_GoBack" runat="server" Text="<%$ Resources:Content,String1045 %>" CausesValidation="false"
                    Visible="false" CssClass="btn btn-primary waves-effect pull-right m-t--4px" />
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="products-step" id="Tbl_Tabs" runat="server" style="display: none;">
                            <span id="div_s1" runat="server" nowrap="true" class="label label-success">
                                <asp:LinkButton ID="LBtn_General" runat="server" Text='<%$ Resources:Content, GN00001466 %>'
                                    CausesValidation="false" />
                            </span>
                            <span id="div_s2" runat="server" nowrap="true" class="label label-default">
                                <asp:LinkButton ID="LBtn_Preferences" runat="server" Text='<%$ Resources:Content, GN0000135 %>'
                                    CausesValidation="false" />
                            </span>
                            <span id="div1" runat="server" nowrap="true" class="label label-default">
                                <asp:LinkButton ID="lb_Advanced1" runat="server" Text='' />
                            </span>
                        </div>
                    </div>
                </div>
                <div class="row" id="Pnl_Grid" runat="server">
                    <div class="col-xs-12 Div_OpsRow" id="Div_OpsRow" runat="server">
                        <div class="card">
                            <div class="header">
                                <h3>
                                    <%= Resources.Content.GN00001320%>      <%--Operations--%>                                                                                                                             
                                </h3>
                            </div>
                            <div class="body">
                                <asp:Button ID="Btn_AddDomain" runat="server" Text="<%$ Resources:Content,L00116%>" class="btn btn-primary waves-effect btnAction" />
                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <asp:GridView ID="GV_MailDomain" runat="server" AllowPaging="true" DataSourceID=""
                            CssClass="table table-bordered table-striped table-hover" AutoGenerateColumns="false" EmptyDataText="<%$ Resources:Content,GN00001375%>">

                            <Columns>
                                <asp:TemplateField HeaderText="<%$ Resources:Content,String385%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_Status" runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="<%$ Resources:Content,DGN1110516%>" HeaderStyle-CssClass="col-xs-7" ItemStyle-CssClass="col-xs-7">
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_MailDomain" runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000360%>" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="LB_Enable" runat="server" CssClass="btn btn-primary waves-effect btnAction" CommandName="Enable"
                                            Text="<%$ Resources:Content,L00117%>" CausesValidation="false" Visible="false"></asp:LinkButton>
                                        <asp:LinkButton ID="LB_Manage" runat="server" CssClass="btn btn-primary waves-effect" CommandName="Manage"
                                            Text="<%$ Resources:Content,L0086%>" CausesValidation="false"></asp:LinkButton>
                                        <asp:LinkButton ID="LB_Remove" runat="server" CssClass="btn btn-primary waves-effect btnAction" CommandName="Remove"
                                            Text="<%$ Resources:Content,GN0000278%>" CausesValidation="false"></asp:LinkButton>
                                        <EM:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,CBE001%>"
                                            TargetControlID="LB_Remove" runat="server">
                                        </EM:ConfirmButtonExtender>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <%--PagerTemplate Start--%>
                            <PagerTemplate>
                                <EM:Pager ID="Pager1" runat="server" />
                            </PagerTemplate>
                            <%--PagerTemplate End--%>
                        </asp:GridView>
                    </div>
                </div>

                <div class="row" id="Pnl_Prefrences" runat="server">
                    <div class="col-xs-12">
                        <div class="card">
                            <div class="header">
                                <h3>
                                    <%= Resources.Content.GN0000135%>
                                </h3>
                            </div>
                            <div class="body">
                                <div class="row">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        <label>
                                            <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,L00118%>" EnableViewState="false"></asp:Literal>:</label>
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <asp:RadioButton ID="RB_Bounce" runat="server" GroupName="Users" Text="<%$ Resources:Content,GN0000904%>" />
                                            <asp:RadioButton ID="RB_CatachToAddress" runat="server" GroupName="Users" Text="<%$ Resources:Content,SMI0563%>" />
                                            <asp:RadioButton ID="RB_Discard" runat="server" GroupName="Users" Text="<%$ Resources:Content,GN0000907%>" />
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        <label>
                                            <asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Content,GN0000111%>" EnableViewState="false"></asp:Literal>:</label>
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <asp:DropDownList ID="DDL_Webmail" runat="server">
                                                <asp:ListItem Text="<%$ Resources:Content,GN0000918%>" Value="0"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,L00119%>" Value="1"></asp:ListItem>
                                                <asp:ListItem Text="<%$ Resources:Content,L00120%>" Value="2"></asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <%--//Add New Mail Domain Interface--%>
                <div id="Tbl_AddDomain" runat="server" class="row">
                    <div class="col-xs-12">
                        <div class="card">
                            <div class="header">
                                <h3>
                                    <%= Resources.Content.L00116%>
                                </h3>
                            </div>
                            <div class="body">
                                <div class="row">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        <label>
                                            *<asp:Literal ID="Ltl_DomainName" runat="server" Text="<%$ Resources:Content,GN000125%>" EnableViewState="false"></asp:Literal>:</label>
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="Txt_DomainName" runat="server"></asp:TextBox>
                                                <asp:RequiredFieldValidator SetFocusOnError="true" runat="server" ID="RequiredFieldValidator3"
                                                    ControlToValidate="Txt_DomainName" ValidationGroup="DN" Display="None">
                                                </asp:RequiredFieldValidator>
                                                <%--<asp:RegularExpressionValidator ID="RE_DomTra" runat="server" ErrorMessage='<%$Resources:Content,String195%>'
                                                    SetFocusOnError="True" ControlToValidate="Txt_DomainName" ValidationGroup="DN"
                                                    ValidationExpression="<%$ Resources:Content,REV001 %>"
                                                    Display="None"></asp:RegularExpressionValidator>
                                                <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="Txt_DomainName"
                                                    FilterType="Numbers,UppercaseLetters,LowercaseLetters,Custom" ValidChars=".-">
                                                </EM:FilteredTextBoxExtender>--%>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        <label>
                                            <asp:Literal ID="Ltl_Enabled" runat="server" Text="<%$ Resources:Content,GN000195%>" EnableViewState="false"></asp:Literal>:</label>
                                    </div>
                                    <div class="col-sm-8 col-xs-12">
                                        <div class="form-group">
                                            <asp:CheckBox ID="CB_Enabled" runat="server" Checked="true" Text=" "></asp:CheckBox>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div id="Pnl_SmarterMail" runat="server" class="row" style="display: none;">
                    <div class="col-xs-12">
                        <div class="card">
                            <div class="header">
                                <h3>
                                    <%= Resources.Content.L00114%>
                                </h3>
                            </div>
                            <div class="body">
                                <div class="row">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        <label>
                                            *<asp:Literal ID="Ltl_UserName" runat="server" Text="<%$ Resources:Content,USM0061%>" EnableViewState="false"></asp:Literal>:</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" />
                                                <asp:RequiredFieldValidator SetFocusOnError="true" runat="server" ID="RequiredFieldValidator6"
                                                    ControlToValidate="Txt_UserName" ValidationGroup="DN" Display="None"></asp:RequiredFieldValidator>
                                                <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" TargetControlID="Txt_UserName"
                                                    FilterType="Numbers,UppercaseLetters,LowercaseLetters,Custom" ValidChars="_." />
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        <label>
                                            *<asp:Literal ID="Ltl_Password" runat="server" Text="<%$ Resources:Content,GN0000569%>" EnableViewState="false"></asp:Literal>:</label>
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="Txt_Password" runat="server" TextMode="Password" />
                                                <asp:RequiredFieldValidator SetFocusOnError="true" runat="server" ID="RFV_Password"
                                                    ValidationGroup="DN" ControlToValidate="Txt_Password" Display="None">
                                                </asp:RequiredFieldValidator>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        <label>
                                            *<asp:Literal ID="Ltl_ConfirmPassword" runat="server" Text="<%$ Resources:Content,GN0001196%>" EnableViewState="false"></asp:Literal>:</label>
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="Txt_ConfirmPassword" runat="server" TextMode="Password" />
                                                <asp:CompareValidator ID="CV_ConPasswordGen" runat="server" ControlToValidate="Txt_ConfirmPassword"
                                                    ControlToCompare="Txt_Password" Display="None" ErrorMessage='<%$ Resources:Content,DGN1110005 %>'
                                                    ValidationGroup="DN"></asp:CompareValidator>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        <label>
                                            *<asp:Literal ID="Ltl_MaxSize" runat="server" Text="<%$ Resources:Content,L00113%>" EnableViewState="false"></asp:Literal>:</label>
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <asp:DropDownList ID="DDL_MailboxSize" runat="server" />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div id="Pnl_MerakMail" runat="server" class="row" style="display: none;">
                    <div class="col-xs-12">
                        <div class="card">
                            <div class="header">
                                <h3>
                                    <%= Resources.Content.L00114%>
                                </h3>
                            </div>
                            <div class="body">
                                <div class="row">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        <label>
                                            *<asp:Literal ID="Ltl_Email" runat="server" Text="<%$ Resources:Content,GN0000652%>" EnableViewState="false"></asp:Literal>:</label>
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="Txt_Email" runat="server" />
                                                <asp:RequiredFieldValidator SetFocusOnError="true" runat="server" ID="RFV_Txt_Email"
                                                    Enabled="false" ControlToValidate="Txt_Email" ValidationGroup="DN" Display="None">
                                                </asp:RequiredFieldValidator>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        <label>
                                            *<asp:Literal ID="Ltl_Description" runat="server" Text="<%$ Resources:Content,GN0000597%>" EnableViewState="false"></asp:Literal>:</label>
                                    </div>
                                    <div class="col-sm-8 col-xs-12">
                                        <div class="form-group">

                                            <asp:TextBox ID="Txt_Description" runat="server" TextMode="MultiLine"  Height="150px" />
                                            <asp:RequiredFieldValidator SetFocusOnError="true" runat="server" ID="RFV_Txt_Description"
                                                Enabled="false" ControlToValidate="Txt_Description" ValidationGroup="DN" Display="None">
                                            </asp:RequiredFieldValidator>

                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div id="Tbl_Buttons" runat="server" class="col-xs-12" style="display: none;">
                        <asp:Button ID="Btn_Save" runat="server" ValidationGroup="DN" Text="<%$ Resources:Content,GN0000281%>" class="btn btn-primary waves-effect btnAction" />
                        <asp:Button ID="Btn_Cancel" runat="server" Text="<%$ Resources:Content,GN0000572%>" class="btn btn-primary waves-effect" CausesValidation="false" />
                    </div>
                </div>
                <asp:ValidationSummary ID="VS_EmailLists" runat="server" HeaderText='<%$ Resources:Content, EM000001 %>'
                    ShowMessageBox="True" ShowSummary="False" ValidationGroup="DN" />
            </div>
        </div>
    </div>
</div>

<%--Resources Grid Pannel--%>
<asp:Button ID="Btn_Display" runat="server" Style="display: none;" />
<asp:Button ID="Btn_OK" runat="server" Style="display: none;" />
<asp:Panel ID="Panel_Res" runat="server" BorderColor="ActiveBorder" BorderStyle="Groove"
    ScrollBars="Auto" CssClass="width-modal-popup-auto" Style="display: none">
    <EM:ResourceQuota runat="server" ID="ResourceQuotaView" />
</asp:Panel>
<EM:ModalPopupExtender runat="server" ID="MPE_Resource" BackgroundCssClass="modalBackground"
    PopupControlID="Panel_Res" TargetControlID="Btn_Display" OkControlID="Btn_OK">
</EM:ModalPopupExtender>

<script lang="javascript">
    <%--AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender1.ClientID%>');--%>
    AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender2.ClientID%>');
</script>