<%@ control language="VB" autoeventwireup="false" inherits="RCC_OCS_CC_UCLyncUser, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Assembly="MachSol.MachPanel.Utility" Namespace="MachSol.MachPanel.Utility" TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>

<%@ Register Src="~/RCC/OCS/CC/GroupOperations.ascx" TagName="GroupOperation" TagPrefix="EM" %>
<%@ Register Src="~/RCC/CC/UserOptionalFields.ascx" TagName="OptionalFields" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Exchange/CC/AddUM.ascx" TagName="AddUM" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Exchange/CC/AccountGroupActions.ascx" TagName="AccountGroupActions" TagPrefix="EM" %>

<div id="Pnl_UsersListing" runat="server">

    <div class="row Div_OpsRow" id="Div_OpsRow" runat="server">
        <div class="col-xs-12">
            <div class="card">
                <div class="header">
                    <h3>
                        <%= Resources.Content.GN00001320%>                                                                                                                                 
                    </h3>
                </div>
                <div class="body">
                    <div class="clearfix">
                        <asp:Button ID="Btn_AddOCSUser" runat="server" class="btn btn-primary waves-effect btnAction" OnClick="Btn_AddOCSUser_Click"
                            Text='<%$ Resources:Content,DEV1101%>' />
                        <asp:Button ID="Btn_AddLinkedUser" runat="server" class="btn btn-primary waves-effect btnAction" OnClick="Btn_AddLinkedUser_Click"
                            Text='<%$ Resources:Content,AddLinkedUser%>' />
                        <asp:Button ID="Btn_AddBulkUser" runat="server" class="btn btn-primary waves-effect btnAction" Text='<%$ Resources:Content,Str00089%>' />
                        <asp:Button ID="Btn_GroupActions" runat="server" Text="<%$ Resources:Content,String7772%>"
                            class="btn btn-primary waves-effect btnAction" />
                        <asp:Button ID="Btn_FixPermissions" runat="server" Text="<%$ Resources:Content,String174%>"
                            class="btn btn-primary waves-effect btnAction" />
                        <asp:Button ID="Btn_LinkedADSettings" runat="server" Text="<%$ Resources:Content,LinkedADSettings%>"
                            CssClass="btn btn-primary waves-effect btnAction" />
                    </div>
                </div>
            </div>
        </div>
    </div>

    <asp:Panel ID="Pnl_Btn_Filter" runat="server" CssClass="row" DefaultButton="Btn_Filter">
        <div class="clearfix">
            <div class="panel-group search-panel" id="AS_LyncUsers" role="tablist" aria-multiselectable="true">
                <div class="col-xs-12" role="tab" id="SH_LyncUsers">
                    <div class="card">
                        <div class="header" role="button" data-toggle="collapse" data-parent="#AS_LyncUsers" href="#<%= CSB_LyncUsers.ClientID%>" aria-expanded="true" aria-controls="SH_LyncUsers">
                            <h3>
                                <%= Resources.Content.GN0000395%>
                            </h3>
                        </div>
                        <div id="CSB_LyncUsers" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_LyncUsers" aria-expanded="false">
                            <asp:Panel runat="server" DefaultButton="Btn_Filter">
                                <div class="row">
                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                        <div class="input-group">
                                            <asp:DropDownList ID="Ddl_PackageAddonFilter" runat="server">
                                            </asp:DropDownList>
                                        </div>
                                    </div>

                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                        <div class="input-group">
                                            <span class="input-group-addon"><%= Resources.Content.DEV1089%></span>
                                            <div>
                                                <asp:DropDownList ID="Ddl_PhoneFilter" runat="server">
                                                    <asp:ListItem Text="<%$ Resources:Content,SMI693%>" Value="1"></asp:ListItem>
                                                    <asp:ListItem Text="<%$ Resources:Content,SMI694%>" Value="2"></asp:ListItem>
                                                    <asp:ListItem Text="<%$ Resources:Content,SMI695%>" Value="3"></asp:ListItem>
                                                    <asp:ListItem Text="<%$ Resources:Content,SMI696%>" Value="4"></asp:ListItem>
                                                    <asp:ListItem Text="<%$ Resources:Content,GN0000544%>" Value="5"></asp:ListItem>
                                                    <asp:ListItem Text="<%$ Resources:Content,SMI697%>" Value="6"></asp:ListItem>
                                                </asp:DropDownList>
                                            </div>
                                        </div>

                                    </div>

                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                        <div class="input-group">
                                            <div class="form-line">
                                                <asp:TextBox ID="Txt_PhoneNumberFilter" runat="server"></asp:TextBox>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                        <div class="input-group">
                                            <asp:DropDownList ID="Ddl_Country" runat="server"></asp:DropDownList>
                                        </div>
                                    </div>

                                </div>
                                <div class="row">

                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                        <div class="form-group form-float">
                                            <div class="form-line">
                                                <asp:TextBox ID="Txt_DisplayNameFilter" runat="server"></asp:TextBox>
                                                <asp:Label CssClass="form-label" ID="Literal22" runat="server" EnableViewState="false" Text='<%$ Resources:Content,GN00001113 %>'></asp:Label>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                        <div class="form-group form-float">
                                            <div class="form-line">
                                                <asp:TextBox ID="Txt_SIPAddressFilter" runat="server"></asp:TextBox>
                                                <asp:Label CssClass="form-label" ID="Literal21" runat="server" EnableViewState="false" Text='<%$ Resources:Content,Lync133 %>'></asp:Label>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                        <div class="form-group form-float">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_UPN" runat="server" MaxLength="100"></asp:TextBox>
                                                <asp:Label CssClass="form-label" ID="Label17" runat="server" EnableViewState="false" Text="<%$ Resources:Content,String336%>"></asp:Label>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                        <div class="form-group form-float">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_SAM" Width="90%" runat="server" MaxLength="100"></asp:TextBox>
                                                <asp:Label CssClass="form-label" ID="Label19" runat="server" EnableViewState="false" Text="<%$ Resources:Content,strSAMAccountName%>"></asp:Label>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                        <div class="form-group form-float">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_Address" runat="server" MaxLength="200"></asp:TextBox>
                                                <asp:Label CssClass="form-label" ID="Label20" runat="server" EnableViewState="false" Text="<%$ Resources:Content,strAddress%>"></asp:Label>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                        <div class="form-group form-float">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_City" runat="server" MaxLength="70"></asp:TextBox>
                                                <asp:Label CssClass="form-label" ID="Label21" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000880%>"></asp:Label>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                        <div class="form-group form-float">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_State" runat="server" MaxLength="70"></asp:TextBox>
                                                <asp:Label CssClass="form-label" ID="Label22" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DEV1130%>"></asp:Label>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                        <div class="form-group form-float">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_Zip" runat="server" MaxLength="40"></asp:TextBox>
                                                <asp:Label CssClass="form-label" ID="Label23" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001081%>"></asp:Label>
                                            </div>
                                        </div>
                                    </div>



                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                        <div class="form-group form-float">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_JobTitle" runat="server" MaxLength="80"></asp:TextBox>
                                                <asp:Label CssClass="form-label" ID="Label26" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110358%>"></asp:Label>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                        <div class="form-group form-float">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_Company" runat="server" MaxLength="80"></asp:TextBox>
                                                <asp:Label CssClass="form-label" ID="Label27" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001134%>"></asp:Label>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                        <div class="form-group form-float">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_Department" runat="server" MaxLength="80"></asp:TextBox>
                                                <asp:Label CssClass="form-label" ID="Label28" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000374%>"></asp:Label>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                        <div class="form-group form-float">
                                            <div class="form-line">
                                                <asp:TextBox ID="TxBx_Office" runat="server" MaxLength="80"></asp:TextBox>
                                                <asp:Label CssClass="form-label" ID="Label29" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110359%>"></asp:Label>
                                            </div>
                                        </div>
                                    </div>

                                </div>
                                <div class="row">
                                    <div class="col-xs-12">
                                        <asp:Button ID="Btn_Filter" CssClass="btn btn-primary waves-effect" runat="server" Text='<%$ Resources:Content,GN0000391 %>' />&nbsp;
                                        <asp:Button ID="Btn_clear" Visible="false" CssClass="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,String289 %>" />
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </asp:Panel>

    <div class="row">
        <div class="col-xs-12">
            <EM:MPGridView ID="GV_Users" CssClass="table table-bordered table-striped table-hover" AllowSorting="true" AllowPaging="true"
                EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False"
                DataKeyNames='UserId,UserName,ADUserID,ADDomainID' CurrentSortExpression="DisplayName" CurrentSortDirection="Asc">

                <Columns>
                    <asp:TemplateField HeaderText="<%$ Resources:Content,strUser%>" SortExpression="DisplayName" HeaderStyle-CssClass="col-sm-5">
                        <ItemTemplate>
                            <asp:LinkButton ID="LB_Name"  runat="server" CommandName="EditUser" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.UserID") %>' ></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>

                    <asp:TemplateField HeaderText="<%$ Resources:Content,DGN1110431%>" HeaderStyle-CssClass="col-xs-6" ItemStyle-CssClass="col-xs-6">
                        <ItemTemplate>
                            <table class="table small">
                                <tr class="row">
                                    <td class="row-label col-xs-3"><%= Resources.Content.String385%>:</td>
                                    <td class="col-xs-3">
                                        <asp:LinkButton ID="LB_Status" CommandName="Status" runat="server"></asp:LinkButton>
                                    </td>
                                    <td class="row-label col-xs-3"><%= Resources.Content.Lync133%>:</td>
                                    <td class="col-xs-3">
                                        <asp:HiddenField ID="Hdf_UserID" runat="server" Value='<%# DataBinder.Eval(Container, "DataItem.UserID") %>' />
                                        <asp:Literal ID="Ltrl_Username" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.SIPAddress") %>' />
                                    </td>
                                </tr>
                                <tr class="row">
                                    <td class="row-label col-xs-3"><%= Resources.Content.Lync275%>:</td>
                                    <td class="col-xs-3">
                                        <asp:Label ID="Lbl_SPLAType" runat="server" Text='' />
                                    </td>
                                    <td class="row-label col-xs-3"><%= Resources.Content.Dev555%>:</td>
                                    <td class="col-xs-3">
                                        <asp:Label ID="Lbl_PackageAddon" runat="server" Text='' /></td>
                                </tr>
                                <tr class="row">
                                    <td class="row-label col-xs-3"><%= Resources.Content.GN00001496%>:</td>
                                    <td class="col-xs-3">
                                        <asp:Label ID="Lbl_DateCreated" runat="server"></asp:Label>
                                    </td>
                                    <td></td>
                                    <td></td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>

                    <%--<asp:TemplateField HeaderText='<%$ Resources:Content, Lync133 %>' HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3" SortExpression="Username">
                        <ItemTemplate>
                        </ItemTemplate>
                    </asp:TemplateField>--%>
                    <%-- <asp:TemplateField HeaderText='<%$ Resources:Content, Dev555 %>' HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                        <ItemTemplate>
                        </ItemTemplate>
                    </asp:TemplateField>--%>
                    <%--  <asp:TemplateField HeaderText='<%$ Resources:Content, Lync275 %>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                        <ItemTemplate>
                        </ItemTemplate>
                    </asp:TemplateField>--%>
                    <%--<asp:TemplateField HeaderText='<%$ Resources:Content, SPT002215 %>' HeaderStyle-Width="25%">
                                <ItemTemplate>
                                    <asp:Literal ID="Ltrl_PhoneNumber" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Number") %>' />
                                </ItemTemplate>
                            </asp:TemplateField>--%>
                    <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                        <ItemTemplate>
                            <ul class="option-menu">
                                <li class="dropdown">
                                    <a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
                                        <i class="material-icons">menu</i>
                                    </a>
                                    <ul class="dropdown-menu pull-right">
                                        <li>
                                            <asp:LinkButton ID="LB_Edit" CommandName="EditUser" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.UserID") %>'
                                                runat="server" Text="<%$ Resources:Content,GN0000276%>" Visible="false"  />
                                        </li>
                                        <li>
                                            <asp:LinkButton SkinID="linkButtonGo" CssClass="btnAction" ID="LBtn_Enable" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.UserID") %>'
                                                CommandName="Enable" runat="server" Text="<%$ Resources:Content,GN00001024%>" />
                                        </li>
                                        <li>
                                            <asp:LinkButton SkinID="linkButtondisable" CssClass="btnAction" ID="LBtn_Disable" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.UserID") %>'
                                                CommandName="Disable" runat="server" Text="<%$ Resources:Content,GN00001025%>" />
                                        </li>
                                        <li>
                                            <asp:LinkButton ID="LB_Clone" CssClass="btnAction" CommandName="CloneUser" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.UserID") %>'
                                                runat="server" Text="<%$ Resources:Content,DGN1110198%>" />
                                        </li>
                                        <li>
                                            <asp:LinkButton ID="LBtn_Remove" CssClass="btnAction" SkinID="linkButtonRemove" CommandName="Remove" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.UserID") %>'
                                                runat="server" Text="<%$ Resources:Content,GN0000278%>" />
                                            <EM:ConfirmButtonExtender ID="ConfirmButtonExtender_Remove" ConfirmText="<%$ Resources:Content,CBE001%>"
                                                TargetControlID="LBtn_Remove" runat="server">
                                            </EM:ConfirmButtonExtender>
                                        </li>
                                        <li>
                                            <asp:LinkButton ID="Lbtn_RemoveAndDeleteADUser" CssClass="btnAction" runat="server" Text="<%$ Resources:Content,RemoveAndDeleteADUserText%>" CommandName="RemoveAndDeleteADUser" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.UserID") %>' />
                                            <EM:ConfirmButtonExtender ID="CBE_RemoveAndDeleteADUser" ConfirmText='<%$ Resources:Content,RemoveAndDeleteADUserConfirmAlert %>'
                                                TargetControlID="Lbtn_RemoveAndDeleteADUser" runat="server">
                                            </EM:ConfirmButtonExtender>
                                        </li>
                                        <li>
                                            <asp:LinkButton ID="Lbtn_ADUserEnable" CssClass="btnAction" runat="server"></asp:LinkButton>
                                        </li>
                                    </ul>
                                </li>
                            </ul>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <%--PagerTemplate Start--%>
                <PagerTemplate>
                    <EM:Pager ID="Pager" runat="server" />
                </PagerTemplate>
                <%--PagerTemplate End--%>
            </EM:MPGridView>
        </div>
    </div>
