<%@ control language="VB" autoeventwireup="false" inherits="Admin_Hostmatic_CC_EmailGroups, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" 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">
                    <ajax:UpdatePanel ID="UP_EmailGroup" runat="server">
                        <ContentTemplate>
                            <div class="row" id="Pnl_EmailGroup" 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_AddEmailGroup" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,SMI0501%>" CausesValidation="false" />
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-xs-12">
                                    <asp:GridView ID="GV_EmailGroups" 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,GN00001113%>" HeaderStyle-CssClass="col-xs-6" ItemStyle-CssClass="col-xs-6">
                                                <ItemTemplate>
                                                    <asp:LinkButton ID="LB_DisplayName" runat="server" CommandName="Name" CausesValidation="false" />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="<%$ Resources:Content,Lync040%>" HeaderStyle-CssClass="col-xs-4" ItemStyle-CssClass="col-xs-4">
                                                <ItemTemplate>
                                                    <asp:Label ID="Lbl_GroupMembersCount" 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_Enable" runat="server" class="btn btn-primary waves-effect btnAction" CommandName="Enable"
                                                        Text="<%$ Resources:Content,GN00001025%>" CausesValidation="false" Visible="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>
                                                    <EM:ConfirmButtonExtender ID="CBE_Remove" runat="server" ConfirmText="<%$Resources:Content,CBE001%>"
                                                        TargetControlID="LB_Remove">
                                                    </EM:ConfirmButtonExtender>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                        <PagerTemplate>
                                            <EM:Pager ID="Pager1" runat="server" />
                                        </PagerTemplate>
                                    </asp:GridView>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-xs-12">
                                    <%--//Add Email Group--%>
                                    <div class="card" id="Pnl_AddGroup" runat="server">
                                        <div class="header">
                                            <h3><%= Resources.Content.SMI0501%></h3>
                                        </div>
                                        <div class="body">
                                            <div class="row">
                                                <div class="col-sm-2 col-xs-12 row-label">
                                                    <label>*<asp:Literal ID="Lt_EGroupName" runat="server" Text="<%$ Resources:Content,SMI0503%>" 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_EGroupName" runat="server"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ID="RFV_LM" runat="server" ControlToValidate="Txt_EGroupName"
                                                                Display="None" ValidationGroup="Validator" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                            <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender3" runat="server" TargetControlID="Txt_EGroupName"
                                                                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="Lt_GroupEmails" runat="server" Text="<%$ Resources:Content,DGN1110100%>" EnableViewState="false"></asp:Literal>:</label>
                                                </div>
                                                <div class="col-sm-4 col-xs-12">
                                                    <asp:ListBox ID="LB_GroupEmails" runat="server" Width="100%" CssClass="ms" SelectionMode="Multiple"></asp:ListBox>
                                                </div>
                                            </div>
                                            <div class="row">
                                                <div class="col-sm-2 col-xs-12 row-label">
                                                    <label>*<asp:Literal ID="Lt_Email" runat="server" Text="<%$ Resources:Content,SMI0504%>" 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_EmailAddress" runat="server"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="Txt_EmailAddress"
                                                                Display="None" ValidationGroup="Validator" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                            <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="Txt_EmailAddress"
                                                                FilterType="Numbers,UppercaseLetters,LowercaseLetters,Custom" ValidChars="-_">
                                                            </EM:FilteredTextBoxExtender>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-sm-5 col-xs-12">
                                                    <div class="form-group at-the-rate">
                                                    @<asp:DropDownList ID="DDL_DomainName" runat="server">
                                                        <%--<asp:ListItem Text="None" Value="0"></asp:ListItem>--%>
                                                    </asp:DropDownList></div>
                                                </div>
                                            </div>
                                            <div class="row">
                                                <div class="col-sm-2 col-xs-12 row-label">
                                                    <label>
                                                        <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content,GN000195%>" EnableViewState="false"></asp:Literal>:</label>
                                                </div>
                                                <div class="col-sm-9 col-xs-12">
                                                    <asp:CheckBox ID="CB_Enabled" runat="server" Checked="true" Text=" " />
                                                </div>
                                            </div>
                                            <div class="row">
                                                <div class="col-xs-12">
                                                    <asp:Button ID="Btn_SaveEmailGroups" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,GN0000281%>"
                                                        ValidationGroup="Validator" />
                                                    <asp:Button ID="Btn_CancelEmailGroups" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000572%>"
                                                        CausesValidation="false" />
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <%--//Mail Group Management--%>
                                    <div class="card" id="Pnl_GroupDetail" runat="server">
                                        <div class="body">
                                            <div class="row">
                                                <div class="col-xs-12">
                                                    <asp:Literal ID="Literal43" runat="server" Text="<%$ Resources:Content,SMI0505%>" EnableViewState="false" />
                                                    <asp:Label ID="lbl_MailboxName" runat="server" />
                                                    <asp:LinkButton ID="lb_GoBack" runat="server" Text="<%$ Resources:Content,DGN1110542%>" Visible="false" />
                                                </div>
                                            </div>

                                            <div class="row">
                                                <div class="col-xs-12">
                                                    <%--//Group Members Listing--%>
                                                    <div class="card" id="Pnl_GroupMembers" runat="server">
                                                        <div class="header">
                                                            <h3><%= Resources.Content.GN00001320%></h3>
                                                        </div>
                                                        <div class="body">
                                                            <div class="row">
                                                                <div class="col-xs-12">
                                                                    <asp:Button ID="Btn_AddMember" runat="server" Text="<%$ Resources:Content,DGN1110093%>" Width="175px"
                                                                        class="btn btn-primary waves-effect btnAction" CausesValidation="false" />
                                                                </div>
                                                            </div>
                                                            <div class="row">
                                                                <div class="col-xs-12">
                                                                    <asp:GridView ID="GV_EGDetail" 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,Lync040%>" HeaderStyle-CssClass="col-xs-10" ItemStyle-CssClass="col-xs-10">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="Lbl_Members" 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_Remove" runat="server" class="btn btn-primary waves-effect btnAction" CommandName="Remove"
                                                                                        Text="<%$ Resources:Content,GN0000278%>" CausesValidation="false"></asp:LinkButton>
                                                                                    <EM:ConfirmButtonExtender ID="CBE_Remove" runat="server" ConfirmText="<%$Resources:Content,CBE001%>"
                                                                                        TargetControlID="LB_Remove">
                                                                                    </EM:ConfirmButtonExtender>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                        </Columns>
                                                                        <%--PagerTemplate Start--%>
                                                                        <PagerTemplate>
                                                                            <EM:Pager ID="Pager1" runat="server" />
                                                                        </PagerTemplate>
                                                                        <%--PagerTemplate End--%>
                                                                    </asp:GridView>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <%--//Add Group Members--%>
                                                    <div class="card" id="Pnl_AddGroupMember" runat="server">
                                                        <div class="header">
                                                            <h3><%= Resources.Content.strAddGroupMember%></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,SMI0506%>" EnableViewState="false"></asp:Literal>:</label>
                                                                </div>
                                                                <div class="col-sm-4 col-xs-12">
                                                                    <div class="form-group">
                                                                        <asp:DropDownList ID="DDL_MemberType" runat="server" AutoPostBack="true">
                                                                            <asp:ListItem Text="<%$ Resources:Content,SMI0507%>" Value="0"></asp:ListItem>
                                                                            <asp:ListItem Text="<%$ Resources:Content,SMI0508%>" Value="1"></asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="row" id="Tr_LBMembers" runat="server" visible="false">
                                                                <div class="col-sm-2 col-xs-12 row-label">
                                                                    <label>
                                                                        <asp:Literal ID="Lt_SelectMember" runat="server" Text="<%$ Resources:Content,SMI0509%>" EnableViewState="false"></asp:Literal>:</label>
                                                                </div>
                                                                <div class="col-sm-9 col-xs-12">
                                                                    <asp:ListBox ID="LB_SelectMember" runat="server" Width="100%" CssClass="ms" SelectionMode="Multiple" />
                                                                </div>
                                                            </div>
                                                            <div class="row" id="Tr_MemberEmailAddress" runat="server">
                                                                <div class="col-sm-2 col-xs-12 row-label">
                                                                    <label>
                                                                        *<asp:Literal ID="Ltl_EmailAddress" runat="server" Text="<%$ Resources:Content,GN0000491%>" 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_MemberEmailAddress" runat="server"></asp:TextBox>
                                                                            <asp:RequiredFieldValidator ID="RFV_MemberEmailAddress" runat="server" ControlToValidate="Txt_MemberEmailAddress"
                                                                                Display="None" ValidationGroup="Validator" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                                            <%--<asp:RegularExpressionValidator ID="REV_MemberEmailAddress" runat="server" ControlToValidate="Txt_MemberEmailAddress"
                                                                                ErrorMessage="Enter Valid Email Address" ValidationExpression="<%$ Resources:MPRegex,EmailAddress %>"
                                                                                ValidationGroup="Validator"> </asp:RegularExpressionValidator>--%>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <tr>
                                                                <td class="col-xs-12">
                                                                    <asp:Button ID="Btn_SaveMembers" runat="server" Text="<%$ Resources:Content,GN0000281%>" class="btn btn-primary waves-effect btnAction" ValidationGroup="Validator" />
                                                                    <asp:Button ID="Btn_CancelMembers" runat="server" Text="<%$ Resources:Content,GN0000572%>" class="btn btn-primary waves-effect"
                                                                        CausesValidation="false" />
                                                                </td>
                                                            </tr>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <asp:ValidationSummary ID="VS_EmailLists" runat="server" HeaderText='<%$ Resources:Content, EM000001 %>'
                                        ShowMessageBox="True" ShowSummary="False" ValidationGroup="Validator" />
                                </div>
                            </div>
                        </ContentTemplate>
                    </ajax:UpdatePanel>
                </div>
            </div>
        </div>
    </div>
</div>

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