<%@ control language="VB" autoeventwireup="false" inherits="PCC_Exchange_CC_Reports, MachSol.MachPanel.Web" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="UC" %>
<%@ Register Src="SPLA.ascx" TagName="SPLA" TagPrefix="UC" %>
<%@ Register Src="UsageReport.ascx" TagName="UsageReport" TagPrefix="UC" %>
<%@ Register Src="SubscriptionsReport.ascx" TagName="SubscriptionsReport" TagPrefix="UC" %>

<script type="text/javascript">
    $(document).ready(function () {
        setTimeout(function () {
            var numItems = $('#ctl00_CPH_Content_TC_ExHome_Tab_Reporting_UC_Reports_TC_Reports_header').children('span').filter(':not([style])').length;
            if (numItems == 1) {
                $('#ctl00_CPH_Content_TC_ExHome_Tab_Reporting_UC_Reports_TC_Reports_header').addClass("hide");
            }
        }, 30);

        setTimeout(function () {
            var numItems = $('#ctl00_CPH_Content_TC_ExHome_Tab_Reporting_UC_Reports_TC_Reports_header').children('span').filter(':not([style])').length;
            if (numItems == 1) {
                $('#ctl00_CPH_Content_TC_ExHome_Tab_Reporting_UC_Reports_TC_Reports_header').addClass("hide");
            }
        }, 100);
    });
</script>
<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_SPLA" runat="server" HeaderText='<%$ Resources:Content,SPLA%>'>
        <ContentTemplate>
            <asp:Button ID="Btn_Tab0" runat="server" Style="display: none" />
            <asp:Panel ID="Pnl_TabContent0" runat="server" Visible="true">
                <asp:Panel ID="Pnl_SPLA" runat="server">
                    <UC:SPLA ID="UC_SPLA" runat="server" />
                </asp:Panel>

            </asp:Panel>
        </ContentTemplate>
    </EM:TabPanel>
    <EM:TabPanel ID="Tab_UsageReport" runat="server" HeaderText='<%$ Resources:Content,MD201%>'>
        <ContentTemplate>
            <asp:Button ID="Btn_Tab1" runat="server" Style="display: none" />
            <asp:Panel ID="Pnl_TabContent1" runat="server" Visible="false">
                <asp:Panel ID="Pnl_UsageReport" runat="server">
                    <UC:UsageReport ID="UC_UsageReport" runat="server" />
                </asp:Panel>

            </asp:Panel>
        </ContentTemplate>
    </EM:TabPanel>
    <EM:TabPanel ID="Tab_SubscriptionsReport" runat="server" HeaderText='<%$ Resources:Content,SubscriptionsReport%>'>
        <ContentTemplate>
            <asp:Button ID="Btn_Tab2" runat="server" Style="display: none" />
            <asp:Panel ID="Pnl_TabContent2" runat="server" Visible="false">
                <asp:Panel ID="Pnl_SubscriptionsReport" runat="server">
                    <UC:SubscriptionsReport ID="UC_SubscriptionsReport" runat="server" />
                </asp:Panel>

            </asp:Panel>
        </ContentTemplate>
    </EM:TabPanel>
    <EM:TabPanel ID="Tab_OtherReports" runat="server" HeaderText='<%$ Resources:Content,SM400021%>'>
        <ContentTemplate>
            <asp:Button ID="Btn_Tab3" runat="server" Style="display: none" />
            <asp:Panel ID="Pnl_TabContent3" runat="server" Visible="false">

                <!-- Filter -->
                <asp:Panel ID="Pnl_Filter" runat="server">
                    <div class="row">
                        <div class="panel-group search-panel" id="AS_OrgsFilter" role="tablist" aria-multiselectable="true">
                            <div class="col-xs-12" role="tab" id="SH_OrgsFilter">
                                <div class="card">
                                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_OrgsFilter" href="#<%= CSB_OrgsFilter.ClientID%>" aria-expanded="true" aria-controls="SH_OrgsFilter">
                                        <h3>
                                            <%= Resources.Content.GN0000395%>
                                        </h3>
                                    </div>
                                    <div id="CSB_OrgsFilter" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_OrgsFilter" aria-expanded="false">
                                        <div class="row">
                                            <div class="col-md-3 col-sm-6 col-xs-12" runat="server" id="Td_OwnerDDL">
                                                <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" runat="server" id="Td_Customer">
                                                <div class="form-group form-float">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_Customer" runat="server" MaxLength="200"></asp:TextBox>
                                                        <asp:Label ID="Label7" 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_OrgName" runat="server" MaxLength="255"></asp:TextBox>
                                                        <asp:Label ID="Label8" 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_DomainName" runat="server" MaxLength="255"></asp:TextBox>
                                                        <asp:Label ID="Label9" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110516%>" 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" MaxLength="255"></asp:TextBox>
                                                        <asp:Label ID="Label1" 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">
                                                <div class="form-group form-float">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_GroupName" runat="server" MaxLength="255"></asp:TextBox>
                                                        <asp:Label ID="Label2" runat="server" EnableViewState="false" Text="<%$ Resources:Content,SMI0562%>" 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_GroupMember" runat="server" MaxLength="255"></asp:TextBox>
                                                        <asp:Label ID="Label3" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GroupMember%>" class="form-label"></asp:Label>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </asp:Panel>

                <!-- Operations -->
                <div class="row">
                    <div class="col-xs-12">
                        <div class="card">
                            <div class="header">
                                <h3>
                                    <%= Resources.Content.GN00001320%>      <%--Operations--%>
                                </h3>
                            </div>
                            <div class="body">
                                <asp:Button ID="Btn_ExportMailboxPermissions" runat="server" CssClass="btn btn-primary waves-effect" Text='<%$ Resources:Content,ExportMailboxPermissions%>' />
                                <asp:Button ID="Btn_ExportMailboxForwarding" runat="server" CssClass="btn btn-primary waves-effect" Text='<%$ Resources:Content,ExportMailboxForwarding%>' />
                                <asp:Button ID="Btn_MembersReport" runat="server" CssClass="btn btn-primary waves-effect" Text="<%$ Resources:Content,MembersReport%>" />
                            </div>
                        </div>
                    </div>
            </asp:Panel>
        </ContentTemplate>
    </EM:TabPanel>
</EM:TabContainer>