<%@ page title="" language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="RCC_Packages_SSLProductListing, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Packages/CC/EditCResellerPackage.ascx" TagName="EditCRPackage" TagPrefix="UC" %>
<%@ Register Src="~/RCC/Packages/CC/CResellerPackageDetail.ascx" TagName="CRPackageDetail" TagPrefix="UC" %>
<%@ Register Src="~/RCC/Packages/CC/CResellerAddOnDetail.ascx" TagName="CRAddOnDetail" TagPrefix="UC" %>
<%@ Register Src="~/RCC/Packages/CC/EditCResellerAddOn.ascx" TagName="EditCRAddOn" TagPrefix="UC" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" 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="Ltr_HostingProducts" runat="server" Text='<%$ Resources:Content, M0056 %>' /></h2>
            </div>
            <div class="body">
                <EM:TabContainer ID="TbCntr_Products" runat="server" OnClientActiveTabChanged="loadTabPanel">
                    <EM:TabPanel ID="Tab_ResellerProducts" runat="server" HeaderText="<%$ Resources:Content,String271%>">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab0" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent0" runat="server">
                                <ajax:UpdatePanel ID="UP_RProductList" runat="server" RenderMode="Block" UpdateMode="Conditional">
                                    <ContentTemplate>

                                        <%-- Operations --%>
                                        <div class="card Div_OpsRow" id="tbl_ResellerOperations" runat="server">
                                            <div class="header">
                                                <h3>
                                                    <%= Resources.Content.GN00001320%>                                                                                                                         
                                                </h3>
                                            </div>
                                            <div class="body">
                                                <asp:Button class="btn btn-primary waves-effect btnAction" ID="Btn_AddRProduct" runat="server" Text="<%$ Resources:Content,GN00001462%>" />
                                            </div>
                                        </div>

                                        <div class="row">&nbsp;</div>

                                        <asp:SqlDataSource ID="DS_RProductList" runat="server"></asp:SqlDataSource>
                                        <asp:GridView EmptyDataText='<%$ Resources:Content, GN00001375 %>' ID="GV_RProductList" DataSourceID="DS_RProductList" runat="server" 
                                            CssClass="table table-bordered table-striped table-hover" AutoGenerateColumns="false" >
                                            <Columns>
                                                <asp:TemplateField HeaderText="<%$ Resources:Content,String385%>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left">
                                                    <ItemTemplate>
                                                        <asp:Literal ID="Ltr_Status" runat="server" />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField SortExpression="PackageID" HeaderStyle-ForeColor="white" HeaderText='<%$ Resources:Content, GN0000678 %>'
                                                    HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left">
                                                    <ItemTemplate>
                                                        <%#DataBinder.Eval(Container, "DataItem.PackageID")%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField SortExpression="PackageName" HeaderStyle-ForeColor="white" HeaderText='<%$ Resources:Content, GN0000937 %>'
                                                    HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left">
                                                    <ItemTemplate>
                                                        <%# DataBinder.Eval(Container, "DataItem.PackageName") %>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderStyle-ForeColor="white" HeaderText="<%$ Resources:Content,String330 %>"
                                                    HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left">
                                                    <ItemTemplate>
                                                        <asp:Label ID="Lb_SoldCount" runat="server" CssClass="text-align-right" Text='<%# DataBinder.Eval(Container, "DataItem.TotalSold") %>'></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderStyle-ForeColor="white" HeaderText='<%$ Resources:Content,GN00001496 %>'
                                                    HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left">
                                                    <ItemTemplate>
                                                        <asp:Label ID="Lbl_DateCreated" runat="server"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1"
                                                    HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left">
                                                    <ItemTemplate>
                                                        <ul class="option-menu">
                                                            <li class="dropdown">
                                                                <a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
                                                                    <i class="material-icons">menu</i>
                                                                </a>
                                                                <ul class="dropdown-menu pull-right">
                                                                    <li>
                                                                        <asp:HyperLink ID="LB_Edit" runat="server" Text='<%$ Resources:Content, GN0000276 %>'></asp:HyperLink>
                                                                    </li>
                                                                    <li>
                                                                        <asp:LinkButton ID="LB_EnableDisable" CssClass="btnAction" runat="server" Text='<%$ Resources:Content, GN0000807 %>'></asp:LinkButton>
                                                                    </li>
                                                                    <li>
                                                                        <asp:LinkButton ID="LB_Remove" CssClass="btnAction" runat="server" Text='<%$ Resources:Content, GN0000278 %>'></asp:LinkButton>
                                                                    </li>
                                                                    <EM:ConfirmButtonExtender ID="CBE_Remove" runat="server" ConfirmText="<%$Resources:Content,CBE001%>" TargetControlID="LB_Remove"></EM:ConfirmButtonExtender>
                                                                </ul>
                                                            </li>
                                                        </ul>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                            <PagerTemplate>
                                                <EM:Pager ID="Pager1" runat="server" />
                                            </PagerTemplate>
                                        </asp:GridView>
                                    </ContentTemplate>
                                </ajax:UpdatePanel>
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                    <EM:TabPanel ID="Tab_Products" runat="server" HeaderText="<%$ Resources:Content,SMI705%>">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab1" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent1" runat="server" Visible="false">
                                <ajax:UpdatePanel ID="UP_ProductList" runat="server">
                                    <ContentTemplate>

                                        <%-- Operations --%>
                                        <div class="card Div_OpsRow" id="tbl_Operations" runat="server">
                                            <div class="header">
                                                <h3>
                                                    <%= Resources.Content.GN00001320%>                                                                                                                         
                                                </h3>
                                            </div>
                                            <div class="body">
                                                <asp:Button class="btn btn-primary waves-effect btnAction" ID="Btn_AddCustomerProduct" runat="server" Text="<%$ Resources:Content,GN00001462%>" />
                                            </div>
                                        </div>

                                        <div class="row">&nbsp;</div>

                                        
                                        <asp:SqlDataSource ID="DS_ProductList" runat="server"></asp:SqlDataSource>
                                        <asp:GridView EmptyDataText='<%$ Resources:Content, GN00001375 %>' ID="GV_ProductList" DataSourceID="DS_ProductList" runat="server" 
                                            CssClass="table table-bordered table-striped table-hover" AutoGenerateColumns="false">
                                            <Columns>
                                                <asp:TemplateField HeaderText="<%$ Resources:Content,String385%>" ItemStyle-HorizontalAlign="Left" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                    <ItemTemplate>
                                                        <asp:Literal ID="Ltr_Status" runat="server" />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField SortExpression="PackageID" HeaderStyle-ForeColor="white" HeaderText='<%$ Resources:Content, GN0000678 %>'
                                                    HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left">
                                                    <ItemTemplate>
                                                        <%#DataBinder.Eval(Container, "DataItem.PackageID")%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField SortExpression="PackageName" HeaderStyle-ForeColor="white" HeaderText='<%$ Resources:Content, GN0000937 %>'
                                                    ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left">
                                                    <ItemTemplate>
                                                        <%# DataBinder.Eval(Container, "DataItem.PackageName") %>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderStyle-ForeColor="white" HeaderText="Sectigo Seller"
                                                    HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left">
                                                    <ItemTemplate>
                                                        <asp:Label ID="Lbl_SectigoSeller" runat="server" Text=''></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderStyle-ForeColor="white" HeaderText="<%$ Resources:Content,String330 %>"
                                                    HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left">
                                                    <ItemTemplate>
                                                        <asp:Label ID="Lb_SoldCount" runat="server" class="text-align-right" Text='<%# DataBinder.Eval(Container, "DataItem.TotalSold") %>'></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderStyle-ForeColor="white" HeaderStyle-HorizontalAlign="Left"
                                                    HeaderText='<%$ Resources:Content,GN00001496 %>' ItemStyle-HorizontalAlign="Left"
                                                    HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                    <ItemTemplate>
                                                        <asp:Label ID="Lbl_DateCreated" runat="server"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1"
                                                    HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left">
                                                    <ItemTemplate>
                                                        <ul class="option-menu">
                                                            <li class="dropdown">
                                                                <a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
                                                                    <i class="material-icons">menu</i>
                                                                </a>
                                                                <ul class="dropdown-menu pull-right">
                                                                    <li>
                                                                        <asp:HyperLink ID="LB_Edit" runat="server" Text='<%$ Resources:Content, GN0000276 %>'></asp:HyperLink>
                                                                    </li>
                                                                    <li>
                                                                        <asp:LinkButton ID="LBTN_Edit" CssClass="btnAction" runat="server" Text='<%$ Resources:Content, GN0000276 %>'></asp:LinkButton>
                                                                    </li>
                                                                    <li>
                                                                        <asp:LinkButton ID="LB_EnableDisable" CssClass="btnAction" runat="server" Text='<%$ Resources:Content, GN0000807 %>'></asp:LinkButton>
                                                                    </li>
                                                                    <li>
                                                                        <asp:LinkButton ID="LB_Remove" CssClass="btnAction" runat="server" Text='<%$ Resources:Content, GN0000278 %>'></asp:LinkButton>
                                                                    </li>
                                                                    <EM:ConfirmButtonExtender ID="CBE_Remove" runat="server" ConfirmText="<%$Resources:Content,CBE001%>" TargetControlID="LB_Remove"></EM:ConfirmButtonExtender>
                                                                </ul>
                                                            </li>
                                                        </ul>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                            <PagerTemplate>
                                                <EM:Pager ID="Pager2" runat="server" />
                                            </PagerTemplate>
                                        </asp:GridView>
                                    </ContentTemplate>
                                </ajax:UpdatePanel>

                            </asp:Panel>

                        </ContentTemplate>
                    </EM:TabPanel>
                    <EM:TabPanel ID="Tab_Addons" runat="server" HeaderText="<%$ Resources:Content,String39%>">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab2" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent2" runat="server" Visible="false">
                                <ajax:UpdatePanel ID="UP_Addon" runat="server" RenderMode="Block">
                                    <ContentTemplate>

                                        <!-- Operations -->
                                        <div class="card" id="tbl_AddOnOperations" runat="server">
                                            <div class="header">
                                                <h3>
                                                    <%= Resources.Content.GN00001320%>                                                                                                                         
                                                </h3>
                                            </div>
                                            <div class="body">
                                                <%--<asp:Button class="btn btn-primary waves-effect" ID="Btn_NewAddon" runat="server" Text="<%$ Resources:Content,SMI706%>" />&nbsp;&nbsp;--%>
                                                <asp:Button class="btn btn-primary waves-effect" ID="Btn_NewUMAddon" runat="server" Text="<%$ Resources:Content,SMI707%>" />

                                                <asp:Button ID="Btn_ASave2" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,FAM0019%>" />
                                            </div>
                                        </div>
                                        <div class="row">&nbsp;</div>

                                        <!-- Search Panel -->
                                        <div class="row">
                                            <div class="panel-group search-panel" id="AS_AddonList" role="tablist" aria-multiselectable="true">
                                                <div class="col-xs-12" role="tab" id="SH_AddonList">
                                                    <div class="card">
                                                        <div class="header" role="button" data-toggle="collapse" data-parent="#AS_AddonList" href="#<%= CSB_AddonList.ClientID%>" aria-expanded="true" aria-controls="SH_AddonList">
                                                            <h3>
                                                                <%= Resources.Content.GN0000395%>
                                                            </h3>
                                                        </div>
                                                        <div id="CSB_AddonList" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_AddonList" aria-expanded="false">
                                                            <div class="row">
                                                                <%--<div class="col-md-3 col-sm-6 col-xs-12">
                                                                    <div class="form-group form-float">
                                                                        <asp:DropDownList ID="DDL_AddonProduct" runat="server" />
                                                                    </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_AddOnName" runat="server" />
                                                                            <asp:Label ID="Label3" runat="server" EnableViewState="false" Text="<%$ Resources:Content,String141%>" class="form-label"></asp:Label>
                                                                        </div>
                                                                    </div>
                                                                </div>

                                                                <div class="col-xs-12">
                                                                    <div class="form-group form-float">
                                                                        <asp:Button class="btn btn-primary waves-effect" ID="Btn_AddonFilter" runat="server" Text='<%$ Resources:Content, GN0000395 %>' />
                                                                        <asp:Button class="btn btn-primary waves-effect" ID="Btn_Clear_Addon" runat="server" Text='<%$ Resources:Content, String289  %>' Visible="false" />
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="row">&nbsp;</div>

                                        <asp:SqlDataSource ID="DS_AddOnList" runat="server"></asp:SqlDataSource>
                                        <asp:GridView EmptyDataText='<%$ Resources:Content, GN00001375 %>' ID="GV_AddOnList"
                                            DataSourceID="DS_AddOnList" runat="server" CssClass="table table-bordered table-striped table-hover" AutoGenerateColumns="false">
                                            <Columns>
                                                <asp:TemplateField HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1" HeaderStyle-HorizontalAlign="Center"
                                                    HeaderText='<%$ Resources:Content, GN0000941 %>'>
                                                    <ItemTemplate>
                                                        <div class="form-group">
                                                            <div class="form-line">
                                                                <asp:HiddenField ID="HF_PackageId" runat="server" />
                                                                <asp:TextBox ID="TxBx_ROrder" runat="server" />
                                                                <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="TxBx_ROrder"
                                                                    FilterType="Numbers">
                                                                </EM:FilteredTextBoxExtender>
                                                            </div>
                                                        </div>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000678 %>' HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                    <ItemTemplate>
                                                        <%#DataBinder.Eval(Container, "DataItem.AddOnTypeId")%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="<%$ Resources:Content, USM0159 %>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                    <ItemTemplate>
                                                        <asp:Label ID="Lbl_WHMCS_Id" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.WHMCS_AddOnId")%>'></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <%--<asp:TemplateField HeaderText="<%$ Resources:Content,GN000140%>" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left"
                                                    HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                    <ItemTemplate>
                                                        <asp:Label ID="Lbl_PackageType" runat="server"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>--%>
                                                <asp:TemplateField HeaderText="<%$ Resources:Content,String141%>" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left"
                                                    HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                                    <ItemTemplate>
                                                        <%#DataBinder.Eval(Container, "DataItem.AddOnGroupName")%>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="<%$ Resources:Content,String330%>" HeaderStyle-HorizontalAlign="Left"
                                                    HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                    <ItemTemplate>
                                                        <asp:Label ID="Lbl_Sold" runat="server"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <%--<asp:TemplateField HeaderText="<%$ Resources:Content,SMI300%>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                    <ItemTemplate>
                                                        <asp:Label ID="Lbl_IsPlanned" runat="server"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>--%>
                                                <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-HorizontalAlign="Left"
                                                    ItemStyle-HorizontalAlign="left" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                    <ItemTemplate>
                                                        <ul class="option-menu">
                                                            <li class="dropdown">
                                                                <a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
                                                                    <i class="material-icons">menu</i>
                                                                </a>
                                                                <ul class="dropdown-menu pull-right">
                                                                    <li>
                                                                        <asp:LinkButton ID="LB_Clone" runat="server" Text='<%$ Resources:Content, DGN1110198 %>'></asp:LinkButton>
                                                                    </li>
                                                                    <li>
                                                                        <asp:LinkButton ID="LB_Edit" runat="server" Text='<%$ Resources:Content, GN0000276 %>'></asp:LinkButton>
                                                                    </li>
                                                                    <li>
                                                                        <asp:LinkButton ID="LB_Detail" runat="server" Text="<%$Resources:Content,GN0000843 %>"></asp:LinkButton>
                                                                    </li>
                                                                    <li>
                                                                        <asp:LinkButton ID="LB_Remove" runat="server" Text='<%$ Resources:Content, GN0000278 %>'></asp:LinkButton>
                                                                    </li>
                                                                    <EM:ConfirmButtonExtender ID="CBE_Remove" runat="server" ConfirmText="<%$Resources:Content,CBE001%>"
                                                                        TargetControlID="LB_Remove">
                                                                    </EM:ConfirmButtonExtender>
                                                                </ul>
                                                            </li>
                                                        </ul>






                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                            <PagerTemplate>
                                                <EM:Pager ID="Pager3" runat="server" />
                                            </PagerTemplate>
                                        </asp:GridView>

                                        <div class="row">&nbsp;</div>
                                        <asp:Button ID="Btn_ASave" runat="server" CssClass="btn btn-primary waves-effect" Text="<%$ Resources:Content,FAM0019%>" />

                                    </ContentTemplate>

                                </ajax:UpdatePanel>

                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                </EM:TabContainer>
            </div>
        </div>
    </div>
    <ajax:UpdatePanel ID="UP_EditCRAddOn" runat="server">
        <ContentTemplate>
            <asp:Panel ID="Pnl_EditCRAddOn" runat="server" CssClass="width-modal-popup-auto" Style='display: none; width: 500px' Visible="false">
                <div class="col-xs-12">
                    <div class="card">
                        <div class="header container-fluid">
                            <h3 class="pull-left"><%= Resources.Content.GN0000100%></h3>
                            <span>
                                <button type="button" class="close" onclick="$find('<%=MPE_EditCRAddOn.ClientID%>').hide();">&times;</button>
                            </span>
                        </div>
                        <div class="body">
                            <div class="row">
                                <UC:EditCRAddOn ID="EditCRAddOn1" runat="server" Visible="false"></UC:EditCRAddOn>
                            </div>
                        </div>
                    </div>
                </div>
                <asp:Button ID="Btn_EditCRAddOnDummy" runat="server" Style="display: none;" />
                <EM:ModalPopupExtender runat="server" ID="MPE_EditCRAddOn" BackgroundCssClass="modalBackground"
                    DropShadow="false" PopupControlID="Pnl_EditCRAddOn" TargetControlID="Btn_EditCRAddOnDummy">
                </EM:ModalPopupExtender>
            </asp:Panel>
        </ContentTemplate>
        <Triggers>
            <ajax:AsyncPostBackTrigger ControlID="EditCRAddOn1" EventName="ResellerAddOnDetailCancelled" />
            <ajax:AsyncPostBackTrigger ControlID="EditCRAddOn1" EventName="ResellerAddOnDetailSaved" />
        </Triggers>
    </ajax:UpdatePanel>
    <ajax:UpdatePanel ID="UP_CRAddOnDetail" runat="server">
        <ContentTemplate>
            <asp:Panel ID="Pnl_CRAddOnDetail" runat="server" CssClass="Pnl-CRPackageDetail" Visible="false">
                <table width="100%">
                    <tr>
                        <td align="right">
                            <asp:ImageButton ID="Btn_ICloseAddOn" runat="server" ImageUrl="~/App_Themes/Default/Images/icons/disabled-icon.png" AlternateText="<%$ Resources:Content,GN000150%>" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Panel ID="Pnl_DataAddOn" runat="server" ScrollBars="auto" CssClass="height-max-470px">
                                <UC:CRAddOnDetail ID="CRAddOnDetail1" runat="server" Visible="false"></UC:CRAddOnDetail>
                                <asp:Button ID="Btn_CRAddOnDetailDummy" runat="server" Style="display: none;" />
                            </asp:Panel>
                            <EM:ModalPopupExtender runat="server" ID="MPE_CRAddOnDetail" BackgroundCssClass="modalBackground"
                                DropShadow="false" PopupControlID="Pnl_CRAddOnDetail" TargetControlID="Btn_CRAddOnDetailDummy" CancelControlID="Btn_ICloseAddOn">
                            </EM:ModalPopupExtender>
                        </td>
                    </tr>
                </table>
            </asp:Panel>
        </ContentTemplate>
    </ajax:UpdatePanel>
    <ajax:UpdatePanel ID="UP_CRPackageDetail" runat="server">
        <ContentTemplate>
            <asp:Panel ID="Pnl_CRPackageDetail" runat="server" CssClass="width-modal-popup-auto" Visible="false">
                <div class="col-xs-12">
                    <div class="card">
                        <div class="header container-fluid">

                            <span>
                                <button type="button" class="close" onclick="$find('<%=MPE_CRPackageDetail.ClientID%>').hide();">&times;</button>
                            </span>
                        </div>
                        <div class="body">
                            <div class="row">
                                <UC:CRPackageDetail ID="CRPackageDetail1" runat="server" Visible="false"></UC:CRPackageDetail>
                            </div>
                        </div>
                    </div>
                </div>
                <asp:Button ID="Btn_DummyCRPackageDetail" runat="server" Style="display: none;" />
                <EM:ModalPopupExtender runat="server" ID="MPE_CRPackageDetail" BackgroundCssClass="modalBackground" DropShadow="false"
                    PopupControlID="Pnl_CRPackageDetail" TargetControlID="Btn_DummyCRPackageDetail">
                </EM:ModalPopupExtender>
            </asp:Panel>
        </ContentTemplate>
    </ajax:UpdatePanel>
    <ajax:UpdatePanel ID="UP_ResellerEdit" runat="server">
        <ContentTemplate>
            <asp:Panel ID="Pnl_ResellerEdit" runat="server" Style='display: none;' CssClass="width-modal-popup-auto" Visible="false">
                <div class="col-xs-12">
                    <div class="card">
                        <div class="header container-fluid">
                            <h3 class="pull-left">
                                <asp:Literal ID="Literal3" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000100%>" /></h3>
                            <span>
                                <button type="button" class="close" onclick="$find('<%=MPE_ResellerEdit.ClientID%>').hide();">&times;</button>
                            </span>
                        </div>
                        <div class="body">
                            <div class="row">
                                <UC:EditCRPackage ID="EditCRPackage1" runat="server" Visible="false"></UC:EditCRPackage>
                            </div>
                        </div>
                    </div>
                </div>
                <asp:Button ID="Btn_DummyResellerEdit" runat="server" Style="display: none;" />
                <EM:ModalPopupExtender runat="server" ID="MPE_ResellerEdit" BackgroundCssClass="modalBackground"
                    DropShadow="false" PopupControlID="Pnl_ResellerEdit" TargetControlID="Btn_DummyResellerEdit">
                </EM:ModalPopupExtender>
            </asp:Panel>
        </ContentTemplate>
        <Triggers>
            <ajax:AsyncPostBackTrigger ControlID="EditCRPackage1" EventName="ResellerPackageDetailCancelled" />
            <ajax:AsyncPostBackTrigger ControlID="EditCRPackage1" EventName="ResellerPackageDetailSaved" />

        </Triggers>
    </ajax:UpdatePanel>

    <script type="text/javascript">

        function setActiveTabClass(source, event) {
            $(source._header).parents('.TabControlTabHeader').first().find('.TabControlTab').addClass('TabControlTabInActive').removeClass('TabControlTab');
            $(source._header).removeClass('TabControlTabInActive').addClass('TabControlTab');

        }

    </script>

</asp:Content>

