<%@ page title="" language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="RCC_O365_TenantDetail, MachSol.MachPanel.Web" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="Ajax" %>

<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="UC" %>
<%@ Register Src="~/RCC/O365/CC/UserDetail.ascx" TagName="UserDetail" TagPrefix="UC" %>
<%@ Register Src="~/RCC/O365/CC/AddBulkUsers.ascx" TagName="AddBulkUsers" TagPrefix="UC" %>
<%@ Register Src="~/RCC/O365/CC/UserGroupOperations.ascx" TagName="UserGroupOperations" TagPrefix="UC" %>
<%@ Register Src="~/RCC/O365/CC/ContactDetail.ascx" TagName="ContactDetail" TagPrefix="UC" %>
<%--<col-sm-5 col-xs-12 TagName="MBDetails" TagPrefix="UC" %>--%>
<%@ Register Src="~/RCC/O365/CC/TenantGroups.ascx" TagName="TenantGroups" TagPrefix="UC" %>
<%@ Register Src="~/RCC/O365/CC/GroupActions.ascx" TagName="GroupActions" TagPrefix="UC" %>
<%@ Register Src="~/RCC/O365/CC/AccountInfo.ascx" TagName="AccountInfo" TagPrefix="UC" %>

<%@ Register Src="~/RCC/O365/CC/O365Teams.ascx" TagName="O365Teams" TagPrefix="UC" %>

<%@ Register Src="~/RCC/O365/CC/AddSPSite.ascx" TagName="AddSPSite" TagPrefix="EM" %>
<%@ Register Src="~/RCC/O365/CC/EditSPSite.ascx" TagName="EditSPSite" TagPrefix="EM" %>
<%@ Register Src="~/RCC/O365/CC/SPSiteGroupAction.ascx" TagName="SPSiteGroupAction" TagPrefix="EM" %>
<%@ Register Src="~/RCC/O365/CC/Teams.ascx" TagName="Teams" TagPrefix="EM" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AjaxToolkit" %>