</div>

<div id="Pnl_AddUser" runat="server" visible="false">
    <div class="card">
        <div class="header" id="Tr_AdduserHead" runat="server">
            <div class="displayInlineBlock">
                <h2>
                    <asp:Literal ID="Ltl_AddUser" runat="server" Text="<%$ Resources:Content,DEV1101%>" EnableViewState="false" /></h2>
            </div>
            <asp:LinkButton ID="lb_AddGoBack" runat="server" Text="<%$ Resources:Content,DGN1110542%>" CausesValidation="false"
                CssClass="btn btn-primary waves-effect pull-right m-t--4px" />
        </div>
        <div class="body">
            <div class="row">
                <div class="col-sm-3 col-xs-12 row-label">
                    <asp:Literal ID="Literal25" runat="server" Text='<%$ Resources:Content,GN000141%>' />:
                </div>
                <div class="col-sm-4 col-xs-12">
                    <div class="form-group">
                        <asp:DropDownList ID="ddl_PlanPackages" AutoPostBack="true" runat="server">
                        </asp:DropDownList>
                    </div>
                </div>

                <div class="col-sm-4 col-xs-12">
                    <div class="form-group">
                        <button type="button" class="btn btn-info btn-block btn-xs waves-effect" style="width: 30px;" data-trigger="focus" data-html="true" data-container="body" data-toggle="popover"
                            data-placement="left" title="Listed Plan/Addon Format" data-content="<b>['P' for Plan, 'A' for Addon]:</b><br/><b>Format:</b>[Plan/Addon Id] [Plan/Addon Name] [(Used/Total_Users SPLAType)] <br /><b>SPLATypes:</b><br/>SS: Standard SAL, <br/>ES: Enterprise SAL, <br/>PS: Plus SAL, </br>EPS: Enterprise Plus SAL">
                            <i class="material-icons">info</i>
                        </button>
                    </div>
                </div>
            </div>

            <div class="row" id="Tr_AdUsers" runat="server">
                <div class="col-sm-3 col-xs-12 row-label">
                    *<asp:Literal ID="Literal1_ADUsers" runat="server" EnableViewState="false" Text='<%$ Resources:Content,DEV1102%>' />:
                </div>
                <div class="col-sm-4 col-xs-12">
                    <div class="form-group">
                        <asp:DropDownList ID="Ddl_ADUsers" runat="server" AutoPostBack="true">
                        </asp:DropDownList>
                    </div>
                </div>
            </div>

            <div class="row" id="TR_DisplayName" runat="server">
                <div class="col-sm-3 col-xs-12 row-label">
                    *<asp:Literal ID="Ltrl_DisplayName" runat="server" EnableViewState="false" Text='<%$ Resources:Content,DGN1110534%>' />:
                </div>
                <div class="col-sm-4 col-xs-12">
                    <div class="form-group">
                        <div class="form-line">
                            <asp:TextBox ID="TxBx_DisplayName" runat="server" MaxLength="64"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RFV_DisplayName" runat="server" ControlToValidate="TxBx_DisplayName"
                                Display="None" SetFocusOnError="True" ValidationGroup="Users"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row" id="Tr_SignInName" runat="server">
                <div class="col-sm-3 col-xs-12 row-label">
                    *<asp:Literal ID="Ltrl_SignInName" runat="server" EnableViewState="false" Text='<%$ Resources:Content,DEV1103%>' />:
                </div>
                <div class="col-sm-4 col-xs-12">
                    <div class="form-group">
                        <div class="form-line">
                            <asp:TextBox ID="TxBx_SignInName" runat="server" MaxLength="50" onBlur='CopyEmail()'></asp:TextBox>
                            <asp:RequiredFieldValidator ID="Rfv_SiginName" runat="server" ControlToValidate="TxBx_SignInName"
                                Display="None" SetFocusOnError="True" ValidationGroup="Users"></asp:RequiredFieldValidator>
                            <%--<asp:RegularExpressionValidator ID="Rev_SignInName" Display="None" runat="server" ControlToValidate="TxBx_SignInName"
                                ErrorMessage="<%$Resources:Content,L0046 %>" SetFocusOnError="true" ValidationGroup="Users"
                                ValidationExpression="<%$Resources:MPRegex,Alias %>"></asp:RegularExpressionValidator>--%>
                        </div>
                    </div>
                </div>
                <div class="col-sm-4 col-xs-12">
                    <div class="form-group at-the-rate">
                        @<asp:DropDownList ID="Ddl_SIPDomains" runat="server" onChange='CopyEmail()'>
                        </asp:DropDownList>
                    </div>
                </div>

            </div>

            <div class="row" id="Tr_SIPAddress" runat="server">
                <div class="col-sm-3 col-xs-12 row-label">
                    *<asp:Literal ID="Ltr_SIPAddress" runat="server" EnableViewState="false" Text='<%$ Resources:Content,Lync133%>' />:
                </div>
                <div class="col-sm-4 col-xs-12">
                    <div class="form-group">
                        <div class="form-line">
                            <asp:TextBox ID="TxBx_SIPAddress" runat="server" MaxLength="50"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="Rfv_SIPAddress" runat="server" ControlToValidate="TxBx_SIPAddress"
                                Display="None" SetFocusOnError="True" ValidationGroup="Users"></asp:RequiredFieldValidator>
                           <%-- <asp:RegularExpressionValidator Display="None" ID="Rev_SIPAddress" runat="server" ControlToValidate="TxBx_SIPAddress"
                                ErrorMessage="<%$Resources:Content,InvalidSIPAddress %>" SetFocusOnError="true" ValidationGroup="Users"
                                ValidationExpression="<%$Resources:MPRegex,Alias %>"></asp:RegularExpressionValidator>--%>
                        </div>
                    </div>
                </div>
                <div class="col-sm-4 col-xs-12">
                    <div class="form-group at-the-rate">
                        @<asp:DropDownList ID="Ddl_SIPDomains2" runat="server">
                        </asp:DropDownList>
                    </div>
                </div>
            </div>

            <div class="row" id="Tr_Password" runat="server">
                <div class="col-sm-3 col-xs-12 row-label p-t-10">
                    *<asp:Literal ID="Ltrl_Password" runat="server" EnableViewState="false" Text='<%$ Resources:Content,GN0000569%>' />:
                </div>
                <div class="col-sm-4 col-xs-12">
                    <div class="form-group">
                        <div class="form-line">
                            <asp:TextBox ID="TxBx_Password" TextMode="Password" runat="server" MaxLength="50"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="Rfv_Password" runat="server" ControlToValidate="TxBx_Password"
                                Display="None" SetFocusOnError="True" ValidationGroup="Users"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <br />
                    <asp:CheckBox ID="CB_Show" runat="server" Text="<%$ Resources:Content,FAM0049 %>" />
                </div>
                <div class="col-sm-5 col-xs-12">
                    <div class="form-group">
                        <asp:LinkButton ID="lb_Generate" CssClass="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,SMI0195%>" TabIndex="-1"></asp:LinkButton>
                    </div>
                    <div id="Div_PasswordPolicy" runat="server" class="help-text sm"></div>
                </div>
            </div>

            <div class="row" id="Tr_ConfirmPassword" runat="server">
                <div class="col-sm-3 col-xs-12 row-label">
                    *<asp:Literal ID="Ltrl_ConfirmPassword" runat="server" EnableViewState="false" Text='<%$ Resources:Content,GN0001196%>' />:
                </div>
                <div class="col-sm-4 col-xs-12">
                    <div class="form-group">
                        <div class="form-line">
                            <asp:TextBox ID="TxBx_ConfirmPassword" TextMode="Password" runat="server" MaxLength="50"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="Rfv_ConfirmPassword" runat="server" ControlToValidate="TxBx_ConfirmPassword"
                                Display="None" SetFocusOnError="True" ValidationGroup="Users"></asp:RequiredFieldValidator>
                            <asp:CompareValidator ID="CV_ConfirmPassword" runat="server" SetFocusOnError="true"
                                ErrorMessage="Password do not match." ValidationGroup="Users" ControlToCompare="TxBx_Password"
                                ControlToValidate="TxBx_ConfirmPassword" Display="None"></asp:CompareValidator>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row" id="TR_LineURI" runat="server">
                <div class="col-sm-3 col-xs-12 row-label">
                    <asp:Literal ID="Literal26" runat="server" Text='<%$ Resources:Content,DEV1238%>' />:
                </div>
                <div class="col-sm-4 col-xs-12">
                    <div class="form-group">
                        <asp:DropDownList ID="Ddl_LineURIs" runat="server">
                        </asp:DropDownList>
                    </div>
                </div>
                <div class="col-sm-1 col-xs-12" id="TD_Ext" runat="server">
                    <div class="form-group form-float">
                        <div class="form-line">
                            <asp:TextBox ID="TxBx_Ext" runat="server" MaxLength="5"></asp:TextBox>
                            <asp:Label CssClass="form-label" ID="Ltr_Ext" runat="server" Text='<%$ Resources:Content,GN0000220%>'></asp:Label>
                        </div>
                    </div>
                </div>
                <div class="col-sm-3 col-xs-12">
                    <div class="form-group">
                        <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="Line URIs" data-content="All Line URIs may not be visible here due to the DID Specification of current subscription. Please check all Line URIs in Phone Numbers tab.">
                            <i class="material-icons">info</i>
                        </button>
                    </div>
                    <asp:RegularExpressionValidator ID="Rev_Ext" runat="server" Display="Dynamic"
                        Text="<%$ Resources:Content,SMI698%>" ForeColor="Red" ControlToValidate="TxBx_Ext" ValidationGroup="Users"
                        ValidationExpression="^[0-9]+$"></asp:RegularExpressionValidator>
                </div>
            </div>

            <div class="row" id="TR_LineServerURI" runat="server">
                <div class="col-sm-3 col-xs-12 row-label">
                    <asp:Literal ID="Literal27" runat="server" Text='<%$ Resources:Content,DEV1239%>' />:
                </div>
                <div class="col-sm-4 col-xs-12">
                    <div class="form-group">
                        <div class="form-line">
                            <asp:TextBox ID="TxBx_LineServerURI" runat="server" MaxLength="200"></asp:TextBox>
                        </div>
                    </div>
                </div>
                <div class="col-sm-4 col-xs-12">
                    <div class="form-group">
                        <asp:RegularExpressionValidator ID="REV_LineServerURI" runat="server" Display="Dynamic" ValidationGroup="Users"
                            Text="<%$ Resources:Content,SMI699%>" ForeColor="Red" ControlToValidate="TxBx_LineServerURI"
                            ValidationExpression="^([s|S][i|I][p|P])\:[a-zA-Z][a-zA-Z0-9]+@[a-zA-Z][a-zA-Z0-9]+\.[A-Za-z]{2,4}$"></asp:RegularExpressionValidator>
                        &nbsp;Example: sip:example@example.com
                    </div>
                </div>
            </div>

            <div class="row" id="Tr_PrivateLine" runat="server">
                <div class="col-sm-3 col-xs-12 row-label">
                    <asp:Literal ID="Literal31" runat="server" Text='<%$ Resources:Content,Lync380%>' EnableViewState="false" />:
                </div>
                <div class="col-sm-4 col-xs-12">
                    <div class="form-group">
                        <asp:DropDownList ID="Ddl_PrivateLine" runat="server"></asp:DropDownList>
                    </div>
                </div>
                <div class="col-sm-1 col-xs-12" id="TD_PrivateExt" runat="server">
                    <div class="form-group form-float">
                        <div class="form-line">
                            <asp:TextBox ID="TxBx_ExtPrivate" runat="server" MaxLength="5"></asp:TextBox>
                            <asp:Label CssClass="form-label" ID="Ltr_ExtPrivate" runat="server" Text='<%$ Resources:Content,GN0000220%>'></asp:Label>
                        </div>
                    </div>
                </div>
                <div class="col-sm-3 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="Private Lines" data-content="All Line URIs may not be visible here due to the DID Specification of current subscription. Please check all Line URIs in Phone Numbers tab.">
                        <i class="material-icons">info</i>
                    </button>
                    <asp:RegularExpressionValidator ID="Rev_ExtPrivate" runat="server" Display="Dynamic"
                        Text="<%$ Resources:Content,SMI698%>" ForeColor="Red" ControlToValidate="TxBx_ExtPrivate" ValidationGroup="Users"
                        ValidationExpression="^[0-9]+$"></asp:RegularExpressionValidator>
                </div>
            </div>
            <div class="row" id="Tr_LinkedMasterAccount" runat="server" visible="false">
                <div class="col-sm-3 col-xs-12 row-label">
                    <label>
                        *<asp:Literal ID="Literal12" runat="server" EnableViewState="false"
                            Text="<%$ Resources:Content,Exch00099%>" />:</label>
                </div>
                <div class="col-sm-4 col-xs-12">
                    <div class="form-group">
                        <asp:DropDownList ID="DDL_LinkedMasterAccount" AutoPostBack="true" runat="server" />
                    </div>
                </div>
                <div class="col-sm-4 col-xs-12" id="Div_SpecifyMasterAccount" runat="server">
                    <div class="form-group">
                        <div class="form-line">
                            <asp:TextBox ID="TxBx_LinkedMasterAccount" runat="server" />
                            <asp:RequiredFieldValidator ControlToValidate="TxBx_LinkedMasterAccount" ID="RFV_MasterAccount"
                                runat="server" Display="None" ValidationGroup="Users"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row" id="Div_DialPlans" runat="server">
                <div class="col-sm-3 col-xs-12 row-label">
                    <asp:Literal ID="Literal23" runat="server" EnableViewState="false" Text='<%$ Resources:Content,DEV1220%>' />:
                </div>
                <div class="col-sm-9 col-xs-12">
                    <div class="form-group">
                        <asp:RadioButtonList ID="Rbl_DialPlans" RepeatColumns="5" RepeatDirection="Horizontal" runat="server"></asp:RadioButtonList>
                    </div>
                </div>
            </div>
            <div class="row" id="Tr_VoicePolicy" runat="server">
                <div class="col-sm-3 col-xs-12 row-label">
                    <asp:Literal ID="Literal33" runat="server" EnableViewState="false" Text='<%$ Resources:Content,DEV1232%>' />:
                </div>
                <div class="col-sm-9 col-xs-12">
                    <div class="form-group">
                        <asp:RadioButtonList ID="Rbl_VoicePolicies" RepeatColumns="5" RepeatDirection="Horizontal" runat="server"></asp:RadioButtonList>
                    </div>
                </div>
            </div>
            <div class="row" id="Tr_EnableVoiceMailPolicy" runat="server">
                <div class="col-sm-3 col-xs-12 row-label">
                    <asp:Literal ID="Literal18" runat="server" EnableViewState="false" Text='<%$ Resources:Content,EnableVoiceMailPolicy%>' />:
                </div>
                <div class="col-sm-9 col-xs-12">
                    <div class="form-group">
                        <asp:CheckBox ID="Cb_EnableVoiceMailPolicy" Text="&nbsp;" runat="server" />
                    </div>
                </div>
            </div>
            <div class="row" id="Div_ConferencingPolicies" runat="server">
                <div class="col-sm-3 col-xs-12 row-label">
                    <asp:Literal ID="Literal35" runat="server" EnableViewState="false" Text='<%$ Resources:Content,DEV1221%>' />:
                </div>
                <div class="col-sm-9 col-xs-12">
                    <div class="form-group">
                        <asp:RadioButtonList ID="Rbl_ConferencingPolicies" RepeatColumns="5" RepeatDirection="Horizontal" runat="server"></asp:RadioButtonList>
                    </div>
                </div>
            </div>
            <div class="row" id="Tr_CallBundle" runat="server">
                <div class="col-sm-3 col-xs-12 row-label">
                    <asp:Literal ID="Literal29" runat="server" EnableViewState="false" Text='<%$ Resources:Content,Lync306%>' />:
                </div>
                <div class="col-sm-4 col-xs-10">
                    <div class="form-group">
                        <asp:DropDownList ID="Ddl_CallBundles" runat="server"></asp:DropDownList><asp:Label ID="Lbl_BundleInfo" runat="server"></asp:Label>
                    </div>
                </div>
                <div class="col-sm-4 col-xs-2">
                    <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="Call Bundle" data-content="A Call Bundle contains Rates & Destinations and used to bill the call records of this user.">
                        <i class="material-icons">info</i>
                    </button>
                </div>
            </div>

            <EM:AddUM ID="AddUM1" runat="server" />
            <div class="row" id="DIV_OF" runat="server">
                <div class="panel-group" id="AS_OF" role="tablist" aria-multiselectable="true">
                    <div class="col-xs-12" role="tab" id="SH_OF">
                        <div class="card">
                            <div class="header" role="button" data-toggle="collapse" data-parent="#AS_OF" href="#<%= CSB_OPF.ClientID%>" aria-expanded="true" aria-controls="SH_OF">
                                <h3>
                                    <%= Resources.Content.DGN1110535%>
                                </h3>
                            </div>
                            <div id="CSB_OPF" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_OF" aria-expanded="false">

                                <div id="tbl_OptionalFields" runat="server">
                                    <input id="Txt_OpF" runat="server" type="text" style='display: none;' class='hfclass' />
                                    <EM:OptionalFields ID="OptionalFields_AddUser" runat="server" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div id="tbl_SetupEmail" runat="server">
                <div class="card">
                    <div class="header">
                        <h3>
                            <%= Resources.Content.SPT002055%>
                        </h3>
                    </div>
                    <div class="body">
                        <div class="row">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <asp:Literal ID="Ltrl_AddUserSetupEmail" runat="server" EnableViewState="false" Text='<%$ Resources:Content,GN0000752%>' />:
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <asp:CheckBox ID="CB_AddUserSetupEmail" Text="&nbsp;" runat="server" onclick="ShowHideEmail(this)"
                                        Checked="true" />
                                </div>
                            </div>
                        </div>
                        <div class="row" id="Tr_SendEmail" runat="server">
                            <div class="col-sm-3 col-xs-12 row-label">
                                <asp:Literal ID="Ltrl_EmailAddress" runat="server" EnableViewState="false" Text='<%$ Resources:Content,GN0000491%>' />:
                            </div>
                            <div class="col-sm-4 col-xs-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <asp:TextBox ID="TxBx_AddUserSetupEmail" runat="server">
                                        </asp:TextBox>
                                        <%--<asp:RegularExpressionValidator ID="Regx_EmailAddress" runat="server" ControlToValidate="TxBx_AddUserSetupEmail"
                                            Display="None" SetFocusOnError="true" ValidationGroup="Users" ErrorMessage='<%$ Resources:Content,SMI00940%>' ValidationExpression="<%$Resources:MPRegex,EmailAddress %>">
                                        </asp:RegularExpressionValidator>--%>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">&nbsp;</div>
            <div class="row" id="Tr_AddBox" runat="server">
                <div class="col-xs-12">
                    <asp:Button ID="Btn_Save" CssClass="btn btn-primary waves-effect btnAction" runat="server" Text='<%$ Resources:Content,GN0000281%>'
                        ValidationGroup="Users" />
                    <asp:Button ID="Btn_Cancel" CssClass="btn btn-primary waves-effect" runat="server" Text='<%$ Resources:Content,GN0000572%>'
                        CausesValidation="false" />
                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" HeaderText='<%$ Resources:Content, EM000001 %>'
                        ShowMessageBox="True" ShowSummary="False" ValidationGroup="Users" />
                </div>
            </div>
        </div>
    </div>
