<%@ control language="VB" autoeventwireup="false" inherits="PCC_DC_CC_Reports, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>
<%@ Register Assembly="MachSol.MachPanel.Utility" Namespace="MachSol.MachPanel.Utility"
    TagPrefix="EM" %>
<asp:Button ID="Btn_RefreshTab" CssClass="RefreshTab" runat="server" Style="display: none;" />
<EM:TabContainer ID="TC_Reports" runat="server" OnClientActiveTabChanged="loadTabPanel" ActiveTabIndex="0">
    <EM:TabPanel ID="Tab_UserReports" runat="server" HeaderText='<%$ Resources:Content,UserReports%>'>
        <ContentTemplate>
            <asp:Button ID="Btn_Tab0" runat="server" Style="display: none" />
            <asp:Panel ID="Pnl_TabContent0" runat="server" Visible="true">
                <asp:Panel ID="Pnl_UserReports" runat="server">
                    <div class="row">
                        <div class="col-xs-12">
                            <div class="products-step">
                                <span id="div_All" runat="server" nowrap="true" class="label label-success">
                                    <asp:LinkButton ID="lb_All" runat="server" Text='<%$ Resources:Content, AllUsers %>' />
                                </span>
                                <span id="div_Inactive" runat="server" nowrap="true" class="label label-default">
                                    <asp:LinkButton ID="lb_Inactive" runat="server" Text='<%$ Resources:Content, InactiveUsers %>' />
                                </span>
                                <span id="div_RecentlyLoggedOn" runat="server" nowrap="true" class="label label-default">
                                    <asp:LinkButton ID="lb_RecentlyLoggedOn" runat="server" Text='<%$ Resources:Content, RecentlyLoggedOn %>' />
                                </span>
                                <span id="div_NeverLoggedIn" runat="server" nowrap="true" class="label label-default">
                                    <asp:LinkButton ID="lb_NeverLoggedIn" runat="server" Text='<%$ Resources:Content, NeverLoggedIn %>' />
                                </span>
                                <span id="div_RecentlyCreated" runat="server" nowrap="true" class="label label-default">
                                    <asp:LinkButton ID="lb_RecentlyCreated" runat="server" Text='<%$ Resources:Content, RecentlyCreated %>' />
                                </span>
                                <span id="div_Disabled" runat="server" nowrap="true" class="label label-default">
                                    <asp:LinkButton ID="lb_Disabled" runat="server" Text='<%$ Resources:Content, Disabled %>' />
                                </span>
                                <span id="div_LockedOut" runat="server" nowrap="true" class="label label-default">
                                    <asp:LinkButton ID="lb_LockedOut" runat="server" Text='<%$ Resources:Content, strLocked %>' />
                                </span>
                                <span id="div_AccountExpired" runat="server" nowrap="true" class="label label-default">
                                    <asp:LinkButton ID="lb_AccountExpired" runat="server" Text='<%$ Resources:Content, ExpiredAccounts %>' />
                                </span>
                                <span id="div_SoonToExpire" runat="server" nowrap="true" class="label label-default">
                                    <asp:LinkButton ID="lb_SoonToExpire" runat="server" Text='<%$ Resources:Content, SoonToExpire %>' />
                                </span>
                                <span id="div_AccountNeverExpires" runat="server" nowrap="true" class="label label-default">
                                    <asp:LinkButton ID="lb_AccountNeverExpires" runat="server" Text='<%$ Resources:Content, GN0000611 %>' />
                                </span>
                                <span id="div_LogonHoursReport" runat="server" nowrap="true" class="label label-default">
                                    <asp:LinkButton ID="lb_LogonHoursReport" runat="server" Text='<%$ Resources:Content, LogonHoursReport %>' />
                                </span>
                            </div>
                        </div>
                    </div>
                    <!-- Filters if required -->
                    <asp:Panel ID="Pnl_Search_Inner" DefaultButton="Btn_Search" runat="server">
                        <div class="row">
                            <div class="panel-group search-panel" id="AS_ADUsers" role="tablist" aria-multiselectable="true">
                                <div class="col-xs-12" role="tab" id="SH_ADUsers">
                                    <div class="card">
                                        <div class="header" role="button" data-toggle="collapse" data-parent="#AS_ADUsers" href="#<%= CSB_ADUsers.ClientID%>" aria-expanded="true" aria-controls="SH_ADUsers">
                                            <h3>
                                                <%= Resources.Content.GN0000395%>
                                            </h3>
                                        </div>
                                        <div id="CSB_ADUsers" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_ADUsers" aria-expanded="false">
                                            <div class="row">
                                                <div class="col-md-3 col-sm-6 col-xs-12" runat="server" id="td_Owner">
                                                    <div class="form-group form-float">
                                                        <asp:DropDownList ID="DDl_Owner" runat="server" onchange="setOwnerCookie(this)"></asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="col-md-3 col-sm-6 col-xs-12" id="td_DC" runat="server">
                                                    <div class="form-group form-float">
                                                        <asp:DropDownList ID="DDl_DC" runat="server">
                                                        </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_Country" runat="server"></asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="col-md-3 col-sm-6 col-xs-12" id="td_OUName" runat="server">
                                                    <div class="form-group form-float">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_OUName" runat="server"></asp:TextBox>
                                                            <asp:Label ID="Label1" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110608%>" class="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_DisplayName" runat="server"></asp:TextBox>
                                                            <asp:Label ID="LB_LogonName" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001113%>" class="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_UPN" runat="server"></asp:TextBox>
                                                            <asp:Label ID="Label15" runat="server" EnableViewState="false" Text="<%$ Resources:Content,String336%>" class="form-label"></asp:Label>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-md-3 col-sm-6 col-xs-12" id="TR_CustomerId" runat="server">
                                                    <div class="form-group form-float">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_CustomerId" runat="server"></asp:TextBox>
                                                            <asp:Label ID="Lbl_Search_WHMCS_Id_Title" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000715%>" class="form-label"></asp:Label>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-md-3 col-sm-6 col-xs-12" id="TR_CustName" runat="server">
                                                    <div class="form-group form-float">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_CustName" runat="server"></asp:TextBox>
                                                            <asp:Label ID="Label10" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000268%>" class="form-label"></asp:Label>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-md-3 col-sm-6 col-xs-12" id="TR_CustCompany" runat="server">
                                                    <div class="form-group form-float">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_CustCompany" runat="server"></asp:TextBox>
                                                            <asp:Label ID="Label13" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001077%>" class="form-label"></asp:Label>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-md-3 col-sm-6 col-xs-12" id="td_DomainName" runat="server">
                                                    <div class="form-group form-float">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_DomainName" runat="server"></asp:TextBox>
                                                            <asp:Label ID="Label14" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN000125%>" class="form-label"></asp:Label>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-md-3 col-sm-6 col-xs-12" id="Td_SAMlabel" runat="server">
                                                    <div class="form-group form-float">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_SAM" runat="server" MaxLength="100"></asp:TextBox>
                                                            <asp:Label ID="Label16" runat="server" EnableViewState="false" Text="<%$ Resources:Content,strSAMAccountName%>" class="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_City" runat="server" MaxLength="70"></asp:TextBox>
                                                            <asp:Label ID="Label2" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000880%>" class="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_State" runat="server" MaxLength="70"></asp:TextBox>
                                                            <asp:Label ID="Label3" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DEV1130%>" class="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_Phone" runat="server" MaxLength="80"></asp:TextBox>
                                                            <asp:Label ID="Label5" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00012%>" class="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_OPCompany" runat="server" MaxLength="80"></asp:TextBox>
                                                            <asp:Label ID="Label8" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001134%>" class="form-label"></asp:Label>
                                                        </div>
                                                    </div>
                                                </div>

                                                <div class="col-md-3 col-sm-6 col-xs-12" id="Td_LogonHoursTemplate" runat="server">
                                                    <div class="form-group form-float">
                                                        <asp:DropDownList ID="Ddl_LogonHoursTemplate" runat="server"></asp:DropDownList>
                                                    </div>
                                                </div>
                                            </div>
                                            <div id="div_InactivePeriod" runat="server">
                                                <%--<div class="row">--%>

                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                    <label>
                                                        <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,SelectTimePeriod%>" EnableViewState="false" />:
                                                    </label>
                                                </div>
                                                <div class="col-md-2 col-sm-6 col-xs-12">
                                                    <div class="form-group form-float">
                                                        <asp:DropDownList ID="DDl_TimePeriod" runat="server">
                                                            <asp:ListItem Text="<%$ Resources:Content,Last7Days%>" Value="7"></asp:ListItem>
                                                            <asp:ListItem Text="<%$ Resources:Content,Last30Days%>" Value="30"></asp:ListItem>
                                                            <asp:ListItem Text="<%$ Resources:Content,Last60Days%>" Value="60"></asp:ListItem>
                                                            <asp:ListItem Text="<%$ Resources:Content,Last90Days%>" Value="90"></asp:ListItem>
                                                            <asp:ListItem Text="<%$ Resources:Content,String456%>" Value="0"></asp:ListItem>
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="col-md-1 col-sm-6 col-xs-12" id="div_Custom" runat="server" style="display: none">
                                                    <div class="form-group form-float">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_NoOfdays" runat="server" MaxLength="4"></asp:TextBox>
                                                            <asp:Label ID="Label7" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000911%>" class="form-label"></asp:Label>
                                                        </div>
                                                    </div>
                                                </div>
                                                <%--</div>
                                                <div class="row">
                                                    
                                                    <div class="col-xs-12 col-sm-2">
                                                        <asp:Button ID="Btn_SearchInactive" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000391%>" />
                                                    </div>
                                                </div>--%>
                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                    <asp:CheckBox ID="Cb_ExcludeNeverLoggedOn" runat="server" Text="<%$ Resources:Content,ExcludeNeverLoggedOn%>" />
                                                </div>
                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                    <asp:CheckBox ID="Cb_ExcludeDisabled" runat="server" Text="<%$ Resources:Content,ExcludeDisabled%>" />
                                                </div>
                                            </div>

                                            <!-- From/To Date filter -->
                                            <div class="row" id="div_DateFilters" runat="server" visible="false">
                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                    <label>
                                                        <asp:Literal ID="Literal11" runat="server" Text="<%$ Resources:Content,GN0000685%>" EnableViewState="false" />:
                                                    </label>
                                                    <div class="form-group display-date-input">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_FromDateGlobal" runat="server"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                    <i runat="server" id="A_FromDate" class="material-icons icon-calendar col-calendar"></i>
                                                    <EM:CalendarExtender ID="CE_FromDate" runat="server" TargetControlID="TxBx_FromDateGlobal"
                                                        Format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>"
                                                        PopupButtonID="A_FromDate" CssClass="date__calendar">
                                                    </EM:CalendarExtender>
                                                </div>
                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                    <label>
                                                        <asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Content,GN0000690%>" EnableViewState="false" />:
                                                    </label>
                                                    <div class="form-group display-date-input">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_ToDateGlobal" runat="server"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                    <i runat="server" id="A_ToDate" class="material-icons icon-calendar col-calendar"></i>
                                                    <EM:CalendarExtender ID="CE_ToDate" runat="server" TargetControlID="TxBx_ToDateGlobal"
                                                        Format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>"
                                                        PopupButtonID="A_ToDate" CssClass="date__calendar">
                                                    </EM:CalendarExtender>
                                                </div>
                                                <%--<div class="col-xs-12 col-sm-2 col-md-3">
                                                    <asp:Button ID="Btn_SearchDate" CssClass="btn btn-primary waves-effect" runat="server" Text='<%$ Resources:Content,GN0000391 %>' />
                                                </div>--%>
                                            </div>
                                            <div class="row">
                                                <div class="col-xs-12">
                                                    <div class="form-group form-float">
                                                        <asp:Button ID="Btn_Search" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000391%>" />
                                                        <asp:Button ID="Btn_Clear" Visible="false" class="btn btn-primary waves-effect" runat="server"
                                                            Text="<%$ Resources:Content,String289 %>" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </asp:Panel>

                    <div class="row">
                        <div class="col-xs-12">
                            <div class="card">
                                <div class="header">
                                    <h3>
                                        <%= Resources.Content.GN00001320%>                                                                                                                                 
                                    </h3>
                                </div>
                                <div class="body">
                                    <asp:Button ID="Btn_ExportUserToExcel" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,Ex001%>" />
                                </div>
                            </div>
                        </div>
                    </div>

                    <!-- Listing -->
                    <div class="row">
                        <div class="col-xs-12">
                            <!-- Full Name, Email, AD Domain, Organization, Logon Name -->
                            <asp:GridView CssClass="table table-bordered table-striped table-hover" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                                ID="GV_UsersList" DataKeyNames="ADUserId,DisplayName,ADDomainId,UserLDAP,HostedOrgId,CustomerId,CompanyId"
                                AllowPaging="True" AllowSorting="True" runat="server" AutoGenerateColumns="False">

                                <Columns>

                                    <asp:TemplateField SortExpression="DisplayName" HeaderText="<%$ Resources:Content, GN0001288 %>">
                                        <ItemTemplate>
                                            <div id="LB_DisplayName" runat="server"></div>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <%--<asp:TemplateField SortExpression="LogonName" HeaderText="<%$ Resources:Content, String436 %>">
                                        <ItemTemplate>
                                            <asp:Label ID="LB_LogonName" Text='<%#DataBinder.Eval(Container, "DataItem.LogonName")%>' runat="server">
                                            </asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>--%>
                                    <asp:TemplateField SortExpression="OrganizationName" HeaderText="<%$ Resources:Content, DGN1110608 %>">
                                        <ItemTemplate>
                                            <asp:HyperLink ID="LB_OrganizationName" Text='<%#DataBinder.Eval(Container, "DataItem.OrganizationName")%>' runat="server">
                                            </asp:HyperLink>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <%--<asp:TemplateField SortExpression="ADDomainName" HeaderText="<%$ Resources:Content, DGN1110433 %>">
                                        <ItemTemplate>
                                            <asp:Label ID="LB_ADDomainName" Text='<%#DataBinder.Eval(Container, "DataItem.ADDomainName")%>' runat="server">
                                            </asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>--%>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content, GN0000850 %>">
                                        <ItemTemplate>
                                            <asp:HyperLink ID="LB_ClientID" runat="server"></asp:HyperLink>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField SortExpression="LastLogon" HeaderText="<%$ Resources:Content, LastLogon %>">
                                        <ItemTemplate>
                                            <asp:Label ID="LB_LastLogon" runat="server">
                                            </asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField SortExpression="DateStamp" HeaderText='<%$ Resources:Content,GN00001496 %>'>
                                        <ItemTemplate>
                                            <asp:Label ID="Lbl_DateCreated" runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField SortExpression="LockoutTime" HeaderText='<%$ Resources:Content,LockoutTime %>'>
                                        <ItemTemplate>
                                            <asp:Label ID="Lbl_LockoutTime" runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField SortExpression="AccountExpiry" HeaderText='<%$ Resources:Content,AccountExpiry %>'>
                                        <ItemTemplate>
                                            <asp:Label ID="Lbl_AccountExpiry" runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField SortExpression="LastSyncTime" HeaderText='<%$ Resources:Content,LastSync %>'>
                                        <ItemTemplate>
                                            <asp:Label ID="Lbl_LastSync" runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText='<%$ Resources:Content,strLogonHoursTemplate %>'>
                                        <ItemTemplate>
                                            <asp:Label ID="Lbl_LogonHoursTemplate" runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <PagerTemplate>
                                    <EM:Pager ID="Pager1" runat="server" />
                                </PagerTemplate>
                            </asp:GridView>
                        </div>
                    </div>
                </asp:Panel>
            </asp:Panel>
        </ContentTemplate>
    </EM:TabPanel>
    <EM:TabPanel ID="Tab_GroupReports" runat="server" HeaderText='<%$ Resources:Content,GroupReports%>'>
        <ContentTemplate>
            <asp:Button ID="Btn_Tab1" runat="server" Style="display: none" />
            <asp:Panel ID="Pnl_TabContent1" runat="server" Visible="false">
                <asp:Panel ID="Pnl_GroupReports" runat="server">
                    <!-- Reports Options -->
                    <div class="row">
                        <div class="col-xs-12">
                            <div class="products-step">
                                <span id="div_AllGroups" runat="server" nowrap="true" class="label label-success">
                                    <asp:LinkButton ID="lb_AllGroups" runat="server" Text='<%$ Resources:Content, AllGroups %>' />
                                </span>
                                <span id="div_GroupMembers" runat="server" nowrap="true" class="label label-default">
                                    <asp:LinkButton ID="lb_GroupMembers" runat="server" Text='<%$ Resources:Content, DGN1110100 %>' />
                                </span>
                                <span id="div_RecentlyDeleted" runat="server" nowrap="true" class="label label-default">
                                    <asp:LinkButton ID="lb_RecentlyDeleted" runat="server" Text='<%$ Resources:Content, RecentlyDeleted %>' />
                                </span>
                                <%--<span id="div_TopNBigGroups" runat="server" nowrap="true" class="label label-default">
                                    <asp:LinkButton ID="lb_TopNBigGroups" runat="server" Text='<%$ Resources:Content, TopNBigGroups %>' />
                                </span>--%>
                                <%--<span id="div_SecurityGroups" runat="server" nowrap="true" class="label label-default">
                                    <asp:LinkButton ID="lb_SecurityGroups" runat="server" Text='<%$ Resources:Content, SecurityGroups %>' />
                                </span>
                                <span id="div_DistributionGroups" runat="server" nowrap="true" class="label label-default">
                                    <asp:LinkButton ID="lb_DistributionGroups" runat="server" Text='<%$ Resources:Content, DistributionGroups %>' />
                                </span>--%>
                            </div>
                        </div>
                    </div>

                    <!-- Group Reports -->
                    <div id="Div_GroupReports" runat="server">
                        <%--Search Option--%>
                        <asp:Panel ID="Pnl_Search_Groups" DefaultButton="Btn_SearchGroups" runat="server">
                            <div class="row">
                                <div class="panel-group search-panel" id="AS_Groups" role="tablist" aria-multiselectable="true">
                                    <div class="col-xs-12" role="tab" id="SH_Groups">
                                        <div class="card">
                                            <div class="header" role="button" data-toggle="collapse" data-parent="#AS_Groups" href="#<%= CSB_Groups.ClientID%>" aria-expanded="true" aria-controls="SH_Groups">
                                                <h3>
                                                    <%= Resources.Content.GN0000395%>
                                                </h3>
                                            </div>
                                            <div id="CSB_Groups" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_Groups" aria-expanded="false">
                                                <div class="row">
                                                    <div class="col-md-3 col-sm-6 col-xs-12" runat="server" id="td_OwnerG">
                                                        <div class="form-group form-float">
                                                            <asp:DropDownList ID="DDl_OwnerG" runat="server" onchange="setOwnerCookie(this)"></asp:DropDownList>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-3 col-sm-6 col-xs-12" id="td_DCG" runat="server">
                                                        <div class="form-group form-float">
                                                            <asp:DropDownList ID="DDl_DCG" runat="server">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>


                                                    <div class="col-md-3 col-sm-6 col-xs-12" id="td_OUNameG" runat="server">
                                                        <div class="form-group form-float">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_OUNameG" runat="server"></asp:TextBox>
                                                                <asp:Label ID="Label4" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110608%>" class="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_GroupName" runat="server"></asp:TextBox>
                                                                <asp:Label ID="LB_GroupName" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001113%>" class="form-label"></asp:Label>
                                                            </div>
                                                        </div>
                                                    </div>

                                                    <div class="col-md-3 col-sm-6 col-xs-12" id="TR_CustomerIdG" runat="server">
                                                        <div class="form-group form-float">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_CustomerIdG" runat="server"></asp:TextBox>
                                                                <asp:Label ID="Label9" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000715%>" class="form-label"></asp:Label>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-3 col-sm-6 col-xs-12" id="TR_CustNameG" runat="server">
                                                        <div class="form-group form-float">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_CustNameG" runat="server"></asp:TextBox>
                                                                <asp:Label ID="Label11" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000268%>" class="form-label"></asp:Label>
                                                            </div>
                                                        </div>
                                                    </div>

                                                    <div class="col-md-3 col-sm-6 col-xs-12" runat="server">
                                                        <div class="form-group">
                                                            <asp:DropDownList ID="Ddl_GroupScope" runat="server">
                                                                <asp:ListItem Text="<%$ Resources:Content,SelectScope %>" Value="0"></asp:ListItem>
                                                                <asp:ListItem Text="<%$ Resources:Content,DomainLocal %>" Value="-2147483644"></asp:ListItem>
                                                                <asp:ListItem Text="<%$ Resources:Content,SMI0374 %>" Value="-2147483646"></asp:ListItem>
                                                                <asp:ListItem Text="<%$ Resources:Content,Universal %>" Value="-2147483640"></asp:ListItem>
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>

                                                </div>
                                                <div class="row" id="div_InactivePeriodG" runat="server">
                                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                                        <label>
                                                            <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content,SelectTimePeriod%>" EnableViewState="false" />:
                                                        </label>
                                                    </div>
                                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                                        <div class="form-group form-float">
                                                            <asp:DropDownList ID="DDl_TimePeriodG" runat="server">
                                                                <asp:ListItem Text="<%$ Resources:Content,Last7Days%>" Value="7"></asp:ListItem>
                                                                <asp:ListItem Text="<%$ Resources:Content,Last30Days%>" Value="30"></asp:ListItem>
                                                                <asp:ListItem Text="<%$ Resources:Content,Last60Days%>" Value="60"></asp:ListItem>
                                                                <asp:ListItem Text="<%$ Resources:Content,Last90Days%>" Value="90"></asp:ListItem>
                                                                <asp:ListItem Text="<%$ Resources:Content,String456%>" Value="0"></asp:ListItem>
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-2 col-sm-6 col-xs-12" id="div_CustomG" runat="server" style="display: none">
                                                        <div class="form-group form-float">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_NoOfdaysG" runat="server" MaxLength="4"></asp:TextBox>
                                                                <asp:Label ID="Label19" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000911%>" class="form-label"></asp:Label>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-xs-12">
                                                        <div class="form-group form-float">
                                                            <asp:Button ID="Btn_SearchGroups" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000391%>" />
                                                            <asp:Button ID="Btn_ClearGroups" Visible="false" class="btn btn-primary waves-effect" runat="server"
                                                                Text="<%$ Resources:Content,String289 %>" />
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>


                                        </div>
                                    </div>
                                </div>
                            </div>
                        </asp:Panel>

                        <div class="row">
                            <div class="col-xs-12">
                                <div class="card">
                                    <div class="header">
                                        <h3>
                                            <%= Resources.Content.GN00001320%>                                                                                                                                 
                                        </h3>
                                    </div>
                                    <div class="body">
                                        <asp:Button ID="Btn_ExportGroupToExcel" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,Ex001%>" />
                                    </div>
                                </div>
                            </div>
                        </div>

                        <!-- Listing -->
                        <div class="row" id="Pnl_DLListing" runat="server">
                            <div class="col-xs-12">
                                <%--Listing--%>
                                <EM:MPGridView ID="GV_SecurityGroup" DataKeyNames="SGLDAP" CurrentSortExpression="SGName" CurrentSortDirection="Asc"
                                    CssClass="table table-bordered table-striped table-hover" runat="server" AllowPaging="true" AllowSorting="true" EmptyDataText='<%$ Resources:Content, GN00001375 %>'
                                    AutoGenerateColumns="false">
                                    <Columns>
                                        <asp:TemplateField HeaderText="<%$ Resources:Content, GN00001113 %>" SortExpression="SGName">
                                            <ItemTemplate>
                                                <asp:HyperLink ID="Lb_SGName" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.SGName") %>'></asp:HyperLink>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <%--<asp:TemplateField HeaderText="<%$ Resources:Content, strSAMAccountName %>" SortExpression="SGSAM">
                                            <ItemTemplate>
                                                <asp:Label ID="Lb_SGSAM"
                                                    runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.SGSAM") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>--%>
                                        <asp:TemplateField HeaderText="<%$ Resources:Content, OrganizationName %>" SortExpression="OrganizationName">
                                            <ItemTemplate>
                                                <asp:HyperLink ID="Lb_OrgName" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.OrganizationName") %>'></asp:HyperLink>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="<%$ Resources:Content, GN0000850 %>" SortExpression="CustDisplayName">
                                            <ItemTemplate>
                                                <asp:HyperLink ID="LB_ClientID" runat="server"></asp:HyperLink>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="<%$ Resources:Content, GroupScope %>" SortExpression="GroupType">
                                            <ItemTemplate>
                                                <asp:Label ID="Lb_SGScope" runat="server"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <PagerTemplate>
                                        <EM:Pager ID="Pager" runat="server" />
                                    </PagerTemplate>
                                </EM:MPGridView>
                            </div>
                        </div>

                    </div>

                    <!-- Member Reports -->
                    <div id="Div_MemberReports" runat="server">

                        <!-- Search Filters -->
                        <asp:Panel ID="Pnl_Search_Members" runat="server" DefaultButton="Btn_SearchMembers">
                            <div class="row">
                                <div class="panel-group search-panel" id="AS_Members" role="tablist" aria-multiselectable="true">
                                    <div class="col-xs-12" role="tab" id="SH_Members">
                                        <div class="card">
                                            <div class="header" role="button" data-toggle="collapse" data-parent="#AS_Members" href="#<%= CSB_Members.ClientID%>" aria-expanded="true" aria-controls="SH_Members">
                                                <h3>
                                                    <%= Resources.Content.GN0000395%>
                                                </h3>
                                            </div>
                                            <div id="CSB_Members" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_Members" aria-expanded="false">
                                                <div class="row">
                                                    <div class="col-md-3 col-sm-6 col-xs-12" runat="server" id="td_OwnerGM">
                                                        <div class="form-group form-float">
                                                            <asp:DropDownList ID="DDl_OwnerGM" runat="server" onchange="setOwnerCookie(this)"></asp:DropDownList>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-3 col-sm-6 col-xs-12" id="td_DCGM" runat="server">
                                                        <div class="form-group form-float">
                                                            <asp:DropDownList ID="DDl_DCGM" runat="server">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>


                                                    <div class="col-md-3 col-sm-6 col-xs-12" id="td_OUNameGM" runat="server">
                                                        <div class="form-group form-float">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_OUNameGM" runat="server"></asp:TextBox>
                                                                <asp:Label ID="Label6" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110608%>" class="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_GroupNameGM" runat="server"></asp:TextBox>
                                                                <asp:Label ID="Label12" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN000165%>" class="form-label"></asp:Label>
                                                            </div>
                                                        </div>
                                                    </div>

                                                    <div class="col-md-3 col-sm-6 col-xs-12" id="TR_CustomerIdGM" runat="server">
                                                        <div class="form-group form-float">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_CustomerIdGM" runat="server"></asp:TextBox>
                                                                <asp:Label ID="Label17" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000715%>" class="form-label"></asp:Label>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-3 col-sm-6 col-xs-12" id="TR_CustNameGM" runat="server">
                                                        <div class="form-group form-float">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_CustNameGM" runat="server"></asp:TextBox>
                                                                <asp:Label ID="Label18" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000268%>" class="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_Member" runat="server"></asp:TextBox>
                                                                <asp:Label ID="Label20" runat="server" EnableViewState="false" Text="<%$ Resources:Content,strMember%>" class="form-label"></asp:Label>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-3 col-sm-6 col-xs-12" runat="server">
                                                        <div class="form-group">
                                                            <asp:DropDownList ID="Ddl_GroupScopeM" runat="server">
                                                                <asp:ListItem Text="<%$ Resources:Content,SelectScope %>" Value="0"></asp:ListItem>
                                                                <asp:ListItem Text="<%$ Resources:Content,DomainLocal %>" Value="-2147483644"></asp:ListItem>
                                                                <asp:ListItem Text="<%$ Resources:Content,SMI0374 %>" Value="-2147483646"></asp:ListItem>
                                                                <asp:ListItem Text="<%$ Resources:Content,Universal %>" Value="-2147483640"></asp:ListItem>
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>

                                                </div>
                                                <div class="row">
                                                    <div class="col-xs-12">
                                                        <div class="form-group form-float">
                                                            <asp:Button ID="Btn_SearchMembers" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000391%>" />
                                                            <asp:Button ID="Btn_ClearMembers" Visible="false" class="btn btn-primary waves-effect" runat="server"
                                                                Text="<%$ Resources:Content,String289 %>" />
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>


                                        </div>
                                    </div>
                                </div>
                            </div>
                        </asp:Panel>

                        <div class="row">
                            <div class="col-xs-12">
                                <div class="card">
                                    <div class="header">
                                        <h3>
                                            <%= Resources.Content.GN00001320%>                                                                                                                                 
                                        </h3>
                                    </div>
                                    <div class="body">
                                        <asp:Button ID="Btn_ExportGroupMemebrsToExcel" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,Ex001%>" />
                                    </div>
                                </div>
                            </div>
                        </div>

                        <%--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_GroupMembers" runat="server" AutoGenerateColumns="false" AllowPaging="true" AllowSorting="true">

                                    <Columns>
                                        <asp:TemplateField HeaderText="<%$ Resources:Content,strMember%>">
                                            <ItemTemplate>
                                                <asp:Label ID="Lbl_Member" runat="server"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="<%$ Resources:Content,GN000165%>" SortExpression="DisplayName">
                                            <ItemTemplate>
                                                <asp:HyperLink ID="Lbl_GroupName" runat="server"></asp:HyperLink>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="<%$ Resources:Content,OrganizationName%>" SortExpression="OrganizationName">
                                            <ItemTemplate>
                                                <asp:HyperLink ID="Lbl_OrganizationName" runat="server"></asp:HyperLink>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="<%$ Resources:Content, GN0000850 %>" SortExpression="CustDisplayName">
                                            <ItemTemplate>
                                                <asp:HyperLink ID="LB_ClientID" runat="server"></asp:HyperLink>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <%--PagerTemplate Start--%>
                                    <PagerTemplate>
                                        <EM:Pager ID="Pager1" runat="server" />
                                    </PagerTemplate>
                                    <%--PagerTemplate End--%>
                                </asp:GridView>
                            </div>
                        </div>
                    </div>
                </asp:Panel>
            </asp:Panel>
        </ContentTemplate>
    </EM:TabPanel>
    <EM:TabPanel ID="Tab_ContactReports" runat="server" Enabled="false" HeaderText='<%$ Resources:Content,ContactReports%>'>
        <ContentTemplate>
            <asp:Button ID="Btn_Tab2" runat="server" Style="display: none" />
            <asp:Panel ID="Pnl_TabContent2" runat="server" Visible="false">
                <asp:Panel ID="Pnl_ContactReports" runat="server">
                </asp:Panel>

            </asp:Panel>
        </ContentTemplate>
    </EM:TabPanel>
    <EM:TabPanel ID="Tab_ADSyncUsageReport" runat="server" Enabled="false" HeaderText='<%$ Resources:Content,USM0183%>'>
        <ContentTemplate>
            <asp:Button ID="Btn_Tab3" runat="server" Style="display: none" />
            <asp:Panel ID="Pnl_TabContent3" runat="server" Visible="false">
                <asp:Panel ID="Pnl_ADSyncUsageReport" runat="server">
                </asp:Panel>
            </asp:Panel>
        </ContentTemplate>
    </EM:TabPanel>
    <EM:TabPanel ID="Tab_UsageReport" runat="server" Enabled="false" HeaderText='<%$ Resources:Content,FAM00137%>'>
        <ContentTemplate>
            <asp:Button ID="Btn_Tab4" runat="server" Style="display: none" />
            <asp:Panel ID="Pnl_TabContent4" runat="server" Visible="false">
                <asp:Panel ID="Pnl_UsageReport" runat="server">
                </asp:Panel>
            </asp:Panel>
        </ContentTemplate>
    </EM:TabPanel>
</EM:TabContainer>