<%@ control language="VB" autoeventwireup="false" inherits="Admin_Hostmatic_CC_FTP, MachSol.MachPanel.Web" %>

<div class="row">
    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h3><%= Resources.Content.SPT002120%></h3>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content, DGN1110096 %>" EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:DropDownList ID="DDL_Provider" runat="server" AutoPostBack="true">
                            </asp:DropDownList>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *
                        <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content, SPT002121 %>" EnableViewState="false" />:</label>
                    </div>
                    <div id="Td_Name" runat="server" class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_FrName" runat="server" ValidationGroup="FTP"></asp:TextBox>
                                <asp:RequiredFieldValidator SetFocusOnError="true" runat="server" ID="RFV_FrName"
                                    ControlToValidate="TxBx_FrName" ValidationGroup="FTP" Text="*"></asp:RequiredFieldValidator>
                                <%--<asp:RegularExpressionValidator ID="REV_TxBx_FrName" runat="server" ControlToValidate="TxBx_FrName"
                ValidationExpression="[A-Z|a-z|0-9]([a-z|A-Z|_|0-9|\-|\.| ])*" ErrorMessage="Invalid friendly name"
                Display="None" SetFocusOnError="true" ValidationGroup="FTP"></asp:RegularExpressionValidator>--%>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <br />
        <div class="card" id="Tbl_FTPSetting" runat="server">
            <div class="header">
                <h3><%= Resources.Content.SPT002160%></h3>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal8" runat="server" Text="<%$ Resources:Content,SPT002161%>" EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_FTPUGName" Text="<%$ Resources:Content,SMI0552%>" runat="server" ValidationGroup="FTP"></asp:TextBox>
                                <asp:RequiredFieldValidator SetFocusOnError="true" runat="server" ID="RFV_FTPUGName"
                                    ControlToValidate="TxBx_FTPUGName" Display="None" ValidationGroup="FTP"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="REV_TxBx_FTPUGName" runat="server" ControlToValidate="TxBx_FTPUGName"
                                    ValidationExpression="[A-Z|a-z|0-9]([a-z|A-Z|_|0-9|\-|\.| ])*" ErrorMessage="Invalid  FTP users group name"
                                    Display="None" SetFocusOnError="true" ValidationGroup="FTP"></asp:RegularExpressionValidator>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row" id="Tr_DefaultFTPSiteID" runat="server" visible="false">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal10" runat="server" Text="<%$ Resources:Content,SPT002162%>" EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_FTPSiteID" Text="1" runat="server" ValidationGroup="FTP"></asp:TextBox>
                                <asp:RequiredFieldValidator SetFocusOnError="true" runat="server" ID="RFV_FTPSiteID"
                                    ControlToValidate="TxBx_FTPSiteID" Display="None" ValidationGroup="FTP"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="REV_TxBx_FTPSiteID" runat="server" ControlToValidate="TxBx_FTPSiteID"
                                    ValidationExpression="([0-9])*" ErrorMessage="Invalid FTP site id"
                                    Display="None" SetFocusOnError="true" ValidationGroup="FTP"></asp:RegularExpressionValidator>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row" id="Tr_DefaultFTPSite" runat="server" visible="false">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Ltl_DefaultSite" runat="server" Text="<%$ Resources:Content,SMI0553%>" EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_DefaultFTPDomainName" runat="server" Text="<%$ Resources:Content,SMI0554%>" />
                                <asp:RegularExpressionValidator ID="REV_TxBx_DefaultFTPDomainName" runat="server" ControlToValidate="TxBx_DefaultFTPDomainName"
                                    ValidationExpression="[A-Z|a-z|0-9]([a-z|A-Z|_|0-9|\-| ])*" ErrorMessage="Invalid default ftp name"
                                    Display="None" SetFocusOnError="true" ValidationGroup="FTP"></asp:RegularExpressionValidator>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-5 col-xs-12">Provide default FTP site name that hosts virtual FTP domains.</div>
                </div>
            </div>
        </div>
        <br />
        <div class="card">
            <div class="header">
                <h3><%= Resources.Content.SPT002163%></h3>
            </div>
            <div class="body">
                <div class="row" style="display: none;">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal9" runat="server" Text="<%$ Resources:Content,GN0000983%>" EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:ListBox runat="server" ID="LB_UserNameRule">
                                <asp:ListItem Text="<%$ Resources:Content,GN0000988%>" Value="1"></asp:ListItem>
                                <asp:ListItem Text="<%$ Resources:Content,GN0000987%>" Value="2"></asp:ListItem>
                                <asp:ListItem Text="<%$ Resources:Content,GN0000986%>" Value="3"></asp:ListItem>
                                <asp:ListItem Text="<%$ Resources:Content,GN00001014%>" Value="4" Selected="True"></asp:ListItem>
                            </asp:ListBox>
                        </div>
                    </div>
                </div>
                <div class="row" style="display: none;">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal15" runat="server" Text="<%$ Resources:Content,GN0000989%>" EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_Suffix" runat="server"></asp:TextBox>
                                <asp:RegularExpressionValidator ID="REV_TxBx_Suffix" runat="server" ControlToValidate="TxBx_Suffix"
                                    ValidationExpression="[A-Z|a-z|0-9]([a-z|A-Z|_|0-9|\-|\.| ])*" ErrorMessage="Invalid Suffix"
                                    Display="None" SetFocusOnError="true" ValidationGroup="FTP"></asp:RegularExpressionValidator>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row" style="display: none;">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal17" runat="server" Text="<%$ Resources:Content,GN0000990%>" EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_Prefix" runat="server"></asp:TextBox>
                                <asp:RegularExpressionValidator ID="REV_TxBx_Prefix" runat="server" ControlToValidate="TxBx_Prefix"
                                    ValidationExpression="[A-Z|a-z|0-9]([a-z|A-Z|_|0-9|\-|\.| ])*" ErrorMessage="Invalid Prefix"
                                    Display="None" SetFocusOnError="true" ValidationGroup="FTP"></asp:RegularExpressionValidator>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal11" runat="server" Text="<%$ Resources:Content,GN0000993%>" EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_MaxUNLength" Text="12" MaxLength="9" runat="server" ValidationGroup="FTP"></asp:TextBox>
                                <asp:RequiredFieldValidator SetFocusOnError="true" runat="server" ID="RFV_MUNLength"
                                    ControlToValidate="TxBx_MaxUNLength" Display="None" ValidationGroup="FTP"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="REV_TxBx_MaxUNLength" runat="server" ControlToValidate="TxBx_MaxUNLength"
                                    ValidationExpression="([0-9])*" ErrorMessage="Invalid maximum user name length"
                                    Display="None" SetFocusOnError="true" ValidationGroup="FTP"></asp:RegularExpressionValidator>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal13" runat="server" Text="<%$ Resources:Content,GN0000992%>" EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_MinUNLength" Text="6" runat="server" MaxLength="9" ValidationGroup="FTP"></asp:TextBox>
                                <asp:RequiredFieldValidator SetFocusOnError="true" runat="server" ID="RFV_MinUNLength"
                                    ControlToValidate="TxBx_MinUNLength" Display="None" ValidationGroup="FTP"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="REV_TxBx_MinUNLength" runat="server" ControlToValidate="TxBx_MinUNLength"
                                    ValidationExpression="([0-9])*" ErrorMessage="Invalid minimum user name length"
                                    Display="None" SetFocusOnError="true" ValidationGroup="FTP"></asp:RegularExpressionValidator>
                                <%--<asp:CompareValidator ID="CFV_TxBx_MaxUNLength" runat="server" ValidationGroup="FTP" SetFocusOnError="true" Operator="LessThanEqual" ControlToCompare="TxBx_MaxUNLength" ControlToValidate="TxBx_MinUNLength" ErrorMessage="Minimum length should be less than maximum length"></asp:CompareValidator>--%>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row" id="Tr_SingleFTP4MultiDomains" runat="server" visible="false">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal18" runat="server" Text="<%$ Resources:Content,SPT002164%>" EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:CheckBox ID="ChBx_CSFTPAccount" runat="server" Checked="true" Text=" " />
                        </div>
                    </div>
                </div>
                <div class="row" id="Tr_FTPInstallPath" runat="server" visible="false">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Literal19" runat="server" Text="<%$ Resources:Content,SMI0555%>" EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_FTPInstallPath" runat="server" Text="C:\Program Files\FileZilla Server" />
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <br />
        <div class="card">
            <div class="header">
                <h3><%= Resources.Content.SPT002159%></h3>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Content, SPT002165 %>" EnableViewState="false" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:DropDownList ID="DDL_ADNSTemplate" runat="server">
                            </asp:DropDownList>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12">
                        <asp:Button ID="BtnSave" runat="server" CausesValidation="True" class="btn btn-primary waves-effect btnAction"
                            Text="<%$ Resources:Content,GN0000281%>" ValidationGroup="FTP" />
                        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="true" ShowSummary="false"
                            HeaderText="<%$ Resources:Content,EM000001%>" ValidationGroup="FTP" />
                        <asp:Button ID="BtnCancel" CausesValidation="False" runat="server" class="btn btn-primary waves-effect"
                            Text="<%$ Resources:Content,GN0000572%>" />
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