</div>

<div id="Pnl_EditUser" runat="server" visible="false">
    <div class="card">
        <div class="header" id="Div_GoBack" runat="server">
            <div class="displayInlineBlock">
                <h2>
                    <asp:Literal ID="Literal7" runat="server" Text="<%$ Resources:Content,DEV1209%>" EnableViewState="false" /></h2>
            </div>
            <asp:LinkButton ID="lb_EditGoBack" runat="server" Text="<%$ Resources:Content,DGN1110542%>" CausesValidation="false"
                CssClass="btn btn-primary waves-effect pull-right m-t--4px" />
        </div>
        <div class="body">
            <div class="row">
                <div class="col-xs-12">
                    <div class="products-step">
                        <span id="div_General" runat="server" nowrap="true" class="label label-success">
                            <asp:LinkButton ID="lb_General" runat="server" Text='<%$ Resources:Content, GN00001466 %>' />
                        </span>
                        <span id="div_Password" runat="server" nowrap="true" class="label label-default">
                            <asp:LinkButton ID="Lb_ChangePwd" runat="server" Text='<%$ Resources:Content, DGN1110442 %>' />
                        </span>
                        <span id="div_UM" runat="server" nowrap="true" class="label label-default">
                            <asp:LinkButton ID="LB_UM" runat="server" Text='<%$ Resources:Content, EXH028 %>' />
                        </span>
                        <span id="div_ConferencePIN" runat="server" nowrap="true" class="label label-default">
                            <asp:LinkButton ID="Lb_ConferencePIN" runat="server" Text='<%$ Resources:Content, ConferencePIN %>' />
                        </span>
                        <span id="div1" runat="server" nowrap="true" class="label label-default">
                            <asp:LinkButton ID="lb_Advanced1" runat="server" Text='' />
                        </span>
                    </div>
                </div>
            </div>

            <div id="Pnl_General" runat="server" defaultbutton="Btn_SaveGeneralInfo">
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Literal ID="Literal4" runat="server" Text='<%$ Resources:Content,GN000141%>' />:
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:DropDownList ID="ddl_EditPlanPackages" AutoPostBack="true" runat="server">
                            </asp:DropDownList>
                        </div>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <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="Listed Plan/Addon Format" data-content="['P' for Plan, 'A' for Addon]: [Plan/Addon Id] [Plan/Addon Name] [(Used/Total_Users SPLAType)]
                                SPLATypes: 
                                SS: Standard SAL, 
                                ES: Enterprise SAL, 
                                PS: Plus SAL, 
                                EPS: Enterprise Plus SAL">
                                <i class="material-icons">info</i>
                            </button>
                        </div>
                    </div>
                </div>

                <div class="row" id="TR_EditDisplayName" runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                        *<asp:Literal ID="Literal8" runat="server" EnableViewState="false" Text='<%$ Resources:Content,DGN1110534%>' />:
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_EditDisplayName" runat="server" MaxLength="64">
                                </asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TxBx_EditDisplayName"
                                    Display="None" SetFocusOnError="True" ValidationGroup="EditUser">
                                </asp:RequiredFieldValidator>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="row" id="Tr_EditSignInName" runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                        *<asp:Literal ID="Ltrl_EditSignInName" runat="server" EnableViewState="false" Text='<%$ Resources:Content,DEV1103%>' />:
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_EditSignInName" runat="server" MaxLength="50">
                                </asp:TextBox>
                                <asp:RequiredFieldValidator ID="Rfv_EditSignInName" runat="server" ControlToValidate="TxBx_EditSignInName"
                                    Display="None" SetFocusOnError="True" ValidationGroup="EditUser">
                                </asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="Regx_EditSignInName" runat="server" ControlToValidate="TxBx_EditSignInName"
                                    ErrorMessage="Invalid Sign-In-Name." Display="None" SetFocusOnError="true" ValidationGroup="EditUser"
                                    ValidationExpression="^[\S]*$">
                                </asp:RegularExpressionValidator>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group at-the-rate">
                            @<asp:DropDownList ID="Ddl_EditSIPDomains" runat="server">
                            </asp:DropDownList>

                            <asp:HiddenField ID="Hf_UserName" runat="server" />
                        </div>
                    </div>
                </div>

                <div class="row" id="Tr_EditSIPAddress" runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                        *<asp:Literal ID="Literal2" runat="server" EnableViewState="false" Text='<%$ Resources:Content,Lync133%>' />:
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_EditSIPAddress" runat="server" MaxLength="50"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="Rfv_EditSIPAddress" runat="server" ControlToValidate="TxBx_EditSIPAddress"
                                    Display="None" SetFocusOnError="True" ValidationGroup="EditUser"></asp:RequiredFieldValidator>
                                <%--<asp:RegularExpressionValidator ID="Rev_EditSIPAddress" runat="server" ControlToValidate="TxBx_EditSIPAddress"
                                    ErrorMessage="Invalid SIP Address." Display="None" SetFocusOnError="true" ValidationGroup="EditUser"
                                    ValidationExpression="<%$Resources:MPRegex,Alias %>"></asp:RegularExpressionValidator>--%>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-4 col-xs-10">
                        <div class="form-group at-the-rate">
                            @<asp:DropDownList ID="Ddl_EditSIPDomains2" runat="server"></asp:DropDownList>
                        </div>
                    </div>
                    <div class="col-sm-1 col-xs-2">
                        <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="SIP Address" data-content="Before changing the SIP Address of a user, remove the user from all Agent Groups he's currently assigned to.">
                            <i class="material-icons">info</i>
                        </button>
                    </div>
                </div>

                <div class="row" id="TR_EditLineURI" runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Literal ID="Literal5" runat="server" Text='<%$ Resources:Content,DEV1238%>' />:
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:DropDownList ID="Ddl_EditLineURIs" runat="server">
                            </asp:DropDownList>
                        </div>
                    </div>
                    <div class="col-sm-1 col-xs-12" id="TD_EditExt" runat="server">
                        <div class="form-group form-float">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_EditExt" runat="server" MaxLength="5"></asp:TextBox>
                                <asp:Label ID="Ltr_EditExt" CssClass="form-label" runat="server" Text='<%$ Resources:Content,GN0000220%>'></asp:Label>
                            </div>
                        </div>
                    </div>

                    <div class="col-sm-1 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="Line URIs" data-content="All Line URIs may not be visible here due to the DID Specification of current subscription. Please check all Line URIs in Phone Numbers tab.">
                            <i class="material-icons">info</i>
                        </button>

                        <asp:RegularExpressionValidator ID="Rev_EditExt" runat="server" Display="Dynamic"
                            Text="<%$ Resources:Content,SMI698%>" ForeColor="Red" ControlToValidate="TxBx_EditExt" ValidationGroup="EditUser"
                            ValidationExpression="^[0-9]+$"></asp:RegularExpressionValidator>

                    </div>
                    <div id="Div_EditUMExtension" runat="server" class="col-sm-3 col-xs-12">
                        <div class="form-group">
                            <asp:CheckBox ID="Cb_ResetUMExtension" runat="server" Text='<%$ Resources:Content,UpdateExtension%>' /><br />
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_EditUMExtension" runat="server"></asp:TextBox>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="row" id="TR_EditLineServerURI" runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                        *<asp:Literal ID="Literal6" runat="server" Text='<%$ Resources:Content,DEV1239%>' />:
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_EditLineServerURI" runat="server" MaxLength="200">
                                </asp:TextBox>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:RegularExpressionValidator ID="REV_EditLineServerURI" ValidationGroup="EditUser"
                                runat="server" Display="Dynamic" Text="<%$ Resources:Content,SMI699%>" ForeColor="Red"
                                ControlToValidate="TxBx_EditLineServerURI" ValidationExpression="^([s|S][i|I][p|P])\:[a-zA-Z][a-zA-Z0-9]+@[a-zA-Z][a-zA-Z0-9]+\.[A-Za-z]{2,4}$">
                            </asp:RegularExpressionValidator>
                            &nbsp;Example: sip:example@example.com
                        </div>
                    </div>
                </div>

                <div class="row" id="Tr_EditPrivateLine" runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Literal ID="Literal32" runat="server" Text='<%$ Resources:Content,Lync380%>' />:
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:DropDownList ID="Ddl_EditPrivateLine" runat="server"></asp:DropDownList>
                        </div>
                    </div>
                    <div class="col-sm-1 col-xs-12" id="TD_EditExtPrivate" runat="server">
                        <div class="form-group form-float">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_EditExtPrivate" runat="server" MaxLength="5"></asp:TextBox>
                                <asp:Label ID="Ltr_EditExtPrivate" CssClass="form-label" runat="server" Text='<%$ Resources:Content,GN0000220%>'></asp:Label>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-3 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="Private Lines" data-content="All Line URIs may not be visible here due to the DID Specification of current subscription. Please check all Line URIs in Phone Numbers tab.">
                            <i class="material-icons">info</i>
                        </button>
                        <asp:RegularExpressionValidator ID="Rev_EditExtPrivate" runat="server" Display="Dynamic"
                            Text="<%$ Resources:Content,SMI698%>" ForeColor="Red" ControlToValidate="TxBx_EditExtPrivate" ValidationGroup="EditUser"
                            ValidationExpression="^[0-9]+$"></asp:RegularExpressionValidator>
                    </div>
                </div>



                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Literal ID="Literal24" runat="server" EnableViewState="false" Text='<%$ Resources:Content,DEV1220%>' />:
                    </div>
                    <div class="col-sm-9 col-xs-12">
                        <div class="form-group">
                            <asp:RadioButtonList ID="Rbl_EditDialPlans" RepeatColumns="5" RepeatDirection="Horizontal" runat="server"></asp:RadioButtonList>
                        </div>
                    </div>
                </div>

                <div class="row" id="Tr_EditVoicePolicies" runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Literal ID="Literal34" runat="server" EnableViewState="false" Text='<%$ Resources:Content,DEV1232%>' />:
                    </div>
                    <div class="col-sm-9 col-xs-12">
                        <div class="form-group">
                            <asp:RadioButtonList ID="Rbl_EditVoicePolicies" RepeatColumns="5" RepeatDirection="Horizontal" runat="server"></asp:RadioButtonList>
                        </div>
                    </div>
                </div>
                <div class="row" id="Tr_EditEnableVoiceMailPolicy" runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Literal ID="Literal20" runat="server" EnableViewState="false" Text='<%$ Resources:Content,EnableVoiceMailPolicy%>' />:
                    </div>
                    <div class="col-sm-9 col-xs-12">
                        <div class="form-group">
                            <asp:CheckBox ID="Cb_EditEnableVoiceMailPolicy" Text="&nbsp;" runat="server" />
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Literal ID="Literal36" runat="server" EnableViewState="false" Text='<%$ Resources:Content,DEV1221%>' />:
                    </div>
                    <div class="col-sm-9 col-xs-12">
                        <div class="form-group">
                            <asp:RadioButtonList ID="Rbl_EditConferencingPolicies" RepeatColumns="5" RepeatDirection="Horizontal" runat="server"></asp:RadioButtonList>
                        </div>
                    </div>
                </div>

                <div class="row" id="Tr_EditCallBundle" runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Literal ID="Literal30" runat="server" EnableViewState="false" Text='<%$ Resources:Content,Lync306%>' />:
                    </div>
                    <div class="col-sm-4 col-xs-10">
                        <div class="form-group">
                            <asp:DropDownList ID="Ddl_EditCallBundles" runat="server"></asp:DropDownList><asp:Label ID="Lbl_EditBundleInfo" runat="server"></asp:Label>
                        </div>
                    </div>
                    <div class="col-sm-4 col-xs-2">
                        <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="Call Bundle" data-content="A Call Bundle contains Rates & Destinations and used to bill the call records of this user.">
                            <i class="material-icons">info</i>
                        </button>
                    </div>
                </div>

                <div class="row" id="Tr_OptionalFields" runat="server">
                    <div class="panel-group" id="AS_EditOF" role="tablist" aria-multiselectable="true">
                        <div class="col-xs-12" role="tab" id="SH_EditOF">
                            <div class="card">
                                <div class="header" role="button" data-toggle="collapse" data-parent="#AS_EditOF" href="#<%= CSB_EditOF.ClientID%>" aria-expanded="true" aria-controls="SH_EditOF">
                                    <h3>
                                        <%= Resources.Content.DGN1110535%>
                                    </h3>
                                </div>
                                <div id="CSB_EditOF" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_EditOF" aria-expanded="false">
                                    <EM:OptionalFields ID="OptionalFields_EditUser" runat="server" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="col-xs-12">
                        <asp:Button ID="Btn_SaveGeneralInfo" runat="server" Text="<%$ Resources:Content,GN0000281%>"
                            CssClass="btn btn-primary waves-effect btnAction" ValidationGroup="EditUser" />
                        <asp:Button ID="Btn_CancelEditGeneralInfo" CssClass="btn btn-primary waves-effect" runat="server" Text='<%$ Resources:Content,GN0000572%>'
                            CausesValidation="false" />
                        <asp:ValidationSummary ID="VS" runat="server" ShowMessageBox="true" ShowSummary="false"
                            ValidationGroup="EditUser" HeaderText="<%$ Resources:Content,EM000001%>" />
                    </div>
                </div>

            </div>
            <div id="Pnl_Password" runat="server" defaultbutton="Btn_ChangePassword">
                <div class="row" id="Tr_EditUserPassword" runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                        *<asp:Literal ID="Ltrl_EditUserPassword" runat="server" EnableViewState="false" Text='<%$ Resources:Content,DGN1110554%>' />:
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_EditUserPassword" TextMode="Password" runat="server" MaxLength="50">
                                </asp:TextBox>
                                <asp:RequiredFieldValidator ID="Rfv_EditUserPassword" runat="server" ControlToValidate="TxBx_EditUserPassword"
                                    Display="None" SetFocusOnError="True" ValidationGroup="ChangePassword"></asp:RequiredFieldValidator>
                            </div>
                            <br />
                            <asp:CheckBox ID="CB_ShowE" runat="server" Text="<%$ Resources:Content,FAM0049 %>" />
                        </div>
                    </div>
                    <div class="col-sm-5 col-xs-12">
                        <div class="form-group">
                            <asp:LinkButton ID="lb_EditGenerate" CssClass="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,SMI0195%>"
                                TabIndex="-2"></asp:LinkButton>
                        </div>
                        <div id="Div_PasswordPolicy_OCS" runat="server" class="help-text sm"></div>
                    </div>
                </div>

                <div class="row" id="Tr_EditUserConfirmPassword" runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                        *<asp:Literal ID="Ltrl_EditUserConfirmPassword" runat="server" EnableViewState="false"
                            Text='<%$ Resources:Content,DGN1110555%>' />:
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_EditUserConfirmPassword" TextMode="Password" runat="server"
                                    MaxLength="50">
                                </asp:TextBox>
                                <asp:RequiredFieldValidator ID="Rfv_EditUserConfirmPassword" runat="server" ControlToValidate="TxBx_EditUserConfirmPassword"
                                    Display="None" SetFocusOnError="True" ValidationGroup="ChangePassword">
                                </asp:RequiredFieldValidator>
                                <asp:CompareValidator ID="CV_TxBx_EditUserConfirmPassword" runat="server" SetFocusOnError="true"
                                    ErrorMessage="<%$ Resources:Content,DGN1110005 %>" ControlToCompare="TxBx_EditUserPassword"
                                    ControlToValidate="TxBx_EditUserConfirmPassword" Display="None" ValidationGroup="ChangePassword">
                                </asp:CompareValidator>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Literal ID="Literal80" runat="server" Text="<%$ Resources:Content,GN0000752%>">
                        </asp:Literal>:
                    </div>
                    <div class="col-sm-3 col-xs-12">
                        <div class="form-group">
                            <asp:CheckBox ID="ChBx_SendPasswordChangedEmail" Text="&nbsp;" runat="server" Checked="true" />
                        </div>
                    </div>
                </div>

                <div class="row" id="Tr_SendPasswordChangedEmail" runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                        *<asp:Literal ID="Literal79" runat="server" Text="<%$ Resources:Content,String389%>">
                        </asp:Literal>:
                    </div>
                    <div class="col-sm-3 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_SendPasswordChangedEmail" runat="server">
                                </asp:TextBox>
                                <asp:RequiredFieldValidator ID="RFV_TxBx_SendPasswordChangedEmail" runat="server"
                                    ControlToValidate="TxBx_SendPasswordChangedEmail" Display="None" SetFocusOnError="True"
                                    ValidationGroup="ChangePassword">
                                </asp:RequiredFieldValidator>
                               <%-- <asp:RegularExpressionValidator ID="REV_TxBx_SendPasswordChangedEmail" runat="server"
                                    ErrorMessage='<%$ Resources:Content,DEV1055%>' ControlToValidate="TxBx_SendPasswordChangedEmail"
                                    Display="None" ValidationExpression="<%$Resources:MPRegex,EmailAddress %>"
                                    ValidationGroup="ChangePassword">
                                </asp:RegularExpressionValidator>--%>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:ValidationSummary ID="ValidationSummary4" runat="server" ShowMessageBox="true"
                            ShowSummary="false" ValidationGroup="ChangePassword" HeaderText="<%$ Resources:Content,EM000001%>" />
                        <asp:Button ID="Btn_ChangePassword" CausesValidation="true" ValidationGroup="ChangePassword"
                            runat="server" Text="<%$ Resources:Content,GN0000281%>" CssClass="btn btn-primary waves-effect btnAction" />
                        <asp:Button ID="Btn_CancelEditPassword" CssClass="btn btn-primary waves-effect" runat="server" Text='<%$ Resources:Content,GN0000572%>'
                            CausesValidation="false" />
                    </div>
                </div>


            </div>
            <div id="Pnl_UM" runat="server" defaultbutton="Btn_UMActivate" visible="false">
                <div class="row Div_OpsRow" id="Div_UMOperations" runat="server">
                    <div class="col-xs-12">
                        <div class="card">
                            <div class="header">
                                <h3>
                                    <%= Resources.Content.GN00001320%>                                                                                                                                 
                                </h3>
                            </div>
                            <div class="body">
                                <div class="clearfix">
                                    <asp:Button ID="Btn_UMActivate" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,GN0000807%>" />
                                    <asp:Button ID="Btn_UMResetPIN" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,Exh030%>"
                                        Visible="false" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div id="Pnl_UMActivate" runat="server" visible="false">
                    <div class="card">
                        <div class="header">
                            <h3>
                                <asp:Literal ID="Literal9" runat="server" Text='<%$ Resources:Content, EXH031 %>'></asp:Literal>
                            </h3>
                        </div>
                        <div class="body">
                            <div class="row">
                                <div class="col-sm-4 col-xs-12 row-label">
                                    <asp:Literal ID="Literal66" runat="server" Text='<%$ Resources:Content, Exh029 %>'
                                        EnableViewState="false" />:
                                </div>

                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <asp:DropDownList ID="DDL_UMPolicy" AutoPostBack="true" runat="server" />
                                    </div>
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-sm-4 col-xs-12 row-label">
                                    <label>
                                        <asp:Literal ID="Literal49" runat="server" Text='<%$ Resources:Content, EXH031 %>'
                                            EnableViewState="false" />:</label>
                                </div>
                                <div class="col-sm-8 col-xs-12">
                                    <div class="col-xs-12">
                                        <asp:RadioButton ID="RB_AutoPIN" runat="server" GroupName="PIN" Text='<%$ Resources:Content, EXH032 %>' /><br />
                                        <asp:RadioButton ID="RB_ManualPIN" runat="server" GroupName="PIN" Text='<%$ Resources:Content, EXH033 %>' />
                                    </div>
                                    <div class="col-xs-12" id="TR_ManualPin" runat="server">
                                        <div class="col-xs-4">
                                            <div class="form-group">
                                                <div class="form-line">
                                                    <asp:TextBox ID="TxBx_ManualPIN" runat="server" MaxLength="24"></asp:TextBox>
                                                    <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" FilterType="Numbers,Custom" ValidChars="0123456789" TargetControlID="TxBx_ManualPIN">
                                                    </EM:FilteredTextBoxExtender>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-sm-4 col-xs-12 row-label">
                                    <asp:Literal ID="Literal87" runat="server" Text='<%$ Resources:Content, EXH034 %>'
                                        EnableViewState="false" />:
                                </div>
                                <div class="col-sm-3 col-xs-12">
                                    <div class="form-group">
                                        <asp:CheckBox ID="CB_ResetPIN" Text="&nbsp;" runat="server" />
                                    </div>
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-sm-4 col-xs-12 row-label">
                                    *<asp:Literal ID="Literal76" runat="server" EnableViewState="false" Text='<%$ Resources:Content,EXH035%>' />:
                                </div>
                                <div class="col-sm-3 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_UMExtension" runat="server"></asp:TextBox>
                                            <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender6" runat="server" FilterType="Numbers,Custom" ValidChars="0123456789"
                                                TargetControlID="TxBx_UMExtension">
                                            </EM:FilteredTextBoxExtender>
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <div class="row" id="TR_SIPIdentifier" runat="server">
                                <div class="col-sm-4 col-xs-12 row-label">
                                    *<asp:Literal ID="Literal16" runat="server" EnableViewState="false" Text='<%$ Resources:Content,EXH036%>' />:
                                </div>
                                <div class="col-sm-3 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_SIPIdentifier" runat="server"></asp:TextBox>
                                            <EM:FilteredTextBoxExtender ID="FTE_SIPIdentifier" runat="server" FilterType="Numbers,Custom"
                                                TargetControlID="TxBx_SIPIdentifier" ValidChars="+">
                                            </EM:FilteredTextBoxExtender>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-sm-5 col-xs-12">
                                    <div class="form-group">
                                        <asp:Literal ID="Ltl_UMSIP" runat="server" Text='<%$ Resources:Content,EXH037%>'></asp:Literal>
                                        <asp:Literal ID="Ltl_E164" runat="server" Text='<%$ Resources:Content,EXH038%>'></asp:Literal>
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-xs-12">
                                    <asp:Button ID="Btn_UMEnable" runat="server" Text="<%$ Resources:Content,GN0000281%>"
                                        CssClass="btn btn-primary waves-effect btnAction" />
                                    <asp:Button ID="Btn_UMCancel" runat="server" Text="<%$ Resources:Content,GN0000572%>"
                                        CssClass="btn btn-primary waves-effect" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div id="Pnl_UMUpdate" runat="server" visible="false">
                    <div class="card">

                        <div class="body">
                            <div class="row">
                                <div class="col-sm-5 col-xs-12 row-label">
                                    <asp:Literal ID="Literal70" runat="server" Text='<%$ Resources:Content, L00189 %>'
                                        EnableViewState="false" />:
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <asp:Label ID="Lbl_Policy" runat="server"></asp:Label>
                                    </div>
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-sm-5 col-xs-12 row-label">
                                    <asp:Literal ID="Literal91" runat="server" Text='<%$ Resources:Content, GN0000220 %>'
                                        EnableViewState="false" />:
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <asp:Label ID="Lbl_Extension" runat="server"></asp:Label>
                                    </div>
                                </div>
                            </div>

                            <div class="row" id="Tr_SIP" runat="server">
                                <div class="col-sm-5 col-xs-12 row-label">
                                    <asp:Literal ID="Literal92" runat="server" Text='<%$ Resources:Content, EXCH037 %>'
                                        EnableViewState="false" />:
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <asp:Label ID="Lbl_SIP" runat="server"></asp:Label>
                                    </div>
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-sm-5 col-xs-12 row-label">
                                    <asp:Literal ID="Literal71" runat="server" Text='<%$ Resources:Content, EXCH038 %>'
                                        EnableViewState="false" />:
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <asp:CheckBox ID="CB_AutomaticSpeechRecognitionEnabled" Text="&nbsp;" runat="server" />
                                    </div>
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-sm-5 col-xs-12 row-label">
                                    <asp:Literal ID="Literal72" runat="server" Text='<%$ Resources:Content, EXCH039 %>'
                                        EnableViewState="false" />:
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <asp:CheckBox ID="CB_AllowUMCallsFromNonUsers" Text="&nbsp;" runat="server" />
                                    </div>
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-sm-5 col-xs-12 row-label">
                                    <asp:Literal ID="Literal73" runat="server" Text='<%$ Resources:Content, EXCH040 %>'
                                        EnableViewState="false" />:
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <asp:CheckBox ID="CB_FaxEnabled" Text="&nbsp;" runat="server" />
                                    </div>
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-sm-5 col-xs-12 row-label">
                                    <asp:Literal ID="Literal74" runat="server" Text='<%$ Resources:Content, EXCH041 %>'
                                        EnableViewState="false" />:
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <asp:CheckBox ID="CB_AnonymousCallersCanLeaveMessages" Text="&nbsp;" runat="server" />
                                    </div>
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-sm-5 col-xs-12 row-label">
                                    <asp:Literal ID="Literal83" runat="server" Text='<%$ Resources:Content, EXCH042 %>'
                                        EnableViewState="false" />:
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <asp:CheckBox ID="CB_CallAnsweringRulesEnabled" Text="&nbsp;" runat="server" />
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-sm-5 col-xs-12 row-label">
                                    <asp:Literal ID="Literal19" runat="server" Text='<%$ Resources:Content, EXCH043 %>'
                                        EnableViewState="false" />:
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_Operator" runat="server" MaxLength="10"></asp:TextBox>
                                            <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender7" runat="server" FilterType="Numbers,Custom" ValidChars="0123456789"
                                                TargetControlID="TxBx_Operator">
                                            </EM:FilteredTextBoxExtender>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-xs-12">
                                    <asp:Button ID="Btn_SaveUM" runat="server" Text="<%$ Resources:Content,GN0000281%>"
                                        CssClass="btn btn-primary waves-effect btnAction" />
                                </div>
                            </div>

                        </div>
                    </div>

                </div>

                <div id="Pnl_ResetPIN" runat="server" visible="false">
                    <div class="card">
                        <div class="header">
                            <h3>
                                <asp:Literal ID="Literal90" runat="server" Text='<%$ Resources:Content, EXH031 %>'></asp:Literal>
                            </h3>
                        </div>
                        <div class="body">
                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <asp:Literal ID="Literal93" runat="server" Text='<%$ Resources:Content, EXH032 %>'
                                        EnableViewState="false" />:
                                </div>
                                <div class="col-sm-4 col-xs-12">
                                    <div class="form-group">
                                        <asp:RadioButton ID="RB_ResetAutoPIN" Text="&nbsp;" runat="server" GroupName="ResetPIN" />
                                    </div>
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <asp:Literal ID="Literal94" runat="server" Text='<%$ Resources:Content, EXH033 %>'
                                        EnableViewState="false" />:
                                </div>
                                <div class="col-sm-1 col-xs-2">
                                    <div class="form-group">
                                        <asp:RadioButton ID="RB_ResetManualPIN" Text="&nbsp;" runat="server" GroupName="ResetPIN" />
                                    </div>
                                </div>
                                <div class="col-sm-3 col-xs-10">
                                    <div class="form-group">
                                        <div class="form-line">
                                            <asp:TextBox ID="TxBx_ResetManualPIN" runat="server" MaxLength="24"></asp:TextBox>
                                            <EM:FilteredTextBoxExtender ID="FilteredTextBoxExtender8" runat="server" FilterType="Numbers,Custom" ValidChars="0123456789"
                                                TargetControlID="TxBx_ResetManualPIN">
                                            </EM:FilteredTextBoxExtender>
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-sm-3 col-xs-12 row-label">
                                    <asp:Literal ID="Literal95" runat="server" Text='<%$ Resources:Content, EXH034 %>'
                                        EnableViewState="false" />:
                                </div>
                                <div class="col-sm-3 col-xs-12">
                                    <div class="form-group">
                                        <asp:CheckBox ID="CB_ResetPINOnLogon" Text="&nbsp;" runat="server" />
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-xs-12">
                                    <asp:Button ID="Btn_PINSave" runat="server" Text="<%$ Resources:Content,GN0000281%>"
                                        CssClass="btn btn-primary waves-effect btnAction" />
                                    <asp:Button ID="Btn_PINCancel" runat="server" Text="<%$ Resources:Content,GN0000572%>"
                                        CssClass="btn btn-primary waves-effect" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div id="Pnl_ConferencePIN" runat="server" visible="false" defaultbutton="Btn_SavePIN">
                <div class="row Div_OpsRow" id="Div_OpsRow2" runat="server">
                    <div class="col-xs-12">
                        <div class="card">
                            <div class="header">
                                <h3>
                                    <%= Resources.Content.GN00001320%>                                                                                                                                 
                                </h3>
                            </div>
                            <div class="body">
                                <div class="clearfix">
                                    <asp:Button ID="Btn_LockPIN" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,LockPIN%>" />
                                    <asp:Button ID="Btn_UnlockPIN" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,UnlockPIN%>" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Literal ID="Literal11" runat="server" Text='<%$ Resources:Content,DialInPIN%>' />:
                    </div>
                    <div class="col-sm-2 col-xs-12">
                        <div class="form-group">
                            <div class="form-line">
                                <asp:TextBox ID="TxBx_ConferencePIN" runat="server" MaxLength="64">
                                </asp:TextBox>
                            </div>

                        </div>
                    </div>
                    <div class="col-sm-3 col-xs-12">
                        <asp:Button ID="Btn_SetPIN" ValidationGroup="ConferencePIN" runat="server" Text="<%$ Resources:Content,GN0000281%>"
                            CssClass="btn btn-primary waves-effect btnAction" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxBx_ConferencePIN"
                            Display="Dynamic" SetFocusOnError="True" ValidationGroup="ConferencePIN">
                        </asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
                            ErrorMessage="PIN length must be between 4 to 24 digits"
                            ControlToValidate="TxBx_ConferencePIN"
                            ValidationExpression="^[0-9]{4,24}$" ValidationGroup="ConferencePIN" />
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div id="Pnl_AddBulkUser" runat="server" visible="false">
    <div class="card">
        <div class="header">
            <h3>
                <%= Resources.Content.Str00089%>                                                                                                                                 
            </h3>
        </div>
        <div class="body">
            <div id="Pnl_BulkStep1" runat="server">

                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Literal ID="Literal13" runat="server" Text='<%$ Resources:Content,GN000141%>' />:
                    </div>
                    <div class="col-sm-3 col-xs-12">
                        <div class="form-group">
                            <asp:DropDownList ID="DDL_PackageBulk" AutoPostBack="true" runat="server">
                            </asp:DropDownList>
                        </div>
                    </div>
                    <div class="col-sm-5 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="Listed Plan/Addon Format" data-html="true" data-content="Select now OR it can be selected later in next step. Default Package will be used if not selected/provided in csv.<br/> <b>Format:</b><br> ['P' for Plan, 'A' for Addon]: [Plan/Addon Id] [Plan/Addon Name] [(Used/Total_Users SPLAType)]<br/><b>SPLATypes:</b><br/>SS: Standard SAL, <br/>ES: Enterprise SAL, <br/>PS: Plus SAL, <br/>EPS: Enterprise Plus SAL">
                            <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="Literal14" runat="server" Text='<%$ Resources:Content,GN00001322%>' />:
                    </div>
                    <div class="col-sm-9 col-xs-12">
                        <div class="form-group">
                            <asp:RadioButtonList ID="RBL_SelectUser" runat="server" AutoPostBack="true">
                                <asp:ListItem Enabled="true" Text="<%$ Resources:Content,Lync288%>" Value="0">
                                </asp:ListItem>
                                <asp:ListItem Text="<%$ Resources:Content,DEV1102%>" Value="1">
                                </asp:ListItem>
                                <asp:ListItem Text="<%$ Resources:Content,Lync284%>" Value="2">
                                </asp:ListItem>
                            </asp:RadioButtonList>
                        </div>
                    </div>
                </div>



                <div class="row" id="TR_Domain" runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <asp:Literal ID="Literal1" runat="server" Text='<%$ Resources:Content,GN000125%>' />
                    </div>
                    <div class="col-sm-3 col-xs-12">
                        <div class="form-group">
                            <asp:DropDownList ID="DDL_DomainBulk" runat="server">
                            </asp:DropDownList>
                        </div>
                    </div>
                    <div class="col-sm-5 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="SIP Domain" data-content="Select now OR it can be selected later in next step. Default Domain will be used if not selected/provided in csv.">
                            <i class="material-icons">info</i>
                        </button>
                    </div>
                </div>
                <div class="row" id="Tr_CSV" runat="server">
                    <div class="col-sm-3 col-xs-12 row-label">
                        *<asp:Literal ID="Literal77" EnableViewState="false" runat="server" Text="<%$ Resources:Content,String380%>" />:
                    </div>
                    <div class="col-sm-3 col-xs-12">
                        <div class="form-group">
                            <div class="fileupload fileupload-new" data-provides="fileupload">
                                <span class="btn btn-primary btn-file"><span class="fileupload-new"><%= Resources.Content.strSelectFile%></span>
                                    <span class="fileupload-exists"><%= Resources.Content.GN0000385%></span>
                                    <asp:FileUpload ID="FU_BulkMailBox" runat="server" />
                                </span>
                                <span class="fileupload-preview"></span>
                                <a href="#" class="close fileupload-exists" data-dismiss="fileupload" style="float: none">×</a>
                            </div>
                        </div>
                    </div>

                    <div class="col-sm-5 col-xs-12">
                        <asp:Literal ID="Ltl_DownLoadCSV" runat="server"></asp:Literal>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="FU_BulkMailBox"
                            Display="None" SetFocusOnError="True" ValidationGroup="AddBMailBoxVGBM"></asp:RequiredFieldValidator>
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12">
                        <asp:ValidationSummary ID="ValidationSummary5" runat="server" ShowMessageBox="true"
                            ShowSummary="false" ValidationGroup="AddBMailBoxVGBM" HeaderText="<%$ Resources:Content,EM000001%>" />
                        <asp:Button ID="Btn_Next" runat="server" ValidationGroup="AddBMailBoxVGBM" CausesValidation="True"
                            CssClass="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN00001242%>" />
                        <asp:Button ID="Btn_BMBCancel" runat="server" CausesValidation="false" CssClass="btn btn-primary waves-effect"
                            Text="<%$ Resources:Content,GN0000572%>" />
                    </div>
                </div>

            </div>
            <div id="Pnl_BulkStep2" runat="server" visible="false">
                <div class="row" id="Tr_Note" runat="server">
                    <div class="col-xs-12 row-label">
                        <asp:Literal ID="Ltr_Note" runat="server" EnableViewState="false" Text="<%$ Resources:Content,First50%>"></asp:Literal>
                    </div>
                </div>
                <asp:Panel ID="Pnl_SearchBulk" runat="server" DefaultButton="Btn_SearchBulk">
                    <div class="row">
                        <div class="panel-group search-panel" id="AS_BulkStep2" role="tablist" aria-multiselectable="true">
                            <div class="col-xs-12" role="tab" id="SH_BulkStep2">
                                <div class="card">
                                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_BulkStep2" href="#<%= CSB_BulkStep2.ClientID%>" aria-expanded="true" aria-controls="SH_BulkStep2">
                                        <h3>
                                            <%= Resources.Content.GN0000395%>
                                        </h3>
                                    </div>
                                    <div id="CSB_BulkStep2" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_BulkStep2" aria-expanded="false">
                                        <div class="row">
                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                <div class="form-group form-float">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_DisplayNameBulk" runat="server" MaxLength="200"></asp:TextBox>
                                                        <asp:Label ID="Label1" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001113%>" CssClass="form-label"></asp:Label>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                <div class="form-group form-float">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_UPNBulk" runat="server" MaxLength="100"></asp:TextBox>
                                                        <asp:Label ID="Label2" runat="server" EnableViewState="false" Text="<%$ Resources:Content,String336%>" CssClass="form-label"></asp:Label>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                <div class="form-group form-float">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_SAMBulk" runat="server" MaxLength="100"></asp:TextBox>
                                                        <asp:Label ID="Label3" runat="server" EnableViewState="false" Text="<%$ Resources:Content,strSAMAccountName%>" CssClass="form-label"></asp:Label>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                <div class="form-group form-float">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_LDAPBulk" runat="server" MaxLength="200"></asp:TextBox>
                                                        <asp:Label ID="Label4" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110437%>" CssClass="form-label"></asp:Label>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-xs-12">
                                                <div class="form-group form-float">
                                                    <asp:Button ID="Btn_SearchBulk" runat="server" CssClass="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000391%>" />
                                                    <asp:Button ID="Btn_ClearBulk" Visible="false" CssClass="btn btn-primary waves-effect" runat="server"
                                                        Text="<%$ Resources:Content,String289 %>" />
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </asp:Panel>
                <div class="row">
                    <div class="col-xs-12">
                        <div class="double-scroll-wrapper1">
                            <div>
                            </div>
                        </div>
                        <div class="double-scroll-wrapper2">
                            <EM:MPGridView ID="GV_BulkUsers" CurrentSortExpression="DisplayName" CurrentSortDirection="Asc"
                                Style="width: 2020px" CssClass="table table-bordered table-striped table-hover table-layout-fixed" runat="server" AllowPaging="false" AllowSorting="false"
                                EmptyDataText='<%$ Resources:Content, GN00001375 %>' AutoGenerateColumns="false">
                                <Columns>
                                    <asp:TemplateField HeaderStyle-Width="50px" HeaderStyle-HorizontalAlign="Center">
                                        <HeaderTemplate>
                                            <asp:CheckBox class="option-menu" ID="ChkBx_All" runat="server" Text=" " onclick="SetCheckedHeader(this.checked, this,'All');" />
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:CheckBox class="option-menu" ID="Cb_SelectUser" Checked="true" onclick="SetCheckedHeader(this.checked, this,'1');" Text="&nbsp;" runat="server"></asp:CheckBox>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderStyle-Width="200px" HeaderText="<%$ Resources:Content, GN00001113 %>" HeaderStyle-ForeColor="white">
                                        <ItemTemplate>
                                            <asp:Label ID="Lbl_DN" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.DisplayName") %>'></asp:Label>
                                            <asp:HiddenField ID="H_ADUserId" runat="server" Value='<%# DataBinder.Eval(Container, "DataItem.ADUserID") %>' />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderStyle-Width="200px" HeaderText="<%$ Resources:Content, DEV1103 %>" HeaderStyle-ForeColor="white">
                                        <ItemTemplate>
                                            <asp:Label ID="Lbl_SignInName" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.SignInNameWithoutDomain") %>'></asp:Label>@ 
                                            <div class="form-group">
                                                <asp:DropDownList ID="Ddl_SignInDomain" runat="server">
                                                </asp:DropDownList>
                                            </div>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderStyle-Width="170px" HeaderText="<%$ Resources:Content, GN0000569 %>" HeaderStyle-ForeColor="white">
                                        <ItemTemplate>
                                            <div class="form-group">
                                                <div class="form-line">
                                                    <asp:TextBox ID="TxBx_Password" runat="server" MaxLength="200"></asp:TextBox>
                                                </div>
                                            </div>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderStyle-Width="200px" HeaderText="<%$ Resources:Content, Lync133 %>" HeaderStyle-ForeColor="white">
                                        <ItemTemplate>
                                            <asp:Label ID="Lbl_SIPAddress" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.SIPAddressWithoutDomain")%>'></asp:Label>@ 
                                            <div class="form-group">
                                                <asp:DropDownList ID="Ddl_SIPAddressDomain" runat="server">
                                                </asp:DropDownList>
                                            </div>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderStyle-Width="170px" HeaderText="<%$ Resources:Content, String389 %>" HeaderStyle-ForeColor="white">
                                        <ItemTemplate>
                                            <div class="form-group">
                                                <div class="form-line">
                                                    <asp:TextBox ID="TxBx_EmailTo" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.SetupEmailAddress") %>'></asp:TextBox>
                                                </div>
                                            </div>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderStyle-Width="200px" HeaderText="<%$ Resources:Content, Dev1238%>" HeaderStyle-ForeColor="white">
                                        <ItemTemplate>
                                            <div class="row">
                                                <div class="col-xs-12">
                                                    <div class="form-group">
                                                        <asp:DropDownList ID="DDL_LineURI" runat="server"></asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="col-xs-12" id="TD_ExtBulk" runat="server">
                                                    <div class="input-group">
                                                        <span class="input-group-addon">
                                                            <asp:Literal ID="Ltr_ExtBulk" Text='<%$ Resources:Content, Lync059%>' runat="server"></asp:Literal></span>
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_ExtBulk" runat="server" MaxLength="5"></asp:TextBox>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderStyle-Width="50px" Visible="false" HeaderText="<%$ Resources:Content, Dev1239%>" HeaderStyle-ForeColor="white">
                                        <ItemTemplate>
                                            <div class="form-group">
                                                <div class="form-line">
                                                    <asp:TextBox ID="TxBx_LSI" runat="server"></asp:TextBox>
                                                </div>
                                            </div>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderStyle-Width="200px" HeaderText="<%$ Resources:Content, LinkedUPN%>" HeaderStyle-ForeColor="white">
                                        <ItemTemplate>
                                            <div class="form-group">
                                                <%--<asp:CheckBox ID="Cb_LinkedUser" Text="&nbsp;" Checked="true" runat="server"></asp:CheckBox>
                                                &nbsp;<asp:Literal ID="Ltr_OSID" runat="server" EnableViewState="false" Text='<%$ Resources:Content,Lync285%>' />--%>
                                                <div class="form-line">
                                                    <asp:TextBox ID="TxBx_LinkedUPN" runat="server" MaxLength="200"></asp:TextBox>
                                                    <%-- <asp:RequiredFieldValidator ID="Rfv_OSid" runat="server" ControlToValidate="TxBx_ObjSID"
                                                        Display="None" SetFocusOnError="True" ValidationGroup="BulkUsers"></asp:RequiredFieldValidator>--%>
                                                </div>
                                            </div>

                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderStyle-Width="150px" HeaderText="<%$ Resources:Content, Lync317%>" HeaderStyle-ForeColor="white">
                                        <ItemTemplate>
                                            <div class="form-group">
                                                <asp:DropDownList ID="Ddl_PackageAddonBulk" OnSelectedIndexChanged="Ddl_PackageAddonBulk_SelectedIndexChanged" AutoPostBack="true" runat="server">
                                                </asp:DropDownList>
                                            </div>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderStyle-Width="100px" HeaderText="<%$ Resources:Content, Dev1220%>" HeaderStyle-ForeColor="White">
                                        <ItemTemplate>
                                            <div class="form-group">
                                                <asp:DropDownList ID="Ddl_DialPlanBulk" runat="server"></asp:DropDownList>
                                            </div>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderStyle-Width="100px" HeaderText="<%$ Resources:Content, Dev1232%>" HeaderStyle-ForeColor="White">
                                        <ItemTemplate>
                                            <div class="form-group">
                                                <asp:DropDownList ID="Ddl_VoicePolicyBulk" runat="server"></asp:DropDownList>
                                            </div>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderStyle-Width="100px" HeaderText="<%$ Resources:Content, Dev1221%>" HeaderStyle-ForeColor="White">
                                        <ItemTemplate>
                                            <div class="form-group">
                                                <asp:DropDownList ID="Ddl_ConferencingPolicyBulk" runat="server"></asp:DropDownList>
                                            </div>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderStyle-Width="100px" HeaderText="<%$ Resources:Content, Lync338%>" HeaderStyle-ForeColor="White">
                                        <ItemTemplate>
                                            <div class="form-group">
                                                <asp:DropDownList ID="Ddl_CallBundlesBulk" runat="server"></asp:DropDownList>
                                            </div>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                </Columns>
                            </EM:MPGridView>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12">
                        <asp:CheckBox ID="CB_SetupEmail" Text="<%$ Resources:Content,Lync048%>" runat="server" Checked="true" />
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12">
                        <asp:Button ID="Btn_BulkSave" runat="server" CausesValidation="false" CssClass="btn btn-primary waves-effect btnAction"
                            Text="<%$ Resources:Content,GN0000281%>" />
                        <asp:Button ID="Btn_BulkCancel" runat="server" CausesValidation="false" CssClass="btn btn-primary waves-effect"
                            Text="<%$ Resources:Content,GN0000572%>" />
                    </div>
                </div>

            </div>
            <div id="pnl_BulkMailBoxLog" runat="server" style="display: none">
                <div class="row">
                    <div class="col-xs-12 row-label">
                        <asp:Literal ID="Literal88" runat="server" EnableViewState="false" Text="<%$ Resources:Content,SMI0267%>" />:
                    </div>
                </div>

                <div class="row">
                    <div class="col-xs-12">
                        <div id="Div_Result" runat="server">
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12">
                        <asp:Button ID="Btn_BMBLogClose" runat="server" CausesValidation="false" CssClass="btn btn-primary waves-effect"
                            Text="<%$ Resources:Content,GN000150%>" />
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<%--Group Operations --%>
<div id="Pnl_GroupOperation" runat="server" visible="false">

    <div class="card">
        <div class="header" id="Div2" runat="server">
            <div class="displayInlineBlock">
                <h2>
                    <asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Content,GroupOperations%>" EnableViewState="false" /></h2>
            </div>
            <asp:LinkButton ID="LB_GoBackGroupOperation" runat="server" Text="<%$ Resources:Content,DGN1110542%>" CausesValidation="false"
                CssClass="btn btn-primary waves-effect pull-right m-t--4px" />
        </div>
        <div class="body">
            <EM:GroupOperation ID="GroupOperation1" runat="server" />
        </div>
    </div>
