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

<%@ Register Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Namespace="System.Web.UI" TagPrefix="cc1" %>
<%@ 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/NH.ascx" TagName="NH" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Clients/CC/PackageSwitch.ascx" TagName="PackageSwitch" 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="Content5" ContentPlaceHolderID="CPH_Content" runat="Server">

    <ajax:UpdatePanel ID="UP_NH" runat="server">
        <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>

    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h2>
                    <asp:Literal ID="Ltl_SubsInfo" runat="server" /></h2>
            </div>
            <div class="body">

                <ajax:UpdatePanel ID="UP_Hosting" runat="server">
                    <ContentTemplate>
                        <asp:Button ID="Btn_Dummy" Style="display: none" runat="server" />
                        <asp:Button ID="Btn_Dummy3" Style="display: none" runat="server" />
                        <asp:Panel ID="Pnl_PackageSwitch" runat="server" Style="display: none" CssClass="width-modal-popup-auto">
                            <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>

                        <asp:Panel ID="Pnl_Reason" CssClass="width-modal-popup-auto" runat="server" Style="display: none">
                            <div class="col-xs-12">
                                <div class="card">
                                    <div class="header">
                                        <h3>
                                            <asp:Literal ID="Ltl_Reason" runat="server" Text='<%$ Resources:Content,DGN1110283%>'></asp:Literal>:
                                        </h3>
                                    </div>
                                    <div class="body">
                                        <div class="row">
                                            <div class="col-sm-4 col-xs-12 row-label">
                                                <label>
                                                    <asp:Literal ID="Literal166" runat="server" Text="<%$ Resources:Content,DGN1110283%>"
                                                        EnableViewState="false" />:</label>
                                            </div>
                                            <div class="col-sm-8 col-xs-12">
                                                <div class="form-group">
                                                    <asp:DropDownList ID="DDL_Reason" runat="server" AutoPostBack="true">
                                                        <asp:ListItem Text="<%$ Resources:Content,SMI0345%>" Value="0"></asp:ListItem>
                                                        <asp:ListItem Text="<%$ Resources:Content,SMI0346%>" Value="1"></asp:ListItem>
                                                        <asp:ListItem Text="<%$ Resources:Content,SMI0347%>" Value="2"></asp:ListItem>
                                                        <asp:ListItem Text="<%$ Resources:Content,SMI0348%>" Value="3"></asp:ListItem>
                                                        <asp:ListItem Text="<%$ Resources:Content,SM400021%>" Value="4"></asp:ListItem>
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-4 col-xs-12 row-label">
                                                <label>
                                                    *<asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Content,DGN1110283%>"
                                                        EnableViewState="false" />:</label>
                                            </div>
                                            <div class="col-sm-8 col-xs-12">
                                                <div class="form-group">
                                                    <asp:TextBox ID="TxBx_Reason" runat="server" CssClass="col-xs-12" MaxLength="500" TextMode="MultiLine" Rows="5"></asp:TextBox>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-xs-12">
                                                <asp:Button ID="Btn_SuspendNow" class="btn btn-primary waves-effect btnAction" runat="server" Text='<%$ Resources:Content,DGN1110276%>' />
                                                <asp:Button ID="Btn_Cancel" class="btn btn-primary waves-effect" runat="server" Text='<%$ Resources:Content,GN0000572%>' />
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </asp:Panel>
                        <asp:Button ID="Btn_MessageDummy" runat="server" Style="display: none" Text="<%$ Resources:Content,GN0000575%>" />
                        <EM:ModalPopupExtender runat="server" ID="MPE_Message" BackgroundCssClass="modalBackground"
                            DropShadow="false" PopupControlID="Pnl_Reason" TargetControlID="Btn_MessageDummy">
                        </EM:ModalPopupExtender>

                        <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="Btn_DummyEditQ" Style="display: none" runat="server" />
                        <asp:Panel ID="Pnl_EditQuantity" runat="server" Style="display: none" CssClass="width-modal-popup-auto">
                            <div class="col-xs-12">
                                <div class="card">
                                    <div class="header container-fluid">
                                        <h3 class="pull-left">
                                            <asp:Literal ID="Ltl_AddOnsHeading" runat="server" Text='<%$ Resources:Content, ChangeAddonQuantity %>'
                                                EnableViewState="false" /></h3>
                                        <span>
                                            <button type="button" class="close" onclick="$find('<%=MP_EditQuantity.ClientID%>').hide();">&times;</button>
                                        </span>
                                    </div>
                                    <div class="body">
                                        <div class="row" id="TR_EffectOnPayment" runat="server">
                                            <div class="col-sm-3 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">
                                                <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 class="row" id="TR_Quantity" runat="server">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                *<asp:Label ID="Ltl_Quantity" runat="server" Text='<%$ Resources:Content, String35 %>' />
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="Txt_Quantity" runat="server"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <asp:Label ID="Literal276" runat="server" Font-Bold="true" Text='<%$ Resources:Content, GN090 %>'
                                                    EnableViewState="false" />
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                *<asp:Literal ID="Div6" runat="server" Text='<%$ Resources:Content, GN000148 %>' EnableViewState="false" />
                                            </div>
                                            <div class="col-sm-9 col-xs-12">
                                                <div class="form-group">
                                                    <asp:TextBox ID="TxBx_ItemComments" runat="server" Height="80px" CssClass="col-xs-12" TextMode="MultiLine"></asp:TextBox>
                                                </div>
                                            </div>
                                        </div>
                                        <%--<div class="row" id="TR_AddOnWarning" runat="server">
                        <div class="col-xs-12">
                            <asp:CheckBox Text=" " ID="CB_CancelWarning" runat="server" />
                            <asp:Label ID="Label52" 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="MP_EditQuantity" BackgroundCssClass="modalBackground"
                            DropShadow="false" OnCancelScript="onCancelCancelAddon()"
                            CancelControlID="Btn_Pop_Cancel" PopupControlID="Pnl_EditQuantity" TargetControlID="Btn_DummyEditQ">
                        </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 Div_OpsRow" id="Div_OpsRow" runat="server">
                                            <div class="col-xs-12">
                                                <div class="card">
                                                    <div class="header">
                                                        <h3>
                                                            <%= Resources.Content.GN00001320%>      <%--Operations--%>                                                                                                                             
                                                        </h3>
                                                    </div>
                                                    <div class="body">
                                                        <asp:Button class="btn btn-primary waves-effect btnAction" Visible="false" 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%>" />
                                                        <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" Text="<%$ Resources:Content,String302%>" />
                                                        <asp:Button class="btn btn-primary waves-effect btnAction" ID="Btn_DownGrade" runat="server" Text="<%$ Resources:Content,String303%>" />
                                                        <asp:Button class="btn btn-primary waves-effect btnAction" ID="Btn_Suspend" runat="server" Enabled="false" Text="<%$ Resources:Content,GN0000756%>" />
                                                        <asp:Button class="btn btn-primary waves-effect btnAction" ID="Btn_EditQuantity" runat="server" Text="<%$ Resources:Content,EditQuantity%>" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>

                                        <EM:NH ID="NH" runat="server" />
                                        <EM:Notes ID="Notes_Account" runat="server" />
                                    </asp:Panel>
                                </ContentTemplate>
                            </EM:TabPanel>
                            <EM:TabPanel ID="Tab_Resources" runat="server" Enabled="false" HeaderText="<%$ Resources:Content,DEV1008%>">
                                <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>

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