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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>

<asp:Content ID="Content4" ContentPlaceHolderID="CPH_Content" runat="Server">
    <script language="javascript" type="text/javascript">
        function checkAlternate(CB) {
            //if ($("[id *="+CB+"]").prop("checked") == true)
            $("[id *=" + CB + "]").prop("checked", false);
        }
    </script>

    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h2>
                    <asp:Literal ID="Ltl_SubsInfo" runat="server" /></h2>
            </div>
            <div class="body">
                <asp:Panel ID="Pnl_add" runat="server" DefaultButton="Btn_Save">
                    <div class="row">
                        <div class="col-sm-4 col-xs-12 row-label">
                            <label>*<asp:Literal ID="Literal7" runat="server" Text="<%$Resources:Content,String80%>" 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_DCName" Text="" runat="server" MaxLength="255" data-label="Domain FQDN"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TxBx_DCName"
                                        Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-4 col-xs-12 row-label">
                            <label>*<asp:Literal ID="Literal3" runat="server" Text="<%$Resources:Content,String140%>" 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_DCNetBiosName" Text="" runat="server" MaxLength="255" data-label="Net BIOS Name"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxBx_DCNetBiosName"
                                        Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-4 col-xs-12 row-label">
                            <label>*<asp:Literal ID="Literal4" runat="server" Text="<%$Resources:Content,DGN1110434%>" 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_DomainAdminlogin" runat="server" MaxLength="100" data-label="Domain Admin Login"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RFV_DomainAdminlogin" runat="server" ControlToValidate="TxBx_DomainAdminlogin"
                                        Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                    <asp:RegularExpressionValidator ID="REV_DomainAdminLogin" runat="server" ControlToValidate="TxBx_DomainAdminlogin"
                                        Display="None" ErrorMessage="Enter Domain Administrator name only without domain" ValidationExpression="^_?[a-zA-Z][a-zA-Z0-9-._]+$"></asp:RegularExpressionValidator>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-4 col-xs-12 row-label">
                            <label>*<asp:Literal ID="Literal6" runat="server" Text="<%$Resources:Content,DGN1110435%>" 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_DomAdminpassword" TextMode="Password" runat="server" MaxLength="100" data-label="Domain Admin Password" data-secure="1"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RFV_DomAdminpassword" runat="server" ControlToValidate="TxBx_DomAdminpassword"
                                        Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                </div>
                            </div>
                            <%--<br />
                            <asp:CheckBox ID="CB_Show" runat="server" Text="<%$ Resources:Content,FAM0049 %>" />--%>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <%--<div id="Div_PasswordPolicy" runat="server" class="help-text sm"></div>--%>
                        </div>
                    </div>
                    <%--<div class="row">
                        <div class="col-sm-4 col-xs-12 row-label">
                            <label>*<asp:Literal ID="Literal5" runat="server" Text="<%$Resources:Content,GN0001196%>" 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_CPass" TextMode="Password" runat="server" MaxLength="100"></asp:TextBox>
                                </div>
                            </div>
                            <asp:CompareValidator ID="CompareValidator3" runat="server" ControlToCompare="TxBx_DomAdminpassword"
                                ErrorMessage="<%$ Resources:Content,DGN1110005 %>" ControlToValidate="TxBx_CPass"
                                Display="None"></asp:CompareValidator>
                        </div>
                    </div>--%>
                    <div class="row">
                        <div class="col-sm-4 col-xs-12 row-label">
                            <label>
                                *<asp:Literal ID="Literal_DefaultResellerLDAPURL" EnableViewState="false" runat="server" Text="<%$ Resources:Content,DGN1110437%> "></asp:Literal>:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_DefaultResellerLDAPURL" runat="server" Text="<%$ Resources:Content,L0092 %>" data-label="LDAP Url"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator_DefaultResellerLDAPURL" runat="server"
                                        ControlToValidate="TxBx_DefaultResellerLDAPURL" Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                    <asp:RegularExpressionValidator Enabled="false" ID="REV_LDAP" runat="server" Display="None" ControlToValidate="TxBx_DefaultResellerLDAPURL"
                                        SetFocusOnError="true" ValidationExpression="<%$Resources:Content,LDAPValidationExpression%>"
                                        ErrorMessage="<%$Resources:Content,DEV1054%>"></asp:RegularExpressionValidator>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-4 col-xs-12 row-label">
                            <label>
                                <asp:Literal ID="Literal9" runat="server" Text="<%$Resources:Content,String031%>" EnableViewState="false"></asp:Literal>:</label>
                        </div>
                        <div class="col-sm-8 col-xs-12">
                            <asp:TextBox ID="TxBx_IPAddresses" TextMode="MultiLine" Height="150px" Width="100%" runat="server" MaxLength="900" data-label="Remote Server IPs"></asp:TextBox>
                            <EM:FilteredTextBoxExtender FilterType="Custom" ValidChars="0123456789.," ID="FilteredTextBoxExtender1"
                                runat="server" TargetControlID="TxBx_IPAddresses" />
                        </div>
                    </div>
                    <div class="row" ID="Div_GenerateRandomGUID" runat="server">
                        <div class="col-sm-4 col-xs-12 row-label">
                            <label>*<asp:Literal ID="Literal1" runat="server" Text="<%$Resources:Content,GenerateRandomGUID%>" EnableViewState="false"></asp:Literal>:</label>
                        </div>
                        <div class="col-sm-1 col-xs-12">
                            <asp:CheckBox ID="CB_GenerateRandomGUID" runat="server" Checked="false" Text=" " data-label="Generate Random GUID Enabled" />
                        </div>
                        <div class="col-sm-7 col-xs-12">
                            <asp:Literal ID="Ltl" runat="server" Text="<%$Resources:Content,GenerateRandomGUIDHelpText%>"></asp:Literal>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-4 col-xs-12 row-label">
                            <label>
                                <asp:Literal ID="Literal8" runat="server" Text="<%$Resources:Content,FAM00156%>" EnableViewState="false"></asp:Literal>:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <asp:CheckBox ID="CB_AppendUPNSuffix" runat="server" Checked="true" Text=" " data-label="Append UPN Suffix" />
                        </div>
                    </div>

                    <div class="row" ID="Div_UpdateCNOnUPNChange" runat="server">
                        <div class="col-sm-4 col-xs-12 row-label">
                            <label>
                                <asp:Literal ID="Literal26" runat="server" Text="<% $Resources:Content,StrUpdateUserCNOnUPNChange %>" EnableViewState="false"></asp:Literal>:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <asp:CheckBox ID="CB_UpdateCNOnUPNChange" runat="server" Checked="true" Text=" " data-label="Update User CN on UPN change" />
                        </div>
                    </div>
                    <br />
                    <div class="header">
                        <h3>
                            <asp:Literal ID="Literal13" runat="server" Text='<%$Resources:Content,UserOptions%>' EnableViewState="false" /></h3>
                    </div>
                    <br />
                    <div class="row">
                        <div class="col-sm-4 col-xs-12 row-label">
                            <label>
                                <asp:Literal ID="Literal10" runat="server" Text="<%$Resources:Content,UserMustChangePassword%>" EnableViewState="false"></asp:Literal>:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <asp:CheckBox ID="ChBx_UserMustChangePassword" Text=" " runat="server" onclick="checkAlternate('ChBx_UserCantChangePassword');checkAlternate('ChBx_PasswordNeverExpires');" data-label="User Must Change Password"></asp:CheckBox>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-4 col-xs-12 row-label">
                            <label>
                                <asp:Literal ID="Literal11" runat="server" Text="<%$Resources:Content,UserCantChangePassword%>" EnableViewState="false"></asp:Literal>:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <asp:CheckBox ID="ChBx_UserCantChangePassword" Text=" " runat="server" onclick="checkAlternate('ChBx_UserMustChangePassword');" data-label="User Can't Change Password"></asp:CheckBox>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-4 col-xs-12 row-label">
                            <label>
                                <asp:Literal ID="Literal12" runat="server" Text="<%$Resources:Content,PasswordNeverExpires%>" EnableViewState="false"></asp:Literal>:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <asp:CheckBox ID="ChBx_PasswordNeverExpires" Text=" " runat="server" onclick="checkAlternate('ChBx_UserMustChangePassword');" data-label="Password Never Expires"></asp:CheckBox>
                        </div>
                    </div>
                    <br />
                    <div class="header" ID="Div_Header_NestedOUStructure" runat="server">
                        <h3>
                            <asp:Literal ID="Literal19" runat="server" Text="<%$Resources:Content,strNestedOUStructure%>" EnableViewState="false"></asp:Literal></h3>
                    </div>
                    <br />
                    <div class="row" ID="Div_ChBx_NestedOUStructure" runat="server">
                        <div class="col-sm-4 col-xs-12 row-label">
                            <label>
                                <asp:Literal ID="Literal18" runat="server" Text="<%$Resources:Content,strNestedOUStructureEnabled%>" EnableViewState="false"></asp:Literal>:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <asp:CheckBox ID="ChBx_NestedOUStructure" runat="server" Text=' ' data-label="Nested OU Structure Enabled" />
                        </div>
                        <div class="col-sm-4 col-xs-12 row-label">
                            <asp:Literal ID="Literal20" runat="server" Text="<%$Resources:Content,strNotice4NestedOU%>" EnableViewState="false"></asp:Literal>
                        </div>
                    </div>
                    <div id="Div_NestedOUStructure" runat="server" style="display: none">
                        <div class="row">
                            <div class="col-sm-4 col-xs-12 row-label">
                                <label>
                                    <asp:Literal ID="Literal14" runat="server" Text="<%$Resources:Content,strCreateResellerOU%>" EnableViewState="false"></asp:Literal>:</label>
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <asp:CheckBox ID="ChBx_CreateResellerOU" Text=" " runat="server" data-label="Create Reseller OU"></asp:CheckBox>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-4 col-xs-12 row-label">
                                <label>
                                    *<asp:Literal ID="Literal15" runat="server" Text="<%$Resources:Content,strSubOUName4Users%>" 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_SubOUName4Users" runat="server" Text="<%$Resources:Content,Users%>" MaxLength="128" data-label="Sub OU name for Users"></asp:TextBox>
                                    </div>
                                </div>
                            </div>
                            <asp:RequiredFieldValidator ID="RFV_TbBx_SubOUName4Users" runat="server" ControlToValidate="TxBx_SubOUName4Users"
                                Display="None" SetFocusOnError="True" Enabled="false"></asp:RequiredFieldValidator>
                        </div>
                        <div class="row">
                            <div class="col-sm-4 col-xs-12 row-label">
                                <label>
                                    *<asp:Literal ID="Literal16" runat="server" Text="<%$Resources:Content,strSubOUName4Contacts%>" 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_SubOUName4Contacts" runat="server" Text="<%$Resources:Content,DGN1110415%>" MaxLength="128" data-label="Sub OU name for Contacts"></asp:TextBox>
                                    </div>
                                </div>

                            </div>
                            <asp:RequiredFieldValidator ID="RFV_TxBx_SubOUName4Contacts" runat="server" ControlToValidate="TxBx_SubOUName4Contacts"
                                Display="None" SetFocusOnError="True" Enabled="false"></asp:RequiredFieldValidator>
                        </div>
                        <div class="row">
                            <div class="col-sm-4 col-xs-12 row-label">
                                <label>
                                    *<asp:Literal ID="Literal2" runat="server" Text="<%$Resources:Content,strSubOUNameForDLs%>" 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_SubOUNameForDLs" runat="server" Text="<%$Resources:Content,DistributionGroups%>" MaxLength="128" data-label="Sub OU name for Distribution Lists"></asp:TextBox>
                                    </div>
                                </div>
                            </div>
                            <asp:RequiredFieldValidator ID="RFV_TxBx_SubOUNameForDLs" runat="server" ControlToValidate="TxBx_SubOUNameForDLs"
                                Display="None" SetFocusOnError="True" Enabled="false"></asp:RequiredFieldValidator>
                        </div>
                        <div class="row">
                            <div class="col-sm-4 col-xs-12 row-label">
                                <label>
                                    *<asp:Literal ID="Literal17" runat="server" Text="<%$Resources:Content,strSubOUName4VMs%>" 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_SubOUName4VMs" runat="server" Text="<%$Resources:Content,VMs%>" MaxLength="128" data-label="Sub OU name for VMs"></asp:TextBox>
                                    </div>
                                </div>
                            </div>
                            <asp:RequiredFieldValidator ID="RFV_TxBx_SubOUName4VMs" runat="server" ControlToValidate="TxBx_SubOUName4VMs"
                                Display="None" SetFocusOnError="True" Enabled="false"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12">
                            <asp:ValidationSummary ID="ValidationSum_1" runat="server" HeaderText='<%$ Resources:Content,EM000001 %>'
                                ShowMessageBox="True" ShowSummary="False" />

                            <asp:Button ID="Btn_Save" class="btn btn-primary waves-effect btnAction" Text='<%$ Resources:Content,GN0000281%>' runat="server" />
                            <asp:Button ID="Btn_Cancel" class="btn btn-primary waves-effect" CausesValidation="false" Text='<%$ Resources:Content,GN0000572%>' runat="server" />
                        </div>
                    </div>
                </asp:Panel>
            </div>
        </div>
    </div>
    <script lang="javascript">
        AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender1.ClientID%>');
    </script>
</asp:Content>