<%@ Register TagPrefix="cc1" Namespace="System.Web.UI" Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" %>
<asp:Content ID="Content5" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div class="col-xs-12">
        <div class="card">
            <div class="body">
                <asp:Button ID="Btn_RefreshTab" CssClass="RefreshTab" runat="server" Style="display: none;" />
                <ajax:TabContainer ID="TC_TenantDetails" runat="server" OnClientActiveTabChanged="loadTabPanel">
                    <ajax:TabPanel ID="Tab_GeneralSettings" runat="server" HeaderText='<%$ Resources:Content,SM400028%>'>
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab0" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent0" runat="server">

                                <div class="row Div_OpsRow" id="div_operationbox_general" runat="server">
                                    <div class="col-xs-12">
                                        <div class="row">
                                            <div class="col-xs-12">
                                                <div class="card">
                                                    <div class="header">
                                                        <h3>
                                                            <%= Resources.Content.GN00001320%>                                                                                                                                 
                                                        </h3>
                                                    </div>
                                                    <div class="body">
                                                        <div class="clearfix">
                                                            <asp:Button class="btn btn-primary waves-effect btnAction" ID="Btn_EditTenantInfo" runat="server" Text="<%$ Resources:Content,GN0000276%>" />

                                                            <asp:Button ID="Btn_AddSyncJob" class="btn btn-primary waves-effect btnAction" runat="server" Text="<%$ Resources:Content,SyncWithO365 %>" />

                                                            <asp:Button ID="Btn_SyncDomainsLicensesPolicesRoles" class="btn btn-primary waves-effect btnAction" runat="server"
                                                                Text="<%$ Resources:Content,SyncDomainsLicensesPolicesRoles %>" />
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <div class="row">
                                    <div class="col-xs-12">
                                        <div class="card">
                                            <div class="header">
                                                <h3>
                                                    <asp:Literal ID="Ltrl_GeneralHeading" runat="server" Text="<%$ Resources:Content,GN00001466%>"></asp:Literal>
                                                </h3>
                                            </div>
                                            <div class="body">

                                                <div class="row" id="div_SubId" runat="server">
                                                    <div class="col-md-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content,String61%>"
                                                            EnableViewState="false" />:
                                                    </div>
                                                    <div class="col-md-8 col-xs-12" id="Td_SubId">
                                                        <asp:HyperLink ID="LB_SubscriptionID" runat="server"></asp:HyperLink>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Ltrl_CustomerInfo" runat="server" Text="<%$ Resources:Content,GN0000850%>" />:                                             
                                                    </div>

                                                    <div class="col-sm-8 col-xs-12">
                                                        <asp:HyperLink ID="HL_CustomerInfo" runat="server"></asp:HyperLink>
                                                    </div>
                                                </div>
                                                <div class="row" id="tr_resellerInfo" runat="server">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Ltrl_ResellerInfo" runat="server" Text="<%$ Resources:Content,SPT002811%>" />:                                                
                                                    </div>

                                                    <div class="col-sm-8 col-xs-12">
                                                        <asp:HyperLink ID="HL_ResellerInfo" runat="server"></asp:HyperLink>
                                                    </div>
                                                </div>

                                                <div class="row">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Ltrl_TenantNameHeading" runat="server" Text="<%$ Resources:Content,TenantName%>" />:                                                  
                                                    </div>

                                                    <div class="col-sm-8 col-xs-12">
                                                        <asp:Literal ID="Ltrl_TenantName" runat="server"></asp:Literal>
                                                    </div>
                                                </div>

                                                <div class="row" id="Tr_LinkedLocalOrg" runat="server" visible="false">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Ltrl_LinkedLocalOrgLabel" runat="server" Text="Linked local organization" />:                                                   
                                                    </div>

                                                    <div class="col-sm-8 col-xs-12">
                                                        <asp:Literal ID="Ltrl_LinkedLocalOrgName" runat="server"></asp:Literal>
                                                    </div>
                                                </div>

                                                <div class="row" id="Div_AdminLogin" runat="server">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Ltrl_TenantAdminLoginHeading" runat="server" Text="<%$ Resources:Content,L0029%>" />:                                                  
                                                    </div>

                                                    <div class="col-sm-8 col-xs-12">
                                                        <asp:Literal ID="Ltrl_TenantAdminLogin" runat="server"></asp:Literal>
                                                    </div>
                                                </div>
                                                <%-- <asp:UpdatePanel ID="UP_AdminPass" runat="server" UpdateMode="Always">
                                                    <ContentTemplate>--%>

                                                <%--<div class="row" id="Div_AdminPassword" runat="server">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Ltrl_TenantAdminPasswordHeading" runat="server" Text="<%$ Resources:Content,SPT002182%>" />:                                                  
                                                    </div>

                                                    <div class="col-sm-4 col-xs-12">
                                                        <asp:Label ID="Ltrl_TenantAdminPassword" runat="server" Visible="false"></asp:Label>
                                                        <asp:Label ID="Ltrl_TenantAdminPasswordDots" Text="************" runat="server"></asp:Label>
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12" id="Div_ShowPasword" runat="server" visible="false">
                                                        <asp:CheckBox ID="chbx_ShowPassword" runat="server" OnCheckedChanged="chbx_ShowPassword_CheckedChanged" AutoPostBack="true" Text="<%$ Resources:Content,FAM0049%>" />

                                                    </div>
                                                </div>--%>
                                                <div id="Div_FixGDAPRoleAssignment" runat="server" visible="false">
                                                    <div class="row">
                                                        <div class="col-sm-4 col-xs-12 row-label">
                                                            <asp:Literal ID="Literal4" runat="server" Text="Fix GDAP Role Assignment" />:                                                  
                                                        </div>

                                                        <div class="col-sm-8 col-xs-12">
                                                            <asp:Button ID="Btn_FixGDAPRoleAssignment" class="btn btn-primary waves-effect btnAction" runat="server" Text="<%$ Resources:Content, Update %>"></asp:Button>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div id="Div_AllowToManageTenantViaPanel" runat="server" visible="false">
                                                    <div class="row">
                                                        <div class="col-sm-4 col-xs-12 row-label">
                                                            <asp:Literal ID="Ltrl_AllowToManageTenant" runat="server" EnableViewState="false" Text='<%$ Resources:Content, ManageTenantViaPanel %>' />: &nbsp;
                                                        </div>
                                                        <div class="col-sm-1 col-xs-2">
                                                            <div class="form-group">
                                                                <asp:Literal ID="Ltrl_AllowToManageTenantVal" runat="server" Text="<%$ Resources:Content,Yes %>"></asp:Literal>
                                                            </div>
                                                        </div>
                                                        <div class="col-sm-1 col-xs-2">
                                                            <asp:LinkButton ID="Lbtn_ToggleTenantManagementOption" runat="server"></asp:LinkButton>
                                                        </div>
                                                    </div>
                                                </div>

                                                <%--<div class="row" id="div_TenantMFAState" runat="server">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Ltrl_TenantMFAEnabled" runat="server" Text="<%$ Resources:Content, TwoFAEnabled%>"></asp:Literal>:
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <asp:Literal ID="Ltrl_TenantMFAState" runat="server"></asp:Literal>
                                                    </div>
                                                </div>--%>
                                                <%--<div class="row" id="div_UserGraphPowerShell" runat="server">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal4" runat="server" Text="<%$ Resources:Content, StrUseMSGraphPowerShell%>"></asp:Literal>:
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <asp:Literal ID="Ltrl_UserGraphPowerShell" runat="server"></asp:Literal>
                                                    </div>
                                                </div>--%>
                                                <div class="row">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Ltrl_AzureADSyncEnabled" runat="server" EnableViewState="false" Text='<%$ Resources:Content, StrAzureADSyncEnabled %>' />: &nbsp;
                                                    </div>
                                                    <div class="col-sm-1 col-xs-2">
                                                        <div class="form-group">
                                                            <asp:Literal ID="Ltrl_AzureADSyncEnabledVal" runat="server" Text="<%$ Resources:Content,No %>"></asp:Literal>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <asp:Literal ID="Ltrl_ExchangeHybridModeEnabled" runat="server" EnableViewState="false" Text='<%$ Resources:Content, StrExchangeHybridModeEnabled %>' />: &nbsp;
                                                    </div>
                                                    <div class="col-sm-1 col-xs-2">
                                                        <div class="form-group">
                                                            <asp:Literal ID="Ltrl_ExchangeHybridModeEnabledVal" runat="server" Text="<%$ Resources:Content,No %>"></asp:Literal>
                                                        </div>
                                                    </div>
                                                </div>
                                                <%-- </ContentTemplate>
                                                </asp:UpdatePanel>--%>
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <div class="row">
                                    <div class="col-xs-12">
                                        <div class="card">
                                            <div class="header">
                                                <h3>
                                                    <asp:Literal ID="Ltrl_LicenseInfo" runat="server" Text="<%$ Resources:Content,L00243%>"></asp:Literal>
                                                </h3>
                                            </div>
                                            <div class="body">
                                                <div class="row">
                                                    <div class="col-xs-12">
                                                        <asp:GridView CssClass="table table-bordered table-striped table-hover" EmptyDataText='<%$ Resources:Content, GN00001375 %>'
                                                            ID="GV_Licences" runat="server" AutoGenerateColumns="false" AllowPaging="false"
                                                            AllowSorting="false">

                                                            <Columns>
                                                                <asp:TemplateField HeaderText='<%$ Resources:Content,GN000170%>'>
                                                                    <ItemTemplate>
                                                                        <asp:Literal ID="Ltrl_Name" runat="server" Text='<%# Eval("AccountSkuFriendlyName")%>'></asp:Literal>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText='Active Units'>
                                                                    <ItemTemplate>
                                                                        <asp:Literal ID="Ltrl_ActiveUnits" runat="server" Text='<%# Eval("ActiveUnits")%>' />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText='Consumed Units'>
                                                                    <ItemTemplate>
                                                                        <asp:Literal ID="Ltrl_ConsumedUnits" runat="server" Text='<%# Eval("ConsumedUnits")%>'></asp:Literal>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText='Locked-Out Units'>
                                                                    <ItemTemplate>
                                                                        <asp:Literal ID="Ltrl_LockedoutUnits" runat="server" Text='<%# Eval("LockedOutUnits")%>'></asp:Literal>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText='Suspended Units'>
                                                                    <ItemTemplate>
                                                                        <asp:Literal ID="Ltrl_SuspendedUnits" runat="server" Text='<%# Eval("SuspendedUnits")%>'></asp:Literal>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText='Warning Units'>
                                                                    <ItemTemplate>
                                                                        <asp:Literal ID="Ltrl_Warningunits" runat="server" Text='<%# Eval("WarningUnits")%>'></asp:Literal>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                            </Columns>
                                                        </asp:GridView>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>


                            </asp:Panel>
                        </ContentTemplate>
                    </ajax:TabPanel>

                    <%--1--%>
                    <ajax:TabPanel ID="Tab_AccountInfo" runat="server" HeaderText="<%$ Resources:Content,String419 %>">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab1" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent8" runat="server" Visible="false">
                                <UC:AccountInfo ID="AccountInfo1" runat="server"></UC:AccountInfo>
                            </asp:Panel>
                        </ContentTemplate>
                    </ajax:TabPanel>

                    <%--2--%>
                    <ajax:TabPanel ID="Tab_TenantDomains" runat="server" HeaderText='<%$ Resources:Content, String288 %>'>
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab2" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent1" runat="server" Visible="false">

                                <div class="row Div_OpsRow" id="tbl_DomainOperations" runat="server" visible="false">
                                    <div class="col-xs-12">
                                        <div class="row">
                                            <div class="col-xs-12">
                                                <div class="card">
                                                    <div class="header">
                                                        <h3>
                                                            <%= Resources.Content.GN00001320%>                                                                                                                                 
                                                        </h3>
                                                    </div>
                                                    <div class="body">
                                                        <div class="clearfix">
                                                            <asp:Button ID="Btn_DomainAdd" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,DEV1078%>" />

                                                            <asp:Button ID="Btn_SyncDomainsLicensesPolicesRoles2" class="btn btn-primary waves-effect btnAction" runat="server"
                                                                Text="<%$ Resources:Content,Lync248 %>" />
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <asp:Panel ID="Pnl_DomainAdd" runat="server" Visible="false" DefaultButton="Btn_SaveDomainAdd">
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <div class="card">
                                                <div class="header">
                                                    <h3>
                                                        <asp:Literal ID="Literal36" runat="server" Text="<%$ Resources:Content,DEV1078%>" EnableViewState="false" />
                                                    </h3>
                                                </div>
                                                <div class="body">

                                                    <div class="row" id="TR_DomainNameSelect" runat="server">
                                                        <div class="col-sm-2 col-xs-12 row-label">
                                                            <asp:Literal ID="Ltrl_SelectDomainName" runat="server" Text="<%$Resources:Content,DGN1110334 %>"></asp:Literal>
                                                        </div>
                                                        <div class="col-sm-4 col-xs-12">
                                                            <div class="form-group">
                                                                <asp:DropDownList ID="DDL_DomainName" runat="server" AutoPostBack="true"></asp:DropDownList>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="row" id="Tr_DomainName" runat="server">
                                                        <div class="col-sm-2 col-xs-12 row-label">
                                                            *&nbsp;
															<asp:Literal ID="Ltrl_AddDomainName" runat="server" Text="<%$Resources:Content,GN000125 %>"></asp:Literal>
                                                        </div>
                                                        <div class="col-sm-4 col-xs-12">
                                                            <div class="form-group">
                                                                <div class="form-line">
                                                                    <asp:TextBox ID="TxBx_AddDomainName" runat="server" ValidationGroup="AddDomainName"></asp:TextBox>
                                                                </div>
                                                            </div>
                                                            <asp:RequiredFieldValidator ID="RFV_DomainName" runat="server" ControlToValidate="TxBx_AddDomainName"
                                                                Display="None" SetFocusOnError="true" ValidationGroup="AddDomainName"></asp:RequiredFieldValidator>
                                                            <asp:RegularExpressionValidator ID="REV_DomainName" runat="server" ControlToValidate="TxBx_AddDomainName"
                                                                Display="None" ErrorMessage="<%$Resources:Content,L0027%>" SetFocusOnError="true" ValidationGroup="AddDomainName"
                                                                ValidationExpression="<%$Resources:MPRegex,DomainName%>"></asp:RegularExpressionValidator>
                                                        </div>
                                                    </div>
                                                    <div class="row">
                                                        <div class="col-xs-12">
                                                            <asp:Button ID="Btn_SaveDomainAdd" runat="server" Text="<%$ Resources:Content,GN0000281 %>"
                                                                CssClass="btn btn-primary waves-effect btnAction" CausesValidation="true" ValidationGroup="AddDomainName" />
                                                            <asp:Button ID="Btn_CancelDomainAdd" runat="server" Text="<%$ Resources:Content,GN0000572 %>"
                                                                CssClass="btn btn-primary waves-effect" CausesValidation="false" />
                                                            <asp:ValidationSummary ID="VS_AddDomainName" runat="server" ShowMessageBox="true"
                                                                ShowSummary="false" ValidationGroup="AddDomainName" HeaderText="<%$ Resources:Content, EM000001%>" />
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </asp:Panel>

                                <asp:Button ID="Btn_DomainAddNoticeDummy" runat="server" Style="display: none; visibility: hidden;" Text=' ' />
                                <asp:Panel ID="Pnl_DomainAddNotice" CssClass="width-modal-popup-auto" runat="server">

                                    <div class="col-xs-12">
                                        <div class="card">
                                            <div class="header container-fluid">
                                                <span>
                                                    <button type="button" class="close" onclick="$find('<%=MPE_DomainAddNotice.ClientID%>').hide();">&times;</button>
                                                </span>
                                            </div>
                                            <div class="body">
                                                <div class="row">
                                                    <div class="col-xs-12">
                                                        <asp:Label ID="Lbl_DomainAddJobMessage" CssClass="successMsg" runat="server" Text="<%$ Resources:Content, JobAdded%>"></asp:Label>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-xs-12">
                                                        <asp:Label ID="Lbl_DomainAddNotice" runat="server" CssClass="infoMsg" Text='<%$ Resources:Content,CSPDomainAddPopupNotice %>'></asp:Label>
                                                    </div>

                                                </div>
                                                <div class="row">
                                                    <div class="col-xs-offset-5 col-xs-2">
                                                        <asp:Button class="btn btn-primary waves-effect" ID="Btn_CloseDomainAddNotice" runat="server" Text='<%$ Resources:Content,GN000150%>' />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                </asp:Panel>
                                <ajax:ModalPopupExtender runat="server" ID="MPE_DomainAddNotice" BackgroundCssClass="modalBackground"
                                    DropShadow="false" CancelControlID="Btn_CloseDomainAddNotice" PopupControlID="Pnl_DomainAddNotice"
                                    TargetControlID="Btn_DomainAddNoticeDummy" />

                                <asp:Panel ID="Pnl_Domains" runat="server">
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <asp:GridView CssClass="table table-bordered table-striped table-hover" EmptyDataText='<%$ Resources:Content, GN00001375 %>'
                                                ID="GV_Domains" runat="server" AutoGenerateColumns="false" AllowPaging="true"
                                                AllowSorting="true">
                                                <AlternatingRowStyle CssClass="altRow" />
                                                <Columns>
                                                    <asp:TemplateField HeaderText='<%$ Resources:Content,GN0000653%>'
                                                        SortExpression="DomainName" HeaderStyle-CssClass="col-xs-4" ItemStyle-CssClass="col-xs-4">
                                                        <ItemTemplate>
                                                            <asp:Literal ID="Ltrl_DomainName" runat="server" Text='<%# Eval("DomainName")%>'></asp:Literal>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText='<%$ Resources:Content,GN000171%>' HeaderStyle-HorizontalAlign="Center" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                        <ItemTemplate>
                                                            <asp:Literal ID="Ltrl_IsDefaultDomain" runat="server"
                                                                Text='<%# IIf(Convert.ToBoolean(Eval("IsDefault")), Resources.Content.GN0000004, Resources.Content.GN0000005)%>' />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText='<%$ Resources:Content,AuthenticationType%>'
                                                        HeaderStyle-HorizontalAlign="Center"
                                                        SortExpression="AuthenticationType" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                        <ItemTemplate>
                                                            <asp:Literal ID="Ltrl_AuthenticationType" runat="server" Text='<%# Eval("AuthenticationType")%>'></asp:Literal>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText='<%$ Resources:Content,String385%>'
                                                        HeaderStyle-HorizontalAlign="Center"
                                                        SortExpression="Status" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                        <ItemTemplate>
                                                            <asp:Literal ID="Ltrl_Status" runat="server" Text='<%# Eval("Status")%>'></asp:Literal>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText='<%$ Resources:Content,GN0000360%>' HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="Lbtn_SetDefault" Text='<%$ Resources:Content,GN000166%>' CssClass="btn btn-primary waves-effect btnAction"
                                                                CommandName="SetDefault" CommandArgument='<%# Eval("DomainId") %>' runat="server"
                                                                Enabled='<%# Not Eval("IsDefault") %>' />
                                                            <asp:LinkButton ID="Lbtn_Delete" Text='<%$ Resources:Content,GN0000377%>' CssClass="btn btn-primary waves-effect btnAction"
                                                                CommandName="DeleteDomain" runat="server" CommandArgument='<%# Eval("DomainId") %>'
                                                                Visible='<%# Not Eval("IsInitial") And Not Eval("IsDefault")%>' />
                                                            <ajax:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,GN000200%>"
                                                                TargetControlID="Lbtn_Delete" runat="server" Enabled='<%# Not Eval("IsInitial")%>'>
                                                            </ajax:ConfirmButtonExtender>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                                <%--PagerTemplate Start--%>
                                                <PagerTemplate>
                                                    <UC:Pager ID="Pager1" runat="server" />
                                                </PagerTemplate>
                                                <%--PagerTemplate End--%>
                                            </asp:GridView>
                                        </div>
                                    </div>


                                    <div class="row">
                                        <div class="col-xs-12">
                                            <div class="card">
                                                <div class="header">
                                                    <h3>
                                                        <%= Resources.Content.GN00001508%>                                                                                                             <span class="pull-right" style="margin-top: -9px;">
                                                            <asp:LinkButton ID="Lbtn_UpdateDomainJobs" runat="server" CssClass="btn btn-primary waves-effect" Text="<%$ Resources:Content, StrRefresh%>">
                                                            </asp:LinkButton>
                                                        </span>
                                                    </h3>
                                                </div>
                                                <div class="body">
                                                    <asp:GridView CssClass="table table-bordered table-striped table-hover" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                                                        ID="GV_DomainJobs" AllowPaging="false" AllowSorting="false" runat="server" AutoGenerateColumns="false">
                                                        <Columns>
                                                            <asp:TemplateField HeaderText='<%$ Resources:Content,String385%>' HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                                <ItemTemplate>
                                                                    <asp:LinkButton ID="LB_Status" CommandName="statusload" runat="server"></asp:LinkButton>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText='<%$ Resources:Content,DGN1110209%>' HeaderStyle-CssClass="col-xs-3 break-word-all" ItemStyle-CssClass="col-xs-3 break-word-all">
                                                                <ItemTemplate>
                                                                    <div id="Div_Command" runat="server">
                                                                    </div>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField SortExpression="TimeStampEntered"
                                                                HeaderText='<%$ Resources:Content,DGN1110210%>' HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                                <ItemTemplate>
                                                                    <div id="Div_TimeCreated" runat="server">
                                                                    </div>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField SortExpression="TriesCount" HeaderText="<%$ Resources:Content,GN0000813%>"
                                                                HeaderStyle-CssClass="col-xs-1 hidden-xs" ItemStyle-CssClass="col-xs-1 hidden-xs">
                                                                <ItemTemplate>
                                                                    <div id="Div_Tries" runat="server"></div>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField SortExpression="LastTryTimeStamp"
                                                                HeaderText="<%$ Resources:Content,DGN1110212%>" HeaderStyle-CssClass="col-xs-1 hidden-xs" ItemStyle-CssClass="col-xs-1 hidden-xs">
                                                                <ItemTemplate>
                                                                    <div id="Div_LastTry" runat="server">
                                                                    </div>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText='<%$ Resources:Content,FAM00133%>'
                                                                HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="Lb_EntityType" runat="server" />
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText='<%$ Resources:Content,GN0000839%>'
                                                                HeaderStyle-CssClass="col-xs-1 break-word-all" ItemStyle-CssClass="col-xs-1 break-word-all">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="Lbl_AddedBy" runat="server" />
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <%--<asp:TemplateField HeaderText="<%$ Resources:Content,GN0000275%>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                                <ItemTemplate>
                                                                    <asp:LinkButton class="btn btn-primary waves-effect" ID="LB_JobDetail" runat="server"
                                                                        CommandName="JobDetail" Text='<%$ Resources:Content,Detail%>'></asp:LinkButton>

                                                                </ItemTemplate>
                                                            </asp:TemplateField>--%>
                                                        </Columns>
                                                    </asp:GridView>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                    <asp:Button ID="Btn_DomainJobLogsDummy" runat="server" Style="display: none" Text='<%$ Resources:Content,GN0000575%>' />
                                    <asp:Panel ID="Pnl_DomainJobLogs" CssClass="width-modal-popup-auto" Style="display: none;" runat="server">

                                        <div class="col-xs-12">
                                            <div class="card">
                                                <div class="header container-fluid">
                                                    <span>
                                                        <button type="button" class="close" onclick="$find('<%=MPE_DomainJobLogs.ClientID%>').hide();">&times;</button>
                                                    </span>
                                                </div>
                                                <div class="body">
                                                    <div class="row">
                                                        <div class="col-xs-12">
                                                            <asp:GridView ID="GV_DomainJobLogs" runat="server" CssClass="table table-hover table-listing table-responsive table-bordered" AutoGenerateColumns="false"
                                                                EmptyDataText="<%$ Resources:Content,GN00001375%>">
                                                                <Columns>
                                                                    <asp:TemplateField HeaderText='<%$ Resources:Content,Dev676%>' HeaderStyle-CssClass="col-xs-3">
                                                                        <ItemTemplate>
                                                                            <%--<div style="padding-top: 10px; padding-left: 10px; width: 600px; display: block">--%>
                                                                            <asp:Label ID="Ltrl_try" runat="server" Text="<%$ Resources:Content,SMI0372%>" CssClass="font-color-00D5FF" />
                                                                            <asp:Label runat="server" ID="LblTries" Text='<%# Convert.ToInt32(DataBinder.Eval(Container, "DataItemIndex")) + 1 %>'
                                                                                ForeColor="#00D5FF">
                                                                            </asp:Label>
                                                                            &nbsp;
                        <asp:Label ID="Ltrl_date" runat="server" Text="<%$ Resources:Content,SMI0373%>" CssClass="font-color-00D5FF" />
                                                                            <asp:Label runat="server" ID="LblDate" ForeColor="#00D5FF"></asp:Label>
                                                                            <%--Text='<%# DataBinder.Eval(Container,"TimeStamp") %>'--%>
                                                                            <%--</div>--%>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText='<%$ Resources:Content,Dev675%>' HeaderStyle-CssClass="col-xs-9">
                                                                        <ItemTemplate>
                                                                            <div runat="server" id="AccordianMesg">
                                                                            </div>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                </Columns>

                                                            </asp:GridView>
                                                        </div>
                                                    </div>

                                                    <div class="row">
                                                        <div class="col-xs-12">
                                                            <asp:Button class="btn btn-primary waves-effect" ID="Btn_CloseDomainJobLogs" runat="server" Text='<%$ Resources:Content,GN000150%>' />
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>

                                    </asp:Panel>
                                    <ajax:ModalPopupExtender runat="server" ID="MPE_DomainJobLogs" BackgroundCssClass="modalBackground"
                                        DropShadow="false" CancelControlID="Btn_CloseDomainJobLogs" PopupControlID="Pnl_DomainJobLogs"
                                        TargetControlID="Btn_DomainJobLogsDummy" />

                                    <asp:Button ID="Btn_DomainJobDetailDummy" runat="server" Style="display: none" Text='<%$ Resources:Content,JobDetails%>' />
                                    <asp:Panel ID="Pnl_DomainJobDetail" CssClass="width-modal-popup-auto" Style="display: none;" runat="server">

                                        <div class="col-xs-12">
                                            <div class="card">
                                                <div class="header container-fluid">
                                                    <span>
                                                        <button type="button" class="close" onclick="$find('<%=MPE_DomainJobDetail.ClientID%>').hide();">&times;</button>
                                                    </span>
                                                </div>
                                                <div class="body">
                                                    <div class="row">
                                                        <div class="col-xs-2 col-xs-12">
                                                            <b>
                                                                <asp:Label ID="Lbl_JobLabel" runat="server" Text='<%$ Resources:Content,JobDetails%>'></asp:Label>:</b>
                                                        </div>
                                                        <div class="col-xs-10 col-xs-12">
                                                            <pre><div ID="Lbl_JobDetail" runat="server" ></div></pre>
                                                        </div>
                                                    </div>
                                                    <div class="row">
                                                        <div class="col-xs-12">
                                                            <asp:Button class="btn btn-primary waves-effect" ID="Btn_CloseDomainJobDetail" runat="server" Text='<%$ Resources:Content,GN000150%>' />
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>

                                    </asp:Panel>
                                    <ajax:ModalPopupExtender runat="server" ID="MPE_DomainJobDetail" BackgroundCssClass="modalBackground"
                                        DropShadow="false" CancelControlID="Btn_CloseDomainJobDetail" PopupControlID="Pnl_DomainJobDetail"
                                        TargetControlID="Btn_DomainJobDetailDummy" />
                                </asp:Panel>
                            </asp:Panel>
                        </ContentTemplate>
                    </ajax:TabPanel>

                    <%--3--%>
                    <ajax:TabPanel ID="Tab_Users" runat="server" HeaderText='<%$ Resources:Content,GN0000636 %>'>
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab3" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent2" runat="server" Visible="false">
                                <asp:Panel ID="Pnl_UsersListing" runat="server">


                                    <div class="row Div_OpsRow" id="Div_OpsRow" runat="server">
                                        <div class="col-xs-12">
                                            <div class="card">
                                                <div class="header">
                                                    <h3>
                                                        <%= Resources.Content.GN00001320%>                                                                                                                                 
                                                    </h3>
                                                </div>
                                                <div class="body">
                                                    <div class="clearfix">
                                                        <asp:Button ID="Btn_AddNewUser" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,DEV1101%>" />
                                                        <asp:Button ID="Btn_AddBulkUser" runat="server" class="btn btn-primary waves-effect btnAction" Text='<%$ Resources:Content,Str00089%>' />
                                                        <asp:Button ID="Btn_UserGroupOperations" runat="server" CssClass="btn btn-primary waves-effect btnAction" Text='<%$ Resources:Content,String7772%>' />
                                                        <asp:Button ID="Btn_SyncUsersWithO365" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,SyncAllUsersWithMicrosoftCSP %>" />
                                                        <asp:Button ID="Btn_DeleteSelectedUsers" runat="server" CssClass="btn btn-primary waves-effect btnAction" Text='<%$ Resources:Content,L00149 %>'
                                                            Custom1="Custom" Style="display: none" />
                                                        <ajax:ConfirmButtonExtender ID="CBE_DeleteSelected" runat="server" TargetControlID="Btn_DeleteSelectedUsers"
                                                            ConfirmText='<%$ Resources:Content,DGN1119974%>' />

                                                        <asp:Button ID="Btn_RemoveAndDeleteAllADUser" runat="server" Custom1="Custom" Style="display: none"
                                                            Text="<%$ Resources:Content,RemoveAndDeleteADUserText%>"
                                                            CssClass="btn btn-primary waves-effect btnAction" />
                                                        <ajax:ConfirmButtonExtender ID="CBE_RemoveAndDeleteAllADUser" runat="server" TargetControlID="Btn_RemoveAndDeleteAllADUser" />

                                                        <asp:Button ID="Btn_RestoreSelectedUsers" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,RestoreSelected %>"
                                                            Custom1="Custom" Style="display: none;" Visible="false" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>



                                    <asp:Panel ID="Pnl_Search" runat="server" DefaultButton="Btn_SearchUser">

                                        <div class="panel-group search-panel" id="AS_O365User" role="tablist" aria-multiselectable="true">
                                            <div role="tab" id="SH_O365User">
                                                <div class="card">
                                                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_O365User" href="#<%= CSB_O365User.ClientID%>" aria-expanded="true" aria-controls="SH_O365User">
                                                        <h3>
                                                            <%= Resources.Content.GN0000395%>
                                                        </h3>
                                                    </div>
                                                    <div id="CSB_O365User" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_O365User" aria-expanded="false">
                                                        <div class="row">

                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_SearchUserDisplayName" runat="server" MaxLength="99"></asp:TextBox>
                                                                        <asp:Label ID="Ltrl_SearchUserName" runat="server" CssClass="form-label" Text="<%$ Resources:Content,GN00001113%>"></asp:Label>
                                                                    </div>
                                                                </div>
                                                            </div>

                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">

                                                                        <asp:TextBox ID="TxBx_SearchEmail" runat="server" MaxLength="99"></asp:TextBox>
                                                                        <asp:Label ID="Ltrl_SearchEmail" runat="server" CssClass="form-label" Text="<%$ Resources:Content,GN0000652%>"></asp:Label>
                                                                    </div>
                                                                </div>
                                                            </div>

                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_SearchUPN" runat="server" MaxLength="99"></asp:TextBox>
                                                                        <asp:Label ID="Ltrl_SearchUPN" runat="server" class="form-label" Text="<%$ Resources:Content,DEV1042%>"></asp:Label>
                                                                    </div>
                                                                </div>
                                                            </div>

                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_SearchUserRole" runat="server" MaxLength="99"></asp:TextBox>
                                                                        <asp:Label ID="Ltrl_SearchUserRole" runat="server" class="form-label" Text="<%$ Resources:Content,DGN1110499%>"></asp:Label>
                                                                    </div>
                                                                </div>
                                                            </div>

                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <asp:DropDownList ID="Ddl_SearchSignInStatus" runat="server">
                                                                        <asp:ListItem Text='<%$ Resources:Content,strSelectSigninStatus %>' Value="-1" Selected="true"></asp:ListItem>
                                                                        <asp:ListItem Text='<%$ Resources:Content,String167 %>' Value="0"></asp:ListItem>
                                                                        <asp:ListItem Text='<%$ Resources:Content,SPT002527 %>' Value="1"></asp:ListItem>
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>

                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <asp:DropDownList ID="Ddl_SearchLicenseStatus" runat="server" AppendDataBoundItems="true">
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>

                                                            <%-- <div class="col-md-3 col-sm-6 col-xs-12">
																<div class="form-group form-float">
																	<asp:CheckBox ID="Cb_AdvancedSearch" runat="server" Checked="false" Text="<%$ Resources:Content,AdvancedSearch %>" />
																</div>
															</div>--%>

                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_SearchAddress" runat="server" MaxLength="200"></asp:TextBox>
                                                                        <asp:Label ID="Label20" runat="server" class="form-label" EnableViewState="false" Text="<%$ Resources:Content,strAddress%>"></asp:Label>
                                                                    </div>
                                                                </div>
                                                            </div>

                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_SearchCity" runat="server" MaxLength="70"></asp:TextBox>
                                                                        <asp:Label ID="Label21" runat="server" class="form-label" EnableViewState="false" Text="<%$ Resources:Content,GN0000880%>"></asp:Label>
                                                                    </div>
                                                                </div>
                                                            </div>

                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_SearchState" runat="server" MaxLength="70"></asp:TextBox>
                                                                        <asp:Label ID="Label22" runat="server" class="form-label" EnableViewState="false" Text="<%$ Resources:Content,DEV1130%>"></asp:Label>
                                                                    </div>
                                                                </div>
                                                            </div>

                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_SearchZip" runat="server" MaxLength="40"></asp:TextBox>
                                                                        <asp:Label ID="Label1" runat="server" class="form-label" EnableViewState="false" Text="<%$ Resources:Content,GN00001081%>"></asp:Label>
                                                                    </div>
                                                                </div>
                                                            </div>

                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_SearchJobTitle" runat="server" MaxLength="80"></asp:TextBox>
                                                                        <asp:Label ID="Label26" runat="server" class="form-label" EnableViewState="false" Text="<%$ Resources:Content,DGN1110358%>"></asp:Label>
                                                                    </div>
                                                                </div>
                                                            </div>

                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_SearchCountryRegion" runat="server" MaxLength="100"></asp:TextBox>
                                                                        <asp:Label ID="Label19" runat="server" class="form-label" EnableViewState="false" Text="<%$ Resources:Content,FAM0058%>"></asp:Label>
                                                                    </div>
                                                                </div>
                                                            </div>

                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_SearchDepartment" runat="server" MaxLength="80"></asp:TextBox>
                                                                        <asp:Label ID="Label28" runat="server" class="form-label" EnableViewState="false" Text="<%$ Resources:Content,GN0000374%>"></asp:Label>
                                                                    </div>
                                                                </div>
                                                            </div>

                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_SearchOffice" runat="server" MaxLength="80"></asp:TextBox>
                                                                        <asp:Label ID="Label29" runat="server" class="form-label" EnableViewState="false" Text="<%$ Resources:Content,DGN1110359%>"></asp:Label>
                                                                    </div>
                                                                </div>
                                                            </div>

                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <%-- <asp:Label ID="Label6" runat="server" EnableViewState="false" Text="<%$ Resources:Content,%>"></asp:Label>--%>
                                                                    <asp:DropDownList ID="Ddl_SearchUsageLocation" runat="server"></asp:DropDownList>
                                                                </div>
                                                            </div>


                                                        </div>

                                                        <div class="row">
                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <asp:CheckBox ID="CB_ShowDeleted" runat="server" Text="<%$ Resources:Content,ShowDeleted %>" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <asp:Button ID="Btn_SearchUser" CssClass="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,GN0000391%>" />
                                                                    <asp:Button ID="Btn_ClearUser" Visible="false" CssClass="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,String289 %>" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <%--<div class="row" id="Tbl_AdvancedSearch" runat="server" style="display: none;">

																												</div>--%>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>


                                    </asp:Panel>

                                    <div class="row">
                                        <div class="col-xs-12">
                                            <asp:GridView CssClass="table table-bordered table-striped table-hover" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                                                ID="GV_Users" AllowPaging="True" runat="server" AutoGenerateColumns="false" AllowSorting='true'
                                                DataKeyNames="CustomerId,CompanyId,user">

                                                <Columns>
                                                    <asp:TemplateField SortExpression="DisplayName" HeaderStyle-CssClass="col-sm-5">
                                                        <HeaderTemplate>
                                                            <asp:CheckBox runat="server" ID="ChkBx_All" onclick="SetCheckedHeader(this.checked, this, 'All');" />
                                                            <asp:Literal ID="Lt_User" runat="server" EnableViewState="false" Text="<%$ Resources:Content,strUser%>"></asp:Literal>
                                                        </HeaderTemplate>
                                                        <ItemTemplate>
                                                            <asp:CheckBox Text=" " ID="ChkBx_All" runat="server" onclick="SetCheckedHeader(this.checked, this,'1');" />
                                                            <asp:LinkButton ID="LB_Name" Text='<%# Eval("user.DisplayName").ToString() + " - " + Eval("user.UserPrincipalName") %>' runat="server" CommandName="Edit_User" CommandArgument='<%#Eval("user.ObjectId")%>'></asp:LinkButton>
                                                            <%--<%# Eval("user.DisplayName") %> - <%#Eval("user.UserPrincipalName")%>--%>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="<%$ Resources:Content,DGN1110431%>" HeaderStyle-CssClass="col-xs-6" ItemStyle-CssClass="col-xs-6">
                                                        <ItemTemplate>
                                                            <table class="table small">
                                                                <tr class="row">
                                                                    <td class="row-label col-xs-3"><%= Resources.Content.SignInStatus%>:</td>
                                                                    <td class="col-xs-2">
                                                                        <asp:Label ID="lblSignInStatus" runat="server" Text='<%# IIf(Eval("user.BlockCredential"), Resources.Content.SPT002527, Resources.Content.String167)%>'></asp:Label>
                                                                    </td>
                                                                    <td class="row-label col-xs-2"><%= Resources.Content.Licenses%>:</td>
                                                                    <td class="col-xs-5">
                                                                        <div id="Div_Licenses" runat="server" />
                                                                        <div id="Div_expandLicenses" runat="server" class="cursor-pointer" />
                                                                        <div id="HF_DataLicenses" runat="server" style="display: none;" />
                                                                        <div id="HF_FullDataLicenses" runat="server" style="display: none;" />
                                                                        <asp:HiddenField ID="HF_OpLicenses" runat="server" />
                                                                    </td>
                                                                </tr>
                                                                <tr class="row">
                                                                    <td class="row-label col-xs-3"><%= Resources.Content.String385%>:</td>
                                                                    <td class="col-xs-2">
                                                                        <asp:HyperLink ID="LB_Status" runat="server" />
                                                                    </td>
                                                                    <td class="row-label col-xs-2"><%= Resources.Content.DGN1110499%>:</td>
                                                                    <td class="col-xs-5">
                                                                        <div id="Div_AssignedRoles" runat="server" />
                                                                        <div id="Div_expandAssignedRoles" runat="server" class="cursor-pointer" />
                                                                        <div id="HF_DataAssignedRoles" runat="server" style="display: none;" />
                                                                        <div id="HF_FullDataAssignedRoles" runat="server" style="display: none;" />
                                                                        <asp:HiddenField ID="HF_OpAssignedRoles" runat="server" />
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000360%> " HeaderStyle-CssClass="col-xs-1">
                                                        <ItemTemplate>
                                                            <ul class="option-menu">
                                                                <li class="dropdown">
                                                                    <a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
                                                                        <i class="material-icons">menu</i>
                                                                    </a>
                                                                    <ul class="dropdown-menu pull-right">
                                                                        <%-- <li>
                                                                            <asp:LinkButton ID="LB_Edit" CommandArgument='<%#Eval("user.ObjectId")%>'
                                                                                runat="server" Text="<%$ Resources:Content,GN0000276%>"
                                                                                CommandName="Edit_User" Visible="false" />
                                                                        </li>--%>
                                                                        <li>
                                                                            <asp:LinkButton ID="LB_Delete" CssClass="btnAction" runat="server" Text="<%$ Resources:Content,GN0000377%>"
                                                                                CommandName="DeleteUser" CommandArgument='<%# Eval("user.ObjectId") %>' />
                                                                            <ajax:ConfirmButtonExtender ID="CBE_Delete" ConfirmText="<%$ Resources:Content,DGN1119974%>"
                                                                                TargetControlID="LB_Delete" runat="server">
                                                                            </ajax:ConfirmButtonExtender>
                                                                        </li>
                                                                        <li>
                                                                            <asp:LinkButton ID="Lbtn_RemoveAndDeleteADUser" runat="server"
                                                                                Text="<%$ Resources:Content,RemoveAndDeleteADUserText%>" CommandName="RemoveAndDeleteADUser" CssClass="btnAction" />
                                                                            <ajax:ConfirmButtonExtender ID="CBE_RemoveAndDeleteADUser"
                                                                                ConfirmText='<%$ Resources:Content,RemoveAndDeleteADUserConfirmAlert %>'
                                                                                runat="server" TargetControlID="Lbtn_RemoveAndDeleteADUser">
                                                                            </ajax:ConfirmButtonExtender>
                                                                        </li>
                                                                        <li>
                                                                            <asp:LinkButton ID="Lbtn_Restore" CssClass="btnAction" runat="server" Text="<%$ Resources:Content,SMI0441 %>"
                                                                                Visible="false" CommandName="Restore" CommandArgument='<%# Eval("user.ObjectId")%>'>
                                                                            </asp:LinkButton>
                                                                        </li>
                                                                        <li>
                                                                            <asp:LinkButton ID="Lbtn_ConfirmDelete" runat="server" Text="<%$ Resources:Content,GN0000377%>"
                                                                                CommandName="ConfirmDelete" CommandArgument='<%#Eval("user.ObjectId")%>'
                                                                                Visible="false" CssClass="btnAction" />
                                                                            <ajax:ConfirmButtonExtender ID="CBE_ConfirmDelete" ConfirmText="<%$ Resources:Content,DGN1119974%>"
                                                                                TargetControlID="Lbtn_ConfirmDelete" runat="server" Enabled="false">
                                                                            </ajax:ConfirmButtonExtender>
                                                                        </li>
                                                                    </ul>
                                                                </li>
                                                            </ul>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                                <%--PagerTemplate Start--%>
                                                <PagerTemplate>
                                                    <UC:Pager ID="Pager1" runat="server" />
                                                </PagerTemplate>
                                                <%--PagerTemplate End--%>
                                            </asp:GridView>
                                        </div>
                                    </div>

                                    <asp:Button ID="Btn_RestoreDummy" class="btn btn-primary waves-effect" runat="server" Style="display: none" />
                                    <ajax:ModalPopupExtender ID="MPE_RestoreUser" runat="server" DropShadow="false" OkControlID="Btn_CancelRestore"
                                        CancelControlID="Btn_CancelRestore" BackgroundCssClass="modalBackground"
                                        PopupControlID="Pnl_RestoreUser" TargetControlID="Btn_RestoreDummy" Enabled="false">
                                    </ajax:ModalPopupExtender>
                                    <asp:Panel ID="Pnl_RestoreUser" runat="server" DefaultButton="Btn_RestoreUser" Visible="false" Width="550px">
                                        <asp:HiddenField ID="HF_RestoreUserId" runat="server" />

                                        <div class="row">
                                            <div class="col-xs-12">
                                                <div class="card">
                                                    <div class="header">
                                                        <h3>
                                                            <asp:Literal ID="Ltrl_RestoreUserDetail" runat="server" Text="<%$ Resources:Content,RestoreUser%>" EnableViewState="false" />
                                                        </h3>
                                                    </div>
                                                    <div class="body">

                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:Literal ID="Ltrl_AutoReconcileProxyConflicts" runat="server" Text="<%$ Resources:Content,AutoReconcileProxyConflicts %>"></asp:Literal>:
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <asp:CheckBox ID="CB_AutoReconcileProxyConflicts" Text=" " runat="server" />
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <b>
                                                                    <asp:Literal ID="Ltrl_AutoReconcileHelpNote" runat="server" Text="<%$ Resources:Content,AutoReconcileHelpNote %>"></asp:Literal></b>
                                                            </div>
                                                        </div>

                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:Literal ID="Ltrl_RenewUPN" runat="server" Text="<%$ Resources:Content,NewUserPrincipalName  %>"></asp:Literal>:
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_NewUserPrincipalName" runat="server" />
                                                                    </div>
                                                                </div>
                                                                <%-- <asp:RegularExpressionValidator ID="REV__NewUserPrincipalName" runat="server" ControlToValidate="TxBx_NewUserPrincipalName"
                                                                    Display="None"
                                                                    ErrorMessage="<%$ Resources:Content,InvalidUPN %>" SetFocusOnError="true" ValidationExpression="<%$ Resources:MPRegex,EmailAddress%>"
                                                                    ValidationGroup="RestoreUser">
                                                                </asp:RegularExpressionValidator>--%>
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <b>
                                                                    <asp:Literal ID="Ltrl_NewUPNHelpNote" runat="server" Text="<%$ Resources:Content,NewUPNHelpNote %>"></asp:Literal></b>
                                                            </div>
                                                        </div>

                                                        <div class="row">
                                                            <div class="col-xs-12">
                                                                <asp:Button ID="Btn_RestoreUser" runat="server" Text="<%$ Resources:Content,SMI0441 %>"
                                                                    class="btn btn-primary waves-effect" CausesValidation="true" ValidationGroup="RestoreUser" />

                                                                <asp:Button ID="Btn_CancelRestore" runat="server" Text="<%$ Resources:Content,GN0000572 %>"
                                                                    class="btn btn-primary waves-effect" CausesValidation="false" />

                                                                <asp:ValidationSummary ID="VS_RestoreUser" runat="server" DisplayMode="List" ShowMessageBox="true"
                                                                    ShowSummary="false" ValidationGroup="RestoreUser" />
                                                            </div>
                                                        </div>

                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </asp:Panel>
                                </asp:Panel>
                            </asp:Panel>
                        </ContentTemplate>
                    </ajax:TabPanel>

                    <%--4--%>
                    <ajax:TabPanel ID="Tab_SharedMailboxes" runat="server" HeaderText='<%$ Resources:Content,FAM00111 %>'>
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab4" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent3" runat="server" Visible="false">
                                <asp:Panel ID='Pnl_SharedMailboxListing' runat="server" Visible='true'>
                                    <%--Add Button--%>

                                    <div class="row Div_OpsRow" id="Div_OpsRow2" runat="server">
                                        <div class="col-xs-12">
                                            <div class="card">
                                                <div class="header">
                                                    <h3>
                                                        <%= Resources.Content.GN00001320%>                                                                                                                                 
                                                    </h3>
                                                </div>
                                                <div class="body">
                                                    <div class="clearfix">
                                                        <asp:Button ID="Btn_AddSharedMailbox" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,DGN1110533%>" />
                                                        <asp:Button ID="Btn_AddSharedMailboxSyncJob" class="btn btn-primary waves-effect" runat="server"
                                                            Text="<%$ Resources:Content,SyncWithO365 %>" />
                                                        <asp:Button ID="Btn_AddBulkSharedMailboxes" runat="server" Text="<%$ Resources:Content,E0090%>"
                                                            class="btn btn-primary waves-effect btnAction" Style="display: none" />
                                                        <asp:Button ID="Btn_DisableAllSharedMailboxes" runat="server" Custom1="Custom" Style="display: none"
                                                            Text="<%$ Resources:Content,GN00001025%>" class="btn btn-primary waves-effect btnAction" Visible="false" />
                                                        <asp:Button ID="Btn_EnableAllSharedMailboxes" runat="server" Custom1="Custom" Style="display: none"
                                                            Text="<%$ Resources:Content,GN00001024%>" class="btn btn-primary waves-effect btnAction" Visible="false" />
                                                        <asp:Button ID="Btn_RemoveAllSharedMailboxes" runat="server" Custom1="Custom" Style="display: none"
                                                            Text="<%$ Resources:Content,DeleteSelected%>" class="btn btn-primary waves-effect btnAction" />
                                                        <ajax:ConfirmButtonExtender ID="CBE_Btn_RemoveAllSharedMailboxes" runat="server"
                                                            TargetControlID="Btn_RemoveAllSharedMailboxes"
                                                            ConfirmText="<%$ Resources:Content,GN000200 %>" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                    <%--Search Option--%>
                                    <asp:Panel ID="Pnl_Filter" runat="server" DefaultButton="Btn_SearchSharedMB">

                                        <div class="row">
                                            <div class="panel-group search-panel" id="AS_O365ShareMB" role="tablist" aria-multiselectable="true">
                                                <div class="col-xs-12" role="tab" id="SH_O365ShareMB">
                                                    <div class="card">
                                                        <div class="header" role="button" data-toggle="collapse" data-parent="#AS_O365ShareMB" href="#<%= CSB_O365ShareMB.ClientID%>" aria-expanded="true" aria-controls="SH_O365ShareMB">
                                                            <h3>
                                                                <%= Resources.Content.GN0000395%>
                                                            </h3>
                                                        </div>
                                                        <div id="CSB_O365ShareMB" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_O365ShareMB" aria-expanded="false">
                                                            <div class="row">

                                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                                    <div class="form-group form-float">
                                                                        <div class="form-line">
                                                                            <asp:TextBox ID="TxBx_DisplayNameShared" runat="server" MaxLength="200"></asp:TextBox>

                                                                            <asp:Label ID="Lbl_DisplayName" runat="server" class="form-label" Text="<%$ Resources:Content,GN00001113%>"></asp:Label>
                                                                        </div>
                                                                    </div>
                                                                </div>

                                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                                    <div class="form-group form-float">
                                                                        <div class="form-line">
                                                                            <asp:TextBox ID="TxBx_SearchPrimaryEmail" runat="server" MaxLength="200"></asp:TextBox>

                                                                            <asp:Label ID="Lbl_Email" runat="server" class="form-label" EnableViewState="false" Text="<%$ Resources:Content,GN0000652%>"></asp:Label>
                                                                        </div>
                                                                    </div>
                                                                </div>

                                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                                    <div class="form-group form-float">
                                                                        <asp:DropDownList ID="Ddl_SearchSharedLicenseStatus" runat="server" AppendDataBoundItems="true"></asp:DropDownList>
                                                                        <%-- <asp:Literal ID="Lbl_LicStatusShared" runat="server" Text='<%$ Resources:Content,LicenseStatus %>'></asp:Literal>--%>
                                                                    </div>
                                                                </div>


                                                            </div>
                                                            <div class="row">
                                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                                    <div class="form-group form-float">
                                                                        <asp:Button ID="Btn_SearchSharedMB" class="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,GN0000391%>" />
                                                                        <asp:Button ID="Btn_ClearSearchSharedMB" class="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,String289%>" Visible="false" />
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </asp:Panel>
                                    <%--Listing--%>
                                    <asp:GridView CssClass="table table-bordered table-striped table-hover" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                                        ID="GV_SharedMailBoxes" AllowPaging="True" AllowSorting="true" runat="server" AutoGenerateColumns="false">

                                        <Columns>
                                            <asp:TemplateField HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                <HeaderTemplate>
                                                    <%--Text='<%$ Resources:Content,GN0000180 %>'--%>
                                                    <%--<input runat="server" id="ChkBx_All" onclick="SetCheckedHeader(this.checked, this, 'All');"
														type="checkbox" name="ChkBx_All" value=" " />--%>
                                                    <span class="option-menu">
                                                        <asp:CheckBox ID="ChkBx_All" runat="server" Text=" " onclick="SetCheckedHeader(this.checked, this, 'All');" />
                                                    </span>

                                                </HeaderTemplate>
                                                <ItemTemplate>
                                                    <span class="option-menu">
                                                        <asp:CheckBox ID="ChkBx_All" runat="server" Text=" " onclick="SetCheckedHeader(this.checked, this,'1');" />
                                                    </span>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="<%$ Resources:Content,GN00001113%>"
                                                HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2" SortExpression="DisplayName">
                                                <ItemTemplate>
                                                    <asp:Label ID="LB_Name" runat="server"></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="<%$ Resources:Content,DGN1110531%>"
                                                HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2" SortExpression="PrimaryEmail">
                                                <ItemTemplate>
                                                    <asp:Label ID="LB_PrimaryEmail" runat="server"></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="<%$ Resources:Content,Licenses%>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1"
                                                SortExpression='Licenses'>
                                                <ItemTemplate>
                                                    <%# ConvertCollectionToCSVString(Eval("user.Licenses"))%>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <%--<asp:TemplateField HeaderText="<%$ Resources:Content,SMI0492%>"
												HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1" SortExpression="Alias">
												<ItemTemplate>
													<asp:Label ID="LB_Alias" runat="server"></asp:Label>
												</ItemTemplate>
											</asp:TemplateField>
											<asp:TemplateField HeaderText="<%$ Resources:Content,DGN1110527%>"
												HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
												<ItemTemplate>
												</ItemTemplate>
											</asp:TemplateField>--%>
                                            <asp:TemplateField HeaderText="Status" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                <ItemTemplate>
                                                    <asp:HyperLink ID="LB_Status" 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_EditMailbox" runat="server" CommandName="Edit_Mailbox" class="btn btn-primary waves-effect"
                                                        Text="<%$ Resources:Content,GN0000276%>"></asp:LinkButton>
                                                    <asp:LinkButton ID="LB_Delete" runat="server" Text="<%$ Resources:Content,GN0000377%>"
                                                        CommandName="Delete_Mailbox" class="btn btn-primary waves-effect btnAction"></asp:LinkButton>
                                                    <ajax:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,CBE001%>"
                                                        TargetControlID="LB_Delete" runat="server">
                                                    </ajax:ConfirmButtonExtender>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                        <%--PagerTemplate Start--%>
                                        <PagerTemplate>
                                            <UC:Pager ID="Pager3" runat="server" />
                                        </PagerTemplate>
                                        <%--PagerTemplate End--%>
                                    </asp:GridView>
                                </asp:Panel>
                            </asp:Panel>

                        </ContentTemplate>
                    </ajax:TabPanel>

                    <%--5--%>
                    <ajax:TabPanel ID="Tab_ResourceMailboxes" runat="server" HeaderText='<%$ Resources:Content,Exch00156 %>'>
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab5" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent4" runat="server" Visible="false">
                                <asp:Panel ID='Pnl_ResourceMailboxListing' runat="server" Visible='true'>
                                    <%--Add Button--%>
                                    <div class="row Div_OpsRow" id="Div_OpsRow3" runat="server">
                                        <div class="col-xs-12">
                                            <div class="row">
                                                <div class="col-xs-12">
                                                    <div class="card">
                                                        <div class="header">
                                                            <h3>
                                                                <%= Resources.Content.GN00001320%>                                                                                                                                 
                                                            </h3>
                                                        </div>
                                                        <div class="body">
                                                            <div class="clearfix">
                                                                <ul class="option-menu option-menu-Width-Inherit">
                                                                    <li class="dropdown">
                                                                        <a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">

                                                                            <asp:Button ID="Btn_AddResourceMailbox" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,DGN1110533%>" OnClientClick="return false;" />

                                                                        </a>
                                                                        <ul class="dropdown-menu">
                                                                            <li>
                                                                                <asp:LinkButton ID="Lbtn_AddRoomMailbox" runat="server" Text="<%$Resources:Content,DGN1110619 %>"
                                                                                    SkinID="linkButtonplus" CssClass="btnAction"></asp:LinkButton>
                                                                            </li>
                                                                            <li>
                                                                                <asp:LinkButton ID="Lbtn_AddEquipMailbox" runat="server" Text="<%$Resources:Content,DGN1110620 %>" SkinID="linkButtonplus" CssClass="btnAction"></asp:LinkButton>

                                                                            </li>
                                                                        </ul>
                                                                    </li>
                                                                </ul>

                                                                <asp:Button ID="Btn_AddResourceMailboxSyncJob" class="btn btn-primary waves-effect" runat="server"
                                                                    Text="<%$ Resources:Content,SyncWithO365 %>" />
                                                                <asp:Button ID="Btn_AddBulkResourceMailboxes" runat="server" Text="<%$ Resources:Content,E0090%>"
                                                                    class="btn btn-primary waves-effect btnAction" Style="display: none" />
                                                                <asp:Button ID="Btn_DisableAllResourceMailboxes" runat="server" Custom1="Custom"
                                                                    Style="display: none"
                                                                    Text="<%$ Resources:Content,GN00001025%>" class="btn btn-primary waves-effect btnAction" Visible="false" />
                                                                <asp:Button ID="Btn_EnableAllResourceMailboxes" runat="server" Custom1="Custom" Style="display: none"
                                                                    Text="<%$ Resources:Content,GN00001024%>" class="btn btn-primary waves-effect btnAction" Visible="false" />
                                                                <asp:Button ID="Btn_RemoveAllResourceMailboxes" runat="server" Custom1="Custom" Style="display: none"
                                                                    Text="<%$ Resources:Content,DeleteSelected%>" class="btn btn-primary waves-effect btnAction" />
                                                                <ajax:ConfirmButtonExtender ID="CBE_Btn_RemoveAllResourceMailboxes" runat="server"
                                                                    TargetControlID="Btn_RemoveAllResourceMailboxes"
                                                                    ConfirmText="<%$ Resources:Content,GN000200 %>" />

                                                                <%-- <div id="Div_menu" runat="server" class="options">
																	<ajax:HoverMenuExtender ID="HME_options" TargetControlID="Btn_AddResourceMailbox"
																		PopupControlID="options_Menu" PopupPosition="Bottom" OffsetX="0" OffsetY="0"
																		PopDelay="50" runat="server">
																	</ajax:HoverMenuExtender>
																	<asp:Panel ID="options_Menu" runat="server" CssClass="clickto_optionsWrap width-120px"
																		Style="display: none;">
																		<ul>
																			<li>
																				<asp:LinkButton ID="Lbtn_AddRoomMailbox" runat="server" Text="<%$Resources:Content,DGN1110619 %>"
																					SkinID="linkButtonplus"></asp:LinkButton>
																			</li>
																			<li>
																				<asp:LinkButton ID="Lbtn_AddEquipMailbox" runat="server" Text="<%$Resources:Content,DGN1110620 %>" SkinID="linkButtonplus"></asp:LinkButton>

																			</li>
																		</ul>
																	</asp:Panel>
																</div>--%>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                    <%--Search Option--%>
                                    <asp:Panel ID="Panel2" runat="server" DefaultButton="Btn_SearchResourceMB">

                                        <div class="row">
                                            <div class="panel-group search-panel" id="AS_O365SearchResourceMB" role="tablist" aria-multiselectable="true">
                                                <div class="col-xs-12" role="tab" id="SH_O365SearchResourceMB">
                                                    <div class="card">
                                                        <div class="header" role="button" data-toggle="collapse" data-parent="#AS_O365SearchResourceMB" href="#<%= CSB_O365SearchResourceMB.ClientID%>" aria-expanded="true" aria-controls="SH_O365SearchResourceMB">
                                                            <h3>
                                                                <%= Resources.Content.GN0000395%>
                                                            </h3>
                                                        </div>
                                                        <div id="CSB_O365SearchResourceMB" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_O365SearchResourceMB" aria-expanded="false">
                                                            <div class="row">

                                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                                    <div class="form-group form-float">
                                                                        <div class="form-line">
                                                                            <asp:TextBox ID="TxBx_DisplayNameRes" runat="server" MaxLength="200"></asp:TextBox>
                                                                            <asp:Label ID="Lbl_displayNameRes" runat="server" class="form-label" Text="<%$ Resources:Content,GN00001113%>"></asp:Label>
                                                                        </div>
                                                                    </div>
                                                                </div>

                                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                                    <div class="form-group form-float">
                                                                        <div class="form-line">
                                                                            <asp:TextBox ID="TxBx_SearchResourceEmail" runat="server" MaxLength="200"></asp:TextBox>
                                                                            <asp:Label ID="Lbl_ResEmail" runat="server" class="form-label" EnableViewState="false" Text="<%$ Resources:Content,GN0000652%>"></asp:Label>
                                                                        </div>
                                                                    </div>
                                                                </div>

                                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                                    <div class="form-group">
                                                                        <%--<asp:Literal ID="Lbl_LicStatusRes" runat="server" Text='<%$ Resources:Content,LicenseStatus %>'></asp:Literal>--%>
                                                                        <asp:DropDownList ID="Ddl_SearchResourceLicenseStatus" runat="server" AppendDataBoundItems="true">
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>


                                                            </div>
                                                            <div class="row">
                                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                                    <div class="form-group form-float">
                                                                        <asp:Button ID="Btn_SearchResourceMB" class="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,GN0000391%>" />
                                                                        <asp:Button ID="Btn_ClearSearchResourceMB" class="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,String289%>" Visible="false" />
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </asp:Panel>

                                    <%--Listing--%>
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <asp:GridView CssClass="table table-bordered table-striped table-hover" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                                                ID="GV_ResourceMailBoxes" AllowPaging="True" AllowSorting="true" runat="server" AutoGenerateColumns="false">

                                                <Columns>
                                                    <asp:TemplateField HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                        <HeaderTemplate>
                                                            <%--Text='<%$ Resources:Content,GN0000180 %>'--%>
                                                            <%--<input runat="server" id="ChkBx_All" onclick="SetCheckedHeader(this.checked, this, 'All');"
																type="checkbox" name="ChkBx_All" value=" " />--%>
                                                            <span class="option-menu">
                                                                <asp:CheckBox runat="server" ID="ChkBx_All" Text=" " onclick="SetCheckedHeader(this.checked, this, 'All');" />
                                                            </span>
                                                        </HeaderTemplate>
                                                        <ItemTemplate>
                                                            <span class="option-menu">
                                                                <asp:CheckBox ID="ChkBx_All" runat="server" Text=" " onclick="SetCheckedHeader(this.checked, this,'1');" />
                                                            </span>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN00001113%>"
                                                        HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1" SortExpression="DisplayName">
                                                        <ItemTemplate>
                                                            <asp:Label ID="LB_Name" runat="server"></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="<%$ Resources:Content,DGN1110531%>"
                                                        HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2" SortExpression="PrimaryEmail">
                                                        <ItemTemplate>
                                                            <asp:Label ID="LB_PrimaryEmail" runat="server"></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="<%$ Resources:Content,DGN1110617%>"
                                                        HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2" SortExpression="MailboxType">
                                                        <ItemTemplate>
                                                            <asp:Label ID="LB_MailboxType" runat="server"></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="<%$ Resources:Content,Licenses%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2"
                                                        SortExpression='Licenses'>
                                                        <ItemTemplate>
                                                            <%# ConvertCollectionToCSVString(Eval("user.Licenses"))%>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <%-- <asp:TemplateField HeaderText="<%$ Resources:Content,SMI0492%>"
													   HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1" SortExpression="Alias">
														<ItemTemplate>
															<asp:Label ID="LB_Alias" runat="server"></asp:Label>
														</ItemTemplate>
													</asp:TemplateField>
													<asp:TemplateField HeaderText="<%$ Resources:Content,DGN1110527%>"
														HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
														<ItemTemplate>
														</ItemTemplate>
													</asp:TemplateField>--%>
                                                    <asp:TemplateField HeaderText="Status" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                        <ItemTemplate>
                                                            <asp:HyperLink ID="LB_Status" 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_EditMailbox" runat="server" CommandName="Edit_Mailbox" class="btn btn-primary waves-effect"
                                                                Text="<%$ Resources:Content,GN0000276%>"></asp:LinkButton>
                                                            <asp:LinkButton ID="LB_Delete" runat="server" Text="<%$ Resources:Content,GN0000377%>"
                                                                CommandName="Delete_Mailbox" class="btn btn-primary waves-effect btnAction"></asp:LinkButton>
                                                            <ajax:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,CBE001%>"
                                                                TargetControlID="LB_Delete" runat="server">
                                                            </ajax:ConfirmButtonExtender>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                                <%--PagerTemplate Start--%>
                                                <PagerTemplate>
                                                    <UC:Pager ID="Pager4" runat="server" />
                                                </PagerTemplate>
                                                <%--PagerTemplate End--%>
                                            </asp:GridView>
                                        </div>
                                    </div>
                                </asp:Panel>
                            </asp:Panel>
                        </ContentTemplate>
                    </ajax:TabPanel>

                    <%--6--%>
                    <ajax:TabPanel ID="Tab_Contacts" runat="server" HeaderText='<%$ Resources:Content,DGN1110407 %>'>
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab6" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent5" runat="server" Visible="false">
                                <UC:ContactDetail ID="ContactDetail" runat="server" />
                            </asp:Panel>
                        </ContentTemplate>
                    </ajax:TabPanel>

                    <%--7--%>
                    <ajax:TabPanel ID="Tab_Groups" runat="server" HeaderText="<%$ Resources:Content,TenantGroups %>">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab7" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent6" runat="server" Visible="false">
                                <UC:TenantGroups ID="TenantGroups1" runat="server"></UC:TenantGroups>
                            </asp:Panel>
                        </ContentTemplate>
                    </ajax:TabPanel>

                    <%--8--%>
                    <ajax:TabPanel ID="Tab_SharePoint" runat="server" HeaderText="<%$ Resources:Content,SharePoint%>">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab8" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent9" runat="server" Visible="false">
                                <div class="row" id="div_spsitelisting" runat="server">

                                    <div class="col-xs-12 Div_OpsRow" id="Tbl_AddSPSites" runat="server">
                                        <div class="card">
                                            <div class="header">
                                                <h3>
                                                    <%= Resources.Content.GN00001320%>      <%--Operations--%>                                                                                                                             
                                                </h3>
                                            </div>
                                            <div class="body">
                                                <asp:Button ID="Btn_AddNewSPSite" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content, AddSite %>" />
                                                <asp:Button ID="Btn_GroupOperations" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content, GroupOperations %>" />
                                                <asp:Button ID="Btn_SyncAllWithO365" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content, SyncAllWithO365 %>" />
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-xs-12">
                                        <div class="card">
                                            <div class="header">
                                                <h3>
                                                    <asp:Literal ID="Literal1" runat="Server" Text="<%$Resources:Content,SPSites%>"></asp:Literal>
                                                </h3>
                                            </div>
                                            <div class="body">
                                                <div class="row" id="Tr_SPSiteListing" runat="server">
                                                    <div class="panel-group search-panel" id="AS_SPSites" role="tablist" aria-multiselectable="true">
                                                        <div class="col-xs-12" role="tab" id="SH_SPSites">
                                                            <div class="card">
                                                                <div class="header" role="button" data-toggle="collapse" data-parent="#AS_SPSites" href="#<%= CSB_SPSites.ClientID%>" aria-expanded="true" aria-controls="SH_SPSites">
                                                                    <h3>
                                                                        <%= Resources.Content.GN0000395%>
                                                                    </h3>
                                                                </div>
                                                                <div id="CSB_SPSites" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_SPSites" aria-expanded="false">
                                                                    <div class="row">
                                                                        <div class="col-md-3 col-sm-6 col-xs-12">
                                                                            <div class="form-group form-float">
                                                                                <div class="form-line">
                                                                                    <asp:TextBox ID="TxBx_Title" runat="server"></asp:TextBox>
                                                                                    <asp:Label ID="Label2" runat="server" EnableViewState="false" Text="<%$ Resources:Content,Title%>" CssClass="form-label"></asp:Label>
                                                                                </div>
                                                                            </div>
                                                                        </div>
                                                                        <div class="col-md-3 col-sm-6 col-xs-12">
                                                                            <div class="form-group form-float">
                                                                                <div class="form-line">
                                                                                    <asp:TextBox ID="TxBx_Url" runat="server" MaxLength="200"></asp:TextBox>
                                                                                    <asp:Label ID="Label3" runat="server" EnableViewState="false" Text="<%$ Resources:Content,Url%>" CssClass="form-label"></asp:Label>
                                                                                </div>
                                                                            </div>
                                                                        </div>
                                                                        <div class="col-md-3 col-sm-6 col-xs-12">
                                                                            <div class="form-group form-float">
                                                                                <div class="form-line">
                                                                                    <asp:TextBox ID="TxBx_Description" runat="server" MaxLength="128"></asp:TextBox>
                                                                                    <asp:Label ID="Label7" runat="server" EnableViewState="false" Text="<%$ Resources:Content,Description%>" CssClass="form-label"></asp:Label>
                                                                                </div>
                                                                            </div>
                                                                        </div>
                                                                        <div class="col-xs-12">
                                                                            <div class="form-group">
                                                                                <asp:Button ID="Btn_Search" runat="server" CssClass="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000391%>" />
                                                                                <asp:Button ID="Btn_Clear" Visible="false" CssClass="btn btn-primary waves-effect" runat="server"
                                                                                    Text="<%$ Resources:Content,String289 %>" />
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>

                                                <asp:GridView CssClass="table table-bordered table-striped table-hover"
                                                    EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                                                    ID="GV_SPSites" AllowPaging="true" AllowSorting="true" runat="server" AutoGenerateColumns="False">
                                                    <Columns>
                                                        <asp:TemplateField SortExpression="Title" HeaderStyle-CssClass="col-xs-4" HeaderText='<%$ Resources:Content, Site %>'>
                                                            <ItemTemplate>
                                                                <div>
                                                                    <asp:Label ID="Lbl_Title" runat="server"></asp:Label>
                                                                </div>
                                                                <div>
                                                                    <asp:Label ID="Lbl_Url" runat="server"></asp:Label>
                                                                </div>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-CssClass="col-xs-2" SortExpression="Owner" HeaderText="<%$ Resources:Content, SPT002811 %>">
                                                            <ItemTemplate>
                                                                <asp:Label ID="Lbl_Owner" runat="server"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-CssClass="col-xs-1" SortExpression="StorageUsageCurrent" HeaderText="<%$ Resources:Content, SizeMB %>">
                                                            <ItemTemplate>
                                                                <asp:Label ID="Lbl_Size" runat="server"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-CssClass="col-xs-1"
                                                            HeaderText="<%$ Resources:Content, Users %>">
                                                            <ItemTemplate>
                                                                <asp:Label ID="Lbl_Users" runat="server"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-CssClass="col-xs-1" HeaderText="<%$ Resources:Content, SubSites %>"
                                                            SortExpression="WebsCount">
                                                            <ItemTemplate>
                                                                <asp:Label ID="Lbl_SubSites" runat="server"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-CssClass="col-xs-1" HeaderText="<%$ Resources:Content, LastSync %>"
                                                            SortExpression="LastSync">
                                                            <ItemTemplate>
                                                                <asp:Label ID="Lbl_LastSync" runat="server"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-CssClass="col-xs-1" SortExpression="Status" HeaderText="<%$ Resources:Content, Status %>">
                                                            <ItemTemplate>
                                                                <asp:Label ID="Lbl_Status" runat="server"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="<%$ Resources:Content, GN0000360 %>" HeaderStyle-CssClass="col-xs-1">
                                                            <ItemTemplate>
                                                                <ul class="option-menu">
                                                                    <li class="dropdown">
                                                                        <a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
                                                                            <i class="material-icons">menu</i>
                                                                        </a>
                                                                        <ul class="dropdown-menu pull-right" id="UL_OptionMenu" runat="server">
                                                                            <li>
                                                                                <asp:LinkButton ID="Lbtn_Edit" runat="server" Text="<%$Resources:Content,Edit %>"
                                                                                    CommandArgument='<%#DataBinder.Eval(Container, "DataItem.Id")%>' CommandName="EditSPSite"></asp:LinkButton></li>
                                                                            <li>
                                                                                <asp:LinkButton ID="Lbtn_Detail" Text="<%$ Resources:Content,Detail%>"
                                                                                    CommandArgument='<%#DataBinder.Eval(Container, "DataItem.Id")%>' CommandName="DetailSPSite" runat="server" />
                                                                            </li>
                                                                        </ul>
                                                                    </li>
                                                                </ul>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                    <%--PagerTemplate Start--%>
                                                    <PagerTemplate>
                                                        <UC:Pager ID="PagerSPSites" runat="server" />
                                                    </PagerTemplate>
                                                    <%--PagerTemplate End--%>
                                                </asp:GridView>
                                            </div>
                                        </div>

                                    </div>
                                </div>

                                <asp:Panel CssClass="row" ID="Pnl_AddSPSite" runat="server" Visible="false">
                                    <EM:AddSPSite ID="AddSPSite" runat="server" />
                                </asp:Panel>
                                <asp:Panel CssClass="row" ID="Pnl_EditSPSite" runat="server" Visible="false">
                                    <EM:EditSPSite ID="EditSPSite" runat="server" />
                                </asp:Panel>
                                <asp:Panel ID="Pnl_SiteDetail" runat="server" Style="display: none" CssClass="width-modal-popup-auto">

                                    <div class="col-xs-12">
                                        <div class="card">
                                            <div class="header container-fluid">
                                                <h3 class="pull-left"><%= Resources.Content.SPDetail%></h3>
                                                <span>
                                                    <button type="button" class="close" onclick="$find('<%=MP_SPDetail.ClientID%>').hide();">&times;</button>
                                                </span>
                                            </div>
                                            <div class="body">
                                                <div class="row">
                                                    <div class="col-sm-12">
                                                        <div class="row">
                                                            <div class="col-sm-1  row-label">
                                                                <asp:Literal ID="Literal18" runat="server" EnableViewState="false" Text='<%$ Resources:Content, Title %>' />
                                                            </div>
                                                            <div class="col-sm-11">
                                                                <asp:Literal ID="Lbl_Title" runat="server" EnableViewState="false" />
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-1  row-label">
                                                                <asp:Literal ID="Literal22" runat="server" EnableViewState="false" Text='<%$ Resources:Content, Url %>' />
                                                            </div>
                                                            <div class="col-sm-11">
                                                                <asp:Literal ID="Lbl_Url" runat="server" EnableViewState="false" />
                                                            </div>
                                                        </div>
                                                        <hr />
                                                    </div>
                                                    <div class="col-sm-6">
                                                        <div class="row">
                                                            <div class="col-sm-8 col-md-5  row-label">
                                                                <asp:Literal ID="Literal16" runat="server" EnableViewState="false" Text='<%$ Resources:Content, Description %>' />
                                                            </div>
                                                            <div class="col-sm-4 col-md-7">
                                                                <asp:Literal ID="Lbl_Description" runat="server" EnableViewState="false" />
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-8 col-md-5  row-label">
                                                                <asp:Literal ID="Literal17" runat="server" EnableViewState="false" Text='<%$ Resources:Content, Template %>' />
                                                            </div>
                                                            <div class="col-sm-4 col-md-7">
                                                                <asp:Literal ID="Lbl_Template" runat="server" EnableViewState="false" />
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-8 col-md-5  row-label">
                                                                <asp:Literal ID="Literal3" runat="server" EnableViewState="false" Text='<%$ Resources:Content, TotalLists %>' />
                                                            </div>
                                                            <div class="col-sm-4 col-md-7">
                                                                <asp:Literal ID="Lbl_TotalLists" runat="server" EnableViewState="false" />
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-8 col-md-5  row-label">
                                                                <asp:Literal ID="Literal5" runat="server" EnableViewState="false" Text='<%$ Resources:Content, TotalDocumentLibraries %>' />
                                                            </div>
                                                            <div class="col-sm-4 col-md-7">
                                                                <asp:Literal ID="Lbl_TotalDocumentLibraries" runat="server" EnableViewState="false" />
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-8 col-md-5  row-label">
                                                                <asp:Literal ID="Literal7" runat="server" EnableViewState="false" Text='<%$ Resources:Content, SiteType %>' />
                                                            </div>
                                                            <div class="col-sm-4 col-md-7">
                                                                <asp:Literal ID="Lbl_SiteType" runat="server" EnableViewState="false" />
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-8 col-md-5  row-label">
                                                                <asp:Literal ID="Literal9" runat="server" EnableViewState="false" Text='<%$ Resources:Content, SharingCapability %>' />
                                                            </div>
                                                            <div class="col-sm-4 col-md-7">
                                                                <asp:Literal ID="Lbl_SharingCapability" runat="server" EnableViewState="false" />
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-8 col-md-5  row-label">
                                                                <asp:Literal ID="Literal12" runat="server" EnableViewState="false" Text='<%$ Resources:Content, ShareByLink %>' />
                                                            </div>
                                                            <div class="col-sm-4 col-md-7">
                                                                <asp:Literal ID="Lbl_ShareByLink" runat="server" EnableViewState="false" />
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-8 col-md-5  row-label">
                                                                <asp:Literal ID="Literal14" runat="server" EnableViewState="false" Text='<%$ Resources:Content, ShareByEmail %>' />
                                                            </div>
                                                            <div class="col-sm-4 col-md-7">
                                                                <asp:Literal ID="Lbl_ShareByEmail" runat="server" EnableViewState="false" />
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-8 col-md-5  row-label">
                                                                <asp:Literal ID="Literal6" runat="server" EnableViewState="false" Text='<%$ Resources:Content, AllowDesigner %>' />
                                                            </div>
                                                            <div class="col-sm-4 col-md-7">
                                                                <asp:Literal ID="Lbl_AllowDesigner" runat="server" EnableViewState="false" />
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-8 col-md-5  row-label">
                                                                <asp:Literal ID="Literal10" runat="server" EnableViewState="false" Text='<%$ Resources:Content, AllowRssFeeds %>' />
                                                            </div>
                                                            <div class="col-sm-4 col-md-7">
                                                                <asp:Literal ID="Lbl_AllowRssFeeds" runat="server" EnableViewState="false" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-sm-6">
                                                        <div class="row">
                                                            <div class="col-sm-4  row-label">
                                                                <asp:Literal ID="Literal15" runat="server" EnableViewState="false" Text='<%$ Resources:Content, RequestAccessEmail %>' />
                                                            </div>
                                                            <div class="col-sm-8">
                                                                <asp:Literal ID="Lbl_RequestAccessEmail" runat="server" EnableViewState="false" />
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-4  row-label">
                                                                <asp:Literal ID="Literal13" runat="server" EnableViewState="false" Text='<%$ Resources:Content, Size %>' />
                                                            </div>
                                                            <div class="col-sm-8">
                                                                <asp:Literal ID="Lbl_Size" runat="server" EnableViewState="false" />
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-4  row-label">
                                                                <asp:Literal ID="Literal20" runat="server" EnableViewState="false" Text='<%$ Resources:Content, UserCount %>' />
                                                            </div>
                                                            <div class="col-sm-8">
                                                                <asp:Literal ID="Lbl_UserCount" runat="server" EnableViewState="false" />
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-4  row-label">
                                                                <asp:Literal ID="Literal24" runat="server" EnableViewState="false" Text='<%$ Resources:Content, TotalSubSites %>' />
                                                            </div>
                                                            <div class="col-sm-8">
                                                                <asp:Literal ID="Lbl_TotalSubSites" runat="server" EnableViewState="false" />
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-4  row-label">
                                                                <asp:Literal ID="Literal19" runat="server" EnableViewState="false" Text='<%$ Resources:Content, Language %>' />
                                                            </div>
                                                            <div class="col-sm-8">
                                                                <asp:Literal ID="Lbl_Language" runat="server" EnableViewState="false" />
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-4  row-label">
                                                                <asp:Literal ID="Literal21" runat="server" EnableViewState="false" Text='<%$ Resources:Content, Owner %>' />
                                                            </div>
                                                            <div class="col-sm-8">
                                                                <asp:Literal ID="Lbl_Owner" runat="server" EnableViewState="false" />
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-4  row-label">
                                                                <asp:Literal ID="Literal23" runat="server" EnableViewState="false" Text='<%$ Resources:Content, CreatedDate %>' />
                                                            </div>
                                                            <div class="col-sm-8">
                                                                <asp:Literal ID="Lbl_CreatedDate" runat="server" EnableViewState="false" />
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-4  row-label">
                                                                <asp:Literal ID="Literal25" runat="server" EnableViewState="false" Text='<%$ Resources:Content, LastModified %>' />
                                                            </div>
                                                            <div class="col-sm-8">
                                                                <asp:Literal ID="Lbl_LastModified" runat="server" EnableViewState="false" />
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-4  row-label">
                                                                <asp:Literal ID="Literal8" runat="server" EnableViewState="false" Text='<%$ Resources:Content, LastSync %>' />
                                                            </div>
                                                            <div class="col-sm-8">
                                                                <asp:Literal ID="Lbl_LastSync" runat="server" EnableViewState="false" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </asp:Panel>
                                <asp:Button ID="Btn_SPCancelDummy" runat="server" CssClass="btn-dummy" />
                                <AjaxToolkit:ModalPopupExtender runat="server" ID="MP_SPDetail" BackgroundCssClass="modalBackground"
                                    DropShadow="false" PopupControlID="Pnl_SiteDetail" TargetControlID="Btn_SPCancelDummy">
                                </AjaxToolkit:ModalPopupExtender>

                                <asp:Panel CssClass="row" ID="Pnl_SPSiteGroupAction" runat="server" Visible="false">
                                    <EM:SPSiteGroupAction ID="SPSiteGroupAction" runat="server" />
                                </asp:Panel>

                            </asp:Panel>

                        </ContentTemplate>
                    </ajax:TabPanel>

                    <%--9--%>
                    <ajax:TabPanel ID="Tab_DirectRouting" runat="server" HeaderText="<%$ Resources:Content,strDirectRouting%>">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab9" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent10" runat="server" Visible="false">

                                <EM:Teams ID="Teams" runat="server" />
                            </asp:Panel>
                        </ContentTemplate>
                    </ajax:TabPanel>

                    <%--10--%>
                    <ajax:TabPanel ID="Tab_Policies" runat="server" HeaderText="<%$ Resources:Content,Policies%>">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab10" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent11" runat="server" Visible="false">
                                <div class="row">
                                    <div class="col-xs-12">
                                        <div class="row">
                                            <div class="col-xs-12">
                                                <div class="card">
                                                    <div class="header">
                                                        <h3>
                                                            <%= Resources.Content.PasswordPolicy%>                                                                                                                                 
                                                        </h3>
                                                    </div>
                                                    <div class="body">
                                                        <div class="row">
                                                            <div class="col-sm-4 col-xs-12 row-label">
                                                                <label>*<%= Resources.Content.SetPasswordsNeverExpire%>:</label>
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group">
                                                                    <asp:CheckBox ID="CB_PasswordPolicy" runat="server" Text=" " AutoPostBack="true" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div id="Div_ShowPasswordPolicy" runat="server">
                                                            <div class="row">
                                                                <div class="col-sm-4 col-xs-12 row-label">
                                                                    <label>*<%= Resources.Content.DaysBeforePasswordsExpire%>:</label>
                                                                </div>
                                                                <div class="col-sm-4 col-xs-12">
                                                                    <div class="form-group">
                                                                        <div class="form-line">
                                                                            <asp:TextBox ID="TxBx_DaysBeforePasswordsExpire" runat="server" />
                                                                        </div>
                                                                    </div>
                                                                    <asp:RequiredFieldValidator ID="RFV_TxBx_DaysBeforePasswordsExpire" runat="server" ControlToValidate="TxBx_DaysBeforePasswordsExpire"
                                                                        Display="None" SetFocusOnError="true" ValidationGroup="passpolicy"></asp:RequiredFieldValidator>
                                                                </div>
                                                            </div>
                                                            <div class="row">
                                                                <div class="col-sm-4 col-xs-12 row-label">
                                                                    <label>*<%= Resources.Content.DaysNotifiedAboutExpiration%>:</label>
                                                                </div>
                                                                <div class="col-sm-4 col-xs-12">
                                                                    <div class="form-group">
                                                                        <div class="form-line">
                                                                            <asp:TextBox ID="TxBx_DaysNotifiedAboutExpiration" runat="server" />
                                                                        </div>
                                                                    </div>
                                                                    <asp:RequiredFieldValidator ID="RFV_TxBx_DaysNotifiedAboutExpiration" runat="server" ControlToValidate="TxBx_DaysNotifiedAboutExpiration"
                                                                        Display="None" SetFocusOnError="true" ValidationGroup="passpolicy"></asp:RequiredFieldValidator>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-xs-12">
                                                                <asp:Button class="btn btn-primary waves-effect btnAction" ID="Btn_SavePolicy" runat="server" ValidationGroup="passpolicy"
                                                                    Text="<%$ Resources:Content,GN0000281%>" />
                                                                <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="true"
                                                                    ShowSummary="false" ValidationGroup="passpolicy" HeaderText="<%$ Resources:Content, EM000001%>" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </ContentTemplate>
                    </ajax:TabPanel>

                    <%--11--%>
                    <ajax:TabPanel ID="Tab_GroupActions" runat="server" HeaderText="<%$ Resources:Content,strGroupActionsLog %>">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab11" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent7" runat="server" Visible="false">
                                <UC:GroupActions ID="GroupActions1" runat="server"></UC:GroupActions>
                            </asp:Panel>
                        </ContentTemplate>
                    </ajax:TabPanel>

                    <%--12--%>
                    <ajax:TabPanel ID="Tab_Teams" runat="server" HeaderText="<%$ Resources:Content,strTeams %>">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab12" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent12" runat="server" Visible="false">

                                <%--   <div class="row">
                                    <div class="col-xs-12">
                                        <div class="products-step">
                                            <span id="div_Teams" runat="server" nowrap="true" class="label label-success">
                                                <asp:LinkButton ID="lb_Teams" runat="server" Text='<%$ Resources:Content, strTeams %>' />
                                            </span>
                                            <span id="div_Channel" runat="server" nowrap="true" class="label label-default">
                                                <asp:LinkButton ID="lb_Channel" runat="server" Text='<%$ Resources:Content, strChannel %>' />
                                            </span>
                                        </div>
                                    </div>
                                </div>--%>

                                <asp:Panel ID="Pnl_Teams" runat="server">
                                    <UC:O365Teams ID="UC_O365Teams" runat="server" />
                                </asp:Panel>

                                <%--   <asp:Panel ID="Pnl_Channel" runat="server" Visible="false">
                                    <UC:NumbersPorting ID="UC_NumbersPorting" runat="server" />
                                </asp:Panel>--%>
                            </asp:Panel>
                        </ContentTemplate>
                    </ajax:TabPanel>
                </ajax:TabContainer>

                <asp:Panel ID="Pnl_UserDetail" runat="server" Visible="false">
                    <UC:UserDetail ID="UserDetail1" runat="Server"></UC:UserDetail>
                </asp:Panel>

                <asp:Panel ID="Pnl_AddBulkUsers" runat="server" Visible="false">
                    <UC:AddBulkUsers ID="AddBulkUsers1" runat="Server"></UC:AddBulkUsers>
                </asp:Panel>

                <asp:Panel ID="Pnl_UserGroupOperations" runat="server" Visible="false">
                    <UC:UserGroupOperations ID="UserGroupOperations1" runat="server" />
                </asp:Panel>

            </div>
        </div>
    </div>
</asp:Content>
