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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/Template/CC/Selectable_Selected_LBX.ascx" TagName="AddSelectableSelected" TagPrefix="EM" %>
<%@ Register Assembly="obout_Editor" Namespace="OboutInc.Editor" TagPrefix="obout" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h2>
                    <asp:Literal EnableViewState="false" ID="Literal195" runat="server" Text='<%$ Resources:Content, GN00001462 %>' /></h2>
            </div>
            <div class="body">
                <%--<ajax:UpdatePanel ID="UP_Divs" runat="server" UpdateMode="always" RenderMode="Inline">
                    <ContentTemplate>--%>
                <div class="products-step">
                    <span id="div_s1" runat="server" nowrap="true" class="label label-success">
                        <asp:Literal ID="Ltl_Step1" runat="server" Text='<%$ Resources:Content, Dev341 %>' />
                        <!-- Basic Info -->
                    </span>
                    <span id="div_s2" runat="server" nowrap="true" class="label label-default">
                        <asp:Literal ID="Ltl_Step2" runat="server" Text='<%$ Resources:Content, GN0000200 %>' />
                        <!-- Payment Group -->
                    </span>
                    <span id="div_s3" runat="server" nowrap="true" class="label label-default">
                        <asp:Literal ID="Ltl_Step3" runat="server" Text='<%$ Resources:Content, GN0000193 %>' />
                        <!-- Payment Cycles -->
                    </span>
                    <%--<span id="div_s4" runat="server" nowrap="true" class="label label-default">
                                <asp:Literal ID="Ltl_Step4" runat="server" Text='<%$ Resources:Content, GN0000105 %>' />
                                <!-- Associate Add-on -->
                            </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" />
                    </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" />
                    </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:WizardStep runat="server" Title="Basic Info." ID="S_BasicInfo" StepType="Start">

                            <ajax:UpdatePanel ID="Up_Step0" runat="server" UpdateMode="always">
                                <ContentTemplate>

                                    <div class="row" id="TR_SSLProvider" runat="server">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                            <asp:Literal ID="Literal4" runat="server" EnableViewState="false" Text="<%$ Resources:Content,Dev596%>" />:
                                        </div>
                                        <div class="col-sm-4 col-xs-12">
                                            <div class="form-group">
                                                <asp:DropDownList ID="DDL_SSLProvider" runat="server">
                                                    <asp:ListItem Text="<%$ Resources:Content,DigiCertSSL%>" Value="1" Enabled="false"></asp:ListItem>
                                                    <asp:ListItem Text="<%$ Resources:Content,SectigoSSL%>" Value="2"></asp:ListItem>
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="row" id="Tr_SectigoReseller" runat="server">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                            <asp:Literal ID="Literal2" runat="server" EnableViewState="false" Text="Select Seller" />:
                                        </div>
                                        <div class="col-sm-4 col-xs-12">
                                            <div class="form-group">
                                                <asp:DropDownList ID="Ddl_SectigoResellers" runat="server"></asp:DropDownList>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="row">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                            *<asp:Literal ID="Literal5" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000103%>" />:
                                        </div>
                                        <div class="col-sm-4 col-xs-12">
                                            <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" />--%>
                                                    <asp:RequiredFieldValidator ID="RFV_ProductName" ControlToValidate="TxBx_ProductName"
                                                        Display='none' runat="server" SetFocusOnError="true"></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="row">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                            <asp:Literal ID="Literal194" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000001%>" />:
                                        </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_Proratable" runat="server">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                            <asp:Literal ID="Literal9" 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" Enabled="false">
                                                    <asp:ListItem Value="1" Text='<%$ Resources:Content,GN0000004 %>'></asp:ListItem>
                                                    <asp:ListItem Selected="True" Value="0" Text='<%$ Resources:Content,GN0000005 %>'></asp:ListItem>
                                                </asp:DropDownList>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="row" id="Tr_EnabledForReseller" runat="server">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                            <asp:Literal ID="Literal24" 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="UCResellers" runat="server" />
                                                    </ContentTemplate>
                                                </ajax:UpdatePanel>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="row">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                            *<asp:Literal ID="Literal198" 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>
                            <%-- </fieldset>--%>
                        </asp:WizardStep>
                        <asp:WizardStep ID="S_PaymentGroups" runat="server" Title="Groups" StepType="Step">
                            <%-- Payment Groups --%>
                            <div class="col-xs-12 header">
                                <asp:Literal
                                    ID="Literal66" runat="server" EnableViewState="false" Text='<%$ Resources:Content, GN0000196 %>' />
                            </div>

                            <div class="col-xs-12">
                                <EM:AddSelectableSelected ID="UCPaymentGroups" IsSelectedRequired="true" runat="server" />
                            </div>
                        </asp:WizardStep>
                        <asp:WizardStep runat="server" ID="S_Fill_Prices" Title="DS_DG" StepType="Finish">
                            <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><%--Price Group--%>
                            <div class="card" id="Div_ImportExportOptions" runat="server">
                                <div class="body">
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <asp:Button ID="Btn_ExportToExcel" runat="server" Text="<%$ Resources:Content,Ex001%>"
                                                CssClass="btn btn-primary waves-effect" CausesValidation="false" />
                                            <asp:HyperLink ID="A_ImportFromFile" runat="server" Text="<%$ Resources:Content,strImport%>"
                                                CssClass="btn btn-primary waves-effect" CausesValidation="false" />
                                        </div>
                                    </div>
                                    <div id="Div_ImportOption" runat="server" style="display: none;">
                                        <div class="row">

                                            <div class="col-xs-12">
                                                <div class="form-group">
                                                    <asp:FileUpload ID="FU_BrowseDataFile" runat="server" />

                                                </div>
                                            </div>

                                        </div>
                                        <div class="row">
                                            <div class="col-xs-12">
                                                <asp:Button ID="Btn_ImportFromFile" runat="server" Text="<%$ Resources:Content,strSave%>" class="btn btn-primary waves-effect btnAction" />
                                                <asp:HyperLink ID="A_CancelImport" runat="server" Text="<%$ Resources:Content,Cancel%>"
                                                    CssClass="btn btn-primary waves-effect" CausesValidation="false" />
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="panel-group" id="accordion_1" role="tablist" aria-multiselectable="true">
                                <asp:Repeater ID="Rep_Groups" runat="server">
                                    <ItemTemplate>

                                        <div class="panel panel-primary" id="AccordionPane1" runat="server">
                                            <div class="panel panel-heading" role="tab" id="PanelHeading" runat="server">
                                                <div style="display: flex;">

                                                    <div style="align-self: center">
                                                        &nbsp;&nbsp;<asp:CheckBox ID="Cb_IsGroupActive" Checked="true" runat="server" Text="" />
                                                    </div>
                                                    <div style="width: 97%">
                                                        <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="Lbl_GroupName" runat="server" Text='<%# Container.DataItem.ToString.Replace("_", " ").ToUpper%>'></asp:Literal>
                                                                <asp:HiddenField ID="Hf_GroupName" runat="server" Value='<%# Container.DataItem.ToString %>' />
                                                                <asp:HiddenField ID="Hf_ProductType" runat="server" />
                                                            </a>
                                                        </h2>
                                                    </div>

                                                </div>


                                            </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' />
                                                    <div class="row">
                                                        <div class="col-xs-12">
                                                            <asp:Repeater ID="Rep_Products" OnItemDataBound="Rep_Products_ItemDataBound" runat="server">
                                                                <ItemTemplate>
                                                                    <div class="row">
                                                                        <div class="col-xs-12">
                                                                            <div class="card">
                                                                                <div class="header font-bold">
                                                                                    <asp:CheckBox ID="Cb_IsActive" runat="server" Text="" />
                                                                                    <asp:Label ID="Lbl_ProductName" Text='<%# DataBinder.Eval(Container.DataItem, "ProductName")%>' runat="server"></asp:Label>
                                                                                    <asp:HiddenField ID="Hf_ProductId" Value='<%# DataBinder.Eval(Container.DataItem, "ProductId")%>' runat="server" />
                                                                                    <asp:HiddenField ID="Hf_TermDays" runat="server" />
                                                                                    <asp:HiddenField ID="Hf_MinSeats" runat="server" />
                                                                                    <asp:HiddenField ID="Hf_MaxSeats" runat="server" />
                                                                                </div>
                                                                                <div class="body">
                                                                                    <div class="row" id="Tr_SAN" runat="server">
                                                                                        <div class="col-sm-3 col-xs-12 row-label">
                                                                                            <asp:Literal ID="Literal1" runat="server" Text='<%$ Resources:Content, IncludedSANQuantity %>' EnableViewState="false"></asp:Literal>:
                                                                                        </div>
                                                                                        <div class="col-sm-3 col-xs-12">
                                                                                            <div class="form-group">
                                                                                                <div class="form-line">
                                                                                                    <asp:TextBox runat="server" ID="TxBx_SANQuantity" MaxLength="8"></asp:TextBox>
                                                                                                </div>
                                                                                            </div>
                                                                                        </div>
                                                                                    </div>
                                                                                    <div class="row">
                                                                                        <div class="col-xs-12">
                                                                                            <table class="table table-bordered table-striped table-hover">
                                                                                                <tr>
                                                                                                    <th class="col-xs-3">
                                                                                                        <%=Resources.Content.GN0000952%>
                                                                                                    </th>
                                                                                                    <th class="col-xs-2">
                                                                                                        <%=Resources.Content.GN00001473%>
                                                                                                    </th>
                                                                                                    <th class="col-xs-2">
                                                                                                        <%=Resources.Content.CostPrice%>
                                                                                                    </th>
                                                                                                    <th class="col-xs-2">
                                                                                                        <%=Resources.Content.SalePrice%>
                                                                                                    </th>
                                                                                                    <th class="col-xs-2">
                                                                                                        <%=Resources.Content.DiscountAmount%>
                                                                                                    </th>
                                                                                                </tr>


                                                                                                <asp:Repeater ID="Rep_PG" runat="server" OnItemDataBound="Rep_PG_ItemDataBound">
                                                                                                    <ItemTemplate>
                                                                                                        <tr>
                                                                                                            <td class="col-xs-3">
                                                                                                                <asp:Label ID="Lbl_PGName" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "PGName")%>'></asp:Label>
                                                                                                                <asp:HiddenField ID="Hf_PGId" runat="server" Value='<%# DataBinder.Eval(Container.DataItem, "PGId")%>' />
                                                                                                            </td>
                                                                                                            <td colspan="4" class="col-xs-9">
                                                                                                                <asp:Repeater ID="Rep_Cycle" runat="server" OnItemDataBound="Rep_Cycle_ItemDataBound">
                                                                                                                    <ItemTemplate>
                                                                                                                        <table class="table">
                                                                                                                            <tr>
                                                                                                                                <td class="col-xs-3">
                                                                                                                                    <asp:Label ID="Lbl_CycleName" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Cycle")%>'></asp:Label>
                                                                                                                                    <asp:HiddenField ID="Hf_CycleId" runat="server" Value='<%# DataBinder.Eval(Container.DataItem, "CycleId")%>' />
                                                                                                                                </td>
                                                                                                                                <td class="col-xs-3">
                                                                                                                                    <div class="form-group">
                                                                                                                                        <div class="form-line">
                                                                                                                                            <asp:TextBox runat="server" ID="TxBx_CostPrice"></asp:TextBox>
                                                                                                                                        </div>
                                                                                                                                    </div>
                                                                                                                                </td>
                                                                                                                                <td class="col-xs-3">
                                                                                                                                    <div class="form-group">
                                                                                                                                        <div class="form-line">
                                                                                                                                            <asp:TextBox runat="server" ID="TxBx_SalePrice"></asp:TextBox>
                                                                                                                                        </div>
                                                                                                                                    </div>
                                                                                                                                </td>
                                                                                                                                <td class="col-xs-3">
                                                                                                                                    <div class="form-group">
                                                                                                                                        <div class="form-line">
                                                                                                                                            <asp:TextBox runat="server" ID="TxBx_Discount"></asp:TextBox>
                                                                                                                                        </div>
                                                                                                                                    </div>
                                                                                                                                </td>
                                                                                                                            </tr>
                                                                                                                        </table>
                                                                                                                    </ItemTemplate>
                                                                                                                </asp:Repeater>
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                    </ItemTemplate>
                                                                                                </asp:Repeater>

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


                                    </ItemTemplate>
                                </asp:Repeater>

                            </div>
                        </asp:WizardStep>

                    </WizardSteps>
                </asp:Wizard>
                <%--</ContentTemplate>
                </ajax:UpdatePanel>--%>
            </div>
        </div>
    </div>
</asp:Content>

