<%@ page language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="Clients_RH, 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="CC/RH.ascx" TagName="RH" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Clients/CC/GenerateInvoice.ascx" TagName="GenerateInvoice"
    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>
                        <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 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" Visible="false" runat="server" Text="<%$ Resources:Content,L0086%>" />
                                                        <asp:Button class="btn btn-primary waves-effect btnAction" ID="Btn_GenerateInvoice" runat="server" Text="<%$ Resources:Content,GN00001482%>" />
                                                        <asp:Button class="btn btn-primary waves-effect btnAction" ID="Btn_CancelSub" runat="server" Text="<%$ Resources:Content,SPT002010%>" />
                                                        <asp:Button class="btn btn-primary waves-effect btnAction" ID="Btn_Edit" Enabled="false" Visible="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%>" />
                                                        <asp:Button class="btn btn-primary waves-effect btnAction" ID="Btn_DownGrade" runat="server" Enabled="false" Text="<%$ Resources:Content,String303%>" />

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

                                        <EM:RH ID="RH" 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" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <asp:Button ID="Btn_Dummy2" Style="display: none" runat="server" />
            <asp:Panel ID="Panel2" runat="server" Style="display: none" CssClass="width-modal-popup-auto">
                <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>
    <asp:Button ID="Btn_Dummy" Style="display: none" runat="server" />
    <asp:Panel ID="Panel1" runat="server" CssClass="width-modal-popup-auto" Style="display: none">
        <div class="col-xs-12">
            <div class="card">
                <div class="header">
                    <h3><%= Resources.Content.SPT002010%>  </h3>
                </div>
                <div class="body">
                    <div class="row" id="TR_EffectOnPayment" runat="server">
                        <div class="col-sm-4 col-xs-12 row-label">
                            <asp:Literal ID="Literal2" runat="server" Text='<%$ Resources:Content, GN0000711 %>' EnableViewState="false" />
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <asp:RadioButtonList ID="RBL_EffectOnPayment" runat="server">
                                    <asp:ListItem Text='<%$ Resources:Content, GN0000712 %>' Selected="true" Value="0"></asp:ListItem>
                                    <asp:ListItem Text='<%$ Resources:Content, GN0000713 %>' Value="1"></asp:ListItem>
                                </asp:RadioButtonList>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-4 col-xs-12 row-label">
                            *
                                <asp:Literal ID="Div6" runat="server" Text='<%$ Resources:Content, GN000148 %>' EnableViewState="false" />
                        </div>
                        <div class="col-sm-8 col-xs-12">
                            <div class="form-group">
                                <asp:TextBox ID="TxBx_ItemComments" runat="server" Height="80px" TextMode="MultiLine"
                                    CssClass="col-xs-12"></asp:TextBox>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12">
                            <asp:CheckBox Text=" " ID="CB_CancelWarning" runat="server" />
                            <asp:Label ID="Literal11" runat="server" EnableViewState="false" ForeColor="Red" Font-Bold="true" Text='<%$ Resources:Content, CancelWarning %>' />
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12">
                            <asp:Button ID="Btn_Pop_OK" runat="server" CssClass="formButton formButtonOK btn btn-primary waves-effect" Enabled="false"
                                Text='<%$ Resources:Content, GN0000710 %>' />
                            <asp:Button ID="Btn_Pop_Cancel" CssClass="formButton formButtonCancel btn btn-primary waves-effect"
                                runat="server" Text='<%$ Resources:Content, GN0000572 %>' />
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </asp:Panel>
    <EM:ModalPopupExtender runat="server" ID="MP1" BackgroundCssClass="modalBackground"
        OnCancelScript="onCancel()" OnOkScript="onOk()" DropShadow="false" OkControlID="Btn_Pop_OK"
        CancelControlID="Btn_Pop_Cancel" PopupControlID="Panel1" TargetControlID="Btn_Dummy">
    </EM:ModalPopupExtender>

    <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>
