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

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

<asp:Content ID="ContentEditServer" ContentPlaceHolderID="CPH_Content" runat="Server">
    <asp:UpdatePanel ID='UP01' runat='server'>
        <ContentTemplate>
            <asp:Panel ID='Pnl_Step1' runat='server' DefaultButton='btn_save'>

                <div class="col-xs-12" id="tbl_CRMEditServer" runat="server">
                    <div class="card">
                        <div class="header">
                            <h3>
                                <asp:Literal ID="Div47" runat="server" Text='<%$ Resources:Content,DGN1110018 %>' EnableViewState="false" />
                            </h3>
                        </div>
                        <div class="body">

                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    *
                                             <asp:Label ID="Lbl_RefId" runat="server" Text="<%$Resources:Content,DGN1110019%>" EnableViewState="false"></asp:Label>:                               
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_RefId" runat="server"></asp:TextBox>
                                        </div>
                                    </div>
                                    <asp:RequiredFieldValidator ID="RV_RefId" runat="server" Display="None" SetFocusOnError="true"
                                        ControlToValidate="TxBx_RefId"></asp:RequiredFieldValidator>
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    *
                            <asp:Label ID="Lbl_ServerIP" runat="server" Text="<%$Resources:Content,GN0001203%>" EnableViewState="false"></asp:Label>:
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_ServerIP" runat="server" MaxLength="50"></asp:TextBox>
                                        </div>
                                    </div>
                                    <asp:RequiredFieldValidator ID="RFV_ServerIP" runat="server" Display="None" SetFocusOnError="true"
                                        ControlToValidate="TxBx_ServerIP"></asp:RequiredFieldValidator>
                                    <asp:RegularExpressionValidator ID="REV_ServerIP" runat="server" ControlToValidate="TxBx_ServerIP"
                                        ValidationExpression="<%$ Resources:Content,ValidateIP%>"
                                        SetFocusOnError='true' ErrorMessage="<%$Resources:Content,String176%>" Display="None"></asp:RegularExpressionValidator>
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <asp:Label ID="Lbl_ServerIpDiscoSvc" runat="server" Text="<%$ Resources:Content,SMI0220%>" EnableViewState="false"></asp:Label>:
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_ServerIpDiscoSvc" runat="server" MaxLength="50"></asp:TextBox>
                                        </div>
                                    </div>
                                    <asp:RegularExpressionValidator ID="REV_TxBx_ServerIpDiscoSvc" runat="server" ControlToValidate="TxBx_ServerIpDiscoSvc"
                                        ValidationExpression="<%$ Resources:Content,ValidateIP%>"
                                        SetFocusOnError='true' ErrorMessage="<%$Resources:Content,String176%>" Display="None"></asp:RegularExpressionValidator>
                                    <asp:CompareValidator ID="CE_ServerIPFrontEndIP" runat="server" ControlToValidate="TxBx_ServerIpDiscoSvc"
                                        ControlToCompare="TxBx_ServerIP" Display="None" ErrorMessage="Frontend server IP shall be different than server IP"
                                        Operator="NotEqual" SetFocusOnError="true" Type="String"></asp:CompareValidator>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <asp:Literal ID="Ltl_ServerIpDiscoSvc" runat="server" Text="<%$ Resources:Content,SMI0226%>" EnableViewState="false"></asp:Literal>
                                </div>
                            </div>

                        </div>
                    </div>

                    <div class="card">
                        <div class="header">
                            <h3>
                                <asp:Literal ID="Literal1" runat="server" Text='<%$ Resources:Content,DEV1023%>' EnableViewState="false" />
                            </h3>
                        </div>
                        <div class="body">
                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    *
                                        <asp:Label ID="Lbl_IFDSiteURL" runat="server" Text="<%$Resources:Content,DEV1015%>" EnableViewState="false"></asp:Label>:
                               
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_IFDSiteURL" runat="server" MaxLength="255"></asp:TextBox>
                                        </div>
                                    </div>
                                    <asp:RequiredFieldValidator ID="RFV_IFDSiteURL" runat="server" Display="None" SetFocusOnError="true"
                                        ControlToValidate="TxBx_IFDSiteURL"></asp:RequiredFieldValidator>
                                    <%--<asp:RegularExpressionValidator ID="REV_ZoneName" ValidationExpression="<%$ Resources:Content,REV001 %>"
                                        ControlToValidate="TxBx_IFDSiteURL" runat="server" ErrorMessage="<%$ Resources:Content,L0090 %>"
                                        SetFocusOnError="true" Display="None"></asp:RegularExpressionValidator>--%>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <asp:Literal ID="Literal3" runat="server" Text="<%$Resources:Content,DEV1037%>" EnableViewState="false"></asp:Literal>
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    *
                            <asp:Label ID="Lbl_UrlBase" runat="server" Text='<%$Resources:Content,DEV1016%>' EnableViewState="false"></asp:Label>:
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <asp:DropDownList ID="DDL_UrlBase" runat="server" Width="25%">
                                        <asp:ListItem Text="http://" Value="http://" Selected="True">
                                        </asp:ListItem>
                                        <asp:ListItem Text="https://" Value="https://"></asp:ListItem>
                                    </asp:DropDownList>

                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_UrlBase" runat="server" Width="59%" MaxLength="255" ReadOnly="true"></asp:TextBox>
                                        </div>
                                    </div>
                                    <asp:RequiredFieldValidator ID="RFV_UrlBase" runat="server" Display="None" SetFocusOnError="true"
                                        ControlToValidate="TxBx_UrlBase"></asp:RequiredFieldValidator>
                                    <asp:RegularExpressionValidator ID="REV_UrlBase" runat="server" ControlToValidate="TxBx_UrlBase"
                                        ValidationExpression="(\w+/)+" ErrorMessage="<%$Resources:Content,DEV1028%>"
                                        Display="None"></asp:RegularExpressionValidator>
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    *
                            <asp:Label ID="Lbl_Port" runat="server" Text="<%$Resources:Content,DEV1041%>" EnableViewState="false"></asp:Label>:
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_Port" runat="server" MaxLength="50"></asp:TextBox>
                                        </div>
                                    </div>
                                    <asp:RequiredFieldValidator ID="RFV_Port" runat="server" Display="None" SetFocusOnError="true"
                                        ControlToValidate="TxBx_Port"></asp:RequiredFieldValidator>
                                    <asp:RegularExpressionValidator ID="REV_Port" runat="server" Display="None" ValidationExpression="([0-9])+"
                                        ErrorMessage="<%$Resources:Content,DEV1020 %>" ControlToValidate="TxBx_Port"></asp:RegularExpressionValidator>
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    *
                            <asp:Label ID="Lbl_UrlBaseDiscoSvc" runat="server" Text="<%$ Resources:Content,SMI0222%>" EnableViewState="false"></asp:Label>:
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <asp:DropDownList ID="DDL_ProtocolDiscoService" runat="server" Width="25%">
                                        <asp:ListItem Text="http://" Value="http://" Selected="True">
                                        </asp:ListItem>
                                        <asp:ListItem Text="https://" Value="https://"></asp:ListItem>
                                    </asp:DropDownList>

                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_UrlbaseDiscoSvc" runat="server" Width="59%" Text="XRMServices/2011/Discovery.svc"
                                                ReadOnly="true"></asp:TextBox>
                                        </div>
                                    </div>
                                    <asp:RequiredFieldValidator ID="RFV_TxBx_UrlbaseDiscoSvc" runat="server" Display="None"
                                        SetFocusOnError="true" ControlToValidate="TxBx_UrlbaseDiscoSvc"></asp:RequiredFieldValidator>
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    *
                            <asp:Label ID="Lbl_DiscoSvcPort" runat="server" Text="<%$ Resources:Content,SMI0223%>" EnableViewState="false"></asp:Label>:
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_PortDiscoSvc" runat="server" MaxLength="50" Text="<%$ Resources:Content,SMI0229%>"></asp:TextBox>
                                        </div>
                                    </div>
                                    <asp:RequiredFieldValidator ID="RFV_TxBx_PortDiscoSvc" runat="server" Display="None"
                                        SetFocusOnError="true" ControlToValidate="TxBx_PortDiscoSvc"></asp:RequiredFieldValidator>
                                    <asp:RegularExpressionValidator ID="REV_TxBx_PortDiscoSvc" runat="server" Display="None"
                                        ValidationExpression="([0-9])+" ErrorMessage="<%$Resources:Content,DEV1020 %>"
                                        ControlToValidate="TxBx_PortDiscoSvc"></asp:RegularExpressionValidator>
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    *
                            <asp:Label ID="Lbl_SQlServerName" runat="server" Text="<%$Resources:Content,DEV1017%>" EnableViewState="false"></asp:Label>:
                                
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_SQlServerName" runat="server"></asp:TextBox>
                                        </div>
                                    </div>
                                    <asp:RequiredFieldValidator ID="RFV_SQlServerName" runat="server" Display="None"
                                        SetFocusOnError="true" ControlToValidate="TxBx_SQlServerName"></asp:RequiredFieldValidator>
                                    <asp:RegularExpressionValidator ID="REV_SQLServerName" runat="server" ControlToValidate="TxBx_SQlServerName"
                                        ValidationExpression="^([a-z|A-Z|0-9|\-|_|.|\\|\$])+$" ErrorMessage="<%$Resources:Content,DEV1024%>"
                                        Display="None" SetFocusOnError="true"></asp:RegularExpressionValidator>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <asp:Literal ID="Ltrl_SQlServerName" runat="server" Text="<%$Resources:Content,DEV1021%>"
                                        EnableViewState="false"></asp:Literal>
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    *
                            <asp:Label ID="Lbl_SQlReportServer" runat="server" Text="<%$Resources:Content,DEV1018 %>" EnableViewState="false"></asp:Label>:
                               
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_SQlReportServer" runat="server"></asp:TextBox>
                                        </div>
                                    </div>
                                    <asp:RequiredFieldValidator ID="RFV_SQlReportServer" runat="server" Display="None"
                                        SetFocusOnError="true" ControlToValidate="TxBx_SQlReportServer"></asp:RequiredFieldValidator>
                                    <asp:RegularExpressionValidator ID="REV_ReportServer" runat="server" Display="None"
                                        SetFocusOnError="true" ControlToValidate="TxBx_SQLReportServer" ValidationExpression="http(s?)://([a-z|A-Z|0-9|:|\-|_|.|/])+"
                                        ErrorMessage="<%$Resources:Content,L0089%>"></asp:RegularExpressionValidator>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <asp:Literal ID="Literal2" runat="server" Text="<%$Resources:Content,DEV1022%>" EnableViewState="false"></asp:Literal>
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <asp:Label ID="Lbl_ADFSFQDN" runat="server" Text="<%$ Resources:Content,SMI0224%>"
                                        EnableViewState="false"></asp:Label>:
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_ADFSFQDN" runat="server"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <asp:Label ID="Lbl_ADFSRelyingParty" runat="server" Text="<%$ Resources:Content,SMI0225%>"
                                        EnableViewState="false"></asp:Label>:
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_RelyingPartyDisplayName" runat="server"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <asp:Label ID="lbl_IsActive" runat="server" Text="<%$Resources:Content,GN000195 %>"
                                        EnableViewState="false"></asp:Label>:
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <asp:CheckBox ID="CB_SGMemberEnabled" Text=" " runat="server" Checked="true" />
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <asp:Label ID="Lbl_AddHostEntry" runat="server" Text="<%$ Resources:Content,USM0111%>" EnableViewState="false"></asp:Label>:
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <asp:CheckBox ID="CB_HostEntry" Text=" " runat="server" Checked="false" />
                                </div>
                            </div>

                            <div class="row" id="Tr_ManageDns" runat="server">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <asp:Label ID="Lbl_ManageDns" runat="server" Text="<%$Resources:Content,String399%>"
                                        EnableViewState="false"></asp:Label>:
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <asp:CheckBox ID="CB_ManageDns" Text=" " runat="server" Checked="false" />
                                </div>
                            </div>

                            <div class="row" id="TR_DnsServers" style="display: none" runat="server">
                                <div class="col-xs-12">
                                    <div class="card">
                                        <div class="header">
                                            <h3>
                                                <asp:Literal ID="Literal9" runat="server" Text='<%$ Resources:Content,String399 %>' EnableViewState="false"></asp:Literal>
                                            </h3>
                                        </div>
                                        <div class="body">

                                            <div class="row">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <asp:Label ID="Lbl_DnsServer" runat="server" Text="<%$Resources:Content,String400%>"
                                                        EnableViewState="false"></asp:Label>:
                                                </div>
                                                <div class="col-sm-4 col-xs-12">
                                                    <asp:DropDownList ID="ddl_DnsServer" runat="server">
                                                    </asp:DropDownList>
                                                </div>
                                            </div>

                                            <div class="row">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    *
                                        <asp:Literal ID="Literal13" runat="server" Text="<%$Resources:Content,L0088%>" EnableViewState="false"></asp:Literal>:

                                                </div>
                                                <div class="col-sm-4 col-xs-12">
                                                    <div class="form-group">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_PublicIP" runat="server" MaxLength="50"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TxBx_PublicIP"
                                                        ValidationExpression="<%$ Resources:Content,ValidateIP%>"
                                                        SetFocusOnError='true' ErrorMessage="<%$Resources:Content,String176%>" Display="None"></asp:RegularExpressionValidator>
                                                </div>
                                            </div>

                                        </div>
                                    </div>
                                </div>
                            </div>

                            <div class="row  clearfix">
                                <div class="col-xs-12">
                                    <asp:Button ID="btn_save" runat="server" Text="<%$Resources:Content,GN0000281%>" class="btn btn-primary waves-effect btnAction" />
                                    <asp:Button ID="Btn_Cancel" runat="server" Text="<%$Resources:Content,GN0000572 %>"
                                        class="btn btn-primary waves-effect" CausesValidation="false" PostBackUrl="~/PCC/CRM/ServerGroups.aspx" />
                                </div>
                            </div>

                        </div>
                    </div>
                </div>

                <asp:ValidationSummary ID="VS_ServerGroup_2" runat="server" ShowMessageBox="true" ShowSummary="false" HeaderText="<%$Resources:Content,EM000001 %>" />

            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
