<%@ control language="VB" autoeventwireup="false" inherits="RCC_Clients_CC_SellCRMHosting, 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(lblId, domainId) {
        var TxBx_DomainName = document.getElementById(domainId);
        var Lbl_Domain = document.getElementById(lblId);

        Lbl_Domain.innerHTML = '@' + 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,DEV1031%>" 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="Literal37" runat="server" Text='<%$ Resources:Content,Dev336%>' />:
                    </div>
                    <div class="col-sm-9 col-xs-12">
                        <div class="grow" runat="server" ID="Ltl_PackageComments"></div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Ltrl_DnsZone" runat="server" Text="<%$Resources:Content,DEV1038 %>"
                                EnableViewState="false"></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:DropDownList ID="Ddl_Zones" runat="server">
                            </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:ListItem Text="<%$ Resources:Content,L0025%>" Value="0" Selected="True"></asp:ListItem>
                            </asp:DropDownList>
                        </div>
                    </div>
                    <div class="col-sm-4 col-xs-12" id="TD_OUName" runat="server">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_OUName" runat="server" MaxLength="128"></asp:TextBox>
                                <asp:RegularExpressionValidator ID="RE_TxBx_OUName" runat="server" ControlToValidate="TxBx_OUName"
                                    ValidationExpression="([a-z|A-Z|_|\-|\.| ]([0-9]{0,20}))+" ErrorMessage="Invalid Organizational Unit Name"
                                    Display="None" SetFocusOnError="true" ValidationGroup="CRMHosting"></asp:RegularExpressionValidator>
                                <asp:RequiredFieldValidator ID="RFV_TxBx_OUName" runat="server" ControlToValidate="TxBx_OUName"
                                    Display="None" SetFocusOnError="true" ValidationGroup="CRMHosting"></asp:RequiredFieldValidator>
                                <%--            <asp:RegularExpressionValidator ID="REG_OrgName" runat="server" ControlToValidate="TxBx_OUName"
                ValidationExpression="([a-z|A-Z|_| ]([0-9]{0,20}))+" ErrorMessage="Invalid Organization Name"
                Display="None" SetFocusOnError="true" ValidationGroup="CRMHosting"></asp:RegularExpressionValidator>--%>
                            </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="61"></asp:TextBox>

                                <asp:RequiredFieldValidator ID="RFV_DomainName" runat="server" ControlToValidate="TxBx_DomainName"
                                    Display="None" SetFocusOnError="true" ValidationGroup="CRMHosting"></asp:RequiredFieldValidator>
                                <%--<asp:RegularExpressionValidator ID="REV_DomainName" runat="server" ValidationExpression="<%$ Resources:Content,REV001 %>"
                                    Display="None" ValidationGroup="CRMHosting" ControlToValidate="TxBx_DomainName"
                                    ErrorMessage="Invalid Domain Name" SetFocusOnError="true"></asp:RegularExpressionValidator>--%>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-4 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_OrgAdmin" runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>*<asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Content,SMI0287%>" EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:DropDownList ID="DDL_OrgAdmin" 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">
                        <div class="form-group">
                            <div class="form-line">
                                <EM:FilteredTextBoxExtender ID="FTE_OrgAdmin" TargetControlID="TxBx_OrgAdmin" runat="server"
                                    FilterType="Custom, UppercaseLetters, Numbers, LowercaseLetters" ValidChars="_.">
                                </EM:FilteredTextBoxExtender>
                                <asp:TextBox ID="TxBx_OrgAdmin" runat="server" MaxLength="50"></asp:TextBox>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-2 col-xs-12 no-padding lbl-serial-num">
                        <asp:Label ID="Lbl_Domain" runat="server"></asp:Label>
                    </div>
                </div>
                <div class="row" id="TR_AdminFirstName" runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Label ID="Lbl_AdminFirstName" runat="server" Text='<%$Resources:Content,GN00001132%>'
                                EnableViewState="false"></asp:Label>:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_FirstName" runat="server" MaxLength='50'></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RFV_FirstName" runat="server" Display="None" ControlToValidate="TxBx_FirstName"
                                    SetFocusOnError="true" ValidationGroup="CRMHosting"></asp:RequiredFieldValidator>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row" id="TR_AdminLastName" runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Label ID="Lbl_AdminLastName" runat="server" Text='<%$Resources:Content,GN00001133%>'
                                EnableViewState="false"></asp:Label>:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_LastName" runat="server" MaxLength='50'></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RFV_LastName" runat="server" Display="None" ControlToValidate="TxBx_LastName"
                                    SetFocusOnError="true" ValidationGroup="CRMHosting"></asp:RequiredFieldValidator>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row" id="TR_AdminEmail" runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>*<asp:Label ID="Lbl_AdminEmail" runat="server" Text="<%$ Resources:Content,L0029%>" EnableViewState="false"></asp:Label>:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_AdminEmail" runat="server" MaxLength='66'></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RFV_AdminEmail" runat="server" Display="None" ControlToValidate="TxBx_AdminEmail"
                                    SetFocusOnError="true" ValidationGroup="CRMHosting"></asp:RequiredFieldValidator>
                               <%-- <asp:RegularExpressionValidator ID="REV_AdminEmail" runat="server" ErrorMessage='<%$ Resources:Content,DGN1110038%>'
                                    ControlToValidate="TxBx_AdminEmail" Display="None" SetFocusOnError="True" ValidationExpression="<%$ Resources:MPRegex,EmailAddress %>"
                                    ValidationGroup="CRMHosting">
                                </asp:RegularExpressionValidator>--%>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row" id="TR_DispName" runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>*<asp:Label ID="lbl_orgDispName" runat="server" Text="<%$ Resources:Content,L0030%>" EnableViewState="false"></asp:Label>:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_orgDispName" runat="server" MaxLength="30"></asp:TextBox>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TxBx_orgDispName"
                                    ValidationExpression="^([a-z|A-Z])+([0-9])*(\.|\-|_|\s){0,1}([a-z|A-Z|0-9|\s])+$"
                                    ErrorMessage="Invalid Organization Name" Display="None" SetFocusOnError="true"
                                    ValidationGroup="CRMHosting"></asp:RegularExpressionValidator>
                                <asp:RequiredFieldValidator ID="RFV_OrgDispName" runat="server" Display="None" ControlToValidate="TxBx_orgDispName"
                                    SetFocusOnError="true" ValidationGroup="CRMHosting"></asp:RequiredFieldValidator>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row" id="TR_UniqueName" runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>*<asp:Literal ID="Literal17" runat="server" Text="<%$ Resources:Content,String381%>" 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_Name" runat="server" MaxLength="29"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RFV_Name" runat="server" ControlToValidate="TxBx_Name"
                                    ValidationGroup="CRMHosting" SetFocusOnError="true" Display="None"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="REG_Name" runat="server" ControlToValidate="TxBx_Name"
                                    ValidationExpression="^([a-z|A-Z|0-9]+(\-)*[a-z|A-Z|0-9]+){1,30}$" ErrorMessage="Invalid Unique Name for CRM Organization"
                                    Display="None" SetFocusOnError="true" ValidationGroup="CRMHosting"></asp:RegularExpressionValidator>
                                <%--([a-z|A-Z]([0-9]{0,20})(\-)*([a-z|A-Z]([0-9]{0,20}))*--%>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row" id="TR_CurrencyCode" runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="LIteral19" runat="server" Text="<%$ Resources:Content,SMI0288%>" EnableViewState="false"></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:DropDownList ID="ddl_IsoCurrCode" runat="server" AppendDataBoundItems='true'>
                                <asp:ListItem Text="<%$ Resources:Content,SMI0289%>" Value='0'></asp:ListItem>
                            </asp:DropDownList>
                        </div>
                    </div>
                </div>
                <div class="row" id='TR_Locales' runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Ltrl_Locales" 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_Locales' 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="CRMHosting"></asp:RequiredFieldValidator>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                *<asp:Literal ID="Literal2" 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="CRMHosting"></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="Literal4" 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="Literal15" 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="Literal16" 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="Literal8" 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_CRMEasyAddOn" runat="server" role="tablist" aria-multiselectable="true">
                    <div class="panel panel-primary">
                        <div class="panel-heading" role="tab" id="heading_CRMEasyAddOn" runat="server">
                            <h2 class="panel-title">
                                <a role="button" id="A_CRMEasyAddOn" data-toggle="collapse" data-parent="#<%= accordion_CRMEasyAddOn.ClientID %>" href="#<%= CSB_CRMEasyAddOn.ClientID%>" aria-expanded="true" aria-controls="<%= CSB_CRMEasyAddOn.ClientID%>" class="collapsed">
                                    <%= Resources.Content.GN000139%>
                                </a>
                            </h2>
                        </div>
                        <div id="CSB_CRMEasyAddOn" runat="server" class="panel-collapse collapse" role="tabpanel" aria-labelledby="<%= heading_CRMEasyAddOn.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_CRMOperations" runat="server">
                    <div class="col-xs-12">
                        <asp:ValidationSummary HeaderText='<%$ Resources:Content,EM000001%>' ID="ValidationSummary1"
                            runat="server" ShowMessageBox="True" ShowSummary="False" ValidationGroup="CRMHosting" />
                        <asp:Button ID="Btn_Add" class="btn btn-primary waves-effect btnAction" ValidationGroup="CRMHosting" 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_OrgAdmin.ClientID%>');
</script>
