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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<asp:Content ID="Content6" ContentPlaceHolderID="CPH_Content" runat="Server">

    <script type="text/javascript">
        function disablePreviousButton() {
            document.getElementById('ctl00_CPH_Content_Wizard1_FinishNavigationTemplateContainerID_FinishPreviousButton').style.display = "none";
            //document.getElementById('ctl00_CPH_Content_div_s2').style.display="none";
        }
    </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">
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,GN000195 %>" EnableViewState="false"></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:CheckBox ID="ChBx_ServerEnabled" runat="server" Text=" " />
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            *<asp:Literal ID="Ltl_ServerName" runat="server" Text="<%$ Resources:Content,DGN1110019 %>"></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_ReferenceId" runat="server" MaxLength="50"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RFV_RefId" runat="server" ControlToValidate="TxBx_ReferenceId" ValidationGroup="editserver"
                                    Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                            </div>
                        </div>
                    </div>
                </div>
                <div id="Div_SharedHosting" runat="server">
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                *<asp:Literal ID="Literal48" runat="server" Text="<%$ Resources:Content,DGN1110020 %>" EnableViewState="false"></asp:Literal>:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <asp:DropDownList ID="DDL_DataCenters" AutoPostBack="True" runat="server">
                                </asp:DropDownList>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                *<asp:Literal ID="Literal49" runat="server" Text="<%$ Resources:Content,GN0001229 %>" EnableViewState="false"></asp:Literal>:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <asp:DropDownList ID="DDL_Rack" AutoPostBack="True" runat="server">
                                </asp:DropDownList>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                *<asp:Literal ID="Literal51" runat="server" Text="<%$ Resources:Content,GN0001245 %>" EnableViewState="false"></asp:Literal>:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <asp:DropDownList ID="DDL_Switch" runat="server">
                                </asp:DropDownList>
                            </div>
                        </div>
                    </div>
                    <div class="row" id="Tr_AdminIP" runat="server">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                *<asp:Literal ID="Literal52" runat="server" Text="<%$ Resources:Content,GN0001203 %>" 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_IP" runat="server" MaxLength="15"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RFV_IP" runat="server" ControlToValidate="TxBx_IP"
                                        ValidationGroup="editserver" Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                    <asp:RegularExpressionValidator ID="REV_TxBx_IP" runat="server" ControlToValidate="TxBx_IP"
                                        Display="None" SetFocusOnError="true" ErrorMessage="<%$ Resources:Content,String176 %>" ValidationGroup="editserver"
                                        ValidationExpression="<%$ Resources:Content,ValidateIP%>">
                                    </asp:RegularExpressionValidator>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row" id="Tr_AdminUserName" runat="server">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                *<asp:Literal ID="Literal53" runat="server" Text="<%$ Resources:Content,GN00001114 %>" 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_AdminUserName" runat="server" MaxLength="25"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RFV_TxBx_AdminUserName" runat="server" ControlToValidate="TxBx_AdminUserName"
                                        ValidationGroup="editserver" Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                    <asp:RegularExpressionValidator ID="REV_AdminUserName" runat="server" ControlToValidate="TxBx_AdminUserName"
                                        SetFocusOnError="true" ErrorMessage="<%$ Resources:Content,REL1066 %>" Display="None" ValidationGroup="editserver"
                                        ValidationExpression="[a-z|A-Z|0-9|\.|_|\\| |\-|@]+"></asp:RegularExpressionValidator>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row" id="Tr_AdminPass" runat="server">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                *<asp:Literal ID="Literal54" runat="server" Text="<%$ Resources:Content,DGN1110022 %>" 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_APassword" runat="server" TextMode="Password" MaxLength="25"></asp:TextBox>
                                    <%--&nbsp;&nbsp;<asp:Button ID="lb_Generate" runat="server" Text="<%$ Resources:Content,SMI0195%>"
                                CausesValidation="false" Style="background: none; border: 0px; cursor: pointer; text-decoration: underline;" TabIndex="-1"></asp:Button>
                            <asp:RequiredFieldValidator ID="RFV_Password" runat="server" ControlToValidate="TxBx_APassword"
                                Display="None" SetFocusOnError="true"></asp:RequiredFieldValidator>--%>
                                    
                                </div>
                            </div>
                        </div>
                        <div class="col-sm-5 col-xs-12">
                            <asp:Literal ID="Literal46" runat="server" Text="<%$ Resources:Content,GN00001530%>"
                                EnableViewState="false"></asp:Literal>
                        </div>
                    </div>
                    <%--<div class="row" id="Tr_AdminConfirm" runat="server">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                *<asp:Literal ID="Literal59" runat="server" Text="<%$ Resources:Content,DGN1110023 %>" 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_CPassword" runat="server" TextMode="Password" MaxLength="25"></asp:TextBox>

                                    <asp:CompareValidator ID="CV_APassword" runat="server" ControlToCompare="TxBx_APassword"
                                        ErrorMessage='<%$ Resources:Content,DGN1110005 %>' ControlToValidate="TxBx_CPassword" ValidationGroup="editserver"
                                        Display="None"></asp:CompareValidator>
                                </div>
                            </div>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <asp:CheckBox ID="CB_Show" runat="server" Text="<%$ Resources:Content,FAM0049 %>" />
                        </div>
                    </div>--%>
                </div>
                <div id="Div_Plesk" runat="server" visible="false">
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>*<asp:Literal ID="Literal5" runat="server" Text='<%$ Resources:Content,PleskBaseURL %>' EnableViewState="false" />:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_PleskBaseURL" runat="server" Text="https://{server-host-or-ip}:8443"></asp:TextBox>
                                </div>
                            </div>
                            <asp:RequiredFieldValidator ID="RFV_TxBx_PleskBaseURL" runat="server" ControlToValidate="TxBx_PleskBaseURL"
                                Display="None" SetFocusOnError="True" ValidationGroup="editserver" Enabled="false"></asp:RequiredFieldValidator>
                        </div>
                        <div class="col-sm-5 col-xs-12">/enterprise/control/agent.php</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,PleskLogin %>' EnableViewState="false" />:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_PleskUserName" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RFV_TxBx_PleskUserName" runat="server" ControlToValidate="TxBx_PleskUserName"
                                        Display="None" SetFocusOnError="True" ValidationGroup="editserver" Enabled="false"></asp:RequiredFieldValidator>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                *<asp:Literal ID="Literal7" runat="server" Text='<%$ Resources:Content,PleskPassword %>' EnableViewState="false" />:</label>
                            <br />
                            <small>
                                <asp:Literal ID="Ltl_PasswordUpdateNotice" runat="server" Text="<%$ Resources:Content,GN00001530%>"
                                    EnableViewState="false"></asp:Literal></small>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_PleskPassword" runat="server" TextMode="Password"></asp:TextBox>
                                    <%--<asp:RequiredFieldValidator ID="RFV_TxBx_PleskPassword" runat="server" ControlToValidate="TxBx_PleskPassword"
                                        Display="None" SetFocusOnError="True" ValidationGroup="editserver"></asp:RequiredFieldValidator>--%>
                                    
                                </div>
                            </div>
                        </div>
                        <div class="col-sm-5 col-xs-12">
                            <%--<asp:CheckBox ID="CB_ShowPlesk" runat="server" Text="<%$ Resources:Content,FAM0049 %>" />--%>
                        </div>
                    </div>
                    <%--<div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>
                                *<asp:Literal ID="Literal8" runat="server" Text='<%$ Resources:Content,ConfirmPassword %>' EnableViewState="false" />:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_CPleskPassword" runat="server" TextMode="Password"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RFV_TxBx_CPleskPassword" runat="server" ControlToValidate="TxBx_CPleskPassword"
                                        Display="None" SetFocusOnError="True" ValidationGroup="editserver"></asp:RequiredFieldValidator>
                                    <asp:CompareValidator ID="CV_TxBx_PleskPassword" runat="server" ControlToCompare="TxBx_PleskPassword"
                                        ErrorMessage='<%$ Resources:Content,DGN1110005 %>' ControlToValidate="TxBx_CPleskPassword" ValidationGroup="editserver"
                                        Display="None"></asp:CompareValidator>
                                </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,PleskSharedIP %>" 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_PleskSharedIP" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RFV_TxBx_PleskSharedIP" runat="server" ControlToValidate="TxBx_PleskSharedIP"
                                        ValidationGroup="editserver" Display="None" SetFocusOnError="True" Enabled="false"></asp:RequiredFieldValidator>
                                    <asp:RegularExpressionValidator ID="REV_TxBx_PleskSharedIP" runat="server" ControlToValidate="TxBx_PleskSharedIP"
                                        Display="None" SetFocusOnError="true" ErrorMessage="<%$ Resources:Content,String176 %>" ValidationGroup="editserver"
                                        ValidationExpression="<%$ Resources:Content,ValidateIP%>" />
                                </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,SPT002157 %>' EnableViewState="false" />:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_PleskMaxWebsiteLoad" runat="server" Text="1000"></asp:TextBox>
                                </div>
                            </div>
                            <asp:RequiredFieldValidator ID="RFV_TxBx_PleskMaxWebsiteLoad" runat="server" ControlToValidate="TxBx_PleskMaxWebsiteLoad"
                                Display="None" SetFocusOnError="True" ValidationGroup="editserver" Enabled="false"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3 col-xs-12 row-label">
                            <label>*<asp:Literal ID="Literal3" runat="server" Text='<%$ Resources:Content,CurrentWebLoad %>' EnableViewState="false" />:</label>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_PleskCurrentWebLoad" runat="server" Text="0"></asp:TextBox>
                                </div>
                            </div>
                            <asp:RequiredFieldValidator ID="RFV_TxBx_PleskCurrentWebLoad" runat="server" ControlToValidate="TxBx_PleskCurrentWebLoad"
                                Display="None" SetFocusOnError="True" ValidationGroup="editserver" Enabled="false"></asp:RequiredFieldValidator>                            
                            <asp:CompareValidator ID="CV_TxBx_PleskCurrentWebLoad" runat="server" Display="None" ValidationGroup="editserver"
                                ControlToValidate="TxBx_PleskCurrentWebLoad" ControlToCompare="TxBx_PleskMaxWebsiteLoad"
                                ErrorMessage='<%$ Resources:Content,String1042 %>' Type="Integer" Operator="LessThanEqual"></asp:CompareValidator>
                        </div>
                    </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" ValidationGroup="editserver" />

                        <asp:Button ID="Btn_Save" runat="server" class="btn btn-primary waves-effect btnAction" Text='<%$ Resources:Content,GN0000281 %>' ValidationGroup="editserver" />
                        <asp:Button ID="Btn_Cancel" runat="server" class="btn btn-primary waves-effect" Text='<%$ Resources:Content,GN0000572 %>'
                            CausesValidation="false" />
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
