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

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

<asp:Content ID="Content5" ContentPlaceHolderID="CPH_Content" runat="Server">


    <script type="text/javascript">
        var defaultText = "Enter Base URL (e.g. Skype4B.ProviderDomain.com)";
        function WaterMark(txt, evt) {
            if (txt.value.length == 0 && evt.type == "blur") {
                txt.style.color = "gray";
                txt.value = defaultText;
            }
            if (txt.value == defaultText && evt.type == "focus") {
                txt.style.color = "black";
                txt.value = "";
            }
        }
    </script>
    <ajax:UpdatePanel ID="UP_LyncServerGroup" runat="server">
        <ContentTemplate>
            <asp:Panel ID="Pnl_add" runat="server" DefaultButton="Btn_Save">
                <div class="col-xs-12">
                    <div class="card">
                        <div class="header">
                            <h3>
                                <asp:Label ID="Lb_EditTitle" runat="server" Text='<%$ Resources:Content,GN0001195 %>'></asp:Label></h3>
                        </div>
                        <div class="body">

                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    *
                    <asp:Literal ID="Literal_ServerGroupName" runat="server" Text='<%$ Resources:Content,GN0000971 %>'
                        EnableViewState="false" />:
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_Name" runat="server" MaxLength="350" data-label="Server Group Name"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator_Name" runat="server" ControlToValidate="TxBx_Name"
                                                Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <asp:Literal ID="Literal_Provider" runat="server" Text='<%$ Resources:Content,DGN1110096 %>'
                                        EnableViewState="false" />:
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <asp:DropDownList ID="DDL_Provider" runat="server" Enabled="False" data-label="Provider">
                                        </asp:DropDownList>
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <asp:Literal ID="Literal_ActiveDirectoryDomain" runat="server" Text='<%$ Resources:Content,M0105%>'
                                        EnableViewState="false" />:
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <asp:DropDownList ID="DDL_ADDomains" runat="server" data-label="Active Directory Domain">
                                        </asp:DropDownList>
                                    </div>
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    *
                    <asp:Literal ID="Literal_DefaultResellerLDAPURL" runat="server" Text="<%$ Resources:Content,DGN1110437%> "
                        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_DefaultResellerLDAPURL" runat="server" data-label="LDAP URL"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator_DefaultResellerLDAPURL" runat="server"
                                                ControlToValidate="TxBx_DefaultResellerLDAPURL" Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator_DefaultResellerLDAPURL"
                                                runat="server" Display="None" ControlToValidate="TxBx_DefaultResellerLDAPURL"
                                                SetFocusOnError="true" Enabled="false" ValidationExpression="<%$Resources:Content,LDAPValidationExpression%>"
                                                ErrorMessage="<%$Resources:Content,DEV1054%>"></asp:RegularExpressionValidator>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row" id="Div_CDR" runat="server">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content,Lync294%> "></asp:Literal>:
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_CDRConnectionString" runat="server" data-label="CDR Connection String"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <asp:Button ID="Btn_TestConnection" Text="<%$ Resources:Content,TestConnection %>" runat="server" CssClass="btn btn-primary waves-effect" CausesValidation="false" />
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <asp:Literal ID="Literal134" runat="server" Text="<%$ Resources:Content,Lync179%>"
                                        EnableViewState="false">
                                    </asp:Literal>:
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        
                                        <asp:DropDownList ID="DDL_TimeZone" runat="server" data-label="Time Zone">
                                                        </asp:DropDownList>
                                    </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="Time zone" data-content="Used to display the call records in correct timings.">
                                        <i class="material-icons">info</i>
                                    </button>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <asp:Literal ID="Literal19" runat="server" Text="<%$ Resources:Content,SGDefaultDomain%>"></asp:Literal>:
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_DefaultDomain" runat="server" data-label="Default Domain"></asp:TextBox>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <asp:Literal ID="Literal20" runat="server" Text="<%$ Resources:Content,O365CSPDomainNamOptionNote%>"></asp:Literal>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    *
                    <asp:Literal ID="Literal_MeetURL" runat="server" Text="<%$ Resources:Content,GN00020%> "></asp:Literal>:
                                </div>

                                <div class="col-sm-9 col-xs-12">
                                    <div class="row">
                                        <div class="col-sm-2 col-xs-12">
                                            <div class="form-group">
                                                <asp:RadioButtonList ID="RBL_MeetURLOption" runat="server" AutoPostBack="true" RepeatLayout="Flow" CellPadding="2" CellSpacing="2" data-label="Meet URL Option">
                                                    <asp:ListItem Value="1" Selected="True">Option 1</asp:ListItem>
                                                    <asp:ListItem Value="2">Option 2</asp:ListItem>
                                                    <asp:ListItem Value="3">Option 3</asp:ListItem>
                                                </asp:RadioButtonList>
                                            </div>
                                        </div>
                                        <div class="col-sm-10 col-xs-12">
                                            <b>Example</b>:
                                            <div id="div_Option" runat="server">
                                                https://meet.domain1.com,
                                                <br />
                                                https://meet.domain2.com, and so on (one for each SIP domain in your organization)
                                                <font color="Green">For more details please check: <a href="http://technet.microsoft.com/en-us/library/gg425874.aspx" target="_blank">http://technet.microsoft.com/en-us/library/gg425874.aspx</a></font>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-xs-7">
                                            <div class="form-group">
                                                <div class="form-line" id="Div_Option3" runat="server" style="display: none;">
                                                    <asp:TextBox ID="TxBx_MeetURL" Text="<%$ Resources:Content,SMI0249%>" runat="server" Visible="false"
                                                        ForeColor="Gray" data-label="Meet URL"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RFV_MeetURL" Display="None" runat="server" Text="<%$ Resources:Content,SMI0250%>" ControlToValidate="TxBx_MeetURL" Enabled="false"></asp:RequiredFieldValidator>
                                                    <asp:RegularExpressionValidator ID="REV_MeetURL" runat="server" Display="None" ControlToValidate="TxBx_MeetURL"
                                                        SetFocusOnError="true" ValidationExpression="^[a-zA-Z0-9\-\.]+\.([a-zA-Z])+$"
                                                        ErrorMessage="Invalid Base URL" Enabled="false"></asp:RegularExpressionValidator>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <asp:Literal ID="Literal_FillStyle" runat="server" Text='<%$ Resources:Content,GN0000973 %>'
                                        EnableViewState="false" />:
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <asp:ListBox ID="LB_FillStyle" runat="server" data-label="Fill Style">
                                        <asp:ListItem Text='<%$ Resources:Content,GN0000974 %>' Value="1"></asp:ListItem>
                                        <asp:ListItem Text='<%$ Resources:Content,GN0000975 %>' Value="2"></asp:ListItem>
                                    </asp:ListBox>
                                </div>
                            </div>
                            <div class="row" id="TR_AutoProvisioning" runat="server">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <asp:Literal ID="Literal_AutomaticProvision" runat="server" Text='<%$ Resources:Content,GN0000978 %>'
                                        EnableViewState="false" />:
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <asp:CheckBox ID="CB_AutomaticProvision" Text="&nbsp;" runat="server" data-label="Automatic Provisioning" />
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <asp:Literal ID="Literal_IsEnabled" runat="server" Text='<%$ Resources:Content,GN000195 %>'
                                        EnableViewState="false" />:
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <asp:CheckBox ID="CB_IsEnabled" Text="&nbsp;" runat="server" data-label="Enabled" />
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <asp:Literal ID="Literal18" runat="server" Text='<%$ Resources:Content,String0001 %>'
                                        EnableViewState="false" />:
                                </div>
                                <div class="col-sm-9 col-xs-12">
                                    <asp:CheckBox ID="CB_OverRideCredentials" Text="&nbsp;" AutoPostBack="true" runat="server" Checked="False" data-label="Override Domain Credentials" />
                                    <asp:Literal ID="Literal1800" runat="server" Text='<%$ Resources:Content,String0002 %>'
                                        EnableViewState="false" />
                                </div>
                            </div>

                            <div id="Tbl_Credentials" runat="server" visible="false">
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        *<asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content,DGN1110434%>"
                                            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_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 admin 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-3 col-xs-12 row-label">
                                        *<asp:Literal ID="Literal16" runat="server" Text="<%$ Resources:Content,DGN1110435 %>"
                                            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_DomAdminpassword" TextMode="Password" runat="server" MaxLength="100" data-label="Domain Admin Password" data-secure="1"></asp:TextBox>
                                            </div>
                                            <%--<br />
                                            <asp:CheckBox ID="CB_Show" runat="server" Text="<%$ Resources:Content,FAM0049 %>" />--%>
                                        </div>
                                    </div>
                                    <div class="col-sm-5 col-xs-12">
                                        <asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Content,GN00001530%>"
                                            EnableViewState="false"></asp:Literal>
                                    </div>
                                </div>
                                <%--<div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        *<asp:Literal ID="Literal17" runat="server" Text="<%$ Resources:Content,GN0001196 %>"
                                            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_CPass" TextMode="Password" runat="server" MaxLength="100"></asp:TextBox>
                                                <asp:CompareValidator ID="CompareValidator3" runat="server" ControlToCompare="TxBx_DomAdminpassword"
                                                    ErrorMessage="<%$ Resources:Content,DGN1110005 %>" ControlToValidate="TxBx_CPass"
                                                    Display="None"></asp:CompareValidator>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="TxBx_CPass"
                                    Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                            </div>
                                        </div>
                                    </div>
                                </div>--%>
                            </div>
                            <div class="row">
                                <div class="col-xs-12">
                                    <asp:Button ID="Btn_Save" CssClass="btn btn-primary waves-effect btnAction" runat="server" 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 HeaderText='<%$ Resources:Content,EM000001 %>' ID="ValidationSummary1"
                                        runat="server" ShowMessageBox="True" ShowSummary="False" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </asp:Panel>
        </ContentTemplate>
    </ajax:UpdatePanel>
</asp:Content>