</div>

<div id="Pnl_LinkedAD" runat="server">
    <div class="card">
        <div class="header">
            <div class="displayInlineBlock">
                <h2>
                    <asp:Literal ID="Literal44" runat="server" EnableViewState="false" Text="<%$ Resources:Content,LinkedADSettings%>" />

                </h2>
            </div>

        </div>
        <div class="body">
            <div class="row">
                <div class="col-sm-4 col-xs-12 row-label">
                    <label>
                        <asp:Literal ID="Literal39" runat="server" EnableViewState="false"
                            Text="<%$ Resources:Content,Exch00098%>" />:</label>
                </div>
                <div class="col-sm-5 col-xs-12">
                    <div class="form-group">
                        <div class="form-line">
                            <asp:TextBox ID="TxBx_LinkedDC" runat="server" />
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-4 col-xs-12 row-label">
                    <label>
                        <asp:Literal ID="Literal40" runat="server" EnableViewState="false"
                            Text="<%$ Resources:Content,Exch00100%>" />:</label>
                </div>
                <div class="col-sm-5 col-xs-12">
                    <div class="form-group">
                        <div class="form-line">
                            <asp:TextBox ID="TxBx_LinkedAdminLogin" runat="server" />
                            <asp:RequiredFieldValidator ControlToValidate="TxBx_LinkedAdminLogin" ID="RequiredFieldValidator4"
                                runat="server" Display="None" ValidationGroup="AddMailBoxVG"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-4 col-xs-12 row-label">
                    <label>
                        <asp:Literal ID="Literal41" runat="server" EnableViewState="false"
                            Text="<%$ Resources:Content,Exch00101%>" />:</label>

                </div>
                <div class="col-sm-5 col-xs-12">
                    <div class="form-group">
                        <div class="form-line">
                            <asp:TextBox ID="TxBx_LinkedPass" runat="server" TextMode="Password" MaxLength="30" />
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-4 col-xs-12 row-label">
                    <label>
                        <asp:Literal ID="Literal42" runat="server" EnableViewState="false"
                            Text="<%$ Resources:Content,CreateUserUnderLDAP%>" />:</label>

                </div>
                <div class="col-sm-5 col-xs-12">
                    <div class="form-group">
                        <div class="form-line">
                            <asp:TextBox ID="TxBx_CreateUserUnderLDAP" runat="server" MaxLength="500" />
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-xs-12">

                    <asp:Button ID="Btn_SaveLinkedAD" runat="server" CausesValidation="false"
                        class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,GN0000949%>" />
                    <asp:Button ID="Btn_CancelLinkedAD" runat="server" CausesValidation="false" class="btn btn-primary waves-effect"
                        Text="<%$ Resources:Content,GN0000572%>" />
                </div>

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

