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

<%@ Register TagPrefix="EM" TagName="AccessTemplate" Src="~/RCC/Clients/CC/AccessTemplate.ascx" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Clients/CC/GetComments.ascx" TagName="GetComments" TagPrefix="EM" %>
<%@ Register Src="~/PCC/Reseller/CC/ImportResellers.ascx" TagName="ImportResellers" TagPrefix="UC" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>
<%@ Register Src="~/Template/CC/Selectable_Selected_LBX.ascx" TagName="AddSelectableSelected" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Clients/CC/SellEasyAddOn.ascx" TagName="SellEasyAddOn" TagPrefix="EM" %>
<%@ Register TagPrefix="cc1" Namespace="System.Web.UI" Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div class="col-xs-12">
    <asp:Panel ID="Pnl_BulkSubscribe" runat="server">
        <div class="card">
            <div class="header">
                <h2>
                    <%= Resources.Content.BulkSubscribe%>
                </h2>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-xs-12 row-label">
                        <asp:Literal ID="Literal6" runat="server" Text='<%$ Resources:Content,FAM00230%>' EnableViewState="false" />:
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <EM:AddSelectableSelected ID="UC_Resellers" IsSelectedRequired="true" runat="server" ClientSideOptimized="true" />
                        </div>
                    </div>
                </div>
                <div class="row" id="Tr_PaymentGroups" runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Literal ID="Literal1" runat="server" Text='<%$ Resources:Content, FAM0022 %>' EnableViewState="false" />:
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:DropDownList ID="DDL_PaymentGroups" AutoPostBack="true" runat="server">
                            </asp:DropDownList>
                        </div>
                    </div>
                </div>

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

                <div class="row" id="Tr_BillingCycles" runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Label ID="Lbl_BillingCycle" runat="server" Text="<%$ Resources:Content,strSelectBillingCycle %>"
                            EnableViewState="false"></asp:Label>:
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:DropDownList ID="DDL_BillingCycles" AutoPostBack="true" runat="server">
                            </asp:DropDownList>
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        *<asp:Literal ID="Literal2" runat="server" Text='<%$ Resources:Content, ResellerPackage %>' EnableViewState="false" />:
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:DropDownList ID="Ddl_ResellerPackages" AutoPostBack="true" runat="server">
                            </asp:DropDownList>
                        </div>
                    </div>
                </div>
                <div class="row" id="Tr_CSPOffers" visible="false" runat="server">
                    <div class="col-xs-12">
                        <div class="panel-group" id="accordion_O365Category" role="tablist" aria-multiselectable="true">
                            <asp:Repeater ID="rptCategory" runat="server">
                                <ItemTemplate>
                                    <div class="panel panel-primary">
                                        <div class="panel-heading" role="tab" id='<%# String.Format("heading_O365Category_{0}", Container.ItemIndex)%>'>
                                            <h2 class="panel-title">
                                                <a role="button" data-toggle="collapse" data-parent="#accordion_O365Category"
                                                    href='<%# String.Format("#CSP_O365Category_{0}", Container.ItemIndex)%>' aria-expanded="true"
                                                    aria-controls='<%# String.Format("CSP_O365Category_{0}", Container.ItemIndex)%>' class="collapsed">
                                                    <asp:Literal ID="ltlCategoryNameDiv" runat="server" EnableViewState="true" />
                                                </a>
                                            </h2>
                                        </div>
                                        <div id='<%# String.Format("CSP_O365Category_{0}", Container.ItemIndex)%>' class="panel-collapse collapse" role="tabpanel"
                                            aria-labelledby='<%# String.Format("heading_O365Category{0}", Container.ItemIndex)%>'>
                                            <div class="panel-body">
                                                <asp:HiddenField ID="hdfCategoryID" runat="server" />
                                                <table class="table table-bordered table-striped table-hover">
                                                    <tr>
                                                        <th class="col-sm-7 col-xs-12">
                                                            <asp:Literal ID="Literal21" runat="server" EnableViewState="false" Text='<%$ Resources:Content, strOfferAddons %>' />
                                                        </th>
                                                        <th class="col-sm-2 col-xs-12">
                                                            <asp:Literal ID="Literal20" runat="server" EnableViewState="false" Text='<%$ Resources:Content, String35 %>' />
                                                        </th>
                                                        <th id="thUnitPrice" runat="server" class="col-sm-3 col-xs-12">
                                                            <asp:Literal ID="Literal29" runat="server" EnableViewState="false" Text='<%$ Resources:Content, strUnitPrice %>' />
                                                        </th>
                                                    </tr>
                                                    <asp:Repeater ID="rptOffers" runat="server" OnItemDataBound="rptOffers_ItemDataBound">
                                                        <ItemTemplate>

                                                            <tr>
                                                                <td class="col-sm-7 col-xs-12 row-label">
                                                                    <asp:HiddenField ID="hdfOfferID" runat="server" />
                                                                    <asp:HiddenField ID="hdfMSOfferID" runat="server" />
                                                                    <asp:Literal ID="ltlOfferName" runat="server" />
                                                                </td>
                                                                <td class="col-sm-2 col-xs-12">
                                                                    <div class="col-sm-3 col-xs-12">
                                                                        <asp:CheckBox ID="chkOffer" runat="server" Text=" " />
                                                                    </div>
                                                                    <div class="col-sm-9 col-xs-12">
                                                                        <div class="form-group">
                                                                            <div class="form-line">
                                                                                <asp:TextBox ID="txtOfferQuantity" runat="server"></asp:TextBox>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </td>
                                                                <td class="col-sm-3 col-xs-12" id="tdUnitPrice" runat="server">
                                                                    <asp:Literal ID="ltlOfferUnitPrice" runat="server" />
                                                                </td>
                                                            </tr>

                                                            <tr id="trAddons" runat="server" style="display: none">
                                                                <td colspan="4">
                                                                    <asp:Repeater ID="rptOfferAddons" runat="server" OnItemDataBound="rptOfferAddons_ItemDataBound">
                                                                        <HeaderTemplate>
                                                                            <table class="table table-bordered table-striped table-hover">
                                                                                <th colspan="4">
                                                                                    <asp:Literal ID="Literal21" runat="server" EnableViewState="false" Text='<%$ Resources:Content, Addons %>' />:
                                                                                </th>
                                                                        </HeaderTemplate>
                                                                        <ItemTemplate>
                                                                            <tr>
                                                                                <td class="col-sm-7 col-xs-12 row-label">
                                                                                    <asp:HiddenField ID="hdfAddonID" runat="server" />
                                                                                    <asp:HiddenField ID="hdfMSAddonID" runat="server" />
                                                                                    <asp:Literal ID="ltlAddonName" runat="server" />
                                                                                </td>
                                                                                <td class="col-sm-2 col-xs-12">
                                                                                    <div class="col-sm-3 col-xs-12">
                                                                                        <asp:CheckBox ID="chkAddon" runat="server" Text=" " />
                                                                                    </div>
                                                                                    <div class="col-sm-9 col-xs-12">
                                                                                        <div class="form-group">
                                                                                            <div class="form-line">
                                                                                                <asp:TextBox ID="txtAddonQuantity" runat="server"></asp:TextBox>
                                                                                            </div>
                                                                                        </div>
                                                                                    </div>
                                                                                </td>
                                                                                <td class="col-sm-3 col-xs-12" id="tdUnitPrice" runat="server">
                                                                                    <asp:Literal ID="ltlAddonUnitPrice" runat="server" />
                                                                                </td>
                                                                            </tr>

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

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

                                    <%-- rptCategory table close below. --%>
                                </ItemTemplate>
                            </asp:Repeater>
                        </div>
                    </div>
                </div>
                <div class="row" id="DivUsagebased" runat="server" visible="false">
                    <div class="col-xs-12">
                        <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-7 col-xs-12">
                                        <b>
                                            <asp:Label ID="lblAzureOfferName" runat="server"></asp:Label></b>
                                        <asp:HiddenField ID="hdnAzureOfferId" runat="server" />
                                        <asp:HiddenField ID="hdnAzureMSOfferId" runat="server" />
                                    </div>
                                    <div class="col-sm-2 col-xs-12">
                                        &nbsp;&nbsp;
                                        <asp:CheckBox ID="Chbx_AzureOffer" runat="server" Text=" " />
                                    </div>
                                    <div class="col-sm-3 col-xs-12">
                                        <asp:Literal ID="ltlOfferUnitPrice" runat="server" />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div id="Tr_CommercialSaaSProducts" runat="server">
                    <div class="panel-group" id="accordion_CommercialSaaSProds" role="tablist" aria-multiselectable="true">
                        <table class="table table-bordered table-striped table-hover">
                            <asp:Repeater ID="Rep_CommercialSaaSProds" runat="server">
                                <HeaderTemplate>
                                    <tr>
                                        <th class="col-xs-7">
                                            <asp:Literal ID="Ltrl_ProdNameHeading" runat="Server"
                                                Text="<%$ Resources:Content,SPT002744%>"></asp:Literal>
                                        </th>
                                        <th class="col-xs-2" id="TH_Discount" runat="server">
                                            <asp:Literal ID="Ltrl_DiscountHeading" runat="Server"
                                                Text="<%$ Resources:Content,GN0000203%>"></asp:Literal>
                                            <asp:Literal ID="Ltrl_Percentage" runat="server"
                                                Text="<%$ Resources:Content,GN00001017 %>"></asp:Literal>
                                        </th>
                                        <th class="col-xs-1">
                                            <asp:Literal ID="Ltrl_QuantityHeading" runat="Server"
                                                Text="<%$ Resources:Content,String35%>"></asp:Literal>
                                        </th>
                                        <th class="col-xs-2">
                                            <asp:Literal ID="Ltrl_BillingHeading"
                                                runat="server" Text="Billing/Term"></asp:Literal>
                                        </th>
                                    </tr>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <tr class="search-js-offer-row">
                                        <asp:HiddenField ID="HF_ProdId" runat="server" />
                                        <asp:HiddenField ID="HF_SkuId" runat="server" />
                                        <asp:HiddenField ID="HF_Id" runat="server" />
                                        <td class="shade">
                                            <div>
                                                <b>
                                                    <asp:Label ID="Lbl_ProdName" runat="server"></asp:Label>
                                                </b>
                                            </div>
                                            <asp:Repeater ID="Rep_ProvVars" runat="server" DataSource='<%# Eval("ProvVars") %>'>
                                                <ItemTemplate>
                                                    <div>
                                                        <asp:Label ID="Lbl_VarName" runat="server" Text='<%# Container.DataItem %>'></asp:Label>:
                                                                                                                <asp:TextBox ID="Txbx_VarVal" runat="server"></asp:TextBox>
                                                    </div>
                                                </ItemTemplate>
                                            </asp:Repeater>
                                        </td>
                                        <td class="col-xs-2" id="TD_Discount" runat="server">
                                            <div class="form-group">
                                                <div class="form-line">
                                                    <asp:TextBox ID="TxBx_Discount" runat="server" MaxLength="5" Text="0%" onchange="discountChangeHandler(event, false);"></asp:TextBox>
                                                </div>
                                            </div>
                                        </td>
                                        <td>
                                            <div id="div_quantitybox" runat="server">
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_Quantity" runat="server" Text="0"></asp:TextBox>
                                                    </div>
                                                </div>
                                                <EM:FilteredTextBoxExtender ID="FTE_Quantity" runat="server" FilterType="Numbers"
                                                    TargetControlID="TxBx_Quantity">
                                                </EM:FilteredTextBoxExtender>
                                            </div>
                                            <div id="div_trialselectbox" runat="server" visible="false">
                                                <asp:CheckBox ID="CB_TrialSelected" runat="server" Text=" " />
                                            </div>
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="Ddl_BillingDetail" runat="server"></asp:DropDownList>
                                        </td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                        </table>
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12 row-label">
                        <asp:Literal ID="Literal9" runat="server" Text='<%$ Resources:Content, FAM00232 %>' EnableViewState="false" />:
                    </div>
                </div>
                <div class="row" id="Tr_SellEasyAddon" runat="server">
                    <div class="col-xs-12">
                        <EM:SellEasyAddOn ID="SellEasyAddOn" runat="server" />
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12"></div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Literal ID="Literal7" runat="server" Text='<%$ Resources:Content, CustomerPackage %>' EnableViewState="false" />:
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group">
                            <EM:AddSelectableSelected ID="UC_CustomerPackages" runat="server" ClientSideOptimized="true" />
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12">
                        <asp:Literal ID="Literal10" runat="server" Text="<%$ Resources:Content, BulkNote %>" EnableViewState="false" />
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12">
                        <asp:Button ID="Btn_SubscribeAndCreate" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content, SubscribeAndCreate %>" />
                        <asp:Button ID="Btn_Cancel" CausesValidation="false" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content, Cancel %>" />
                    </div>
                </div>
            </div>
        </div>
    </asp:Panel>
    </div>
</asp:Content>

