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

<%--<%@ Register Src="~/RCC/Packages/CC/AddResource.ascx" TagName="AddResource" TagPrefix="EM" %>--%>
<%@ Register Src="~/Template/CC/Selectable_Selected_LBX.ascx" TagName="AddSelectableSelected" TagPrefix="EM" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Assembly="obout_Editor" Namespace="OboutInc.Editor" TagPrefix="obout" %>
<%@ Register Src="~/RCC/O365/CC/CSPPlan3rdPartyProducts.ascx" TagName="CSPPackageProd" TagPrefix="UC" %>

<asp:Content ID="Content5" ContentPlaceHolderID="CPH_Content" runat="Server">

    <script type="text/javascript" language="javascript">
        function copyVal(source) {
            $currentElement = $(source);
            if ($currentElement.hasClass('addonname'))
                $('.addonname[data-addon-msid=' + $currentElement.data('addon-msid') + ']').val($currentElement.val());
            else
                $('.addondesc[data-addon-msid=' + $currentElement.data('addon-msid') + ']').val($currentElement.val());
        }




        function checkboxValue(control_id) {
            if ($('#' + control_id).is(":checked"))
                return 1;
            else
                return 0;
        }

        function ShowHideDiv(control, DivId) {
            //alert(DivId);
            if (checkboxValue(control.id) > 0) {

                document.getElementById(DivId).style.display = "";
            }
            else {

                document.getElementById(DivId).style.display = "none";
            }
        }

        function SelectClearAll(control) {
            if (checkboxValue(control.id) > 0) {
                // Select All
                $('#' + control.id).closest('div.panel-body').find('.filled-in').each(function () {
                    $(this).prop('checked', true);
                });
                $('#' + control.id).closest('div.panel-body').find('.AddonDiv').each(function () {
                    $(this).css('display', 'block');
                    $(this).closest('.search-js-offer-row').find('a').text('Hide Addons');
                });
            }
            else {
                // Clear All
                $('#' + control.id).closest('div.panel-body').find('.filled-in').each(function () {
                    if ($(this).prop('disabled') == false)
                        $(this).prop('checked', false);
                });

                $('#' + control.id).closest('div.panel-body').find('.AddonDiv').each(function () {
                    $(this).css('display', 'none');
                    $(this).closest('.search-js-offer-row').find('a').text('Show Addons');
                });
            }
        }

        function ShowSelectedOnly(control) {
            if (checkboxValue(control.id) > 0) {
                // show selected only
                $('#' + control.id).closest('div.panel-body').find('.search-js-offer-row').each(function () {
                    if ($(this).find('div.AddonDiv').length !== 0) {
                        $(this).find('.filled-in').each(function () {
                            if ($(this).prop("checked") == false) {
                                if ($(this).closest('div.AddonCB').length != 0)
                                    $(this).closest('div.AddonCB').hide();
                                else
                                    $(this).closest('.search-js-offer-row').hide();
                            }
                        });
                    }
                    else {
                        $(this).find('.filled-in').each(function () {
                            if ($(this).prop("checked") == false) {
                                $(this).closest('.search-js-offer-row').hide();
                            }
                        });
                    }

                });
            }
            else {
                // show All
                $('#' + control.id).closest('div.panel-body').find('.filled-in').each(function () {
                    $(this).closest('.AddonCB').show();
                    $(this).closest('.search-js-offer-row').show();
                });
            }
        }

    </script>

    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h2>
                    <asp:Label ID="Lbl_PageTitle" runat="server" Text='<%$ Resources:Content, GN00001462 %>' /></h2>
            </div>
            <div class="body">
                <div class="products-step">
                    <span id="div_s1" runat="server" nowrap="true" class="label label-success">
                        <asp:Literal ID="Ltl_Step1" runat="server" EnableViewState="false" Text='<%$ Resources:Content, Dev341 %>' />
                        <asp:LinkButton ID="LB_Step1" EnableViewState="false" runat="server" Text='<%$ Resources:Content, Dev341 %>' />
                    </span>
                    <span id="div_s2" runat="server" nowrap="true" class="label label-default">
                        <asp:Literal ID="Ltl_Step2" runat="server" EnableViewState="false" Text='<%$ Resources:Content, DEV1008 %>' />
                        <asp:LinkButton ID="LB_Step2" runat="server" EnableViewState="false" Text='<%$ Resources:Content, DEV1008 %>' />
                    </span>
                    <span id="div_s3" runat="server" nowrap="true" class="label label-default">
                        <asp:Literal ID="Ltl_StepOffers" runat="server" EnableViewState="false" Text='<%$ Resources:Content, strOffers %>' />
                        <asp:LinkButton ID="LB_StepOffers" runat="server" EnableViewState="false" Text='<%$ Resources:Content, strOffers %>' />
                    </span>
                    <span id="div_s4" runat="server" nowrap="true" class="label label-default">
                        <asp:Literal ID="Ltl_Step3" runat="server" EnableViewState="false" Text='<%$ Resources:Content, GN0000193 %>' />
                        <asp:LinkButton ID="LB_Step3" runat="server" EnableViewState="false" Text='<%$ Resources:Content, GN0000193 %>' />
                    </span>
                    <span id="div_s5" runat="server" nowrap="true" class="label label-default">
                        <asp:Literal ID="Ltl_Step4" runat="server" EnableViewState="false" Text='<%$ Resources:Content, GN0000200 %>' />
                        <asp:LinkButton ID="LB_Step4" runat="server" EnableViewState="false" Text='<%$ Resources:Content, GN0000200 %>' />
                    </span>

                    <span id="div_s6" runat="server" nowrap="true" class="label label-default">
                        <asp:Literal ID="Ltl_Step6" runat="server" EnableViewState="false" Text='<%$ Resources:Content, Str3rdPartyProds %>' />
                        <asp:LinkButton ID="LB_Step6" runat="server" EnableViewState="false" Text='<%$ Resources:Content, Str3rdPartyProds %>' />
                    </span>

                    <span id="div_s7" runat="server" nowrap="true" class="label label-default">
                        <asp:Literal ID="Ltl_Step7" runat="server" EnableViewState="false" Text='<%$ Resources:Content, GN0000105 %>' />
                        <asp:LinkButton ID="LB_Step7" runat="server" EnableViewState="false" Text='<%$ Resources:Content, GN0000105 %>' />
                    </span>

                </div>

                <div class="col-xs-12"></div>
                <div class="col-xs-12"></div>

                <asp:Wizard ID="Wizard1" runat="server" Width="100%" DisplayCancelButton="True"
                    ActiveStepIndex="0" DisplaySideBar="False">
                    <StartNavigationTemplate>
                        <asp:Button ID="Btn_Start_Cancel" runat="server" CssClass="btn btn-primary waves-effect wizard-cancel" Text="<%$ Resources:Content,GN0000572%>"
                            CommandName="Cancel" CausesValidation="false" />
                        <asp:Button ID="Btn_Start_Next" runat="server" CssClass="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN00001242%>"
                            CausesValidation="true" CommandName="MoveNext" />
                        <asp:Button ID="Btn_Start_Save" runat="server" CssClass="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,String265 %>"
                            CausesValidation="true" CommandName="MoveComplete" />
                    </StartNavigationTemplate>
                    <StepNavigationTemplate>
                        <asp:Button ID="Btn_Step_Cancel" runat="server" CssClass="btn btn-primary waves-effect wizard-cancel" Text="<%$ Resources:Content,GN0000572%>"
                            CommandName="Cancel" CausesValidation="false" />
                        <asp:Button ID="Btn_Step_Prev" runat="server" CssClass="btn btn-primary waves-effect" Text="<%$ Resources:Content,DGN1110612%>"
                            CommandName="MovePrevious" CausesValidation="false" />
                        <asp:Button ID="Btn_Step_Next" runat="server" CssClass="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN00001242%>"
                            CausesValidation="true" CommandName="MoveNext" />
                        <asp:Button ID="Btn_Step_Save" runat="server" CssClass="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,String265 %>"
                            CausesValidation="true" CommandName="MoveComplete" />
                    </StepNavigationTemplate>
                    <FinishNavigationTemplate>
                        <asp:Button ID="Btn_Finish_Cancel" runat="server" CssClass="btn btn-primary waves-effect wizard-cancel" Text="<%$ Resources:Content,GN0000572%>"
                            CommandName="Cancel" CausesValidation="false" />
                        <asp:Button ID="Btn_Finish_Prev" runat="server" CssClass="btn btn-primary waves-effect" Text="<%$ Resources:Content,DGN1110612%>"
                            CommandName="MovePrevious" CausesValidation="false" />
                        <asp:Button ID="Btn_Finish_Save" runat="server" CssClass="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,String265 %>"
                            CausesValidation="true" CommandName="MoveComplete" />
                    </FinishNavigationTemplate>
                    <CancelButtonStyle CssClass="btn btn-primary waves-effect" Width="105px" />
                    <FinishCompleteButtonStyle CssClass="btn btn-primary waves-effect" Width="105px" />
                    <StepPreviousButtonStyle CssClass="btn btn-primary waves-effect" Width="105px" />
                    <StepNextButtonStyle CssClass="btn btn-primary waves-effect" Width="105px" />
                    <StartNextButtonStyle CssClass="btn btn-primary waves-effect" Width="105px" />
                    <FinishPreviousButtonStyle CssClass="btn btn-primary waves-effect" Width="105px" />
                    <WizardSteps>

                        <asp:TemplatedWizardStep runat="server" Title="Basic Info." ID="S_BasicInfo" StepType="Start">
                            <%--Basic Product Information--%>
                            <ContentTemplate>
                                <ajax:UpdatePanel ID="Up_Step0" runat="server" UpdateMode="Conditional">
                                    <ContentTemplate>
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Literal2" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000101%>" />:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <asp:DropDownList ID="DDL_ProductTypes" runat="server" Enabled="false">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                *<asp:Literal ID="Literal7" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000103%>" />:
                                            </div>
                                            <div class="col-sm-4 col-xs-11">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_ProductName" runat="server" MaxLength="150"></asp:TextBox>
                                                        <%--<EM:FilteredTextBoxExtender FilterType="Custom, Numbers, lowercaseLetters, Uppercaseletters"
                                                            ValidChars="-.,@!&#$%*+{}\/<>':;[]()_^~` " ID="FTB_ProductName" runat="server" TargetControlID="TxBx_ProductName" />--%>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-sm-5 col-xs-1">
                                                <asp:RequiredFieldValidator ID="RFV_ProductName" ControlToValidate="TxBx_ProductName"
                                                    Display='none' runat="server" SetFocusOnError="true"></asp:RequiredFieldValidator>
                                            </div>
                                        </div>

                                        <div class="row" id="tr_whmcs" runat="server">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                *<asp:Literal ID="Ltrl_WHMCSProdId" runat="server" EnableViewState="false" Text="<%$ Resources:Content,USM0119%>" />:
                                            </div>
                                            <div class="col-sm-4 col-xs-11">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_WHMCSProdId" runat="server" MaxLength="10"></asp:TextBox>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-sm-5 col-xs-1">
                                                <asp:RequiredFieldValidator ID="RFV_WHMCSProdId" ControlToValidate="TxBx_WHMCSProdId"
                                                    Display='none' runat="server" SetFocusOnError="true"></asp:RequiredFieldValidator>
                                            </div>
                                        </div>

                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Literal8" runat="server" EnableViewState="false" Text="<%$ Resources:Content,strO365PartnerProfile%>" />:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <asp:DropDownList ID="DDL_O365PartnerProfile" runat="server" AutoPostBack="true">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="row" id="trCountry" runat="server">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Literal9" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000882%>" />:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <asp:DropDownList ID="DDL_Country" runat="server" AutoPostBack="true">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Literal3" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001527%>" />:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <asp:DropDownList ID="DDL_Locale" runat="server">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Label2" runat="server" Text="<%$ Resources:Content,GN0000001%>"></asp:Literal>:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <asp:DropDownList ID="DDL_Active" runat="server">
                                                        <asp:ListItem Selected="True" Text="<%$ Resources:Content,GN0000004 %>" Value="1"></asp:ListItem>
                                                        <asp:ListItem Text="<%$ Resources:Content,GN0000005 %>" Value="0"></asp:ListItem>
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="row" id="Tr_DelegatedAdminEmail" runat="server">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Literal19" runat="server" Text="<%$ Resources:Content,StrDelegatedAdminEmail%>"></asp:Literal>:
                                            </div>
                                            <div class="col-sm-4 col-xs-11">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_TDDelegateAdminEmail" runat="server"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <b>
                                                    <asp:Literal ID="Ltrl_DelegatedAdminEmailNote" runat="server" Text="<%$ Resources:Content,StrDelegatedAdminEmailNote %>"></asp:Literal></b>
                                            </div>
                                            <div class="col-sm-5 col-xs-1">
                                                <%--<asp:RegularExpressionValidator ID="REV_TDDelegateAdminEmail"
                                                    ControlToValidate="TxBx_TDDelegateAdminEmail" runat="server" ValidationExpression="<%$ Resources:MPRegex,EmailAddress%>"
                                                    Display="None" SetFocusOnError="True" ErrorMessage='<%$ Resources:Content,GN0000592 %>'></asp:RegularExpressionValidator>--%>
                                            </div>
                                        </div>

                                        <div class="row" id="TR_UsageBasedBillingEnabled" runat="server">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,Usagebasedbillingenabled%>"></asp:Literal>:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <asp:CheckBox ID="CB_UsageBasedBillingEnabled" runat="server" Text=" " Checked="true" />
                                                </div>
                                            </div>
                                        </div>

                                        <div class="row" id="TR_DefereSubscriptionBill" runat="server">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Literal5" runat="server" Text="<%$ Resources:Content,strDefereSubscriptionBill%>"></asp:Literal>:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <asp:CheckBox ID="CB_DefereSubscriptionBill" runat="server" Checked="true" Text=" " />
                                                </div>
                                            </div>
                                        </div>

                                        <div class="row" id="TR_Proratable" runat="server">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Literal13" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000002%>" />:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <asp:DropDownList ID="DDL_Proratable" runat="server">
                                                        <asp:ListItem Selected="True" Value="1" Text="<%$ Resources:Content,GN0000004 %>"></asp:ListItem>
                                                        <%--yes--%>
                                                        <asp:ListItem Value="0" Text="<%$ Resources:Content,GN0000005 %>"></asp:ListItem>
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                        </div>

                                        <%--class="col-sm-12 col-md-offset-2 col-md-7"--%>
                                        <div id="div_reseller_margin" runat="server">
                                            <div class="row">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <asp:Literal ID="Ltrl_ResellerMargin" runat="server" Text="<%$ Resources:Content,strMargin %>" />:&nbsp;
                                                </div>
                                                <div class="col-sm-4 col-xs-9">
                                                    <div class="form-group">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_ResellerMargin" runat="server" Text="10%"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="row">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <asp:Literal ID="Ltrl_AutoUpdateOnProviderPrice" runat="server" Text="<%$ Resources:Content,strResellerAutoUpdatePrice %>" />:&nbsp;
                                                </div>
                                                <div class="col-sm-4 col-xs-12">
                                                    <asp:CheckBox ID="CB_AutoUpdateOnProviderPrice" runat="server"
                                                        Text=" " />
                                                    &nbsp;
                                                    
                                                    <a id="Btn_ApplyMargin" runat="server" class="btn btn-primary waves-effect pull-right hide d-none btn-dummy"
                                                        style="margin-top: -3px">
                                                        <asp:Literal ID="Ltl_ApplyMargin" runat="server" Text="<%$ Resources:Content,GN0001189 %>"></asp:Literal></a>
                                                </div>
                                            </div>
                                        </div>


                                        <div class="row" id="trAssociateAddOn" runat="server">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Literal14" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000105%>" />:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <asp:DropDownList ID="DDL_AssociateAddOn" runat="server">
                                                        <asp:ListItem Value="1" Text="<%$ Resources:Content,GN0000006 %>" Selected="True"></asp:ListItem>
                                                        <asp:ListItem Value="2" Text="<%$ Resources:Content,GN0000008 %>"></asp:ListItem>
                                                        <asp:ListItem Value="3" Text="<%$ Resources:Content,GN0000007 %>"></asp:ListItem>
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Literal16" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000106%>" />:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <asp:DropDownList Enabled="false" ID="DDL_AssociateDomain" runat="server">
                                                        <asp:ListItem Value="1" Text="<%$ Resources:Content,GN0000006 %>" Selected="True"></asp:ListItem>
                                                        <asp:ListItem Value="2" Text="<%$ Resources:Content,GN0000008 %>"></asp:ListItem>
                                                        <asp:ListItem Value="3" Text="<%$ Resources:Content,GN0000007 %>"></asp:ListItem>
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Literal4" runat="server" EnableViewState="false" Text="<%$ Resources:Content,EDUDiscount%>" />:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <asp:CheckBox ID="CB_EDU" runat="server" Text="&nbsp;" />
                                                </div>
                                            </div>
                                        </div>

                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Literal6" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000721%>" />:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <div id="TD_CurrentDate" runat="server"></div>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Literal10" runat="server" EnableViewState="false" Text="<%$ Resources:Content,FAM00247%>" />:
                                            </div>
                                            <div class="col-sm-9 col-xs-12">
                                                <div class="form-group">
                                                    <asp:CheckBox ID="ChBx_SyncSoldPlans" Text="&nbsp;" runat="server" />
                                                    &nbsp;&nbsp;&nbsp;<asp:Literal ID="Literal22" runat="server" EnableViewState="false" Text="<%$ Resources:Content,FAM00249%>" />
                                                </div>
                                            </div>
                                        </div>

                                        <div class="row" id="tr_enabledForReseller" runat="server">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Literal11" runat="server" EnableViewState="false" Text="<%$ Resources:Content,USM0094%>" />:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <asp:CheckBox ID="Cb_EnabledForReseller" runat="server" Text="&nbsp;" />
                                                </div>
                                            </div>
                                        </div>

                                        <div id="TR_ComissionResellers" runat="server" style="display: none;">
                                            <div class="row" id="Tr_ResellerComissionInPercentage" runat="server">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <asp:Literal ID="Literal33" runat="server" EnableViewState="false" Text="<%$ Resources:Content,USM0095%>" />:
                                                </div>
                                                <div class="col-sm-4 col-xs-12">
                                                    <div class="form-group">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_ResellerComissionInPercentage" runat="server" Text="0"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="row">
                                                <div class="col-xs-12 row-label">
                                                    <asp:RadioButton ID="RB_AllRes" runat="server" Checked="true" GroupName="AllRes"
                                                        Text="<%$ Resources:Content,String501%>" />
                                                </div>
                                            </div>

                                            <div class="row">
                                                <div class="col-xs-12 row-label">
                                                    <asp:RadioButton ID="RB_SelectedRes" runat="server" GroupName="AllRes" Text="<%$ Resources:Content,String502%>" />:
                                                </div>
                                                <div class="col-xs-12" id="Tbl_AllResellers" runat="server" style="display: none;">
                                                    <ajax:UpdatePanel ID="UP_Resellers" runat="server">
                                                        <ContentTemplate>
                                                            <EM:AddSelectableSelected ID="SelectedReseller" runat="server" />
                                                        </ContentTemplate>
                                                    </ajax:UpdatePanel>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                *<asp:Literal ID="Literal32" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000104%>" />:
                                            </div>
                                            <div class="col-sm-9 col-xs-12">
                                                <div class="form-group">
                                                    <obout:Editor ID="OE_Comments" Submit="false" ShowWaitMessage="false" AjaxWait="false" runat="server" Appearance="custom">
                                                        <Buttons>
                                                            <obout:Select Name="FontName" />
                                                            <obout:Select Name="FontSize" />
                                                            <obout:HorizontalSeparator />
                                                            <obout:Toggle Name="Bold" />
                                                            <obout:Toggle Name="Italic" />
                                                            <obout:Toggle Name="Underline" />
                                                            <obout:Toggle Name="StrikeThrough" />
                                                            <obout:Toggle Name="SuperScript" />
                                                            <obout:Toggle Name="SubScript" />
                                                            <obout:HorizontalSeparator />
                                                            <obout:Method Name="ForeColor" />
                                                            <obout:Method Name="ForeColorClear" />
                                                            <obout:Method Name="BackColor" />
                                                            <obout:Method Name="BackColorClear" />
                                                            <obout:VerticalSeparator />
                                                            <obout:Method Name="Redo" />
                                                            <obout:Method Name="Undo" />
                                                            <obout:HorizontalSeparator />
                                                            <obout:Method Name="Cut" />
                                                            <obout:Method Name="Copy" />
                                                            <obout:Method Name="Paste" />
                                                            <obout:Method Name="PasteText" />
                                                            <obout:HorizontalSeparator />
                                                            <obout:Method Name="Paragraph" />
                                                            <obout:Method Name="GetFormat" />
                                                            <obout:Method Name="ApplyFormat" />
                                                            <obout:HorizontalSeparator />
                                                            <obout:Method Name="JustifyLeft" />
                                                            <obout:Method Name="JustifyCenter" />
                                                            <obout:Method Name="JustifyRight" />
                                                            <obout:Method Name="JustifyFull" />
                                                            <obout:HorizontalSeparator />
                                                            <obout:Method Name="OrderedList" />
                                                            <obout:Method Name="BulletedList" />
                                                            <obout:HorizontalSeparator />
                                                            <obout:Method Name="InsertHR" />
                                                            <obout:Method Name="CreateLink" />
                                                            <obout:Method Name="InsertAnchor" />
                                                            <obout:Method Name="InsertIMG" />
                                                            <obout:HorizontalSeparator />
                                                            <obout:Method Name="ClearStyles" />
                                                        </Buttons>

                                                    </obout:Editor>
                                                    <asp:RequiredFieldValidator ID="RFV_Comments" ControlToValidate="OE_Comments" Display='none'
                                                        runat="server" SetFocusOnError="true"></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                        </div>
                                    </ContentTemplate>
                                </ajax:UpdatePanel>
                            </ContentTemplate>
                        </asp:TemplatedWizardStep>

                        <asp:TemplatedWizardStep runat="server" Title="Resources" ID="S_Resources" StepType="Step">
                            <ContentTemplate>
                                <ajax:UpdatePanel ID="UP_Step2" runat="server" UpdateMode="Conditional">
                                    <ContentTemplate>
                                        <asp:TextBox ID="HTxBx_1" Style="display: none" Text='<%$ Resources:Content, GN0000925 %>'
                                            runat="server" MaxLength="250"></asp:TextBox><asp:RequiredFieldValidator ID="RFV_HTxBx_1"
                                                ControlToValidate="HTxBx_1" Display='none' runat="server" ErrorMessage='<%$ Resources:Content, GN0000926 %>'></asp:RequiredFieldValidator><%--Resources--%>

                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12">
                                                <span class="row-label">
                                                    <asp:Literal ID="Literal114" runat="server" EnableViewState="false" Text='<%$ Resources:Content, strNumberofUsersAllowed %>' />:</span>
                                            </div>
                                            <div class="col-sm-2 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="txtNumberofUser" runat="server" Text="1"></asp:TextBox>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-sm-7 col-xs-12">
                                                <label>
                                                    (<asp:Literal ID="Literal194" runat="server" EnableViewState="false" Text='<%$ Resources:Content, NoOfUsersForDirectRouting %>' />)
                                                </label>
                                                <div class="clearfix"></div>
                                                <asp:RangeValidator ID="RangeValidator2" runat="server" Type="Integer"
                                                    MinimumValue="0" MaximumValue=" 2147483647" ControlToValidate="txtNumberofUser" ErrorMessage="Value must be between 0 to 2147483647." />
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12">
                                                <span class="row-label">
                                                    <asp:Literal ID="Literal113" runat="server" EnableViewState="false" Text='<%$ Resources:Content, NoOfResourceUser %>' />:</span>
                                            </div>
                                            <div class="col-sm-2 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="txtNumberofResourceUser" runat="server" Text="1"></asp:TextBox>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-sm-7 col-xs-12">
                                                <label>
                                                    (<asp:Literal ID="Literal195" runat="server" EnableViewState="false" Text='<%$ Resources:Content, NoOfResourcesForDirectRouting %>' />)
                                                </label>
                                                <div class="clearfix"></div>
                                                <asp:RangeValidator ID="RangeValidator1" runat="server" Type="Integer"
                                                    MinimumValue="0" MaximumValue="2147483647" ControlToValidate="txtNumberofResourceUser" ErrorMessage="Value must be between 0 to 2147483647." />
                                            </div>
                                        </div>

                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12">
                                                <span class="row-label">
                                                    <asp:Literal ID="Literal20" runat="server" EnableViewState="false" Text='<%$ Resources:Content, strNumberofresourceVoicePolicy %>' />:</span>
                                            </div>
                                            <div class="col-sm-2 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxtNumberofresourceVoicePolicy" runat="server" Text="1"></asp:TextBox>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-sm-7 col-xs-12">
                                                <label>
                                                    (<asp:Literal ID="Literal26" runat="server" EnableViewState="false" Text='<%$ Resources:Content, NoOfResourcesallowedtoenablevoicePolicy %>' />)
                                                </label>
                                                <div class="clearfix"></div>
                                                <asp:RangeValidator ID="RangeValidator3" runat="server" Type="Integer"
                                                    MinimumValue="0" MaximumValue="2147483647" ControlToValidate="TxtNumberofresourceVoicePolicy" ErrorMessage="Value must be between 0 to 2147483647." />
                                            </div>
                                        </div>

                                        <div class="row">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Literal12" runat="server" EnableViewState="false" Text="<%$ Resources:Content,strLinkedwithlocalOrganization%>" />:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <asp:CheckBox ID="CB_LinkedwithlocalOrganization" Text="&nbsp;" runat="server" AutoPostBack="true"></asp:CheckBox>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="row" id="tr_ActiveDirectoryDomain" visible="false" runat="server">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Literal17" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110433%>" />:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <asp:DropDownList ID="DDl_ActiveDirectoryDomain" runat="server"></asp:DropDownList>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="row" style="display: none;">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Literal24" runat="server" EnableViewState="false" Text="<%$ Resources:Content,strImmutableIDsyncenabled%>" />:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <asp:CheckBox ID="CB_ImmutableIDsyncenabled" Text="&nbsp;" runat="server" Checked="true"></asp:CheckBox>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="row hide">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Literal25" runat="server" EnableViewState="false" Text="<%$ Resources:Content,strNumberofDomainsAllowed%>" />:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="txtNumberofDomain" runat="server" Text="0"></asp:TextBox>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>



                                        <div class="row" id="Tr_ManageDns" runat="server">
                                            <div class="col-sm-3 col-xs-12 row-label">
                                                <asp:Literal ID="Literal23" runat="server" EnableViewState="false" Text="<%$ Resources:Content,String399%>" />:
                                            </div>
                                            <div class="col-sm-4 col-xs-12">
                                                <div class="form-group">
                                                    <asp:CheckBox ID="CB_ManageDns" runat="server" AutoPostBack="true" Text="&nbsp;" Checked="false" />
                                                </div>
                                            </div>
                                        </div>

                                        <div id="Tbl_ManageDNS" visible="false" runat="server">
                                            <div class="row">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <asp:Literal ID="Literal29" runat="server" EnableViewState="false" Text="<%$ Resources:Content,String400%>" />:
                                                </div>
                                                <div class="col-sm-4 col-xs-12">
                                                    <div class="form-group">
                                                        <asp:DropDownList ID="ddl_DnsServer" runat="server">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                            </div>

                                            <div class="row">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <asp:Literal ID="Literal27" runat="server" EnableViewState="false" Text="<%$ Resources:Content,SPT002165%>" />:
                                                </div>
                                                <div class="col-sm-4 col-xs-12">
                                                    <div class="form-group">
                                                        <asp:DropDownList ID="DDL_ADNSTemplate" runat="server">
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div id="Div_AllowToManageTenantViaPanel" runat="server" visible="false">
                                            <div class="row">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <asp:Literal ID="Ltrl_AllowToManageTenantViaPanel" runat="server" Text="<%$ Resources:Content,ManageTenantViaPanel%>" />:
                                                </div>
                                                <div class="col-sm-9 col-xs-12">
                                                    <div class="form-group">
                                                        <asp:CheckBox ID="Cb_AllowToManageTenantViaPanel" runat="server" Text="&nbsp;" Checked="true" />
                                                        &nbsp;&nbsp;<span class="font-bold">
                                                           <%-- <asp:Literal ID="Ltrl_ManageTenantNote" runat="server" Text="<% $Resources:Content,ManageTenantViaPanelNote %>"></asp:Literal>--%>
                                                        </span>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div id="Div_ExchangeHybridModeEnabled" runat="server" visible="false">
                                            <div class="row">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <asp:Literal ID="Literal28" runat="server" Text="<%$ Resources:Content,StrExchangeHybridModeEnabled%>" />:
                                                </div>
                                                <div class="col-sm-9 col-xs-12">
                                                    <div class="form-group">
                                                        <asp:CheckBox ID="CB_ExchangeHybridModeEnabled" runat="server" Text="&nbsp;" Checked="false" />
                                                        &nbsp;&nbsp;<span class="font-bold">
                                                        </span>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div id="Div_AzureADSyncEnabled" runat="server" visible="false">
                                            <div class="row">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <asp:Literal ID="Literal30" runat="server" Text="<%$ Resources:Content,StrAzureADSyncEnabled%>" />:
                                                </div>
                                                <div class="col-sm-9 col-xs-12">
                                                    <div class="form-group">
                                                        <asp:CheckBox ID="CB_AzureADSyncEnabled" runat="server" Text="&nbsp;" Checked="false" />
                                                        &nbsp;&nbsp;<span class="font-bold">
                                                        </span>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </ContentTemplate>
                                </ajax:UpdatePanel>
                            </ContentTemplate>
                        </asp:TemplatedWizardStep>

                        <asp:TemplatedWizardStep runat="server" Title="Offers" ID="S_Offers" StepType="Step">
                            <ContentTemplate>
                                <ajax:UpdatePanel ID="UpnlOffers" runat="server" UpdateMode="Conditional">
                                    <ContentTemplate>
                                        <asp:TextBox ID="HTxBx_2" Style="display: none" Text='<%$ Resources:Content, GN0000925 %>'
                                            runat="server" MaxLength="250"></asp:TextBox><asp:RequiredFieldValidator ID="RFV_HTxBx_2"
                                                ControlToValidate="HTxBx_2" Display='none' runat="server" ErrorMessage='<%$ Resources:Content, GN0000926 %>'></asp:RequiredFieldValidator><%--Resources--%>

                                        <div class="row" id="div_sync_ops" runat="server">
                                            <div class="col-xs-12">
                                                <asp:Button ID="Btn_SyncOffersFromBackend" runat="server" CssClass="btn btn-primary waves-effect" Text="<%$ Resources:Content,strSyncOffersFromO365 %>" Visible="false" />
                                            </div>
                                        </div>

                                        <div class="row" id="div_import_export_ops" runat="server" visible="false">
                                            <div class="col-xs-12">
                                                <asp:Button ID="Btn_Import_offers" runat="server" CssClass="btn btn-primary waves-effect" Text="<%$ Resources:Content,strImportOffers %>" />
                                                &nbsp;
                                    <asp:Button ID="Btn_Export_offers" runat="server" CssClass="btn btn-primary waves-effect" Text="<%$ Resources:Content,strExportOffers %>" />
                                            </div>
                                        </div>

                                        <div id="div_import_offers" runat="server" visible="false">
                                            <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_Offers" runat="server" EnableViewState="true" />

                                                        </span>
                                                        <span class="fileupload-preview"></span>
                                                        <a href="#" class="close fileupload-exists" data-dismiss="fileupload" style="float: none">×</a>
                                                    </div>
                                                    &nbsp;
                                                <a href="/Template/CSPOffersSample.csv" target='_blank'>
                                                    <asp:Literal ID="Ltrl_SamplCSV" runat="server" Text="<%$Resources:Content,SMI100 %>"></asp:Literal>
                                                </a>
                                                    <asp:RequiredFieldValidator ID="RFV_CSP_Package_Offers" runat="server" ControlToValidate="FU_CSP_Package_Offers"
                                                        Display="None" SetFocusOnError="True" ValidationGroup="Import_CSP_Package_Offers" ErrorMessage='<%$Resources:Content,strOfferImportMissingFileError %>'></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                            <div class="row">
                                                <div class="col-sm-offset-3 col-sm-9 col-xs-12">
                                                    <asp:ValidationSummary HeaderText='<%$ Resources:Content, EM000001%>' ID="ValidationSummary3" ValidationGroup="Import_CSP_Package_Offers"
                                                        ShowMessageBox="true" ShowSummary="false" runat="server" />
                                                    <asp:Button ID="Btn_Update_Import_Offers" runat="server" Text="<%$ Resources:Content,DEV1180%>"
                                                        CssClass="btn btn-primary waves-effect" CausesValidation="true" ValidationGroup="Import_CSP_Package_Offers" />
                                                    <asp:Button ID="Btn_Cancel_Import_Offers" runat="server" Text="<%$ Resources:Content,GN0000572%>"
                                                        CssClass="btn btn-cancel waves-effect" CausesValidation="false" />
                                                </div>
                                            </div>
                                        </div>

                                        <div class="clearfix"></div>

                                        <div class="row">
                                            <div class="col-xs-12">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_SearchOffers" runat="server" CssClass="TypeToSearch"
                                                            Text='<%# Resources.Content.TypeToSearch%>'
                                                            onFocus='<%# "ClearDefaultIfNotChanged(this,&#39;" & Resources.Content.TypeToSearch & "&#39;)"%>'
                                                            onBlur='<%# "SetDefaultValueIfBlank(this,&#39;" & Resources.Content.TypeToSearch & "&#39;)"%>'
                                                            onKeyUp='<%# "filterOffers(this)"%>'>
                                                        </asp:TextBox>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="row">
                                            <div class="col-xs-12">
                                                <div class="panel-group" id="accordion_1" role="tablist" aria-multiselectable="true">
                                                    <asp:Repeater ID="Rep_Category" runat="server">
                                                        <ItemTemplate>
                                                            <div class="panel panel-primary" id="AccordionPane1" runat="server">
                                                                <div class="panel panel-heading" role="tab" id="PanelHeading" runat="server">
                                                                    <h2 class="panel-title">
                                                                        <a role="button" id="A_Head" runat="server" data-toggle="collapse" data-parent="#accordion_1" href="#collapseOne"
                                                                            aria-expanded="false" aria-controls="collapseOne" class="collapsed">
                                                                            <asp:Literal ID="Ltrl_CategoryName" runat="server" />
                                                                        </a>
                                                                    </h2>
                                                                </div>

                                                                <div id="collapseOne" runat="server" class="panel-collapse collapse" role="tabpanel" aria-labelledby="PanelHeading">
                                                                    <div class="panel-body">
                                                                        <input id="Txt" runat="server" type="text" style='display: none;' class='hfclass2' />
                                                                        <asp:HiddenField ID="HF_CategoryID" runat="server" />

                                                                        <div class="row">
                                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                                <asp:CheckBox OnClick="SelectClearAll(this);" ID="Cb_SelectAll" runat="server" Text='<%$ Resources:Content, GN0000180 %>' />
                                                                            </div>
                                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                                <asp:CheckBox OnClick="ShowSelectedOnly(this);" ID="Cb_ShowSelected" runat="server" Text='Show selected Offers only' />
                                                                            </div>
                                                                            <div class="col-sm-2 col-xs-12 row-label">
                                                                                <asp:Literal ID="Literal18" runat="server" EnableViewState="false" Text='<%$ Resources:Content, strDisplayIndex %>' />:
                                                                            </div>
                                                                            <div class="col-sm-2 col-xs-12">
                                                                                <div class="form-group">
                                                                                    <div class="form-line">
                                                                                        <asp:TextBox ID="TxBx_Displayindex" runat="server"></asp:TextBox>
                                                                                    </div>
                                                                                </div>
                                                                            </div>
                                                                        </div>
                                                                        <asp:Repeater ID="Rep_Offers" runat="server" OnItemDataBound="Rep_Offers_ItemDataBound">
                                                                            <ItemTemplate>

                                                                                <div class="row search-js-offer-row" id="div_offer_row" runat="server">
                                                                                    <div class="col-xs-12 row-label">
                                                                                        <asp:HiddenField ID="HF_OfferID" runat="server" />
                                                                                        <asp:HiddenField ID="HF_ParentOfferID" runat="server" />
                                                                                        <asp:HiddenField ID="HF_MSOfferID" runat="server" />
                                                                                        <asp:HiddenField ID="HF_MSOfferName" runat="server" Value='<%# Eval("MSOfferName")%>' />

                                                                                        <asp:CheckBox ID="CB_Offer" Text='<%# Eval("CustomOfferName")%>' runat="server" />
                                                                                        &nbsp;
                                                                                        <asp:LinkButton ID="Lbtn_ToggleAddons" runat="server" href="javascript:void(0);" data-show-text="<%$Resources:Content,strShowAddons %>" data-hide-text="<%$Resources:Content,strHideAddons %>" Text="<%$Resources:Content,strShowAddons %>" OnClientClick="toggleOfferAddons(this,event)" Visible="false"></asp:LinkButton>
                                                                                        <asp:Label ID="Lbl_RemovedFromO365" runat="server" Text="<% $Resources:Content,strO365RemovedFromMS %>" CssClass="text-danger" Visible='<%# Eval("IsRemovedFromO365") %>'></asp:Label>
                                                                                        <asp:HiddenField ID="HF_IsRemovedFromMS" runat="server" Value='<%# Eval("IsRemovedFromO365") %>' />
                                                                                    </div>
                                                                                    <div id="trAddons" class="AddonDiv" runat="server" style="display: none;">
                                                                                        <div class="col-sm-1 col-xs-12 row-label">
                                                                                            <asp:Literal ID="Literal21" runat="server" EnableViewState="false" Text='<%$ Resources:Content, Addons %>' />:
                                                                                        </div>
                                                                                        <div class="col-sm-11 col-xs-12">
                                                                                            <asp:Repeater ID="Rep_OfferAddons" runat="server" OnItemDataBound="Rep_OfferAddons_ItemDataBound">
                                                                                                <ItemTemplate>

                                                                                                    <div class="row AddonCB" id="div_addon_row" runat="server">
                                                                                                        <div class="col-xs-12 row-label">
                                                                                                            <asp:HiddenField ID="HF_AddonID" runat="server" />
                                                                                                            <asp:HiddenField ID="HF_ParentOfferID" runat="server" />
                                                                                                            <asp:HiddenField ID="HF_ParentAddOnID" runat="server" />
                                                                                                            <asp:HiddenField ID="HF_MSAddonID" runat="server" />
                                                                                                            <asp:HiddenField ID="HF_IsRemovedFromMS" runat="server" Value='<%# Eval("IsRemovedFromO365") %>' />
                                                                                                            <asp:HiddenField ID="HF_MSOfferName" runat="server" Value='<%# Eval("MSOfferName") %>' />
                                                                                                            <asp:CheckBox ID="CB_Addon" Text='<%# Eval("CustomOfferName")%>' runat="server" />
                                                                                                            <asp:Label ID="Lbl_RemovedFromO365" runat="server" Text="<% $Resources:Content,strO365RemovedFromMS %>" CssClass="text-danger" Visible='<%# Eval("IsRemovedFromO365") %>'></asp:Label>
                                                                                                        </div>
                                                                                                    </div>
                                                                                                </ItemTemplate>
                                                                                            </asp:Repeater>
                                                                                        </div>
                                                                                    </div>

                                                                                </div>
                                                                            </ItemTemplate>
                                                                        </asp:Repeater>
                                                                    </div>
                                                                </div>
                                                            </div>


                                                        </ItemTemplate>
                                                    </asp:Repeater>


                                                </div>
                                            </div>
                                            <div class="col-xs-12" id="DivUsagebased" runat="server" visible="false">
                                                <div class="card">
                                                    <div class="header">
                                                        <h2>
                                                            <asp:Literal ID="ltrUsageBasedHeading" runat="server" Text='<%$ Resources:Content, strUsageBased %>'></asp:Literal>
                                                        </h2>
                                                    </div>
                                                    <div class="body">
                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12">
                                                                <asp:Label ID="lblAzureOfferName" runat="server"></asp:Label>
                                                                <asp:HiddenField ID="hdnAzureOfferName" runat="server" />
                                                                <asp:HiddenField ID="hdnAzureOfferId" runat="server" />
                                                            </div>
                                                            <div class="col-sm-6 col-xs-12">
                                                                <asp:CheckBox ID="Chbx_AzureOffer" runat="server" Text=" " />
                                                            </div>
                                                        </div>
                                                        <div id="divAzureOffer" runat="server" style="display: none;">
                                                            <div class="row">
                                                                <div class="col-sm-3 col-xs-12">
                                                                    <asp:Label ID="lblProfitToAdd" runat="server" Text='<%$ Resources:Content, strProfitToAddOverMicroPricing %>'></asp:Label>:
                                                                </div>
                                                                <div class="col-sm-6 col-xs-12">
                                                                    <div class="form-group">
                                                                        <div class="form-line">
                                                                            <asp:TextBox ID="txtProfitToAddonMSPricing" Text="1" runat="server"></asp:TextBox>
                                                                            <%-- <asp:RangeValidator ID="RangeValidator1" Type="Integer" ControlToValidate="txtProfitToAddonMSPricing" MinimumValue="0" MaximumValue="100" runat="server"></asp:RangeValidator>--%>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="col-sm-1 col-xs-12">
                                                                    %
                                                                </div>
                                                            </div>
                                                            <div class="row">
                                                                <div class="col-sm-3 col-xs-12">
                                                                    <asp:Label ID="lblQuotaRestrictionAdded" runat="server" Text='<%$ Resources:Content, strQuotaRestrictionAdded %>'></asp:Label>:
                                                                </div>
                                                                <div class="col-sm-6 col-xs-12">
                                                                    <asp:CheckBox ID="Chbx_QuotaRestrictionAdded" runat="server" Text=" " />
                                                                </div>
                                                            </div>
                                                            <div id="divQuotaRestriction" runat="server" style="display: none;">
                                                                <div class="row">
                                                                    <div class="col-sm-3 col-xs-12">
                                                                        <asp:Label ID="lblThreshHold" runat="server" Text='<%$ Resources:Content, strThreashHoldLimit %>'></asp:Label>:
                                                                    </div>
                                                                    <div class="col-sm-6 col-xs-12">
                                                                        <div class="form-group">
                                                                            <div class="form-line">
                                                                                <asp:TextBox ID="TxBx_ThreshHold" Text="80" runat="server"></asp:TextBox>
                                                                                <%--    <asp:RangeValidator ID="rgvThreshHold" Type="Integer" ControlToValidate="TxBx_ThreshHold" MinimumValue="50" MaximumValue="100" runat="server"></asp:RangeValidator>--%>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-sm-1 col-xs-12">
                                                                        %
                                                                    </div>
                                                                </div>
                                                                <div class="row">
                                                                    <div class="col-sm-3 col-xs-12">
                                                                        <asp:Label ID="lblAction" runat="server" Text='<%$ Resources:Content, strActionToTakeifThreashold %>'></asp:Label>:
                                                                    </div>
                                                                    <div class="col-sm-6 col-xs-12">
                                                                        <asp:DropDownList ID="ddlEmailFrequency" runat="server">
                                                                            <asp:ListItem Text='<%$ Resources:Content, strEmailOnce %>' Value="0" Selected="True"></asp:ListItem>
                                                                            <asp:ListItem Text='<%$ Resources:Content, strEmailDaily %>' Value="1"></asp:ListItem>
                                                                        </asp:DropDownList>
                                                                        <%--<asp:RadioButton ID="rdbEmailOnce" runat="server" GroupName="Action" Text='<%$ Resources:Content, strEmailOnce %>' />
                                                        <asp:RadioButton ID="rdbEmailDaily" runat="server" GroupName="Action" Text='<%$ Resources:Content, strEmailDaily %>' />--%>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </ContentTemplate>
                                    <Triggers>
                                        <ajax:PostBackTrigger ControlID="Btn_Update_Import_Offers" />
                                        <ajax:PostBackTrigger ControlID="Btn_Import_offers" />
                                    </Triggers>
                                </ajax:UpdatePanel>
                            </ContentTemplate>
                        </asp:TemplatedWizardStep>

                        <asp:TemplatedWizardStep ID="S_Cycles" runat="server" Title="Cycles" StepType="Step">
                            <ContentTemplate>
                                <ajax:UpdatePanel ID="UpnlCycles" runat="server" UpdateMode="Conditional">
                                    <ContentTemplate>
                                        <%-- Payment Cycles --%>
                                        <div id="div_billing_cycles" runat="server">
                                            <div class="col-xs-12 header">
                                                <asp:Literal
                                                    ID="Literal15" runat="server" EnableViewState="false" Text='<%$ Resources:Content, GN0000193 %>' />
                                            </div>

                                            <div class="col-xs-12">
                                                <EM:AddSelectableSelected ID="UCPaymentCycles" runat="server" IsSelectedRequired="true" SortByValue="true" />
                                            </div>
                                        </div>
                                        <%-- Payment Groups --%>
                                        <div class="col-xs-12 header">
                                            <asp:Literal
                                                ID="Literal43" runat="server" EnableViewState="false" Text='<%$ Resources:Content, GN0000196 %>' />
                                        </div>

                                        <div class="col-xs-12">
                                            <EM:AddSelectableSelected ID="UCPaymentGroups" IsSelectedRequired="true" runat="server" />
                                        </div>
                                    </ContentTemplate>
                                </ajax:UpdatePanel>
                            </ContentTemplate>
                        </asp:TemplatedWizardStep>

                        <asp:TemplatedWizardStep runat="server" ID="S_Fill_Prices" Title="DS_DG" StepType="Step">
                            <ContentTemplate>
                                <ajax:UpdatePanel ID="UP_Step4" runat="server" UpdateMode="Conditional">
                                    <ContentTemplate>
                                        <asp:TextBox ID="HTxBx_4" Style="display: none" Text='<%$ Resources:Content, GN0000925 %>'
                                            runat="server" MaxLength="250"></asp:TextBox><asp:RequiredFieldValidator ID="RFVHTxBx_4"
                                                ControlToValidate="HTxBx_4" Display='none' runat="server" ErrorMessage=''></asp:RequiredFieldValidator>

                                        <div class="row">
                                            <div class="col-sm-12 col-md-3">
                                                <asp:Button ID="BtnExport" runat="server" CssClass="btn btn-primary waves-effect" Text="<%$ Resources:Content,strExport %>" />
                                                <asp:Button ID="btnImport" runat="server" CssClass="btn btn-primary waves-effect" Text="<%$ Resources:Content,strImport %>" />
                                            </div>

                                        </div>

                                        <table class="table table-bordered table-striped table-hover">
                                            <tr>
                                                <th class="col-xs-3">
                                                    <%=Resources.Content.strOfferName%>
                                                </th>
                                                <th class="col-xs-3">
                                                    <%=Resources.Content.GN0000200%>
                                                </th>
                                                <th class="col-xs-2">
                                                    <%=Resources.Content.GN0000193%>
                                                </th>
                                                <th class="col-xs-2">
                                                    <%= Resources.Content.CostPrice %>
                                                </th>
                                                <th class="col-xs-2">
                                                    <%=Resources.Content.SalePrice%>
                                                </th>
                                            </tr>

                                            <%--Price Group --%>


                                            <asp:Repeater ID="Rep_Offer" runat="server">
                                                <ItemTemplate>

                                                    <tr>
                                                        <td class="col-xs-3" runat="server" id="OfferName"></td>
                                                        <td class="col-xs-9" colspan="4">
                                                            <input id="CustomOfferName" runat="server" type="hidden" />
                                                            <input id="MSOfferID" runat="server" type="hidden" />
                                                            <input id="OfferID" runat="server" type="hidden" />
                                                            <input id="ParentOfferID" runat="server" type="hidden" />
                                                            <asp:Repeater ID="Rep_PG" runat="server">
                                                                <ItemTemplate>
                                                                    <%# IIf(Container.ItemIndex > 0, "<hr />", String.Empty)%>
                                                                    <table class="table">
                                                                        <tr>
                                                                            <td class="col-xs-4" runat="server" id="PGName"></td>
                                                                            <td class="col-xs-8">
                                                                                <input id="H_PGID" runat="server" type="hidden" />
                                                                                <asp:Repeater ID="Rep_Cycle" runat="server">
                                                                                    <ItemTemplate>
                                                                                        <table class="table">
                                                                                            <tr>
                                                                                                <td class="col-xs-4" id="Cycle" runat="server" align="left"></td>
                                                                                                <td class="col-xs-8" id="Price" runat="server" align="left">
                                                                                                    <input id="H_CycleId" runat="server" type="hidden" />
                                                                                                    <span class="col-xs-6 m-l--10">
                                                                                                        <div class="form-group">
                                                                                                            <div class="form-line">
                                                                                                                <asp:TextBox runat="server" ID="TxBx_Cost" CssClass="js-input-cost"></asp:TextBox>
                                                                                                            </div>
                                                                                                        </div>
                                                                                                    </span>
                                                                                                    <span class="col-xs-6 m-l-10">
                                                                                                        <div class="form-group">
                                                                                                            <div class="form-line">
                                                                                                                <asp:TextBox runat="server" ID="TxBx_Price" CssClass="js-input-price"></asp:TextBox>
                                                                                                            </div>
                                                                                                        </div>
                                                                                                    </span>
                                                                                                </td>
                                                                                            </tr>
                                                                                        </table>
                                                                                    </ItemTemplate>
                                                                                </asp:Repeater>
                                                                            </td>
                                                                        </tr>

                                                                    </table>
                                                                </ItemTemplate>
                                                            </asp:Repeater>
                                                        </td>
                                                    </tr>


                                                </ItemTemplate>
                                            </asp:Repeater>

                                        </table>
                                        <table class="table table-bordered table-striped table-hover" id="tblAzureOfferPrice" runat="server" visible="true">
                                            <tr>
                                                <th class="col-xs-3" colspan="4">
                                                    <%=Resources.Content.strUsageBased%>
                                                </th>
                                            </tr>
                                            <tr>
                                                <th class="col-xs-3">
                                                    <%=Resources.Content.strOfferName%>
                                                </th>
                                                <th class="col-xs-3">
                                                    <%=Resources.Content.GN0000200%>
                                                </th>
                                                <th class="col-xs-3">
                                                    <%=Resources.Content.GN0000193%>
                                                </th>
                                                <th class="col-xs-3">
                                                    <%=Resources.Content.strLimitAmount%>
                                                </th>
                                            </tr>

                                            <tr>

                                                <td class="col-xs-3" runat="server" id="AzureOfferName">
                                                    <asp:Label ID="LblAzureOfferForPrice" runat="server"></asp:Label>
                                                </td>
                                                <td class="col-xs-9" colspan="3">
                                                    <input id="OfferIDAzure" runat="server" type="hidden" />
                                                    <asp:Repeater ID="Rep_PGAzure" runat="server">
                                                        <ItemTemplate>
                                                            <table class="table">
                                                                <tr>
                                                                    <td class="col-xs-4" runat="server" id="PGName"></td>
                                                                    <td class="col-xs-8">
                                                                        <input id="H_PGID" runat="server" type="hidden" />
                                                                        <%--<asp:Repeater ID="Rep_CycleAzure" runat="server">
                                                                            <ItemTemplate>--%>
                                                                        <table class="table">
                                                                            <tr>
                                                                                <td class="col-xs-6" id="Cycle" runat="server" align="left">
                                                                                    <%= Resources.Content.DGN1110293 %>
                                                                                </td>
                                                                                <td class="col-xs-6" id="Price" runat="server" align="left">
                                                                                    <div class="form-group">
                                                                                        <div class="form-line">
                                                                                            <input id="H_CycleId" runat="server" type="hidden" value="4" />
                                                                                            <asp:TextBox runat="server" ID="TxBx_Price"></asp:TextBox>
                                                                                        </div>
                                                                                    </div>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                        <%--</ItemTemplate>
                                                                        </asp:Repeater>--%>
                                                                    </td>
                                                                </tr>

                                                            </table>
                                                        </ItemTemplate>
                                                    </asp:Repeater>
                                                </td>
                                            </tr>
                                            <%--  </div>
                                    </div>
                                </div>--%>
                                        </table>
                                        <asp:Button ID="Btn_Dummy" Style="display: none" runat="server" />
                                        <asp:Panel ID="Panel3" 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">
                                                            <asp:Literal ID="Literal77" EnableViewState="false" runat="server" Text="<%$ Resources:Content,String380%>" />:  </h3>

                                                    </div>
                                                    <div class="body">
                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                            </div>
                                                            <div class="col-sm-9 col-xs-12">
                                                                <div class="fileupload fileupload-new" data-provides="fileupload">

                                                                    <%--    <asp:FileUpload ID="FU_BulkUser" runat="server" EnableViewState="true" CssClass="btn btn-primary waves-effect" />--%>
                                                                    <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_BulkOffers" runat="server" EnableViewState="true" />
                                                                    </span>
                                                                    <span class="fileupload-preview"></span>
                                                                    <a href="#" class="close fileupload-exists" data-dismiss="fileupload" style="float: none">×</a>
                                                                    <asp:RequiredFieldValidator ID="RFV_BulkUser" runat="server" ControlToValidate="FU_BulkOffers"
                                                                        Display="None" SetFocusOnError="True" ValidationGroup="importprices" ErrorMessage='<%$Resources:Content,USM0077 %>'></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:ValidationSummary HeaderText='<%$ Resources:Content, EM000001%>' ID="ValidationSummary2" ValidationGroup="importprices"
                                                                        ShowMessageBox="true" ShowSummary="false" runat="server" />
                                                                    <asp:Button ID="Btn_UpdatePrices" runat="server" Text="<%$ Resources:Content,strUpdatePrices%>" ValidationGroup="importprices" CssClass="btn btn-primary waves-effect" />
                                                                    <asp:Button ID="Btn_Cancel" runat="server" Text="<%$ Resources:Content,GN0000572%>" CssClass="btn btn-primary waves-effect" CausesValidation="false" />
                                                                </div>
                                                            </div>

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

                                        </asp:Panel>

                                        <EM:ModalPopupExtender runat="server" ID="MPE_ImportOffersPrices" BackgroundCssClass="modalBackground"
                                            DropShadow="false" PopupControlID="Panel3" TargetControlID="Btn_Dummy" CancelControlID="Btn_Cancel">
                                        </EM:ModalPopupExtender>
                                    </ContentTemplate>
                                    <Triggers>
                                        <ajax:PostBackTrigger ControlID="Btn_UpdatePrices" />
                                    </Triggers>
                                </ajax:UpdatePanel>
                            </ContentTemplate>
                        </asp:TemplatedWizardStep>


                        <asp:TemplatedWizardStep runat="server" ID="S_3rdPartyProds" Title="<%$ Resources:Content,Str3rdPartyProds %>" StepType="Step">
                            <ContentTemplate>
                                <ajax:UpdatePanel ID="UP_3rdPartyProduct" runat="server" UpdateMode="Conditional">
                                    <ContentTemplate>
                                        <UC:CSPPackageProd ID="CSPPackageProd1" runat="server" />
                                    </ContentTemplate>
                                </ajax:UpdatePanel>
                            </ContentTemplate>
                        </asp:TemplatedWizardStep>


                        <asp:WizardStep runat="server" ID="S_AddOn" Title="Add-Ons" StepType="Finish">

                            <div class="col-xs-12">
                                <EM:AddSelectableSelected ID="UCAddons" runat="server" />
                            </div>

                        </asp:WizardStep>

                    </WizardSteps>
                </asp:Wizard>
                <asp:ValidationSummary HeaderText='<%$ Resources:Content, EM000001%>' ID="ValidationSummary1"
                    ShowMessageBox="true" ShowSummary="false" runat="server" />
            </div>
        </div>
    </div>
</asp:Content>

