<%@ control language="VB" autoeventwireup="false" inherits="Admin_Clients_CC_SellSP, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Clients/CC/SellEasyAddOn.ascx" TagName="SellEasyAddOn" TagPrefix="EM" %>
<script language="javascript" type="text/javascript">
    function UpdateLabel(Lbl, Dom) {

        var TxBx_DomainName = document.getElementById(Dom);
        var Lbl_Domain = document.getElementById(Lbl);

        Lbl_Domain.innerText = '@' + TxBx_DomainName.value;
    }

</script>

<div class="row">
    <div class="col-xs-12 row-label col-red" id="Div_Error" runat="server" visible="false">
    </div>
    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h3>
                    <asp:Literal ID="Literal10" runat="server" Text="<%$ Resources:Content,String173%>" EnableViewState="false"></asp:Literal>
                </h3>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,GN000141%>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:DropDownList ID="DDL_Package" 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="Literal23" runat="server" Text="<%$ Resources:Content,Dev336%>"
                            EnableViewState="false" />:
                    </div>
                    <div class="col-sm-9 col-xs-12 grow">
                        <div runat="server" ID="Ltl_PackageComments"></div>
                    </div>
                </div>
                <div class="row" id='tr_templates' runat='server' visible='false'>
                    <div class='col-sm-3 col-xs-12 row-label'>
                        <label>
                            <asp:Literal ID='Ltrl_Templates' runat='server' Text="<%$ Resources:Content,SMI0321%>"></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:DropDownList ID='Lbx_PortalTemplates' runat='server' class="selectpicker"></asp:DropDownList>
                        </div>
                    </div>
                </div>
                <div class="row" id="TR_Ous" runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal13" runat="server" Text="<%$ Resources:Content,String60%>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:DropDownList ID="DDL_OUs" AutoPostBack="true" runat="server">
                            </asp:DropDownList>
                        </div>
                    </div>
                    <div class="col-sm-4 col-xs-12" id="TD_OrgName" runat="server">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_OrgName" runat="server" MaxLength="128"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RFV_TxBx_OrgName" runat="server" ControlToValidate="TxBx_OrgName"
                                    Display="None" SetFocusOnError="True" ValidationGroup="SPHosting"></asp:RequiredFieldValidator>
                                <EM:FilteredTextBoxExtender ID="FTE_TxBx_OrgName" TargetControlID="TxBx_OrgName"
                                    runat="server" FilterType="Custom, UppercaseLetters, Numbers, LowercaseLetters"
                                    ValidChars=" ._-">
                                </EM:FilteredTextBoxExtender>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row" id="TR_DomainNameSelect" runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Ltrl_SelectDomainName" runat="server" Text="<%$Resources:Content,DGN1110334 %>"></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:DropDownList ID="DDL_DomainName" runat="server"></asp:DropDownList>
                        </div>
                    </div>
                </div>
                <div class="row" id="TR_DomainName" runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="LtrlDomainName" runat="server" Text="<%$Resources:Content,GN000125%>"
                                EnableViewState="false"></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_DomainName" runat="server" MaxLength="75"></asp:TextBox>

                                <asp:RequiredFieldValidator ID="RFV_DomainName" runat="server" ControlToValidate="TxBx_DomainName"
                                    Display="None" SetFocusOnError="true" ValidationGroup="SPHosting"></asp:RequiredFieldValidator>
                                <%--<asp:RegularExpressionValidator ID="REV_DomainName" runat="server" ValidationExpression="<%$ Resources:Content,REV001 %>"
                                    Display="None" ValidationGroup="SPHosting" ControlToValidate="TxBx_DomainName"
                                    ErrorMessage="Invalid Domain Name" SetFocusOnError="true"></asp:RegularExpressionValidator>--%>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-5 col-xs-12 no-padding lbl-serial-num">
                        <asp:Literal ID="Literal14" runat="server" Text="<%$Resources:Content,DEV1044%>" />
                    </div>
                </div>
                <div class="row" id="TR_Manager" runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>*<asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Content,DGN1110360%>" EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-3 col-xs-12">
                        <div class="form-group">
                            <asp:DropDownList ID="DDL_Manager" AutoPostBack="true" runat="server">
                                <asp:ListItem Text="<%$ Resources:Content,L0028%>" Value="0" Selected="True"></asp:ListItem>
                            </asp:DropDownList>
                        </div>
                    </div>
                    <div class="col-sm-3 col-xs-12" id="div_newmanager" runat="server">
                        <div class="form-group">
                            <div class="form-line">
                                <EM:FilteredTextBoxExtender ID="FTE_Manager" TargetControlID="TxBx_Manager" runat="server"
                                    FilterType="Custom, UppercaseLetters, Numbers, LowercaseLetters" ValidChars="._">
                                </EM:FilteredTextBoxExtender>
                                <asp:TextBox ID="TxBx_Manager" runat="server" MaxLength="100"></asp:TextBox>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-3 col-xs-12 no-padding lbl-serial-num">
                        <asp:Label ID="Lbl_Domain" runat="server"></asp:Label>
                        <asp:RequiredFieldValidator ID="RFV_TxBx_Manager" runat="server" ControlToValidate="TxBx_Manager"
                            Display="None" SetFocusOnError="True" ValidationGroup="SPHosting"></asp:RequiredFieldValidator>
                    </div>
                </div>
                <div class="row" runat="server" id="Tr_CreateProtalTypes">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal11" runat="server" Text='<%$ Resources:Content,Dev11110%>'
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:DropDownList ID="ddl_CreateProtalTypes" runat="server" AutoPostBack="true">
                                <asp:ListItem Text="<%$ Resources:Content,SPT002260%>" Value="1" Selected="True">
                                </asp:ListItem>
                                <asp:ListItem Text="<%$ Resources:Content,L0067%>" Value="0">
                                </asp:ListItem>
                            </asp:DropDownList>
                        </div>
                    </div>
                </div>
                <div class="row" runat="server" id="Tr_PortalName">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal15" runat="server" Text='<%$ Resources:Content,String394%>'
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_PortalName" MaxLength="100" runat="server"></asp:TextBox>
                                <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" TargetControlID="TxBx_PortalName"
                                    runat="server" FilterType="UppercaseLetters, Numbers, LowercaseLetters, Custom"
                                    ValidChars="-_">
                                </EM:FilteredTextBoxExtender>
                                <asp:RequiredFieldValidator ID="REV_TxBx_PortlName" runat="server" ControlToValidate="TxBx_PortalName"
                                    Display="None" SetFocusOnError="True" ValidationGroup="SPHosting"></asp:RequiredFieldValidator>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-5 col-xs-12 no-padding lbl-serial-num"><strong>.</strong><asp:Label ID="Lbl_WebAppUrl" runat="server"></asp:Label></div>
                </div>
                <div class="row" runat="server" id="Tr_VPortalName" visible="false">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal20" runat="server" Text='<%$ Resources:Content,String394%>'
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_VPortalName" MaxLength="500" runat="server"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="REV_TxBx_VPortalName" Enabled="false" runat="server"
                                    ControlToValidate="TxBx_VPortalName" Display="None" SetFocusOnError="True" ValidationGroup="SPHosting"></asp:RequiredFieldValidator>
                               <%-- <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="TxBx_VPortalName"
                                    ValidationGroup="SPHosting" ErrorMessage="Invalid portal address." SetFocusOnError="true"
                                    Display="None" ValidationExpression="<%$ Resources:Content,REV001 %>">
                                </asp:RegularExpressionValidator>--%>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-5 col-xs-12 no-padding lbl-serial-num">
                        <strong>
                            <asp:Literal ID="Literal_Dot" runat="server" Text="." /></strong>
                    </div>
                </div>
                <div class="row" id="TR_Title" runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>*<asp:Literal ID="Literal16" runat="server" Text="<%$ Resources:Content,GN0000280%>" EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_Title" runat="server" MaxLength="200"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TxBx_Title"
                                    Display="None" SetFocusOnError="True" ValidationGroup="SPHosting"></asp:RequiredFieldValidator>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row" id="TR_Email" runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>*<asp:Literal ID="Literal18" runat="server" Text="<%$ Resources:Content,L0029%>" EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_Email" runat="server"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RFV_Email" runat="server" ControlToValidate="TxBx_Email"
                                    Display="None" SetFocusOnError="True" ValidationGroup="SPHosting"></asp:RequiredFieldValidator>
                                <%--<asp:RegularExpressionValidator ErrorMessage='<%$ Resources:Content,DGN1110036%>'
                                    ID="RegularExpressionValidator1" runat="server" ControlToValidate="TxBx_Email"
                                    Display="None" SetFocusOnError="True" ValidationExpression="<%$ Resources:MPRegex,EmailAddress %>"
                                    ValidationGroup="SPHosting"></asp:RegularExpressionValidator>--%>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row" id="TR_Desc" runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal17" runat="server" Text="<%$ Resources:Content,GN0000597%>" EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <asp:TextBox ID="TxBx_Desc" TextMode="MultiLine" Height="150px" Width="100%" runat="server"></asp:TextBox>
                    </div>
                </div>
                <div class="row" id="TR_Locale" runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal19" runat="server" Text="<%$ Resources:Content,GN00003000%>"
                                EnableViewState="false" />:</label>
                    </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 id="Pnl_BillingOFFUI" runat="server">
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label" id="TD_Cycle" runat="server">
                            <label>
                                <asp:Literal ID="Literal12" runat="server" Text="<%$ Resources:Content,GN000144%>"
                                    EnableViewState="false" />:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <asp:DropDownList ID="DDL_Cycle" runat="server" AutoPostBack="True">
                                </asp:DropDownList>
                            </div>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <input id="HTxBx_OPrice" runat="server" type="hidden" />
                            <input id="HTxBx_ODiscount" runat="server" type="hidden" />
                            <input id="HTxBx_PGID" runat="server" type="hidden" />
                            <input id="HTxBx_CS" runat="server" type="hidden" />
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                *<asp:Literal ID="Literal6" runat="server" Text="<%$ Resources:Content,GN0000201%>"
                                    EnableViewState="false" />:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_SetupPrice" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="TxBx_SetupPrice"
                                        Display="None" SetFocusOnError="True" ValidationGroup="SPHosting"></asp:RequiredFieldValidator>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                *<asp:Literal ID="Literal4" runat="server" Text="<%$ Resources:Content,GN000112%>"
                                    EnableViewState="false" />:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_Price" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxBx_Price"
                                        Display="None" SetFocusOnError="True" ValidationGroup="SPHosting"></asp:RequiredFieldValidator>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row" id="Tr_PriceFreeze" runat="server">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                <asp:Literal ID="Literal22" runat="server" Text="<%$ Resources:Content,GN000145%>"
                                    EnableViewState="false" />:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <asp:CheckBox ID="ChBx_PriceFreeze" runat="server" Checked="True" Text=" "></asp:CheckBox>
                            </div>
                        </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:LinkButton class="btn btn-primary waves-effect" ID="LB_PreviewBill" runat="server" CausesValidation="False"
                                Text="<%$ Resources:Content,GN000146%>"></asp:LinkButton>
                        </div>
                    </div>
                </div>
                <div runat="server" id="TR_PreviewBill">
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Literal ID="Literal7" runat="server" Text="<%$ Resources:Content,GN000112%>"
                                EnableViewState="false" />:
                        </div>
                        <div class="col-sm-9 col-xs-12" id="TD_Price" runat="server"></div>
                    </div>
                    <div class="row" id="Tr_Discount" runat="server">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Literal ID="Literal5" runat="server" Text="<%$ Resources:Content,GN000147%>"
                                EnableViewState="false" />:
                        </div>
                        <div class="col-sm-9 col-xs-12" id="TD_Discount" runat="server"></div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content,GN0000201%>"
                                EnableViewState="false" />:
                        </div>
                        <div class="col-sm-9 col-xs-12" id="TD_Setup" runat="server"></div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Literal ID="Literal8" runat="server" Text="<%$ Resources:Content,GN000114%>"
                                EnableViewState="false" />:
                        </div>
                        <div class="col-sm-9 col-xs-12" id="TD_Total" runat="server"></div>
                    </div>
                    <div class="row" id="Tr_YouGet" runat="server">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <asp:Literal ID="Literal21" runat="server" Text="<%$ Resources:Content,USM0098%>"
                                EnableViewState="false" />:
                        </div>
                        <div class="col-sm-9 col-xs-12" id="TD_Income" runat="server"></div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal9" runat="server" Text="<%$ Resources:Content,GN000148%>"
                                EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:TextBox ID="TxBx_Comments" runat="server" MaxLength="500" TextMode="MultiLine" Height="150px" Width="100%"></asp:TextBox>
                        </div>
                    </div>
                </div>

                <div class="panel-group" id="accordion_SPEasyAddOn" runat="server" role="tablist" aria-multiselectable="true">
                    <div class="panel panel-primary">
                        <div class="panel-heading" role="tab" id="heading_SPEasyAddOn" runat="server">
                            <h2 class="panel-title">
                                <a role="button" id="A_SPEasyAddOn" data-toggle="collapse" data-parent="#<%= accordion_SPEasyAddOn.ClientID %>" href="#<%= CSB_SPEasyAddOn.ClientID%>" aria-expanded="true" aria-controls="<%= CSB_SPEasyAddOn.ClientID%>" class="collapsed">
                                    <%= Resources.Content.GN000139%>
                                </a>
                            </h2>
                        </div>
                        <div id="CSB_SPEasyAddOn" runat="server" class="panel-collapse collapse" role="tabpanel" aria-labelledby="<%= heading_SPEasyAddOn.ClientID %>" aria-expanded="false" style="height: 0px;">
                            <div class="panel-body">
                                <EM:SellEasyAddOn ID="SellEasyAddOn" runat="server" />
                            </div>
                        </div>
                    </div>
                </div>

                <div class="row" id="TR_SPOperations" runat="server">
                    <div class="col-xs-12">
                        <asp:ValidationSummary HeaderText='<%$ Resources:Content,EM000001%>' ID="ValidationSummary1"
                            runat="server" ShowMessageBox="True" ShowSummary="False" ValidationGroup="SPHosting" />
                        <asp:Button ID="Btn_Add" class="btn btn-primary waves-effect btnAction" ValidationGroup="SPHosting" runat="server"
                            Text="<%$ Resources:Content,GN000111%>" />
                        <asp:Button class="btn btn-primary waves-effect" ID="LB_Close" runat="server" Text="<%$ Resources:Content,GN0000572%>" />
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script lang="javascript">
    AllowArrowKeysInFilteredTextBoxExtender('<%=FTE_TxBx_OrgName.ClientID%>');
    AllowArrowKeysInFilteredTextBoxExtender('<%=FTE_Manager.ClientID%>');
    AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender1.ClientID%>');
</script>
