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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="AddOn.ascx" TagName="AddOn" TagPrefix="EM" %>
<%@ Register Src="SelectedAddOns.ascx" TagName="SelectedAddOn" TagPrefix="EM" %>
<%@ Register Src="~/Store/Cart.ascx" TagName="Cart" TagPrefix="EM" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CPH_Order" runat="Server">
    <div class="col-xs-12 padding-top-25px">
        <div class="row">
            <div class="col-md-9 col-sm-6 col-xs-12" id="div_domain_products_container" runat="server">
                <ajax:UpdatePanel ID="UP_Step2" runat="server">
                    <ContentTemplate>
                        <div id="Div_Step2" runat="server">
                            <div class="card">
                                <div class="header" id="div_domain_header" runat="server">
                                    <div class="col-xs-6">
                                        <h3>
                                            <asp:Literal ID="Literal1" runat="server" Text='<%$Resources:Content,M0045%>'
                                                EnableViewState="false"></asp:Literal>
                                        </h3>
                                    </div>
                                    <div class="col-xs-6 align-right">
                                        <asp:LinkButton CssClass="default-link" ID="Btn_SelectOtherProduct" runat="server" Text="<%$Resources:Content,SelectOther%>" />
                                    </div>
                                </div>
                                <div class="body">
                                    <%--Product Heading and Total--%>
                                    <div class="row">
                                        <asp:HiddenField ID="HF_CurrencySymbol" runat="server" />
                                        <div class="col-sm-9 text-uppercase font-bold">
                                            <asp:Literal ID="Literal50" runat="server" Text='<%$Resources:Content,strProducts%>'
                                                EnableViewState="false"></asp:Literal>
                                        </div>
                                        <div class="col-xs-3 text-uppercase font-bold">
                                            <asp:Label ID="Lbl_ProductTotal" Text='<%$Resources:Content,GN000114%>' runat="server"></asp:Label>
                                        </div>
                                    </div>

                                    <asp:Repeater ID="Rep_Products" runat="server">
                                        <ItemTemplate>
                                            <%--Begin Product Detail Section--%>
                                            <div class="row cart-product-section">
                                                <div class="m-t-10 m-l-15">
                                                    <%-- product icon--%>
                                                    <div class="col-sm-2 col-xs-2 cart-icon">
                                                        <i class="material-icons icon-domain col-black"></i>
                                                    </div>
                                                    <div class="col-sm-7 col-xs-10">
                                                        <%-- Domain Name--%>
                                                        <asp:Label ID="Div_DomainName2" runat="server" class="p-t-10 text-uppercase font-bold"></asp:Label>
                                                        <asp:HiddenField ID="HF_SelectedRegistrarID" runat="server" />
                                                        <asp:DropDownList ID="DDL_TLDReg" runat="server" EnableViewState="true" Visible="false" />
                                                        <asp:DropDownList ID="DDL_TLDTransfer" runat="server" EnableViewState="true" Visible="false" />

                                                        <%-- Legal Type--%>
                                                        <div id="Div_OpenSRSData" runat="server" visible="false">
                                                            <div class="row" id="TR_RegistrantType" runat="server" visible="false">
                                                                <div class="col-sm-4 col-md-3 width-col-xs">
                                                                    <asp:Literal ID="Literal17" runat="server" Text="<%$ Resources:Content,SMI0361%>"
                                                                        EnableViewState="false" />:
                                                                </div>
                                                                <div class="col-sm-2 col-md-2 width-col-xs">
                                                                    <div class="form-group">
                                                                        <asp:DropDownList ID="DDL_RegistrantType" runat="server">
                                                                            <asp:ListItem Value="individual" Selected="True" Text="<%$ Resources:Content,SMI0360%>"></asp:ListItem>
                                                                            <asp:ListItem Value="organization" Text="<%$ Resources:Content,DGN1110357%>"></asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="row" id="TR_IDCardVATNumber" runat="server" visible="false">
                                                                <div class="col-sm-4 col-md-3 width-col-xs">
                                                                    <asp:Literal ID="Literal18" runat="server" Text="<%$ Resources:Content,SMI0362%>"
                                                                        EnableViewState="false" />:
                                                                </div>
                                                                <div class="col-sm-2 col-md-2 width-col-xs">
                                                                    <div class="form-group">
                                                                        <div class="form-line">
                                                                            <asp:TextBox ID="TxBx_IDCardVATNumber" runat="server" />
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="col-sm-4 col-xs-12">
                                                                    Note:<asp:Label ID="Lbl_IDCard" runat="server" Text="<%$ Resources:Content,SMI0363%>" />
                                                                </div>
                                                            </div>
                                                            <div class="row" id="Tr_LegalType" runat="server" visible="false">
                                                                <div class="col-sm-4 col-md-3 width-col-xs p-t-10">
                                                                    <asp:Literal ID="Literal12" runat="server" Text="<%$ Resources:Content,SMI0290%>" EnableViewState="false" />:
                                                                </div>
                                                                <div class="col-sm-2 width-col-xs">
                                                                    <asp:DropDownList ID="DDL_LegalType" runat="server" AutoPostBack="true">
                                                                        <asp:ListItem Text="<%$ Resources:Content,SMI0291%>" Value="ABO" />
                                                                        <asp:ListItem Text="<%$ Resources:Content,SMI0292%>" Value="ASS" />
                                                                        <asp:ListItem Text="<%$ Resources:Content,SMI0293%>" Value="CCO" />
                                                                        <asp:ListItem Text="<%$ Resources:Content,SMI0294%>" Value="CCT" />
                                                                        <asp:ListItem Text="<%$ Resources:Content,SMI0295%>" Value="EDU" />
                                                                        <asp:ListItem Text="<%$ Resources:Content,SMI0296%>" Value="GOV" />
                                                                        <asp:ListItem Text="<%$ Resources:Content,SMI0297%>" Value="HOP" />
                                                                        <asp:ListItem Text="<%$ Resources:Content,SMI0298%>" Value="INB" />
                                                                        <asp:ListItem Text="<%$ Resources:Content,SMI0299%>" Value="LAM" />
                                                                        <asp:ListItem Text="<%$ Resources:Content,SMI0300%>" Value="LGR" />
                                                                        <asp:ListItem Text="<%$ Resources:Content,SMI0301%>" Value="MAJ" />
                                                                        <asp:ListItem Text="<%$ Resources:Content,SMI0302%>" Value="OMK" />
                                                                        <asp:ListItem Text="<%$ Resources:Content,SMI0303%>" Value="PLT" />
                                                                        <asp:ListItem Text="<%$ Resources:Content,SMI0304%>" Value="PRT" />
                                                                        <asp:ListItem Text="<%$ Resources:Content,SMI0305%>" Value="RES" />
                                                                        <asp:ListItem Text="<%$ Resources:Content,SMI0306%>" Value="TDM" />
                                                                        <asp:ListItem Text="<%$ Resources:Content,SMI0307%>" Value="TRD" />
                                                                        <asp:ListItem Text="<%$ Resources:Content,SMI0308%>" Value="TRS" />
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>
                                                            <div class="row" id="Tr_AppPurpose" runat="server" visible="false">
                                                                <div class="col-sm-4 col-md-3 width-col-xs">
                                                                    <asp:Literal ID="Literal13" runat="server" Text="<%$ Resources:Content,GN0000976%>" EnableViewState="false" />:
                                                                </div>
                                                                <div class="col-sm-2 col-md-2 width-col-xs">
                                                                    <asp:DropDownList ID="DDL_AppPurpose" runat="server" AutoPostBack="true">
                                                                        <asp:ListItem Text="<%$ Resources:Content,SMI0309%>" Value="P1" />
                                                                        <asp:ListItem Text="<%$ Resources:Content,SMI0310%>"
                                                                            Value="P2" />
                                                                        <asp:ListItem Text="<%$ Resources:Content,SMI0311%>" Value="P3" />
                                                                        <asp:ListItem Text="<%$ Resources:Content,SMI0312%>" Value="P4" />
                                                                        <asp:ListItem Text="<%$ Resources:Content,SMI0313%>" Value="P5" />
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>
                                                            <div class="row" id="Tr_Category" runat="server" visible="false">
                                                                <div class="col-sm-4 col-md-3 width-col-xs">
                                                                    <asp:Literal ID="Literal14" runat="server" Text="<%$ Resources:Content,GN0001286%>" EnableViewState="false" />:
                                                                </div>
                                                                <div class="col-sm-2 col-md-2 width-col-xs">
                                                                    <asp:DropDownList ID="DDL_Category" runat="server" AutoPostBack="true">
                                                                        <asp:ListItem Text="<%$ Resources:Content,SMI0314%>" Value="C11" />
                                                                        <asp:ListItem Text="<%$ Resources:Content,SMI0315%>" Value="C12" />
                                                                        <asp:ListItem Text="<%$ Resources:Content,SMI0316%>" Value="C21" />
                                                                        <asp:ListItem Text="<%$ Resources:Content,SMI0317%>" Value="C31" />
                                                                        <asp:ListItem Text="<%$ Resources:Content,SMI0318%>" Value="C32" />
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>
                                                            <div class="row" id="Tr_ValidContryCode" runat="server" visible="false">
                                                                <div class="col-sm-4 col-md-3 width-col-xs">
                                                                    <asp:Literal ID="Literal15" runat="server" Text="<%$ Resources:Content,SMI0319%>" EnableViewState="false" />:
                                                                </div>
                                                                <div class="col-sm-2 col-md-2 width-col-xs">
                                                                    <asp:DropDownList ID="DDL_ValidContryCode" runat="server" AutoPostBack="true" />
                                                                </div>
                                                            </div>
                                                        </div>

                                                        <%--Domian TransferKey--%>
                                                        <div id="Div_TransferKey" runat="server" visible="false">

                                                            <div class="col-xs-12 col-sm-7 p-l-r-0">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">
                                                                        <asp:Label ID="Lbl_Province" runat="server" CssClass="form-label"><%= "*" & Resources.Content.DGN1110145 %></asp:Label>
                                                                        <input id="TxBx_TransferKey" runat="server" type="text" name="Username" />
                                                                        <asp:RequiredFieldValidator ID="RFV_TKey" runat="server" ValidationGroup="TKey"
                                                                            SetFocusOnError="True" Display="None" ErrorMessage='<%$Resources:Content,DGN1110155%>' Enabled="false"></asp:RequiredFieldValidator>
                                                                        <asp:ValidationSummary ID="VS_TKey" runat="server" ValidationGroup="TKey" ShowSummary="False" ShowMessageBox="True"></asp:ValidationSummary>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>

                                                        <%--Cycle--%>
                                                        <div class="col-xs-12 p-l-r-0">
                                                            <asp:Literal ID="Literal20" runat="server" Text='<%$Resources:Content,GN00001490%>'
                                                                EnableViewState="false"></asp:Literal>:
                                                        <asp:Label ID="Lbl_CycleName" runat="server"></asp:Label>
                                                            <a class="dropdown-toggle" data-toggle="dropdown">
                                                                <asp:DropDownList ID="DDL_Cycles2" Visible="false" runat="server" CssClass="selectpicker">
                                                                </asp:DropDownList>
                                                            </a>
                                                        </div>

                                                        <%--Setup Price--%>
                                                        <div class="col-xs-12 col-sm-6 p-l-r-0">
                                                            <asp:Literal ID="Literal7" runat="server" Text='<%$Resources:Content,M0123%>'
                                                                EnableViewState="false"></asp:Literal>:
                                                        <asp:Label ID="Lbl_Setup2" runat="server"></asp:Label>
                                                        </div>

                                                        <%--Price--%>
                                                        <div class="col-xs-12 p-l-r-0">
                                                            <asp:Literal ID="Literal4" runat="server" Text='<%$Resources:Content,GN000112%>'
                                                                EnableViewState="false"></asp:Literal>:
                                                        <asp:Label ID="Lbl_Price2" runat="server" Text=""></asp:Label>
                                                            <div class="font-color-red" id="Div_OPrice2" runat="server">
                                                            </div>
                                                        </div>

                                                        <%--Btn_Remove--%>
                                                        <div class="col-xs-12 p-l-r-0">
                                                            <asp:LinkButton ID="Btn_Remove" runat="server" Text='<%$Resources:Content,DGN1110148%>'
                                                                CssClass="default-link" CommandName="RemoveProduct"></asp:LinkButton>
                                                            <EM:ConfirmButtonExtender ID="CBE_Remove" runat="server" ConfirmText="<%$Resources:Content,DEV1059%>"
                                                                TargetControlID="Btn_Remove">
                                                            </EM:ConfirmButtonExtender>
                                                        </div>

                                                    </div>
                                                    <div class="col-xs-12 col-sm-3">
                                                        <asp:Label ID="Lbl_PriceTotal" runat="server" Text=""></asp:Label>
                                                    </div>
                                                </div>
                                            </div>
                                            <%--End Product Detail Section--%>
                                        </ItemTemplate>
                                    </asp:Repeater>

                                    <div class="clearfix"></div>
                                    <%--<div class="clearfix"></div>--%>
                                    <!--show selected addon-->
                                    <div id="Div_AddonSel" runat="server" style="display: none">
                                        <EM:SelectedAddOn ID="AddOn_SelectedAddOn" runat="server"></EM:SelectedAddOn>
                                    </div>
                                    <!--//end show selected addon-->
                                    <div class="clearfix"></div>
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <div class="productOptionsBox">
                                                <div id="Div_AddOn" runat="server">
                                                    <EM:AddOn ID="AddOn_Domain" runat="server"></EM:AddOn>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <asp:LinkButton ID="Btn_AddAddon" runat="server" Text='<%$Resources:Content,GN00008048%>'
                                                CssClass="btn btn-primary waves-effect"></asp:LinkButton>


                                            <ajax:UpdateProgress ID="UpdateProgress5" runat="server" AssociatedUpdatePanelID="UP_Step2"
                                                DisplayAfter="0">
                                                <ProgressTemplate>
                                                    <div id="Div_Updater3" enableviewstate="false" style="display: none">
                                                        <img alt="" src="../images/loading.png" />
                                                        <asp:Literal ID="Literal3713" runat="server" Text='<%$Resources:Content,SPT002747%>'
                                                            EnableViewState="false"></asp:Literal>...
                                                    </div>
                                                </ProgressTemplate>
                                            </ajax:UpdateProgress>
                                            &nbsp;&nbsp;
                                        </div>
                                    </div>
                                    <!--//end show add/remove links-->

                                    <!--Sub Total-->
                                    <div class="sub-total-section">
                                        <div class="m-t-10">
                                            <div class="col-sm-2 col-xs-4">&nbsp;</div>
                                            <div class="col-sm-7 col-xs-5 font-bold align-right">
                                                <asp:Literal ID="Literal21" runat="server" EnableViewState="false" Text='<%$Resources:Content,GN0000729%>'></asp:Literal>
                                                :
                                            </div>
                                            <div class="col-xs-3">
                                                <asp:Label ID="Lbl_SetupTotal" runat="server" Visible="false"></asp:Label>
                                                <asp:Label ID="Lbl_SubTotal" runat="server" Visible="false"></asp:Label>
                                                <asp:Label ID="Lbl_GrandTotal" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                    </div>
                                    <!--show totals-->

                                    <div class="row">&nbsp;</div>
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <div class="pull-right" id="div_btn_add_cart_container" runat="server">
                                                <asp:Button ID="Btn_ContinueOrder" CssClass="btn btn-primary waves-effect" runat="server" Text='<%$Resources:Content,GN000149%>'
                                                    ValidationGroup="TKey"></asp:Button>
                                            </div>
                                        </div>
                                    </div>

                                </div>
                            </div>
                        </div>
                    </ContentTemplate>
                </ajax:UpdatePanel>
            </div>
            <div class="col-md-3 col-sm-6 col-xs-12" id="div_cart_summary" runat="server">
                <EM:Cart ID="Cart1" runat="server"></EM:Cart>
            </div>
        </div>
    </div>
</asp:Content>
