<%@ control language="VB" autoeventwireup="false" inherits="RCC_Hostmatic_CC_MailDomainAliases, 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" %>

<div class="col-xs-12">
    <div class="card">
        <div class="header">
            <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"
                 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 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%></h3>
                                </div>
                                <div class="body">
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <asp:Button ID="Btn_AddDomainAlias" runat="server" Text="<%$ Resources:Content,SMI0565%>" class="btn btn-primary waves-effect btnAction" CausesValidation="false" />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-xs-12">
                            <asp:GridView ID="GV_MailDomainAlias" 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,String393%>" HeaderStyle-CssClass="col-xs-10" ItemStyle-CssClass="col-xs-10">
                                        <ItemTemplate>
                                            <asp:Label ID="Lbl_MailDomainAlias" runat="server" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000360%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                        <ItemTemplate>
                                            <%--<asp:LinkButton ID="LB_Edit" runat="server" CssClass="LinkButtonEdit" CommandName="MDAEdit" Text="Manage" CausesValidation="false"></asp:LinkButton>--%>
                                            <asp:LinkButton ID="LB_Remove" runat="server" class="btn btn-primary waves-effect btnAction" CommandName="Remove"
                                                Text="<%$ Resources:Content,GN0000278%>" CausesValidation="false"></asp:LinkButton>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <%--PagerTemplate Start--%>
                                <PagerTemplate>
                                    <EM:Pager ID="Pager1" runat="server" />
                                </PagerTemplate>
                                <%--PagerTemplate End--%>
                            </asp:GridView>
                        </div>
                    </div>

                    <asp:Panel class="row" id="Pnl_AddAlias" runat="server" DefaultButton="Btn_Save">
                        <div class="col-xs-12">
                            <div class="card">
                                <div class="header">
                                    <h3><%= Resources.Content.SMI0566%></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,SPT002303%>" 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" ValidationGroup="MailAlias"></asp:TextBox>
                                                    <asp:RequiredFieldValidator SetFocusOnError="true" runat="server" ID="RequiredFieldValidator3"
                                                        ControlToValidate="Txt_DomainName" ValidationGroup="MailAlias" Display="None">
                                                    </asp:RequiredFieldValidator>
                                                    <%--<asp:RegularExpressionValidator ID="RE_DomTra" runat="server" ErrorMessage='<%$Resources:Content,String195%>'
                                                        SetFocusOnError="True" ControlToValidate="Txt_DomainName" ValidationGroup="MailAlias"
                                                        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-xs-12">
                                            <asp:ValidationSummary ID="VS_EmailLists" runat="server" HeaderText='<%$ Resources:Content, EM000001 %>'
                                                ShowMessageBox="True" ShowSummary="False" ValidationGroup="MailAlias" />

                                            <asp:Button ID="Btn_Save" runat="server" Text="<%$ Resources:Content,GN0000281%>" class="btn btn-primary waves-effect btnAction" ValidationGroup="MailAlias" />
                                            <asp:Button ID="Btn_Cancel" runat="server" Text="<%$ Resources:Content,GN0000572%>" class="btn btn-primary waves-effect" />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </asp:Panel>
                    <asp:Panel class="row" id="Pnl_Prefrences" runat="server" visible="false" DefaultButton="Btn_SavePref">
                        <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-8 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-8 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 class="row">
                                    <div class='col-xs-12'>
                                        <asp:Button ID="Btn_SavePref" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$Resources:Content,GN0000281%>" />
                                        <asp:Button ID="Btn_CancelPref" runat="server" class="btn btn-primary waves-effect" Text="<%$Resources:Content,GN0000572%>" />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </asp:Panel>
                </div>
            </div>
        </div>
    </div>
</div>

<asp:Button ID="Btn_Display" 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 X="150" runat="server" ID="MPE_Resource" BackgroundCssClass="modalBackground"
    DropShadow="false" PopupControlID="Panel_Res" TargetControlID="Btn_Display">
</EM:ModalPopupExtender>

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