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

<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>

<%@ Register Src="~/RCC/Packages/CC/EditCResellerTLD.ascx" TagName="EditCRTLD" TagPrefix="UC" %>
<%@ Register Src="~/RCC/Packages/CC/CResellerTLDDetail.ascx" TagName="CRTLDDetail" 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="CC/AddonControl.ascx" TagName="AddonControl" TagPrefix="EM" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>

<asp:Content ID="Content6" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div class="col-xs-12">
        <div class="card">
            <div class="body">
                <EM:TabContainer ID="TbCntr_Products" runat="server" OnClientActiveTabChanged="loadTabPanel">
                    <EM:TabPanel ID="Tab_Products" runat="server" HeaderText="<%$ Resources:Content,SMI709%>">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab0" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent0" 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="addTLD" runat="server" PostBackUrl="AddTLD.aspx"
                                            Text="<%$ Resources:Content,PT00100499%>" />
                                    </div>
                                </div>

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

                                <%-- Search Panel --%>
                                <asp:Panel ID="Pnl_Btn_Filter" runat="server" CssClass="row" DefaultButton="Btn_Filter">
                                    <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_TLD" runat="server" MaxLength="7" />
                                                                    <asp:Label CssClass="form-label" ID="Literal1" runat="server" Text="<%$ Resources:Content,GN0000234%>" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="col-md-3 col-sm-6 col-xs-12">
                                                            <div class="form-group">
                                                                <asp:DropDownList ID="DDL_TLDPG" runat="server">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>
                                                        <div class="col-md-3 col-sm-6 col-xs-12">
                                                            <div class="form-group">
                                                                <asp:DropDownList ID="DDL_TLDStatus" runat="server">
                                                                    <asp:ListItem Selected="True" Text='<%$ Resources:Content, SelectStatus %>' Value="-1"></asp:ListItem>
                                                                    <asp:ListItem Text='<%$ Resources:Content, GN0000939 %>' Value="1"></asp:ListItem>
                                                                    <asp:ListItem Text='<%$ Resources:Content, GN0000940 %>' Value="0"></asp:ListItem>
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>

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

                                <div class="row">
                                    <div class="col-xs-12">
                                        <ajax:UpdatePanel ID="UP" runat="server" RenderMode="Block">
                                            <ContentTemplate>
                                                <div class="double-scroll-wrapper1">
                                                    <div>
                                                    </div>
                                                </div>
                                                <div class="double-scroll-wrapper2">
                                                    <asp:GridView ID="GV_TldList" AllowPaging="true" EmptyDataText='<%$ Resources:Content, GN00001375 %>'
                                                        AllowSorting="true" Width="1490px" runat="server" AutoGenerateColumns="false" CssClass="table table-bordered table-striped table-hover table-layout-fixed">
                                                        <Columns>
                                                            <asp:TemplateField SortExpression="TldID" HeaderText='<%$ Resources:Content, GN0000678 %>' HeaderStyle-Width="100px">
                                                                <ItemTemplate>
                                                                    <%#DataBinder.Eval(Container, "DataItem.TldID")%>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000222 %>' ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="100px">
                                                                <ItemTemplate>
                                                                    <asp:CheckBox ID="ChBx_Active" Text="&nbsp;" runat="server" />
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField SortExpression="TLDName" HeaderText='<%$ Resources:Content, GN0000234 %>'
                                                                HeaderStyle-Width="150px">
                                                                <ItemTemplate>
                                                                    <asp:HiddenField ID="HF_TLDID" runat="server" />
                                                                    <div runat="server" id="div_TLDName">
                                                                    </div>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField SortExpression="RegistrarName" HeaderText='<%$ Resources:Content, GN0000221 %>'
                                                                HeaderStyle-Width="150px">
                                                                <ItemTemplate>
                                                                    <div runat="server" id="div_RegistrarName">
                                                                    </div>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000941 %>' HeaderStyle-Width="70px">
                                                                <ItemTemplate>
                                                                    <div class="form-group">
                                                                        <div class="form-line">
                                                                            <asp:TextBox ID="TxBx_DisplayIndex" runat="server"></asp:TextBox>
                                                                        </div>
                                                                    </div>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000942 %>' HeaderStyle-Width="100px">
                                                                <ItemTemplate>
                                                                    <div class="form-group">
                                                                        <div class="form-line">
                                                                            <asp:TextBox ID="TxBx_TransferPrice" runat="server"></asp:TextBox>
                                                                        </div>
                                                                    </div>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000943 %>' HeaderStyle-Width="100px">
                                                                <ItemTemplate>
                                                                    <div class="form-group">
                                                                        <div class="form-line">
                                                                            <asp:TextBox ID="TxBx_RenewalPrice" runat="server"></asp:TextBox>
                                                                        </div>
                                                                    </div>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000944 %>' HeaderStyle-Width="100px">
                                                                <ItemTemplate>
                                                                    <div class="form-group">
                                                                        <div class="form-line">
                                                                            <asp:HiddenField ID="HF_Cycle1" runat="server" />
                                                                            <asp:TextBox ID="TxBx_Price_1" runat="server"></asp:TextBox>
                                                                        </div>
                                                                    </div>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText='<%$ Resources:Content, GN00001450 %>' HeaderStyle-Width="100px">
                                                                <ItemTemplate>
                                                                    <div class="form-group">
                                                                        <div class="form-line">
                                                                            <asp:HiddenField ID="HF_Cycle2" runat="server" />
                                                                            <asp:TextBox ID="TxBx_Price_2" runat="server"></asp:TextBox>
                                                                        </div>
                                                                    </div>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000945 %>' HeaderStyle-Width="100px">
                                                                <ItemTemplate>
                                                                    <div class="form-group">
                                                                        <div class="form-line">
                                                                            <asp:HiddenField ID="HF_Cycle3" runat="server" />
                                                                            <asp:TextBox ID="TxBx_Price_3" runat="server"></asp:TextBox>
                                                                        </div>
                                                                    </div>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000946 %>' HeaderStyle-Width="100px">
                                                                <ItemTemplate>
                                                                    <div class="form-group">
                                                                        <div class="form-line">
                                                                            <asp:HiddenField ID="HF_Cycle4" runat="server" />
                                                                            <asp:TextBox ID="TxBx_Price_4" runat="server"></asp:TextBox>
                                                                        </div>
                                                                    </div>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000947 %>' HeaderStyle-Width="100px">
                                                                <ItemTemplate>
                                                                    <div class="form-group">
                                                                        <div class="form-line">
                                                                            <asp:HiddenField ID="HF_Cycle5" runat="server" />
                                                                            <asp:TextBox ID="TxBx_Price_5" runat="server"></asp:TextBox>
                                                                        </div>
                                                                    </div>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-Width="200px">
                                                                <ItemTemplate>
                                                                    <asp:HyperLink runat="server" CssClass="btn btn-primary waves-effect" ID="LB_Edit" Text='<%$ Resources:Content, GN0000276 %>'></asp:HyperLink>
                                                                    <asp:LinkButton runat="server" CssClass="btn btn-primary waves-effect" ID="LBTN_Edit" Text='<%$ Resources:Content, GN0000276 %>'></asp:LinkButton>
                                                                    <asp:LinkButton ID="LB_Detail" runat="server" CssClass="btn btn-primary waves-effect" Text="<%$Resources:Content,GN0000843 %>"></asp:LinkButton>
                                                                    <asp:LinkButton runat="server" CssClass="btn btn-primary waves-effect btnAction" ID="LB_Delete" CommandName="RowDelete"
                                                                        Text='<%$ Resources:Content, GN0000377 %>'></asp:LinkButton>
                                                                    <EM:ConfirmButtonExtender ID="CBE_Remove" runat="server" ConfirmText="<%$Resources:Content,CBE001%>"
                                                                        TargetControlID="LB_Delete">
                                                                    </EM:ConfirmButtonExtender>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                        </Columns>
                                                        <%--PagerTemplate Start--%>
                                                        <PagerTemplate>
                                                            <EM:Pager ID="Pager1" runat="server" />
                                                        </PagerTemplate>
                                                        <%--PagerTemplate End--%>
                                                    </asp:GridView>
                                                </div>
                                                <div class="row">&nbsp;</div>
                                                <asp:Button CssClass="btn btn-primary waves-effect btnAction" ID="Btn_SaveSettings" runat="server" Text='<%$ Resources:Content, GN0000949 %>' />
                                            </ContentTemplate>
                                        </ajax:UpdatePanel>
                                    </div>
                                </div>



                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                    <EM:TabPanel ID="Tab_Addons" runat="server" HeaderText="<%$ Resources:Content,String39%>">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab1" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent1" runat="server" Visible="false">
                                <ajax:UpdatePanel ID="UpdatePanel2" runat="server" RenderMode="Block" UpdateMode="Always">
                                    <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 CssClass="btn btn-primary waves-effect btnAction" Enabled="false" ID="Btn_NewAddon" runat="server" Text="<%$ Resources:Content,SMI706%>" Style="display: none;" />
                                                <asp:Button CssClass="btn btn-primary waves-effect btnAction" ID="Btn_NewUMAddon" runat="server" Text="<%$ Resources:Content,SMI707%>" />
                                                <asp:Button ID="Btn_ASave2" runat="server" CssClass="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,FAM0019%>" />
                                            </div>
                                        </div>
                                        <div class="row">&nbsp;</div>
                                        <asp:Panel ID="Pnl_Search_Addon" runat="server" DefaultButton="Btn_AddonFilter">
                                            <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-sm-4 col-xs-12">
                                                                        <div class="form-group form-float">
                                                                            <div class="form-line">
                                                                                <asp:TextBox ID="TxBx_AddOnName" runat="server" />
                                                                                <asp:Label CssClass="form-label" ID="Literal10" runat="server" Text="<%$ Resources:Content,String141 %>" />
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-sm-7 col-xs-12">
                                                                        <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_AddonFilter" runat="server" Text='<%$ Resources:Content, GN0000395 %>' />
                                                                        <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Clear_Addon" runat="server" Text='<%$ Resources:Content, String289  %>' />
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

                                        </asp:Panel>

                                        <div class="row">
                                            <div class="col-xs-12">
                                                <asp:GridView AllowSorting="true" AllowPaging="true" EmptyDataText='<%$ Resources:Content, GN00001375 %>'
                                                    ID="GV_AddOnList" runat="server" CssClass="table table-bordered table-striped table-hover" AutoGenerateColumns="false">
                                                    <AlternatingRowStyle CssClass="altRow" />
                                                    <Columns>
                                                        <asp:TemplateField HeaderStyle-HorizontalAlign="Center" HeaderStyle-CssClass="col-xs-1"
                                                            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">
                                                                        </EM:FilteredTextBoxExtender>
                                                                    </div>
                                                                </div>

                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-CssClass="col-xs-1" SortExpression="AddOnTypeId" HeaderText='<%$ Resources:Content, GN0000678 %>'>
                                                            <ItemTemplate>
                                                                <%#DataBinder.Eval(Container, "DataItem.AddOnTypeId")%>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>

                                                        <asp:TemplateField HeaderText="<%$ Resources:Content,String141%>" HeaderStyle-CssClass="col-xs-5">
                                                            <ItemTemplate>
                                                                <%#DataBinder.Eval(Container, "DataItem.AddOnGroupName")%>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="<%$ Resources:Content,String330%>" HeaderStyle-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-2">
                                                            <ItemTemplate>
                                                                <%--<asp:Image ID="Img_IsPlanned" runat="server"></asp:Image>--%>
                                                                <asp:Label ID="Lb_IsPlanned" runat="server"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-CssClass="col-xs-2">
                                                            <ItemTemplate>
                                                                <asp:LinkButton ID="LB_Edit" runat="server" CssClass="btn btn-primary waves-effect" Text='<%$ Resources:Content, GN0000276 %>'></asp:LinkButton>
                                                                <asp:LinkButton ID="LB_Detail" runat="server" CssClass="btn btn-primary waves-effect" Text="<%$Resources:Content,GN0000843 %>"></asp:LinkButton>
                                                                <asp:LinkButton ID="LB_Remove" runat="server" CssClass="btn btn-primary waves-effect btnAction" Text='<%$ Resources:Content, GN0000278 %>'></asp:LinkButton>
                                                                <EM:ConfirmButtonExtender ID="CBE_Remove" runat="server" ConfirmText="<%$Resources:Content,CBE001%>"
                                                                    TargetControlID="LB_Remove">
                                                                </EM:ConfirmButtonExtender>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                    <%--PagerTemplate Start--%>
                                                    <PagerTemplate>
                                                        <EM:Pager ID="Pager2" runat="server" />
                                                    </PagerTemplate>
                                                    <%--PagerTemplate End--%>
                                                </asp:GridView>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-xs-12">
                                                <asp:Button ID="Btn_ASave" runat="server" CssClass="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,FAM0019%>" />
                                            </div>
                                        </div>
                                    </ContentTemplate>
                                </ajax:UpdatePanel>



                            </asp:Panel>


                        </ContentTemplate>
                    </EM:TabPanel>
                </EM:TabContainer>
            </div>
        </div>
    </div>
    <ajax:UpdatePanel ID="UP_CRTLDDetail" runat="server">
        <ContentTemplate>
            <asp:Panel ID="Pnl_CRTLDDetail" 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_CRTLDDetail.ClientID%>').hide();">&times;</button>
                            </span>
                        </div>
                        <div class="body">
                            <div class="row">
                                <UC:CRTLDDetail ID="CRTLDDetail1" runat="server" Visible="false"></UC:CRTLDDetail>
                            </div>
                        </div>
                    </div>
                </div>
                <asp:Button ID="Btn_DummyCRTLDDetail" runat="server" Style="display: none;" />
                <EM:ModalPopupExtender runat="server" ID="MPE_CRTLDDetail" BackgroundCssClass="modalBackground"
                    DropShadow="false" PopupControlID="Pnl_CRTLDDetail" TargetControlID="Btn_DummyCRTLDDetail">
                </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; width: 500px;' 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="Literal8" 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:EditCRTLD ID="EditCRTLD1" runat="server" Visible="false"></UC:EditCRTLD>
                            </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="EditCRTLD1" EventName="ResellerTLDDetailCancelled" />
            <ajax:AsyncPostBackTrigger ControlID="EditCRTLD1" EventName="ResellerTLDDetailSaved" />
        </Triggers>
    </ajax:UpdatePanel>

    <asp:Button class="btn btn-primary waves-effect" ID="Btn_OK" runat="server" Text="<%$ Resources:Content,GN0000858%>" Style="display: none;" />
    <asp:Panel ID="Panel1" runat="server" Style="display: none" CssClass="background-color-white width-auto">
        <EM:AddonControl ID="AddonControl1" runat="server" />
    </asp:Panel>
    <EM:ModalPopupExtender runat="server" ID="MP1" BackgroundCssClass="modalBackground"
        DropShadow="false" PopupControlID="Panel1" TargetControlID="Btn_OK">
    </EM:ModalPopupExtender>

    <ajax:UpdatePanel ID="UP_EditCRAddOn" runat="server">
        <ContentTemplate>
            <asp:Panel ID="Pnl_EditCRAddOn" runat="server" CssClass="width-modal-popup-auto" Style='display: none' Visible="false">
                <div class="col-xs-12">
                    <div class="card">
                        <div class="header container-fluid">
                            <h3 class="pull-left">
                                <asp:Literal ID="Literal2" runat="server" EnableViewState="false" Text="<%$ 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>
    </ajax:UpdatePanel>
    <ajax:UpdatePanel ID="UP_CRAddOnDetail" runat="server">
        <ContentTemplate>
            <asp:Panel ID="Pnl_CRAddOnDetail" runat="server" 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_CRAddOnDetail.ClientID%>').hide();">&times;</button>
                            </span>
                        </div>
                        <div class="body">
                            <div class="row">
                                <UC:CRAddOnDetail ID="CRAddOnDetail1" runat="server" Visible="false"></UC:CRAddOnDetail>
                            </div>
                        </div>
                    </div>
                </div>
                <asp:Button ID="Btn_CRAddOnDetailDummy" runat="server" Style="display: none;" />
                <EM:ModalPopupExtender runat="server" ID="MPE_CRAddOnDetail" BackgroundCssClass="modalBackground"
                    DropShadow="false" PopupControlID="Pnl_CRAddOnDetail" TargetControlID="Btn_CRAddOnDetailDummy">
                </EM:ModalPopupExtender>
            </asp:Panel>
        </ContentTemplate>
    </ajax:UpdatePanel>
</asp:Content>
