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

<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" 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 Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/Template/CC/Selectable_Selected_LBX.ascx" TagName="AddSelectableSelected" TagPrefix="EM" %>

<asp:Content ID="Content6" 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" DefaultButton="Btn_RFilter">
                                <ajax:UpdatePanel ID="UP_RProductList" runat="server" RenderMode="Block" UpdateMode="Conditional">
                                    <ContentTemplate>

                                        <%-- Operations --%>
                                        <div class="card Div_OpsRow" id="Div_OpsRow" 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%>" />
                                                <asp:Button ID="Btn_RP_Export" runat="server" CssClass="btn btn-primary waves-effect btnAction" Text="<%$Resources:Content,strExport %>" />
                                                <asp:Button ID="Btn_RP_Import" runat="server" CssClass="btn btn-primary waves-effect btnAction" Text="<%$Resources:Content,strImport %>" />
                                                <asp:Button ID="Btn_RSave2" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,FAM0019%>" />
                                            </div>
                                        </div>

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

                                        <%-- Search Panel --%>
                                        <asp:Panel ID="Pnl_SearchR" runat="server" CssClass="row" DefaultButton="Btn_RFilter">
                                            <div class="panel-group search-panel" id="AS_RProductList" role="tablist" aria-multiselectable="true">
                                                <div class="col-xs-12" role="tab" id="SH_RProductList">
                                                    <div class="card">
                                                        <div class="header" role="button" data-toggle="collapse" data-parent="#AS_RProductList" href="#<%= CSB_RProductList.ClientID%>" aria-expanded="true" aria-controls="SH_RProductList">
                                                            <h3>
                                                                <%= Resources.Content.GN0000395%>
                                                            </h3>
                                                        </div>
                                                        <div id="CSB_RProductList" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_ProductList" aria-expanded="false">
                                                            <div class="row">
                                                                <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_RProductName" runat="server" />
                                                                            <asp:Label ID="Label1" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000103%>" class="form-label"></asp:Label>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                                    <div class="form-group form-float">
                                                                        <asp:DropDownList ID="DDl_RProductType" runat="server" />
                                                                    </div>
                                                                </div>
                                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                                    <div class="form-group form-float">
                                                                        <asp:DropDownList ID="DDl_RProductStatus" runat="server">
                                                                            <asp:ListItem Selected="True" Text='<%$ Resources:Content,SelectStatus  %>' Value="-1"></asp:ListItem>
                                                                            <asp:ListItem Text='<%$ Resources:Content, GN0000935 %>' Value="1"></asp:ListItem>
                                                                            <asp:ListItem Text='<%$ Resources:Content, GN0000936 %>' Value="0"></asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="row" id="Div_O365R" runat="server">
                                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                                    <div class="form-group form-float">
                                                                        <asp:DropDownList ID="DDL_O365PartnerProfileR" runat="server">
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>

                                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                                    <div class="form-group form-float">
                                                                        <asp:DropDownList ID="DDL_CountryR" runat="server">
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>

                                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                                    <div class="form-group form-float">
                                                                        <asp:DropDownList ID="DDL_LocaleR" runat="server">
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="row" id="Div_VoiceR" runat="server" visible="false">
                                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                                    <div class="form-group form-float">
                                                                        <asp:DropDownList ID="DDL_ProviderR" runat="server">
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>

                                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                                    <div class="form-group form-float">
                                                                        <asp:DropDownList ID="DDL_CountryVoiceR" runat="server">
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="row">
                                                                <div class="col-xs-12">
                                                                    <div class="form-group form-float">
                                                                        <asp:Button class="btn btn-primary waves-effect" ID="Btn_RFilter" runat="server" Text='<%$ Resources:Content, GN0000395 %>' />
                                                                        <asp:Button class="btn btn-primary waves-effect" ID="Btn_Clear" runat="server" Text='<%$ Resources:Content, String289  %>' Visible="false" />
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </asp:Panel>

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

                                        <asp:SqlDataSource ID="DS_RProductList" runat="server"></asp:SqlDataSource>
                                        <asp:GridView EmptyDataText='<%$ Resources:Content, GN00001375 %>' AllowSorting="true"
                                            ID="GV_RProductList" DataSourceID="DS_RProductList" runat="server" CssClass="table table-bordered table-striped table-hover"
                                            AutoGenerateColumns="false" AllowPaging="true" PageSize="15">
                                            <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 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,Custom" ValidChars="0123456789">
                                                                </EM:FilteredTextBoxExtender>
                                                            </div>
                                                        </div>
                                                    </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 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_ProdId")%>'></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField SortExpression="PackageName" HeaderStyle-ForeColor="white" HeaderText='<%$ Resources:Content, GN0000937 %>'
                                                    HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left">
                                                    <ItemTemplate>
                                                        <asp:Label ID="Lb_PackageName" runat="server" />
                                                    </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-1" ItemStyle-CssClass="col-xs-1" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left">
                                                    <ItemTemplate>
                                                        <asp:Label ID="Lbl_DateCreated" runat="server"></asp:Label>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField SortExpression="PackageTypeName" HeaderStyle-ForeColor="white"
                                                    HeaderText='<%$ Resources:Content, PT0030002 %>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2" HeaderStyle-HorizontalAlign="Left"
                                                    ItemStyle-HorizontalAlign="Left">
                                                    <ItemTemplate>
                                                        <%#DataBinder.Eval(Container, "DataItem.PackageTypeName")%>
                                                    </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:LinkButton ID="LB_Clone" CssClass="btnAction" runat="server" Text='<%$ Resources:Content, DGN1110198 %>'></asp:LinkButton></li>
                                                                    <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 id="Li_ShowOffers" runat="server" visible="false">
                                                                        <asp:LinkButton ID="LB_ShowOffers" CommandName="ShowOffers" runat="server" Text='<%$ Resources:Content, ShowOffers %>'></asp:LinkButton>
                                                                    </li>
                                                                    <li id="Li_Show3rdPartyProducts" runat="server" visible="false">
                                                                        <asp:LinkButton ID="Lbtn_Show3rdPartyProducts" CommandName="Show3rdPartyProducts" runat="server" Text='<%$ Resources:Content, Str3rdPartyProds %>'></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 Start--%>
                                            <PagerTemplate>
                                                <EM:Pager ID="Pager1" runat="server" />
                                            </PagerTemplate>
                                            <%--PagerTemplate End--%>
                                        </asp:GridView>

                                        <div class="row">&nbsp;</div>
                                        <asp:Button ID="Btn_RSave" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,FAM0019%>" />
                                    </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" DefaultButton="Btn_Filter">
                                <ajax:UpdatePanel ID="UP_ProductList" runat="server">
                                    <ContentTemplate>
                                        <div id="Pnl_Listing" runat="server">
                                            <%-- 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%>" />
                                                    <asp:Button ID="Btn_Export" runat="server" CssClass="btn btn-primary waves-effect btnAction" Text="<%$Resources:Content,strExport %>" />

                                                    <asp:Button ID="Btn_Import" runat="server" CssClass="btn btn-primary waves-effect btnAction" Text="<%$Resources:Content,strImport %>" />

                                                    <asp:Button ID="Btn_Save2" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,FAM0019%>" />
                                                    <asp:Button ID="Btn_CloneProviderCustomerPlans" runat="server" Visible="false"
                                                        class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,CloneProviderCustomerPlans%>" />
                                                </div>
                                            </div>

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

                                            <%-- Search Panel --%>
                                            <asp:Panel ID="Pnl_Search" runat="server" CssClass="row" DefaultButton="Btn_Filter">
                                                <div class="panel-group search-panel" id="AS_ProductList" role="tablist" aria-multiselectable="true">
                                                    <div class="col-xs-12" role="tab" id="SH_ProductList">
                                                        <div class="card">
                                                            <div class="header" role="button" data-toggle="collapse" data-parent="#AS_ProductList" href="#<%= CSB_ProductList.ClientID%>" aria-expanded="true" aria-controls="SH_ProductList">
                                                                <h3>
                                                                    <%= Resources.Content.GN0000395%>
                                                                </h3>
                                                            </div>
                                                            <div id="CSB_ProductList" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_ProductList" aria-expanded="false">
                                                                <div class="row">
                                                                    <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_ProductName" runat="server" />
                                                                                <asp:Label ID="Label2" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000103%>" class="form-label"></asp:Label>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                                                        <div class="form-group form-float">
                                                                            <asp:DropDownList ID="DDL_PackagesType" runat="server" />
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                                                        <div class="form-group form-float">
                                                                            <asp:DropDownList ID="DDL_AIacticePAckages" runat="server">
                                                                                <asp:ListItem Selected="True" Text='<%$ Resources:Content,SelectStatus  %>' Value="-1"></asp:ListItem>
                                                                                <asp:ListItem Text='<%$ Resources:Content, GN0000935 %>' Value="1"></asp:ListItem>
                                                                                <asp:ListItem Text='<%$ Resources:Content, GN0000936 %>' Value="0"></asp:ListItem>
                                                                            </asp:DropDownList>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="row" id="Div_O365" runat="server">
                                                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                                                        <div class="form-group form-float">
                                                                            <asp:DropDownList ID="DDL_O365PartnerProfile" runat="server">
                                                                            </asp:DropDownList>
                                                                        </div>
                                                                    </div>

                                                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                                                        <div class="form-group form-float">
                                                                            <asp:DropDownList ID="DDL_Country" runat="server">
                                                                            </asp:DropDownList>
                                                                        </div>
                                                                    </div>

                                                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                                                        <div class="form-group form-float">
                                                                            <asp:DropDownList ID="DDL_Locale" runat="server">
                                                                            </asp:DropDownList>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="row" id="Div_Voice" runat="server" visible="false">
                                                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                                                        <div class="form-group form-float">
                                                                            <asp:DropDownList ID="DDL_Provider" runat="server">
                                                                            </asp:DropDownList>
                                                                        </div>
                                                                    </div>

                                                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                                                        <div class="form-group form-float">
                                                                            <asp:DropDownList ID="DDL_CountryVoice" runat="server">
                                                                            </asp:DropDownList>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="row">
                                                                    <div class="col-xs-12">
                                                                        <div class="form-group form-float">
                                                                            <asp:Button class="btn btn-primary waves-effect" ID="Btn_Filter" runat="server" Text='<%$ Resources:Content, GN0000395 %>' />
                                                                            <asp:Button class="btn btn-primary waves-effect" ID="Btn_Clear_ProductListing" runat="server" Text='<%$ Resources:Content, String289  %>' Visible="false" />
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </asp:Panel>

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

                                            <asp:SqlDataSource ID="DS_ProductList" runat="server"></asp:SqlDataSource>
                                            <asp:GridView EmptyDataText='<%$ Resources:Content, GN00001375 %>' AllowSorting="true"
                                                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 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" Width="30px" />
                                                                    <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="TxBx_ROrder"
                                                                        FilterType="Numbers,Custom" ValidChars="0123456789">
                                                                    </EM:FilteredTextBoxExtender>
                                                                </div>
                                                            </div>
                                                        </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 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_ProdId")%>'></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField SortExpression="PackageName" HeaderStyle-ForeColor="white" HeaderText='<%$ Resources:Content, GN0000937 %>'
                                                        HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left">
                                                        <ItemTemplate>
                                                            <asp:Label ID="Lb_PackageName" runat="server" />
                                                        </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-1" ItemStyle-CssClass="col-xs-1">
                                                        <ItemTemplate>
                                                            <asp:Label ID="Lbl_DateCreated" runat="server"></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField SortExpression="PackageTypeName" HeaderStyle-ForeColor="white"
                                                        HeaderText='<%$ Resources:Content, PT0030002 %>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2" ItemStyle-HorizontalAlign="Left"
                                                        HeaderStyle-HorizontalAlign="Left">
                                                        <ItemTemplate>
                                                            <%#DataBinder.Eval(Container, "DataItem.PackageTypeName")%>
                                                        </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:LinkButton ID="LB_Clone" CssClass="btnAction" runat="server" Text='<%$ Resources:Content, DGN1110198 %>'></asp:LinkButton>
                                                                        </li>
                                                                        <li>
                                                                            <asp:HyperLink ID="LB_Edit" runat="server" Text='<%$ Resources:Content, GN0000276 %>'></asp:HyperLink>
                                                                        </li>
                                                                        <li>
                                                                            <asp:LinkButton ID="LBTN_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_EnableDisable" CssClass="btnAction" runat="server" Text='<%$ Resources:Content, GN0000807 %>'></asp:LinkButton>
                                                                        </li>
                                                                        <li id="Li_ShowOffers" runat="server" visible="false">
                                                                            <asp:LinkButton ID="LB_ShowOffers" CommandName="ShowOffers" runat="server" Text='<%$ Resources:Content, ShowOffers %>'></asp:LinkButton>
                                                                        </li>
                                                                        <li id="Li_Show3rdPartyProducts" runat="server" visible="false">
                                                                            <asp:LinkButton ID="Lbtn_Show3rdPartyProducts" CommandName="Show3rdPartyProducts" runat="server" Text='<%$ Resources:Content, Str3rdPartyProds %>'></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 Start--%>
                                                <PagerTemplate>
                                                    <EM:Pager ID="Pager2" runat="server" />
                                                </PagerTemplate>
                                                <%--PagerTemplate End--%>
                                            </asp:GridView>

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

                                        <div class="card" id="Pnl_CloneVoicePlans" runat="server" visible="false">
                                            <div class="header">
                                                <h3>
                                                    <%= Resources.Content.CloneProviderCustomerPlans%>                                                                                                                         
                                                </h3>
                                            </div>
                                            <div class="body">
                                                <div class="row">
                                                    <div class="col-xs-12 row-label">
                                                        <label>
                                                            <asp:Label ID="Label14" runat="server" EnableViewState="false" Text="<%$ Resources:Content,SelectPlans%>" />:</label>
                                                    </div>
                                                    <div class="col-xs-12">
                                                        <EM:AddSelectableSelected ID="UCPlansToClone" runat="server" SortByValue="false" ValidationGroup="cloneplans" IsSelectedRequired="true" />
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-4 col-xs-12 row-label">
                                                        <label>
                                                            *<asp:Label ID="Label4" runat="server" EnableViewState="false" Text="<%$ Resources:Content,ProfitOnProviderPrice%>" />(%):</label>
                                                    </div>
                                                    <div class="col-sm-4 col-xs-12">
                                                        <div class="form-group">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_ProfitToAdd" runat="server" Text="10" />
                                                            </div>
                                                        </div>
                                                        <asp:RequiredFieldValidator ID="RFV_TxBx_ProfitToAdd" runat="server" ControlToValidate="TxBx_ProfitToAdd"
                                                            Display="None" SetFocusOnError="True" ValidationGroup="cloneplans"></asp:RequiredFieldValidator>
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-xs-12">
                                                        <asp:ValidationSummary ID="ValidationSummary3" runat="server" ShowMessageBox="true"
                                                            ShowSummary="false" ValidationGroup="cloneplans" HeaderText="<%$ Resources:Content,EM000001%>" />

                                                        <asp:Button ID="Btn_SaveClone" runat="server" Text="<%$ Resources:Content,Save%>" class="btn btn-primary waves-effect btnAction" ValidationGroup="cloneplans" />
                                                        <asp:Button ID="Btn_CancelClone" runat="server" Text="<%$ Resources:Content,GN0000572%>" class="btn btn-primary waves-effect" CausesValidation="false" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </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 Div_OpsRow" 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 btnAction" ID="Btn_NewAddon" runat="server" Text="<%$ Resources:Content,SMI706%>" />
                                                &nbsp;&nbsp;<asp:Button class="btn btn-primary waves-effect btnAction" ID="Btn_NewUMAddon" runat="server" Text="<%$ Resources:Content,SMI707%>" />
                                                <asp:Button ID="Btn_ASave2" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,FAM0019%>" />
                                                <asp:Button class="btn btn-primary waves-effect btnAction" ID="Btn_BundlePriceforVoiceResellers" runat="server" Text="<%$ Resources:Content,strBundlePriceforResellers%>" />
                                            </div>
                                        </div>
                                        <div class="row">&nbsp;</div>

                                        <%-- Search Panel --%>
                                        <asp:Panel ID="Pnl_SearchAddon" runat="server" CssClass="row" DefaultButton="Btn_AddonFilter">
                                            <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>
                                        </asp:Panel>

                                        <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,Custom" ValidChars="0123456789">
                                                                </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>
                                                        <asp:Label ID="Lbl_AddOnGroupName" runat="server"></asp:Label>
                                                    </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" CssClass="btnAction" 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" 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 Start--%>
                                            <PagerTemplate>
                                                <EM:Pager ID="Pager3" runat="server" />
                                            </PagerTemplate>
                                            <%--PagerTemplate End--%>
                                        </asp:GridView>

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

                                    </ContentTemplate>

                                </ajax:UpdatePanel>

                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                </EM:TabContainer>
            </div>
        </div>
    </div>
    <asp:Button class="btn btn-primary waves-effect" ID="Btn_OK" runat="server" Text="<%$ Resources:Content,GN0000858%>" Style="display: none;" />

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

    <ajax:UpdatePanel ID="UP_CRPackageDetail" runat="server">
        <ContentTemplate>
            <asp:Panel ID="Pnl_CRPackageDetail" runat="server" Visible="false" CssClass="width-modal-popup-auto">
                <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_EditCRAddOn" runat="server">
        <ContentTemplate>
            <asp:Panel ID="Pnl_EditCRAddOn" 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">
                            <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="Vertical" CssClass="width-modal-popup-auto max-height-500px">
                                <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>
    <%--</ContentTemplate> 
    </ajax:UpdatePanel> --%>

    <asp:Button ID="Btn_Import_Dummy" runat="server" CssClass="btn-dummy" />
    <asp:Panel ID="Pnl_Import_Wrapper" runat="server" CssClass="width-modal-popup-auto" Style="display: none">
        <div class="col-xs-12">
            <div class="card">
                <div class="header container-fluid">
                    <h3 class="pull-left"><%= Resources.Content.strImportPrices%></h3>
                    <span>
                        <button type="button" class="close" onclick="$find('<%=MPE_Import_CSP_Package_Prices.ClientID%>').hide();">&times;</button>
                    </span>
                </div>
                <div class="body">
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            *<asp:Literal ID="Ltrl_CSV_File" runat="server" Text="<%$ Resources:Content,String380%>"
                                EnableViewState="false" />:
                        </div>
                        <div class="col-sm-9 col-xs-12">
                            <div class="fileupload fileupload-new" data-provides="fileupload">
                                <span class="btn btn-primary btn-file"><span class="fileupload-new"><%= Resources.Content.strSelectFile%></span>
                                    <span class="fileupload-exists"><%= Resources.Content.GN0000385%></span>
                                    <asp:FileUpload ID="FU_CSP_Package_Prices" runat="server" EnableViewState="true" />
                                </span>
                                <span class="fileupload-preview"></span>
                                <a href="#" class="close fileupload-exists" data-dismiss="fileupload" style="float: none">×</a>
                            </div>
                            <asp:RequiredFieldValidator ID="RFV_CSP_Package_Prices" runat="server" ControlToValidate="FU_CSP_Package_Prices"
                                Display="None" SetFocusOnError="True" ValidationGroup="Import_CSP_Package_Prices" ErrorMessage='<%$Resources:Content,strOffersPricesImportMissingFileError %>'></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label"></div>
                        <div class="col-sm-9 col-xs-12">
                            <asp:Button ID="Btn_Update_CSP_Package_Prices" runat="server" Text="<%$ Resources:Content,strUpdatePrices%>" CssClass="btn btn-primary waves-effect" />
                            <asp:Button ID="Btn_Cancel_CSP_Package_Prices" runat="server" Text="<%$ Resources:Content,GN0000572%>" CssClass="btn btn-primary waves-effect" />
                        </div>
                    </div>
                    <asp:UpdatePanel ID="UP_ImportMode" runat="server" UpdateMode="Conditional">
                        <ContentTemplate>
                            <asp:HiddenField ID="HF_ImportMode" runat="server" />
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </div>
            </div>
        </div>
    </asp:Panel>
    <EM:ModalPopupExtender runat="server" ID="MPE_Import_CSP_Package_Prices" BackgroundCssClass="modalBackground"
        DropShadow="false" PopupControlID="Pnl_Import_Wrapper" TargetControlID="Btn_Import_Dummy" CancelControlID="Btn_Cancel_CSP_Package_Prices">
    </EM:ModalPopupExtender>

    <ajax:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:Button ID="Btn_ShowOffers" runat="server" CssClass="btn-dummy" />
            <asp:Panel ID="Pnl_ShowOffers" runat="server" CssClass="width-modal-popup-auto" Style="display: none">
                <div class="card">
                    <div class="header container-fluid">
                        <h3 class="pull-left"><%= Resources.Content.strOfferAddons%></h3>
                        <span>
                            <button type="button" class="close" onclick="$find('<%=MPE_ShowOffers.ClientID%>').hide();">&times;</button>
                        </span>
                    </div>
                    <div class="body">
                        <div class="row">
                            <div class="col-xs-12">
                                <div id="Div_OffersDetail" runat="server"></div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xs-12">
                                <asp:Button ID="Btn_Close" class="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,GN000150 %>" />
                            </div>
                        </div>
                    </div>
                </div>
            </asp:Panel>
            <EM:ModalPopupExtender runat="server" ID="MPE_ShowOffers" BackgroundCssClass="modalBackground"
                DropShadow="false" PopupControlID="Pnl_ShowOffers" TargetControlID="Btn_ShowOffers" CancelControlID="Btn_Close">
            </EM:ModalPopupExtender>
        </ContentTemplate>
    </ajax:UpdatePanel>

    <ajax:UpdatePanel ID="UpdatePanel3" runat="server">
        <ContentTemplate>
            <asp:Button ID="Btn_Show3rdPartyProducts" runat="server" CssClass="btn-dummy" />
            <asp:Panel ID="Pnl_Show3rdPartyProducts" runat="server" CssClass="width-modal-popup-auto" Style="display: none">
                <div class="card">
                    <div class="header container-fluid">
                        <h3 class="pull-left"><%= Resources.Content.StrCSP3rdPartyProducts%></h3>
                        <span>
                            <button type="button" class="close" onclick="$find('<%=MPE_Show3rdPartyProducts.ClientID%>').hide();">&times;</button>
                        </span>
                    </div>
                    <div class="body">
                        <div class="row">
                            <div class="col-xs-12">
                                <div id="Div_3rdPartyProductDetails" runat="server"></div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xs-12">
                                <asp:Button ID="Btn_Close3rdPartyProducts" class="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,GN000150 %>" />
                            </div>
                        </div>
                    </div>
                </div>
            </asp:Panel>
            <EM:ModalPopupExtender runat="server" ID="MPE_Show3rdPartyProducts" BackgroundCssClass="modalBackground"
                DropShadow="false" PopupControlID="Pnl_Show3rdPartyProducts" TargetControlID="Btn_Show3rdPartyProducts" CancelControlID="Btn_Close3rdPartyProducts">
            </EM:ModalPopupExtender>
        </ContentTemplate>
    </ajax:UpdatePanel>

    <ajax:UpdatePanel ID="UpdatePanel2" runat="server">
        <ContentTemplate>
            <asp:Button ID="btn_ShowBundle" runat="server" CssClass="btn-dummy" />
            <asp:Panel ID="Pnl_BundlePriceforVoiceResellers" runat="server" CssClass="width-modal-popup-auto" Style="display: none">
                <div class="card">
                    <div class="header container-fluid">
                        <h3 class="pull-left"><%= Resources.Content.strBundlePriceforResellers%></h3>
                        <span>
                            <button type="button" class="close" onclick="$find('<%=MPE_ShowSaveBundle.ClientID%>').hide();">&times;</button>
                        </span>
                    </div>
                    <div class="body">
                        <div class="row">
                            <div class="col-xs-12">
                                <asp:GridView EmptyDataText='<%$ Resources:Content, GN00001375 %>' AllowSorting="true"
                                    ID="GV_BundleAndPrice" runat="server" CssClass="table table-bordered table-striped table-hover"
                                    AutoGenerateColumns="false">
                                    <Columns>

                                        <asp:TemplateField Visible="false" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                            <ItemTemplate>
                                                <asp:Literal ID="Ltr_AddOnTypeID" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="<%$ Resources:Content,SMI0803 %>" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                            <ItemTemplate>
                                                <asp:Literal ID="Ltr_BundleName" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="<%$ Resources:Content,strNoofSubscribersPhoneNumbers %>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                            <ItemTemplate>
                                                <asp:Literal ID="Ltr_NoofSubsAndPhone" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="<%$ Resources:Content,strMinutesPerSubscriber %>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                            <ItemTemplate>
                                                <asp:Literal ID="Ltr_MinutesPerSubscriber" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="<%$ Resources:Content,CostPrice %>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                            <ItemTemplate>
                                                <asp:TextBox ID="TxBx_Price" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="<%$ Resources:Content,SalePrice %>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                            <ItemTemplate>
                                                <asp:TextBox ID="TxBx_SalePrice" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField Visible="false">
                                            <ItemTemplate>
                                                <asp:Literal ID="Ltr_PGID" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>



                                    </Columns>
                                </asp:GridView>

                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xs-12">
                                <asp:Button ID="Btn_SaveBusndlePrice" class="btn btn-primary waves-effect btnAction" runat="server" Text="<%$ Resources:Content,GN0000281 %>" />
                                <asp:Button ID="Btn_CloseBundle" class="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,GN000150 %>" />
                            </div>
                        </div>
                    </div>

                </div>
            </asp:Panel>
            <EM:ModalPopupExtender runat="server" ID="MPE_ShowSaveBundle" BackgroundCssClass="modalBackground"
                DropShadow="false" PopupControlID="Pnl_BundlePriceforVoiceResellers" TargetControlID="btn_ShowBundle" CancelControlID="Btn_CloseBundle">
            </EM:ModalPopupExtender>
        </ContentTemplate>
    </ajax:UpdatePanel>
</asp:Content>