<script type="text/javascript">
    function CopyEmail() {

        var user = document.getElementById("<%=TxBx_SignInName.ClientID%>");
        var sip = document.getElementById("<%=Ddl_SIPDomains.ClientID%>");

        var email = document.getElementById("<%=TxBx_AddUserSetupEmail.ClientID%>");

        var user2 = document.getElementById("<%=TxBx_SIPAddress.ClientID%>");
        var sip2 = document.getElementById("<%=Ddl_SIPDomains2.ClientID%>");

        if (user != null && sip != null) {
            user.value = user.value.replace(/[~|+%{}\[\]<>\\'/#?*^&$@]/g, '');
            if (email != null) {
                if (document.getElementById('<%=CB_AddUserSetupEmail.ClientID%>').checked == true) {
                    email.value = user.value + '@' + sip.options[sip.selectedIndex].text;
                }
                else {
                    email.value = '';
                }
            }
            user2.value = user.value;
            sip2.selectedIndex = sip.selectedIndex;
            $(sip2).trigger('change');
        }


    }

    function ShowHideEmail(checkbox) {
        document.getElementById("<%=Tr_SendEmail.ClientID%>").style.display = 'none';
        if (checkbox.checked) {
            document.getElementById("<%=Tr_SendEmail.ClientID%>").style.display = '';
        }
    }


</script>



<asp:Panel ID="Pnl_GroupActionsStatus" CssClass="width-modal-popup-auto" runat="server" ScrollBars="Auto" Style="display: none">
    <div class="col-xs-12">
        <div class="card">
            <div class="header container-fluid">
                <h3 class="pull-left">
                    <asp:Literal ID="Ltl_GroupActions" runat="server" Text='<%$Resources:Content, String7772 %>'></asp:Literal></h3>
                <span>
                    <button type="button" class="close" onclick="$find('<%=MPE_GroupActionsStatus.ClientID%>').hide();">&times;</button>
                </span>
            </div>
            <div class="body">
                <EM:AccountGroupActions ID="GA_GroupActionsStatus" runat="server" />
            </div>
        </div>
    </div>

</asp:Panel>
<asp:Button ID="Btn_TargetGroupActionsStatus" runat="server" Text="<%$ Resources:Content,SMI0007%>"
    Style="display: none;" />
<EM:ModalPopupExtender runat="server" ID="MPE_GroupActionsStatus" BackgroundCssClass="modalBackground"
    DropShadow="false" PopupControlID="Pnl_GroupActionsStatus" TargetControlID="Btn_TargetGroupActionsStatus">
</EM:ModalPopupExtender>

<script lang="javascript">
    AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender1.ClientID%>');
    AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender6.ClientID%>');
    AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender7.ClientID%>');
    AllowArrowKeysInFilteredTextBoxExtender('<%=FilteredTextBoxExtender8.ClientID%>');
    AllowArrowKeysInFilteredTextBoxExtender('<%=FTE_SIPIdentifier.ClientID%>');
</script>
