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

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

<asp:Content ID="Content5" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div class="col-xs-12">
        <asp:Panel ID="Pnl_add" runat="server" DefaultButton="Btn_Save">
            <div class="card">
                <div class="header">
                    <h3>
                        <asp:Literal
                            ID="Literal4" runat="server" Text='<%$ Resources:Content,DEV1062 %>' EnableViewState="false">
                        </asp:Literal></h3>
                </div>
                <div class="body">

                    <div class="row">
                        <div class="col-sm-4 col-xs-12 row-label">
                            <asp:Literal ID="Literal39" runat="server" Text='<%$ Resources:Content,GN000195 %>'
                                EnableViewState="false"></asp:Literal>:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <asp:CheckBox ID="ChBx_IsEnabled" Text="&nbsp;" runat="server" Checked="true" data-label="Enabled" />
                            </div>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-sm-4 col-xs-12 row-label">
                            *<asp:Literal ID="Literal_PoolName" runat="server" Text="<%$ Resources:Content,GN000182%> "></asp:Literal>:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_PoolName" MaxLength="200" runat="server" data-label="Pool Name"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RFV_PoolName" runat="server" ControlToValidate="TxBx_PoolName"
                                        Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                    <EM:FilteredTextBoxExtender FilterType="Numbers, UppercaseLetters, LowercaseLetters, Custom" ValidChars=".-" ID="FilteredTextBoxExtender2"
                                        runat="server" TargetControlID="TxBx_PoolName" />
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="row" id="Tr_ApplicationServer" runat="server">
                        <div class="col-sm-4 col-xs-12 row-label">
                            <asp:Literal ID="Literal10" runat="server" Text="<%$ Resources:Content,Lync224%>"
                                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_ASFQDN" MaxLength="200" runat="server" data-label="Application Server FQDN"></asp:TextBox>
                                    <EM:FilteredTextBoxExtender FilterType="Numbers, UppercaseLetters, LowercaseLetters, Custom" ValidChars=".-" ID="FilteredTextBoxExtender3"
                                        runat="server" TargetControlID="TxBx_ASFQDN" />
                                </div>
                            </div>
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <button type="button" class="btn btn-info btn-block btn-xs waves-effect" style="width: 30px;" data-trigger="focus" data-container="body" data-toggle="popover"
                                data-placement="left" title="Application Server FQDN" data-content="It would be used for Response Groups. If not provided, Response Groups tab will be hidden.">
                                <i class="material-icons">info</i>
                            </button>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-4 col-xs-12 row-label">
                            *<asp:Literal ID="Literal8" runat="server" Text="<%$ Resources:Content,Lync010%>"
                                EnableViewState="false"></asp:Literal>:
                        </div>
                        <div class="col-sm-4 col-xs-12">
                            <div class="form-group">
                                <asp:TextBox ID="TxBx_IPAddresses" TextMode="MultiLine" Rows="3" Width="100%" runat="server" MaxLength="900" data-label="Front End Server(s) IPs"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RFV_IPAddresses" runat="server" ControlToValidate="TxBx_IPAddresses"
                                    Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                <EM:FilteredTextBoxExtender FilterType="Custom" ValidChars="0123456789.," ID="FilteredTextBoxExtender1"
                                    runat="server" TargetControlID="TxBx_IPAddresses" />
                            </div>
                        </div>
                    </div>

                    <div class="row" id="Div_Chat" runat="server">
                        <div class="col-sm-4 col-xs-12 row-label">
                            <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content,Lync015%>"
                                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_ChatServerFQDN" Text="" runat="server" data-label="Chat Server FQDN"></asp:TextBox>
                                    <EM:FilteredTextBoxExtender FilterType="Numbers, UppercaseLetters, LowercaseLetters, Custom" ValidChars=".-" ID="FilteredTextBoxExtender4"
                                        runat="server" TargetControlID="TxBx_ChatServerFQDN" />
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-sm-4 col-xs-12 row-label">
                            <asp:Literal ID="Literal9" runat="server" Text="<%$ Resources:Content,Lync038%>"
                                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_EdgeServiceFQDN" Text="" runat="server" data-label="Access Edge Service FQDN"></asp:TextBox>
                                    <EM:FilteredTextBoxExtender FilterType="Numbers, UppercaseLetters, LowercaseLetters, Custom" ValidChars=".-" ID="FilteredTextBoxExtender5"
                                        runat="server" TargetControlID="TxBx_EdgeServiceFQDN" />
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-xs-12 row-label">
                            <asp:CheckBox ID="Cb_SyncConferenceNumbers" runat="server" AutoPostBack="true" Text='<%$ Resources:Content, SyncDialinConferenceAccess %>' data-label="Sync Dialin Conference Numbers" />
                        </div>
                    </div>

                    <div class="row" id="Tr_AccessNumbers" runat="server">
                        <div class="col-xs-12">
                            <asp:GridView ID="GV_DialinAccessNumbers" CssClass="tblListing"
                                EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False">
                                <AlternatingRowStyle CssClass="altRow" />
                                <Columns>
                                    <asp:TemplateField HeaderText="Display Number">
                                        <ItemTemplate>
                                            <asp:Label ID="Lbl_DisplayNumber" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.DisplayNumber")%>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Display Name">
                                        <ItemTemplate>
                                            <asp:Label ID="Lbl_DisplayName" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.DisplayName")%>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content,SIPURI%>">
                                        <ItemTemplate>
                                            <asp:Label ID="Lbl_PrimaryUri" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.PrimaryURI")%>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content,CountryCode%>">
                                        <ItemTemplate>
                                            <asp:Label ID="Lbl_CountryCode" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.CountryCode")%>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content,String1027%>">
                                        <ItemTemplate>
                                            <asp:Label ID="Lbl_Number" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Number")%>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content,PrimaryLanguage%>">
                                        <ItemTemplate>
                                            <asp:Label ID="Lbl_PrimaryLanguage" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.PrimaryLanguage")%>'></asp:Label>
                                            <asp:HiddenField ID="Hf_SecondaryLanguages" runat="server" Value='<%# DataBinder.Eval(Container, "DataItem.SecondaryLanguages")%>'></asp:HiddenField>
                                            <asp:HiddenField ID="Hf_LineUri" runat="server" Value='<%# DataBinder.Eval(Container, "DataItem.CountryCode") + DataBinder.Eval(Container, "DataItem.Number")%>'></asp:HiddenField>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Region">
                                        <ItemTemplate>
                                            <asp:Label ID="Lbl_Region" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Regions")%>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                            </asp:GridView>
                        </div>

                    </div>

                    <%-- following table is always invisible so not included in audit log --%>
                    <table id="Tbl_WebsiteSettings" visible="false" runat="server">
                        <tr>
                            <td colspan="2">
                                <table class="tblNewListing">
                                    <tr>
                                        <td class="Heading" colspan="2">&nbsp;<asp:Literal ID="Literal6" runat="server" Text='<%$ Resources:Content,Lync002 %>'
                                            EnableViewState="false"></asp:Literal>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="shade" width="30%">*
                                <asp:Label ID="Label2" runat="server" Text='<%$ Resources:Content,Lync008 %>' EnableViewState="false"></asp:Label>:
                                        </td>
                                        <td>
                                            <asp:TextBox Width="225px" ID="TxBx_InternalWebsiteId" MaxLength="50" Text="<%$ Resources:Content,SMI0244%>"
                                                runat="server"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TxBx_InternalWebsiteId"
                                                Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="shade" width="30%">*
                                <asp:Label ID="Label3" runat="server" Text='<%$ Resources:Content,Lync004 %>' EnableViewState="false"></asp:Label>:
                                        </td>
                                        <td>
                                            <asp:TextBox  ID="TxBx_InternalHTTPIP" runat="server"></asp:TextBox>
                                            <asp:CheckBox ID="CB_InternalHTTPIP" Checked="false" AutoPostBack="true" runat="server"
                                                Text="<%$ Resources:Content,Lync009 %>" />
                                            &nbsp;
                                <asp:Label ID="Label4" runat="server" Text='<%$ Resources:Content,Lync005 %>' EnableViewState="false"></asp:Label>:
                                <asp:TextBox Width="225px" ID="TxBx_InternalHTTPPort" MaxLength="5" runat="server"
                                    Text="<%$ Resources:Content,GN00001222%>"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TxBx_InternalHTTPIP"
                                                Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="TxBx_InternalHTTPIP"
                                                Display="None" SetFocusOnError="true" ErrorMessage="<%$ Resources:Content,String176 %>"
                                                ValidationExpression="<%$ Resources:Content,ValidateIP%>" />
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TxBx_InternalHTTPPort"
                                                Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="shade" width="30%">*
                                <asp:Label ID="Label5" runat="server" Text='<%$ Resources:Content,Lync006 %>' EnableViewState="false"></asp:Label>:
                                        </td>
                                        <td>
                                            <asp:TextBox  ID="TxBx_InternalHTTPSIP" runat="server"></asp:TextBox>
                                            <asp:CheckBox ID="CB_InternalHTTPSIP" Checked="false" AutoPostBack="true" runat="server"
                                                Text="<%$ Resources:Content,Lync009 %>" />
                                            &nbsp;
                                <asp:Label ID="Label6" runat="server" Text='<%$ Resources:Content,Lync007 %>' EnableViewState="false"></asp:Label>:
                                <asp:TextBox Width="225px" ID="TxBx_InternalHTTPSPort" MaxLength="5" runat="server"
                                    Text="<%$ Resources:Content,SMI0245%>"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator245" runat="server" ControlToValidate="TxBx_InternalHTTPSIP"
                                                Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="TxBx_InternalHTTPSIP"
                                                Display="None" SetFocusOnError="true" ErrorMessage="<%$ Resources:Content,String176 %>"
                                                ValidationExpression="<%$ Resources:Content,ValidateIP%>" />
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="TxBx_InternalHTTPSPort"
                                                Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                </table>
                                <table class="tblNewListing">
                                    <tr>
                                        <td class="Heading" colspan="2">&nbsp;<asp:Literal ID="Literal7" runat="server" Text='<%$ Resources:Content,Lync003 %>'
                                            EnableViewState="false"></asp:Literal>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="shade" width="30%">*
                                <asp:Label ID="Label7" runat="server" Text='<%$ Resources:Content,Lync008 %>' EnableViewState="false"></asp:Label>:
                                        </td>
                                        <td>
                                            <asp:TextBox Width="225px" ID="TxBx_ExternalWebsiteId" MaxLength="50" Text="<%$ Resources:Content,SMI0246%>"
                                                runat="server"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="TxBx_ExternalWebsiteId"
                                                Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="shade" width="30%">*
                                <asp:Label ID="Label8" runat="server" Text='<%$ Resources:Content,Lync004 %>' EnableViewState="false"></asp:Label>:
                                        </td>
                                        <td>
                                            <asp:TextBox  ID="TxBx_ExternalHTTPIP" runat="server"></asp:TextBox>
                                            <asp:CheckBox ID="CB_ExternalHTTPIP" Checked="false" AutoPostBack="true" runat="server"
                                                Text="<%$ Resources:Content,Lync009 %>" />
                                            &nbsp;
                                <asp:Label ID="Label9" runat="server" Text='<%$ Resources:Content,Lync005 %>' EnableViewState="false"></asp:Label>:
                                <asp:TextBox Width="225px" ID="TxBx_ExternalHTTPPort" MaxLength="5" runat="server"
                                    Text="<%$ Resources:Content,SMI0247%>"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="TxBx_ExternalHTTPIP"
                                                Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TxBx_ExternalHTTPIP"
                                                Display="None" SetFocusOnError="true" ErrorMessage="<%$ Resources:Content,String176 %>"
                                                ValidationExpression="<%$ Resources:Content,ValidateIP%>" />
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="TxBx_ExternalHTTPPort"
                                                Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="shade" width="30%">*
                                <asp:Label ID="Label10" runat="server" Text='<%$ Resources:Content,Lync006 %>' EnableViewState="false"></asp:Label>:
                                        </td>
                                        <td>
                                            <asp:TextBox  ID="TxBx_ExternalHTTPSIP" runat="server"></asp:TextBox>
                                            <asp:CheckBox ID="CB_ExternalHTTPSIP" Checked="false" AutoPostBack="true" runat="server"
                                                Text="<%$ Resources:Content,Lync009 %>" />
                                            &nbsp;
                                <asp:Label ID="Label11" runat="server" Text='<%$ Resources:Content,Lync007 %>' EnableViewState="false"></asp:Label>:
                                <asp:TextBox Width="225px" ID="TxBx_ExternalHTTPSPort" MaxLength="5" runat="server"
                                    Text="<%$ Resources:Content,SMI0248%>"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="TxBx_ExternalHTTPSIP"
                                                Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="TxBx_ExternalHTTPSIP"
                                                Display="None" SetFocusOnError="true" ErrorMessage="<%$ Resources:Content,String176 %>"
                                                ValidationExpression="<%$ Resources:Content,ValidateIP%>" />
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ControlToValidate="TxBx_ExternalHTTPSPort"
                                                Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>

                    <div id="Tr_ManageDns" runat="server">
                        <div class="row">
                            <div class="col-sm-4 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">
                                <div class="form-group">
                                    <asp:CheckBox ID="CB_ManageDns" runat="server" Text="&nbsp;" AutoPostBack="true" Checked="false" data-label="Manage DNS" />
                                </div>
                            </div>
                        </div>
                    </div>

                    <div id="Tbl_ManageDNS" visible="false" runat="server">
                        <div class="row">
                            <div class="col-sm-4 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">
                                <div class="form-group">
                                    <asp:DropDownList ID="ddl_DnsServer" runat="server" data-label="DNS Server">
                                    </asp:DropDownList>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-4 col-xs-12 row-label">
                                <asp:Literal ID="Literal13" runat="server" Text="<%$ Resources:Content, SPT002165%>"
                                    EnableViewState="false" />:
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <asp:DropDownList ID="DDL_ADNSTemplate" runat="server" data-label="DNS Template">
                                    </asp:DropDownList>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="card">
                        <div class="header">
                            <h3>
                                <asp:Literal ID="Literal5" runat="server" Text='<%$ Resources:Content,Lync323 %>'
                                    EnableViewState="false"></asp:Literal></h3>
                        </div>
                        <div class="body">
                            <div class="row">
                                <div class="col-sm-4 col-xs-12 row-label">
                                    *<asp:Literal ID="Literal35" runat="server" Text='<%$ Resources:Content,Lync324 %>' 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_MaxLoad" runat="server" Text="<%$ Resources:Content,SMI0202%>" data-label="Maximum Load"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator24" runat="server" ControlToValidate="TxBx_MaxLoad"
                                                Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                            <asp:CompareValidator ID="CompareValidator2" runat="server" ErrorMessage="<%$ Resources:Content,L00159 %>"
                                                Display="None" ControlToValidate="TxBx_MaxLoad" Type="Integer" SetFocusOnError="true"
                                                Operator="GreaterThanEqual" ValueToCompare="0"></asp:CompareValidator>
                                        </div>
                                    </div>
                                </div>
                            </div>



                        </div>
                    </div>
                    <div class="col-xs-12"></div>
                    <div class="col-xs-12"></div>

                    <div class="row">
                        <div class="col-xs-12">
                            <asp:Button ID="Btn_Save" CssClass="btn btn-primary waves-effect btnAction" runat="server" OnClick="Btn_Save_Click"
                                Text='<%$ Resources:Content,GN0000281 %>' />
                            <asp:Button ID="Btn_Cancel" CausesValidation="false" runat="server" Text='<%$ Resources:Content,GN0000572 %>'
                                CssClass="btn btn-primary waves-effect" />
                            <asp:ValidationSummary ID="ValidationSum_1" runat="server" HeaderText='<%$ Resources:Content,EM000001 %>'
                                ShowMessageBox="True" ShowSummary="False" />

                        </div>
                    </div>

                </div>

            </div>
        </asp:Panel>
    </div>
    <script lang="javascript">
        AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender1.ClientID%>');
        AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender2.ClientID%>');
        AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender3.ClientID%>');
        AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender4.ClientID%>');
        AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender5.ClientID%>');
    </script>
</asp:Content>
