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

<%@ Register Src="~/RCC/Clients/CC/GetComments.ascx" TagName="GetComments" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Clients/AccountStatment.ascx" TagName="AccountStatment" TagPrefix="EM" %>
<%@ Register Src="AccountAddons.ascx" TagName="AccountAddons" TagPrefix="EM" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Clients/CC/GenerateInvoice.ascx" TagName="GenerateInvoice" TagPrefix="EM" %>
<%@ Register Src="../CC/Notes.ascx" TagName="Notes" TagPrefix="EM" %>
<%@ Register Src="CC/AD.ascx" TagName="AD" TagPrefix="EM" %>
<%@ Register Src="CC/AD_Resources.ascx" TagName="AD_Resources" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Clients/CC/PackageSwitch.ascx" TagName="PackageSwitch" TagPrefix="EM" %>
<%@ Register Src="~/Template/ResourcesQuota.ascx" TagName='ResourceQuota' TagPrefix='EM' %>
<%@ Register Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Namespace="System.Web.UI" TagPrefix="cc1" %>
<%@ Register Src="~/RCC/Clients/CC/CancelSubscription.ascx" TagName="CancelSubscription" TagPrefix="EM" %>
<%@ Register Src="~/PCC/DC/CC/ADOrgs.ascx" TagName="ADOrgs" TagPrefix="EM" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h2>
                    <asp:Literal ID="Ltl_SubsInfo" runat="server" /></h2>
            </div>
            <div class="body">
                <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Dummy" Style="display: none" runat="server" />

                <EM:TabContainer ID="TC_ADHosting" runat="server" OnClientActiveTabChanged="loadTabPanel">
                    <EM:TabPanel ID="Tab_GeneralInfo" runat="server" HeaderText="<%$ Resources:Content,GN0000578%>">
                        <ContentTemplate>
                            <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Tab0" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent0" 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">
                                                <%--<asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_PutOnHold" runat="server" class="btn btn-primary waves-effect" Text='<%$ Resources:Content,GN0000756%>' />--%>
                                                <asp:Button CssClass="btn btn-primary waves-effect btnAction" ID="Btn_ManageService" runat="server" Text="<%$ Resources:Content,L0086%>" />
                                                <asp:Button CssClass="btn btn-primary waves-effect btnAction" ID="Btn_GenerateRenewalInvoice" runat="server"
                                                    Text="<%$ Resources:Content,GN00001482%>" />
                                                <asp:Button CssClass="btn btn-primary waves-effect btnAction" ID="Btn_CancelSub" runat="server" Text="<%$ Resources:Content,SPT002010%>" />
                                                <asp:Button CssClass="btn btn-primary waves-effect btnAction" ID="Btn_Edit" Enabled="false" Visible="false"
                                                    runat="server" Text="<%$ Resources:Content,GN00001487%>" />
                                                <asp:Button CssClass="btn btn-primary waves-effect btnAction" ID="Btn_UpGrade" runat="server" Text="<%$ Resources:Content,String302%>" />
                                                <asp:Button CssClass="btn btn-primary waves-effect btnAction" ID="Btn_DownGrade" runat="server" Text="<%$ Resources:Content,String303%>" />
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <EM:AD ID="AD1" runat="server" />
                                <EM:Notes ID="Notes_ADAccount" runat="server" />

                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                    <EM:TabPanel ID="Tab_Resources" runat="server" HeaderText="<%$ Resources:Content,DEV1008%>">
                        <ContentTemplate>
                            <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Tab1" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent1" runat="server" Visible="false">
                                <div id="Tbl_Operations" runat="server" class="tblNewListing Div_OpsRow">
                                    <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 CssClass="btn btn-primary waves-effect btnAction" ID="Btn_EditResources" runat="server" Text="<%$ Resources:Content,SPT002193%>" />
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <EM:AD_Resources ID="AD_Resources01" runat="server" />
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                    <EM:TabPanel ID="Tab_Addons" runat="server" HeaderText="<%$ Resources:Content,GN00001489%>">
                        <ContentTemplate>
                            <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Tab2" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent2" runat="server" Visible="false">

                                <EM:AccountAddons ID="AA_Hosting" runat="server" />
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                    <EM:TabPanel ID="Tab_Billing" runat="server" HeaderText="<%$ Resources:Content,GN00001490%>">
                        <ContentTemplate>
                            <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Tab3" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent3" runat="server" Visible="false">
                                <EM:AccountStatment ID="AS_Hosting" runat="server"></EM:AccountStatment>
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                    <EM:TabPanel ID="Tab_Organizations" runat="server" HeaderText="<%$ Resources:Content,DEV1063%>">
                        <ContentTemplate>
                            <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Tab4" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent4" runat="server" Visible="false">
                                <EM:ADOrgs ID="ADOrgs1" runat="server" />
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                </EM:TabContainer>

                <ajax:UpdatePanel ID="UP_Resources" runat="server" UpdateMode="Always">
                    <ContentTemplate>
                        <div class="ResourceQuota">
                            <asp:Panel ID="Pnl_Resources" runat="server" BorderColor="ActiveBorder" BorderStyle="Groove"
                                ScrollBars="Auto" CssClass="ResourceQuota-panel" Style="display: none">
                                <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="row">
                                                    <div class="col-xs-12 row-label">
                                                        <asp:Label ID="Lbl_ResourceError" runat="server" ForeColor="red" Font-Bold="true" Visible="false"></asp:Label>
                                                    </div>
                                                </div>
                                                <asp:GridView ID="GV_Resources" runat="server" AllowPaging="true" CssClass="table table-bordered table-hove table-striped table-responsive"
                                                    AutoGenerateColumns="false" EmptyDataText="<%$ Resources:Content,GN00001375%>"
                                                    PageSize="500">

                                                    <Columns>
                                                        <asp:TemplateField HeaderText="<%$Resources:Content,DEV1008%>" HeaderStyle-CssClass="col-xs-4">
                                                            <ItemTemplate>
                                                                <asp:Label ID="Lbl_ResourceID" runat="server"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="<%$Resources:Content,DEV1002%>" HeaderStyle-CssClass="col-xs-2">
                                                            <ItemTemplate>
                                                                <asp:Label ID="Lbl_TotalResources" runat="server"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="<%$Resources:Content,DEV1003%>" HeaderStyle-CssClass="col-xs-2">
                                                            <ItemTemplate>
                                                                <asp:Label ID="Lbl_UsedResources" runat="server"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="<%$Resources:Content,DEV1004%>" HeaderStyle-CssClass="col-xs-2">
                                                            <ItemTemplate>
                                                                <asp:Label ID="Lbl_AvailableResources" runat="server"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="<%$Resources:Content,DEV1005%>" HeaderStyle-CssClass="col-xs-2">
                                                            <ItemTemplate>
                                                                <asp:Label ID="Lbl_RequestedResources" runat="server"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                </asp:GridView>

                                                <div class="row">
                                                    <div class="col-xs-12">
                                                        <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Done" runat="server" Text="<%$ Resources:Content,GN0000858%>" SkinID="okbutton" />
                                                        <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Display" runat="server" Style="display: none;" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                        <EM:ModalPopupExtender runat="server" ID="MPE_Resource" BackgroundCssClass="modalBackground"
                            DropShadow="false" PopupControlID="Pnl_Resources" TargetControlID="Btn_Display"
                            OkControlID="Btn_Done">
                        </EM:ModalPopupExtender>
                    </ContentTemplate>
                </ajax:UpdatePanel>

            </div>
        </div>
    </div>

    <asp:Panel ID="Panel1" runat="server" Style="display: none" CssClass="width-modal-popup-auto">
        <EM:CancelSubscription ID="UCCancelSubscription" runat="server" />
    </asp:Panel>
    <EM:ModalPopupExtender runat="server" ID="MP1" BackgroundCssClass="modalBackground"
        DropShadow="false" PopupControlID="Panel1" TargetControlID="Btn_Dummy">
    </EM:ModalPopupExtender>

    <asp:Button CssClass="btn btn-primary waves-effect" ID="Button1" Style="display: none" runat="server" />
    <asp:Panel ID="Panel3" runat="server" CssClass="width-modal-popup-auto" Style="display: none">
        <EM:GetComments ID="GetComments" runat="server" />
    </asp:Panel>
    <EM:ModalPopupExtender runat="server" ID="MPE_GetReason" BackgroundCssClass="modalBackground"
        DropShadow="false" PopupControlID="Panel3" TargetControlID="Button1">
    </EM:ModalPopupExtender>


    <%--Resource Quota Window Starts--%>
    <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Dummy4" Style="display: none" runat="server" />
    <asp:Panel ID="Pnl_ResourceQuota" runat="server" Visible='false' CssClass="width-modal-popup-auto">
        <EM:ResourceQuota runat="server" ID="ResourceQuotaView" />
    </asp:Panel>
    <EM:ModalPopupExtender runat="server" ID="MPE_ResourceQuota" BackgroundCssClass="modalBackground"
        DropShadow="false" PopupControlID="Pnl_ResourceQuota" TargetControlID="Btn_Dummy4"
        Enabled='false'>
    </EM:ModalPopupExtender>
    <%--Resource Quota Window Ends--%>
    <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Dummy3" Style="display: none" runat="server" />
    <asp:Panel ID="Pnl_PackageSwitch" CssClass="width-modal-popup-auto" runat="server" Style="display: none">
        <EM:PackageSwitch runat="server" ID="PackageSwitch" OnPackageChange="PackageSwitchPopUpShow" />
    </asp:Panel>
    <EM:ModalPopupExtender runat="server" ID="MPE_PackageSwitch" BackgroundCssClass="modalBackground"
        DropShadow="false" PopupControlID="Pnl_PackageSwitch" TargetControlID="Btn_Dummy3">
    </EM:ModalPopupExtender>
    <ajax:UpdatePanel ID="UP_CRM" runat="server">
        <ContentTemplate>
            <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Dummy2" Style="display: none" runat="server" />
            <asp:Panel ID="Panel2" runat="server" CssClass="width-modal-popup-auto" Style="display: none">
                <EM:GenerateInvoice ID="GenerateInvoice" runat="server" />
            </asp:Panel>
            <EM:ModalPopupExtender runat="server" ID="MPE_Invoice" BackgroundCssClass="modalBackground"
                DropShadow="false" PopupControlID="Panel2" TargetControlID="Btn_Dummy2">
            </EM:ModalPopupExtender>
        </ContentTemplate>
    </ajax:UpdatePanel>
    <script type="text/javascript">
        function onOk() {
            if (document.getElementById('ctl00_CPH_Content_TxBx_ItemComments').value != '') {
                __doPostBack('ctl00$CPH_Content$Btn_Pop_OK', '');
            }
            else {
                alert("Please enter comments.");
                $find('ctl00_CPH_Content_MP1').show();
            }

        }
        function onCancel() {
            //  __doPostBack('ctl00$RightContentPlaceHolder$Btn_Pop_Cancel','');
            //      __doPostBack('ctl00$RightContentPlaceHolder$GV_TicketList$ctl02$LBtn_Del','')
        }

    </script>
</asp:Content>

