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

<div class="row">
    <div class="col-xs-12">
        <div class="products-step">
            <span id="div_s3" runat="server" nowrap="true" class="label label-success">
                <asp:LinkButton ID="lb_AllowedDomains" runat="server" Text='<%$ Resources:Content, DEV1046 %>' />
            </span>
            <span id="div_s4" runat="server" nowrap="true" class="label label-default">
                <asp:LinkButton ID="lb_BlockedDomains" runat="server" Text='<%$ Resources:Content, DEV1047 %>' />
            </span>
            <span id="div4" runat="server" nowrap="true" class="productStepButtonOff ProductStepButton-Div">
                <asp:LinkButton ID="lb_Advanced2" runat="server" Text='' />
            </span>
        </div>
    </div>
</div>

<div id="Tbl_Operations" runat="server" class="Div_OpsRow">
    <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_SyncABDomains" runat="server" CssClass="btn btn-primary waves-effect btnAction" Text='<%$ Resources:Content, Lync248 %>' />
                    <EM:ConfirmButtonExtender ID="CBE_Domains" ConfirmText="<%$ Resources:Content,Lync249%>"
                        TargetControlID="Btn_SyncABDomains" runat="server">
                    </EM:ConfirmButtonExtender>
                    <asp:Button ID="Btn_AllowAllKnownDomains" runat="server" CssClass="btn btn-primary waves-effect btnAction" Text='<%$ Resources:Content, AllowAllKnownDomains %>' />
                    <EM:ConfirmButtonExtender ID="CBE_AllKnown" ConfirmText="<%$ Resources:Content,DGN1119974%>"
                        TargetControlID="Btn_AllowAllKnownDomains" runat="server">
                    </EM:ConfirmButtonExtender>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="row">&nbsp;</div>
<asp:Panel ID="Pnl_AllowList" runat="server" DefaultButton="Btn_AddAllowedDomain">
    <div class="row">
        <div class="col-xs-12">
            <EM:MPGridView CssClass="table table-bordered table-striped table-hover" EmptyDataText='<%$ Resources:Content, GN00001375 %>' AllowPaging="true" AllowSorting="true"
                ID="GV_AllowList" runat="server" AutoGenerateColumns="false" CurrentSortExpression="Domain" CurrentSortDirection="Asc">
                <AlternatingRowStyle CssClass="altRow" />
                <Columns>
                    <asp:BoundField HeaderStyle-HorizontalAlign="Left" HeaderText="<%$ Resources:Content,GN000125%>"
                        DataField="Domain" SortExpression="Domain" HeaderStyle-CssClass="col-sm-9 col-xs-7" />
                    <asp:TemplateField HeaderText='<%$ Resources:Content,GN0000360%>' HeaderStyle-CssClass="col-sm-3 col-xs-5"
                        HeaderStyle-HorizontalAlign="Left">
                        <ItemTemplate>
                            <asp:LinkButton ID="LB_Delete" runat="server" Text="<%$ Resources:Content,GN0000278%>"
                                CssClass="btn btn-primary waves-effect btnAction" CommandName="Delete_Domain" />
                            <EM:ConfirmButtonExtender ID="CBE_Remove" runat="server" ConfirmText="<%$Resources:Content,DGN1119974%>"
                                TargetControlID="LB_Delete">
                            </EM:ConfirmButtonExtender>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <PagerTemplate>
                    <EM:Pager ID="Pager" runat="server" />
                </PagerTemplate>
            </EM:MPGridView>
        </div>
    </div>
    <div class="row">&nbsp;</div>
    <div class="card">
        <div class="header">
            <h3>
                <asp:Label ID="Label11" runat="server" Text='<%$ Resources:Content,DEV1078%>' EnableViewState="false"></asp:Label>
            </h3>
        </div>
        <div class="body">
            <div class="row">
                <div class="col-sm-3 col-xs-12">
                    *<asp:Literal ID="Literal12" runat="server" EnableViewState="false" Text='<%$ Resources:Content,DEV1051%>'>
                    </asp:Literal>:
                </div>
                <div class="col-sm-4 col-xs-12">
                    <div class="form-group">
                        <asp:TextBox ID="Txbx_AllowDomain" TextMode="MultiLine" Rows="3" MaxLength="500" Width="100%" runat="server">
                        </asp:TextBox>
                        <asp:RequiredFieldValidator ID="RFV_Federation" runat="server" ControlToValidate="Txbx_AllowDomain"
                            ValidationGroup="ADom" SetFocusOnError="true" Display="None">
                        </asp:RequiredFieldValidator>
                    </div>
                </div>
                <div class="col-sm-4 col-xs-12">
                    <asp:Literal ID="Literal1" runat="server" EnableViewState="false" Text='<%$ Resources:Content,Lync282%>'>
                    </asp:Literal>
                </div>
            </div>
            <div class="row">
                <div class="col-xs-12">
                    <asp:Button ID="Btn_AddAllowedDomain" ValidationGroup="ADom" runat="server" Text="<%$ Resources:Content,DEV1078%>"
                        class="btn btn-primary waves-effect btnAction" />
                    <asp:ValidationSummary HeaderText='<%$ Resources:Content,EM000001 %>' ID="Validationsummary3" runat="server" ValidationGroup="ADom"
                        ShowMessageBox="true" ShowSummary="false" />
                </div>
            </div>
        </div>
    </div>
