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

<%@ 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="../CC/Notes.ascx" TagName="Notes" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Clients/CC/Domain.ascx" TagName="Domain" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Clients/CC/GenerateInvoice.ascx" TagName="GenerateInvoice" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Clients/CC/CancelSubscription.ascx" TagName="CancelSubscription" TagPrefix="EM" %>

<asp:Content ID="Content4" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div class="col-xs-12">
        <div class="card">
            <div class="body">
                <ajax:UpdatePanel ID="UP_Hosting" runat="server">
                    <ContentTemplate>
                        <asp:Button ID="Btn_Dummy" Style="display: none" runat="server" />
                        <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>

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

                                        <EM:Domain ID="Domain" runat="server" />
                                        <EM:Notes ID="Notes_Account" runat="server" />
                                    </asp:Panel>
                                </ContentTemplate>
                            </EM:TabPanel>
                            <EM:TabPanel ID="Tab_Resources" runat="server" HeaderText="<%$ Resources:Content,DEV1008%>" Enabled="false">
                                <ContentTemplate>
                                    <asp:Button CssClass="formButton formButtonNew" ID="Btn_Tab1" runat="server" Style="display: none;" />
                                    <asp:Panel ID="Pnl_TabContent1" runat="server" Visible="false">
                                        <asp:Literal ID="Literal14" runat="server" Text="<%$ Resources:Content,GN00001488%>" EnableViewState="false" />
                                    </asp:Panel>
                                </ContentTemplate>
                            </EM:TabPanel>
                            <EM:TabPanel ID="Tab_AddOns" runat="server" HeaderText="<%$ Resources:Content,GN00001489%>">
                                <ContentTemplate>
                                    <asp:Button CssClass="formButton formButtonNew" 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="formButton formButtonNew" 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:TabContainer>
                    </ContentTemplate>
                </ajax:UpdatePanel>
            </div>
        </div>
    </div>
    <ajax:UpdatePanel ID="UP_Domain" runat="server">
        <ContentTemplate>
            <asp:Button ID="Btn_Dummy2" Style="display: none" runat="server" />
            <asp:Panel ID="Panel2" CssClass="width-modal-popup-auto" runat="server" 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>