</asp:Panel>

<asp:Panel ID="Pnl_BlockList" runat="server" DefaultButton="Btn_AddBlockedDomain">
    <div class="row">
        <div class="col-xs-12">
            <EM:MPGridView CssClass="table table-bordered table-striped table-hover" EmptyDataText='<%$ Resources:Content, GN00001375 %>' CurrentSortExpression="Domain"
                CurrentSortDirection="Asc" ID="GV_BlockList" runat="server" AutoGenerateColumns="false" AllowPaging="true" AllowSorting="true">
                <AlternatingRowStyle CssClass="altRow" />
                <Columns>
                    <asp:BoundField HeaderStyle-HorizontalAlign="Left" HeaderText="<%$ Resources:Content,GN000125%>"
                        DataField="Domain" SortExpression="Domain" HeaderStyle-CssClass="col-sm-9 col-xs-7" />
                    <asp:TemplateField HeaderText='<%$ Resources:Content,GN0000360%>' HeaderStyle-CssClass="col-sm-3 col-xs-5"
                        HeaderStyle-HorizontalAlign="Left">
                        <ItemTemplate>
                            <asp:LinkButton ID="LB_Delete" runat="server" Text="<%$ Resources:Content,GN0000278%>"
                                CssClass="btn btn-primary waves-effect btnAction" CommandName="Delete_Domain" />
                            <EM:ConfirmButtonExtender ID="CBE_Remove" runat="server" ConfirmText="<%$Resources:Content,DGN1119974%>"
                                TargetControlID="LB_Delete">
                            </EM:ConfirmButtonExtender>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <PagerTemplate>
                    <EM:Pager ID="Pager" runat="server" />
                </PagerTemplate>
            </EM:MPGridView>
        </div>
    </div>
    <div class="row">&nbsp;</div>
    <div class="card">
        <div class="header">
            <h3>
                <asp:Label ID="Label1" runat="server" Text='<%$ Resources:Content,DEV1078%>' EnableViewState="false"></asp:Label>
            </h3>
        </div>
        <div class="body">
            <div class="row">
                <div class="col-sm-3 col-xs-12">
                    *<asp:Literal ID="Literal2" runat="server" EnableViewState="false" Text='<%$ Resources:Content,DEV1070%>'>
                    </asp:Literal>:
                </div>
                <div class="col-sm-4 col-xs-12">
                    <div class="form-group">
                        <asp:TextBox ID="Txbx_BlockDomain" runat="server" TextMode="MultiLine" Rows="3" MaxLength="500" Width="100%">
                        </asp:TextBox>
                        <asp:RequiredFieldValidator ID="RFV_BlockDomain" runat="server" ControlToValidate="Txbx_BlockDomain"
                            ValidationGroup="BDom" SetFocusOnError="true" Display="None">
                        </asp:RequiredFieldValidator>
                    </div>
                </div>
                <div class="col-sm-4 col-xs-12">
                    <asp:Literal ID="Literal3" runat="server" EnableViewState="false" Text='<%$ Resources:Content,Lync282%>'>
                    </asp:Literal>
                </div>
            </div>
            <div class="row">
                <div class="col-xs-12">
                    <asp:Button ID="Btn_AddBlockedDomain" ValidationGroup="BDom" runat="server" Text="<%$ Resources:Content,DEV1078%>"
                        class="btn btn-primary waves-effect btnAction" />
                    <asp:ValidationSummary ID="Validationsummary2" runat="server" ValidationGroup="BDom"
                        ShowMessageBox="true" ShowSummary="false" HeaderText='<%$ Resources:Content,EM000001 %>' />
                </div>
            </div>
        </div>
    </div>
</asp:Panel>
