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

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

<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>
<%@ Register TagPrefix="cc1" Namespace="System.Web.UI" Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" %>

<asp:Content ID="Content5" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div style="display: none" id="Div_LogFile" runat="server">
        <asp:Literal ID="Ltr_DownloadLog" runat="server"></asp:Literal>
    </div>
    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h3>
                    <asp:Literal ID="Literal111" runat="server" Text="<%$ Resources:Content, Lync049 %>"></asp:Literal>
                </h3>
            </div>
            <div class="body">
                <EM:TabContainer ID="TC_OCSSetup" runat="server" OnClientActiveTabChanged="loadTabPanel">
                    <EM:TabPanel ID="Tab_PhoneNumbers" runat="server" HeaderText='<%$ Resources:Content,Lync301%>'>
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab0" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent0" runat="server">

                                <div class="products-step">
                                    <span id="div_s5" runat="server" nowrap="true" class="label label-success">
                                        <asp:LinkButton ID="Lb_PhoneNumbers" runat="server" Text='<%$ Resources:Content, Dev1089 %>' />
                                    </span>
                                    <span id="div_s6" runat="server" nowrap="true" class="label label-default">
                                        <asp:LinkButton ID="Lb_PhoneGroups" runat="server" Text='<%$ Resources:Content, Lync302 %>' />
                                    </span>
                                </div>
                                <div class="col-xs-12"></div>
                                <asp:Panel ID="Pnl_PhoneNumbers" runat="server">
                                    <%-- Operations --%>
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <div id="Tbl_Operations" runat="server" class="Div_OpsRow">
                                                <div class="card">
                                                    <div class="header">
                                                        <h3>
                                                            <%= Resources.Content.GN00001320%>                                                                                                                                 
                                                        </h3>
                                                    </div>
                                                    <div class="body">
                                                        <div class="row">
                                                            <div class="col-xs-12">
                                                                <asp:Button ID="Btn_Export" CssClass="btn btn-primary waves-effect btnAction" runat="server"
                                                                    Text='<%$ Resources:Content,Ex001%>' />
                                                                <asp:Button ID="Btn_Import" CssClass="btn btn-primary waves-effect btnAction" runat="server"
                                                                    Text='<%$ Resources:Content,Lync300%>' />
                                                                <asp:Button ID="Btn_RemoveAllNumbers" runat="server" Custom1="Custom" Style="display: none" Text="<%$ Resources:Content,GN0000278%>"
                                                                    CssClass="btn btn-primary waves-effect btnAction" />
                                                                <EM:ConfirmButtonExtender ID="CBE_RemoveAllNumbers" ConfirmText="<%$ Resources:Content,DGN1119974%>"
                                                                    TargetControlID="Btn_RemoveAllNumbers" runat="server">
                                                                </EM:ConfirmButtonExtender>
                                                                <asp:Button ID="Btn_HideFromUser" runat="server" Custom1="Custom" Style="display: none" Text="<%$ Resources:Content,HideFromUser%>"
                                                                    CssClass="btn btn-primary waves-effect btnAction" />
                                                                <asp:Button ID="Btn_ShowToUser" runat="server" Custom1="Custom" Style="display: none" Text="<%$ Resources:Content,ShowToUser%>"
                                                                    CssClass="btn btn-primary waves-effect btnAction" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <%--Start Search box--%>

                                    <asp:Panel ID="Panel1" runat="server" DefaultButton="Btn_FilterPhone">
                                        <div class="row">
                                            <div class="panel-group search-panel" id="AS_PhoneNumbers" role="tablist" aria-multiselectable="true">
                                                <div class="col-xs-12" role="tab" id="SH_PhoneNumbers">
                                                    <div class="card">
                                                        <div class="header" role="button" data-toggle="collapse" data-parent="#AS_PhoneNumbers" href="#<%= CSB_PhoneNumbers.ClientID%>" aria-expanded="true" aria-controls="SH_PhoneNumbers">
                                                            <h3>
                                                                <%= Resources.Content.GN0000395%>
                                                            </h3>
                                                        </div>
                                                        <div id="CSB_PhoneNumbers" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_PhoneNumbers" aria-expanded="false">
                                                            <div class="row">
                                                                <div class="col-md-2 col-sm-6 col-xs-12">
                                                                    <div class="form-group">
                                                                        <asp:DropDownList ID="Ddl_SearchOption" runat="server">
                                                                            <asp:ListItem Text="<%$ Resources:Content,OCS003 %>" Value="1"></asp:ListItem>
                                                                            <asp:ListItem Text="<%$ Resources:Content,GN000165 %>" Value="2"></asp:ListItem>
                                                                            <asp:ListItem Text="<%$ Resources:Content,String336 %>" Value="3"></asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </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_PhoneNumber" runat="server"></asp:TextBox>
                                                                            <asp:Label ID="Label11" runat="server" Text="LIKE" CssClass="form-label"></asp:Label>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                                    <div class="form-group">
                                                                        <asp:DropDownList ID="Ddl_PhoneCountries" AutoPostBack="true" runat="server"></asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <div class="col-md-2 col-sm-6 col-xs-12">
                                                                    <div class="form-group">
                                                                        <asp:DropDownList ID="Ddl_PhoneRegions" AutoPostBack="true" runat="server"></asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <div class="col-md-2 col-sm-6 col-xs-12">
                                                                    <div class="form-group">
                                                                        <asp:DropDownList ID="Ddl_PhoneTypes" runat="server"></asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                                <div class="col-xs-12">
                                                                    <div class="form-group">
                                                                        <asp:CheckBox ID="Cb_HiddenFromUserWorkflow" Text="<%$ Resources:Content,HideFromUser %>" runat="server" />
                                                                    </div>
                                                                </div>
                                                            </div>

                                                            <div class="row">
                                                                <div class="col-xs-12">
                                                                    <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_FilterPhone" runat="server" Text='<%$ Resources:Content, GN0000395 %>' />
                                                                    <asp:Button ID="Btn_ClearPhone" Visible="false" CssClass="btn btn-primary waves-effect" runat="server"
                                                                        Text="<%$ Resources:Content,String289 %>" />
                                                                </div>
                                                            </div>

                                                        </div>

                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </asp:Panel>

                                    <%--End search box--%>
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <asp:GridView ID="GV_PhoneNumbers" CssClass="table table-bordered table-striped table-hover" AllowSorting="true" AllowPaging="true"
                                                EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False">
                                                <Columns>
                                                    <asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderStyle-CssClass="col-xs-1" HeaderText='<%$ Resources:Content,GN0000370 %>'>
                                                        <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="ChkBx_Item" onclick="SetCheckedHeader(this.checked, this,'1');" Text="&nbsp;" runat="server"></asp:CheckBox>

                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderStyle-CssClass="col-xs-1" HeaderText='<%$ Resources:Content, String385 %>'>
                                                        <ItemTemplate>
                                                            <%--<asp:Image ID="Img_SGStatus" runat="server" />--%>
                                                            <asp:Label ID="Lb_SGStatus" runat="server"></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText='<%$ Resources:Content, SPT002215 %>'
                                                        HeaderStyle-CssClass="col-xs-2">
                                                        <ItemTemplate>
                                                            <asp:HiddenField ID="HF_NumberId" runat="server" />
                                                            <asp:Literal ID="Ltl_Number" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Number") %>' />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000882 %>'
                                                        HeaderStyle-CssClass="col-xs-2">
                                                        <ItemTemplate>
                                                            <asp:Label ID="Lb_CountryInfo" runat="server"></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <%--<asp:BoundField DataField="CountryName" HeaderText='<%$ Resources:Content, GN0000882 %>' HeaderStyle-CssClass="col-xs-1" />
                                                    <asp:BoundField DataField="Area" HeaderText='<%$ Resources:Content, Lync362 %>' HeaderStyle-CssClass="col-xs-1" />
                                                    <asp:BoundField DataField="Type" HeaderText='<%$ Resources:Content, GN0000673 %>' HeaderStyle-CssClass="col-xs-1" />--%>
                                                    <asp:TemplateField HeaderText='<%$ Resources:Content, DEV1133 %>'>
                                                        <ItemTemplate>
                                                            <asp:Literal ID="Ltl_AssignedTo" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.AssignedTo") %>' />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText='<%$ Resources:Content, GN000165 %>' HeaderStyle-CssClass="col-xs-2">
                                                        <ItemTemplate>
                                                            <asp:Literal ID="Ltl_GroupName" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.PhoneGroupID") %>' />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <%--<asp:TemplateField HeaderText="<%$ Resources:Content, HideFromUser %>" HeaderStyle-CssClass="col-xs-1">
                                                        <ItemTemplate>
                                                            <asp:Label ID="Lbl_HideFromUser" runat="server"></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>--%>
                                                    <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-CssClass="col-xs-1">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="LB_Remove" CssClass="btn btn-primary waves-effect btnAction" CommandName="Remove" runat="server"
                                                                Text="<%$ Resources:Content,GN0000278%>" />
                                                            <EM:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,DGN1119974%>"
                                                                TargetControlID="LB_Remove" runat="server">
                                                            </EM:ConfirmButtonExtender>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                                <%--PagerTemplate Start--%>
                                                <PagerTemplate>
                                                    <EM:Pager ID="Pager1" runat="server" />
                                                </PagerTemplate>
                                                <%--PagerTemplate End--%>
                                            </asp:GridView>
                                        </div>
                                    </div>

                                </asp:Panel>
                                <asp:Panel ID="Pnl_ImportNumbers" runat="server">
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <div class="card">
                                                <div class="header">
                                                    <h3>
                                                        <asp:Literal ID="Literal4" runat="server" Text="<%$ Resources:Content, DEV1120 %>"></asp:Literal>
                                                    </h3>
                                                </div>
                                                <div class="body">
                                                    <div id="Pnl_BulkStep1" runat="server">
                                                        <div class="row">
                                                            <div class="col-sm-2 col-xs-12 row-label">
                                                                <asp:RadioButton ID="Rb_OnFly" runat="server" GroupName="RBPhoneNumbers" Text='<%$ Resources:Content,Lync303%>' />:
                                                            </div>
                                                            <div class="col-sm-10 col-xs-12">
                                                                <div class="row">
                                                                    <div class="col-sm-2 col-xs-12 row-label">*<asp:Label ID="Label7" runat="server" Text='<%$ Resources:Content,GN0000882%>' EnableViewState="false" />:</div>
                                                                    <div class="col-sm-4 col-xs-12">
                                                                        <div class="form-group">
                                                                            <asp:DropDownList ID="Ddl_Countries" runat="server"></asp:DropDownList>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="row">
                                                                    <div class="col-sm-2 col-xs-12 row-label">*<asp:Label ID="Literal52" runat="server" Text='<%$ Resources:Content,Lync362%>' EnableViewState="false" />:</div>
                                                                    <div class="col-sm-4 col-xs-12">
                                                                        <div class="form-group">
                                                                            <div class="form-line">
                                                                                <asp:TextBox ID="TxBx_Region" runat="server"></asp:TextBox>
                                                                                <EM:AutoCompleteExtender ServiceMethod="SearchAreasSubs"
                                                                                    MinimumPrefixLength="2"
                                                                                    CompletionInterval="100" EnableCaching="false" CompletionSetCount="10"
                                                                                    TargetControlID="TxBx_Region"
                                                                                    ID="AutoCompleteExtender1" runat="server">
                                                                                </EM:AutoCompleteExtender>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="row">
                                                                    <div class="col-sm-2 col-xs-12 row-label">*<asp:Label ID="Literal70" runat="server" Text='<%$ Resources:Content,GN0000673%>' EnableViewState="false" />:</div>
                                                                    <div class="col-sm-4 col-xs-12">
                                                                        <div class="form-group">
                                                                            <div class="form-line">
                                                                                <asp:TextBox ID="Txbx_Type" runat="server"></asp:TextBox>
                                                                                <EM:AutoCompleteExtender ServiceMethod="SearchTypesSubs"
                                                                                    MinimumPrefixLength="2"
                                                                                    CompletionInterval="100" EnableCaching="false" CompletionSetCount="10"
                                                                                    TargetControlID="Txbx_Type"
                                                                                    ID="AutoCompleteExtender2" runat="server">
                                                                                </EM:AutoCompleteExtender>

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

                                                                <div class="row">
                                                                    <div class="col-sm-2 col-xs-12 row-label">*<asp:Label ID="Label8" runat="server" Text='<%$ Resources:Content,DEV1089%>' EnableViewState="false" />:</div>
                                                                    <div class="col-sm-4 col-xs-12">
                                                                        <div class="form-group">
                                                                            <asp:TextBox ID="TxBx_PhoneNumbers" runat="server" TextMode="MultiLine" Rows="5" Width="100%"></asp:TextBox>
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-sm-2 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="Phone Numbers" data-content="Please enter each number in new line.">
                                                                            <i class="material-icons">info</i>
                                                                        </button>
                                                                    </div>
                                                                </div>
                                                                <div class="row">
                                                                    <div class="col-xs-12">
                                                                        <asp:CheckBox ID="Cb_HideFromUser" runat="server" Text='<%$ Resources:Content,HideFromUser%>' />
                                                                    </div>
                                                                </div>

                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                <asp:RadioButton ID="Rb_Csv" runat="server" GroupName="RBPhoneNumbers" Text='<%$ Resources:Content,String380%>' />:
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <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_PhoneNumbers" runat="server" />
                                                                    </span>
                                                                    <span class="fileupload-preview"></span>
                                                                    <a href="#" class="close fileupload-exists" data-dismiss="fileupload" style="float: none">×</a>

                                                                    <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="FU_PhoneNumbers"
                                                                        Display="None" SetFocusOnError="True" ValidationGroup="ImportNumbers"></asp:RequiredFieldValidator>--%>
                                                                </div>
                                                            </div>
                                                            <div class="col-sm-4 col-xs-12">
                                                                <asp:Literal ID="Ltl_DownLoadCSV" runat="server"></asp:Literal>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-xs-12">
                                                                <asp:ValidationSummary ID="ValidationSummary5" runat="server" ShowMessageBox="true"
                                                                    ShowSummary="false" ValidationGroup="ImportNumbers" HeaderText="<%$ Resources:Content,EM000001%>" />
                                                                <asp:Button ID="Btn_Next" runat="server" ValidationGroup="ImportNumbers" CausesValidation="True"
                                                                    class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN00001242%>" />
                                                                <asp:Button ID="Btn_ImportCancel" runat="server" CausesValidation="false" CssClass="btn btn-primary waves-effect"
                                                                    Text="<%$ Resources:Content,GN0000572%>" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <asp:Panel ID="Pnl_BulkStep2" runat="server" Visible="false">
                                                        <div class="row">
                                                            <div class="col-xs-12">
                                                                <asp:GridView ID="GV_BulkNumbers" CssClass="table table-bordered table-striped table-hover" runat="server" AllowPaging="false" AllowSorting="false"
                                                                    EmptyDataText='<%$ Resources:Content, GN00001375 %>' AutoGenerateColumns="false">
                                                                    <Columns>
                                                                        <asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                                            <HeaderTemplate>
                                                                                <asp:CheckBox class="option-menu" Checked="true" ID="ChkBx_All" runat="server" Text=" " onclick="SetCheckedHeader(this.checked, this,'All');" />
                                                                            </HeaderTemplate>
                                                                            <ItemTemplate>
                                                                                <asp:CheckBox class="option-menu" ID="ChkBx_Item" Checked="true" Text="&nbsp;" runat="server"></asp:CheckBox>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="<%$ Resources:Content, OCS003 %>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="Lbl_PhoneNumber" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Number")%>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="<%$ Resources:Content, GN0000882 %>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="Lbl_Country" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Country")%>'></asp:Label>
                                                                                <asp:HiddenField ID="HF_CountryId" runat="server" Value='<%# DataBinder.Eval(Container, "DataItem.CountryId")%>' />
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="<%$ Resources:Content, Lync362 %>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-1">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="Lbl_Area" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Area")%>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="<%$ Resources:Content, GN0000673 %>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-1">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="Lbl_Type" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Type")%>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                        <asp:TemplateField HeaderText="<%$ Resources:Content, HideFromUser %>" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                                                            <ItemTemplate>
                                                                                <asp:Label ID="Lbl_HideFromUser" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.HideFromUser")%>'></asp:Label>
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                    </Columns>
                                                                </asp:GridView>
                                                            </div>
                                                            <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>
                                                    </asp:Panel>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </asp:Panel>
                                <asp:Panel ID="Pnl_PhoneGroups" runat="server">
                                    <%--Start Search box--%>
                                    <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="row">
                                                        <div class="col-xs-12">
                                                            <asp:Button ID="Btn_AddPhoneGroup" class="btn btn-primary waves-effect btnAction" runat="server"
                                                                Text='<%$ Resources:Content,DEV1116%>' />
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                    <asp:Panel ID="Pnl_Search" runat="server" CssClass="row" DefaultButton="Btn_Filter">
                                        <div class="panel-group search-panel" id="AS_PhoneGroups" role="tablist" aria-multiselectable="true">
                                            <div class="col-xs-12" role="tab" id="SH_PhoneGroups">
                                                <div class="card">
                                                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_PhoneGroups" href="#<%= CSB_PhoneGroups.ClientID%>" aria-expanded="true" aria-controls="SH_PhoneGroups">
                                                        <h3>
                                                            <%= Resources.Content.GN0000395%>
                                                        </h3>
                                                    </div>
                                                    <div id="CSB_PhoneGroups" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_PhoneGroups" aria-expanded="false">
                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12" id="td_OwnerDdl" runat="server">
                                                                <div class="form-group">
                                                                    <asp:DropDownList ID="DDL_Owner" runat="server" AutoPostBack="true">
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>

                                                            <div class="col-sm-3 col-xs-12">
                                                                <div class="form-group">
                                                                    <asp:DropDownList ID="DDL_Customer" runat="server">
                                                                        <asp:ListItem Selected="True" Text='<%$ Resources:Content,GN0000934  %>' Value="-1"></asp:ListItem>
                                                                    </asp:DropDownList>
                                                                </div>
                                                            </div>
                                                            <div class="col-sm-3 col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_PhoneGroup" runat="server"></asp:TextBox>
                                                                        <asp:Label CssClass="form-label" ID="Literal2" runat="server" Text='<%$ Resources:Content,GroupName%>' EnableViewState="false" />
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-xs-12">
                                                                <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Filter" runat="server" Text='<%$ Resources:Content, GN0000395 %>' />
                                                                <asp:Button ID="Btn_Clear" Visible="false" CssClass="btn btn-primary waves-effect" runat="server"
                                                                    Text="<%$ Resources:Content,String289 %>" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </asp:Panel>

                                    <%--End search box--%>


                                    <%--end button--%>
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <asp:GridView ID="GV_PhoneGroups" CssClass="table table-bordered table-striped table-hover" AllowSorting="true" AllowPaging="true"
                                                EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False">
                                                <Columns>
                                                    <asp:TemplateField HeaderStyle-CssClass="col-xs-1" HeaderText='<%$ Resources:Content, String385 %>'>
                                                        <ItemTemplate>
                                                            <%--<asp:Image ID="Img_SGStatus" runat="server" />--%>
                                                            <asp:Label ID="Lb_SGStatus" runat="server"></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText='<%$ Resources:Content, GN000165 %>' HeaderStyle-CssClass="col-xs-3">
                                                        <ItemTemplate>
                                                            <asp:HiddenField ID="HF_GroupId" runat="server" />
                                                            <asp:HyperLink ID="LB_GroupName" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.GroupName") %>' />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField SortExpression="CustomerID" HeaderStyle-CssClass="col-xs-2" HeaderText="<%$ Resources:Content,GN0000715%>">
                                                        <ItemTemplate>
                                                            <asp:HyperLink ID="LB_ClientID" runat="server"></asp:HyperLink>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <%-- <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000850 %>' HeaderStyle-CssClass="col-xs-2">
                                                        <ItemTemplate>
                                                            <asp:Literal ID="Ltl_CustomerName" runat="server" Text="" />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>--%>
                                                    <asp:TemplateField HeaderText='<%$ Resources:Content, DEV1128 %>' HeaderStyle-CssClass="col-xs-2">
                                                        <ItemTemplate>
                                                            <asp:Literal ID="Ltl_TotalNumbers" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.TotalNumbers") %>' />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText='<%$ Resources:Content, Lync334 %>' HeaderStyle-CssClass="col-xs-2">
                                                        <ItemTemplate>
                                                            <asp:Literal ID="Ltl_MaximumQuota" runat="server" />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-CssClass="col-xs-2">
                                                        <ItemTemplate>

                                                            <asp:HyperLink ID="LB_Edit" CssClass="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,GN0000276%>" />
                                                            <asp:LinkButton ID="LB_Remove" CssClass="btn btn-primary waves-effect btnAction" CommandName="Remove"
                                                                runat="server" Text="<%$ Resources:Content,GN0000278%>" />
                                                            <EM:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,DEV1197%>"
                                                                TargetControlID="LB_Remove" runat="server">
                                                            </EM:ConfirmButtonExtender>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                                <%--PagerTemplate Start--%>
                                                <PagerTemplate>
                                                    <EM:Pager ID="Pager2" runat="server" />
                                                </PagerTemplate>
                                                <%--PagerTemplate End--%>
                                            </asp:GridView>
                                        </div>
                                    </div>
                                </asp:Panel>
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                    <EM:TabPanel ID="Tab_DialPlans" runat="server" HeaderText='<%$ Resources:Content, Dev1220%>'>
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab1" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent1" runat="server" Visible="false">
                                <asp:Panel ID="Pnl_DialPlanListing" runat="server">
                                    <%-- Operations --%>
                                    <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="row">
                                                        <div class="col-xs-12">
                                                            <asp:Button ID="Btn_AddDialPlan" class="btn btn-primary waves-effect btnAction" runat="server"
                                                                Text="<%$ Resources:Content,Lync359%>" />
                                                            <asp:Button ID="Btn_SyncDialPlan" class="btn btn-primary waves-effect btnAction" runat="server"
                                                                Text="Sync Dial Plan" />
                                                            <EM:ConfirmButtonExtender ID="CBE_SyncDialPlan" ConfirmText="<%$ Resources:Content,DGN1119974%>"
                                                                TargetControlID="Btn_SyncDialPlan" runat="server">
                                                            </EM:ConfirmButtonExtender>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                    <%-- Search Filter --%>
                                    <asp:Panel ID="Pnl_DialPlanFilter" runat="server" CssClass="row" DefaultButton="Btn_DialPlanFilter">
                                        <div class="panel-group search-panel" id="AS_DialPlan" role="tablist" aria-multiselectable="true">
                                            <div class="col-xs-12" role="tab" id="SH_DialPlan">
                                                <div class="card">
                                                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_DialPlan" href="#<%= CSB_DialPlan.ClientID%>" aria-expanded="true" aria-controls="SH_DialPlan">
                                                        <h3>
                                                            <%= Resources.Content.GN0000395%>
                                                        </h3>
                                                    </div>
                                                    <div id="CSB_DialPlan" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_DialPlan" aria-expanded="false">
                                                        <div class="row">
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-grou">
                                                                    <asp:DropDownList ID="Ddl_ServerGroupsFilter" runat="server"></asp:DropDownList>
                                                                </div>
                                                            </div>
                                                            <div class="col-sm-3 col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_NameFilter" runat="server"></asp:TextBox>
                                                                        <asp:Label CssClass="form-label" ID="Literal47" runat="server" Text='<%$ Resources:Content,GN000170%>' EnableViewState="false" />
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="col-sm-3 col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_DescriptionFilter" runat="server"></asp:TextBox>
                                                                        <asp:Label CssClass="form-label" ID="Literal50" runat="server" Text='<%$ Resources:Content,GN0000597%>' EnableViewState="false" />
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-xs-12">
                                                                <asp:Button ID="Btn_DialPlanFilter" CssClass="btn btn-primary waves-effect" runat="server" Text='<%$ Resources:Content, GN0000395 %>' />
                                                                <asp:Button ID="Btn_CancelFilter" Visible="false" CssClass="btn btn-primary waves-effect" runat="server"
                                                                    Text="<%$ Resources:Content,String289 %>" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </asp:Panel>

                                    <%-- Dial Plan Listing --%>
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <asp:GridView ID="GV_DialPlans" CssClass="table table-bordered table-striped table-hover table-layout-fixed" AllowSorting="true" AllowPaging="true"
                                                EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False">
                                                <Columns>
                                                    <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000102 %>' HeaderStyle-CssClass="col-xs-3">
                                                        <ItemTemplate>
                                                            <asp:Label ID="Lbl_ServerGroup" runat="server"></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText='<%$ Resources:Content, GN000170 %>' HeaderStyle-CssClass="col-xs-">
                                                        <ItemTemplate>
                                                            <asp:Literal ID="Lt_DialPlan" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Name")%>'></asp:Literal>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                   <%-- <asp:BoundField DataField="Name" HeaderText='<%$ Resources:Content, GN000170 %>' HeaderStyle-CssClass="col-xs-3" />--%>
                                                    <asp:BoundField DataField="Description" HeaderText='<%$ Resources:Content, GN0000597 %>' HeaderStyle-CssClass="col-xs-2" />
                                                    <asp:BoundField DataField="DialinConferencingRegion" HeaderText='<%$ Resources:Content, Lync362 %>' HeaderStyle-CssClass="col-xs-2" />
                                                    <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-CssClass="col-xs-2">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="LB_Edit" CssClass="btn btn-primary waves-effect" CommandName="EditRow"
                                                                runat="server" Text="<%$ Resources:Content,GN0000276%>" />
                                                            <asp:LinkButton ID="LB_Remove" CssClass="btn btn-primary waves-effect btnAction" CommandName="Remove" runat="server"
                                                                Text="<%$ Resources:Content,GN0000278%>" />
                                                            <EM:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,DGN1119974%>"
                                                                TargetControlID="LB_Remove" runat="server">
                                                            </EM:ConfirmButtonExtender>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                                <%--PagerTemplate Start--%>
                                                <PagerTemplate>
                                                    <EM:Pager ID="Pager3" runat="server" />
                                                </PagerTemplate>
                                                <%--PagerTemplate End--%>
                                            </asp:GridView>
                                        </div>
                                    </div>

                                </asp:Panel>
                                <asp:Panel ID="Pnl_AddEditDialPlanes" runat="server" DefaultButton="Btn_SaveDialPlan">
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <div class="card">
                                                <div class="header">
                                                    <h3>
                                                        <asp:Literal ID="Ltr_PanelNameDP" runat="server" Text="<%$ Resources:Content,Lync359%>" />
                                                    </h3>
                                                    <asp:HiddenField ID="Hf_DialPlanId" runat="server" />
                                                </div>
                                                <div class="body">
                                                    <div class="row">
                                                        <div class="col-sm-3 col-xs-12 row-label">
                                                            <asp:Literal ID="Literal69" runat="server" Text="<%$ Resources:Content,GN0000102%>" EnableViewState="false"></asp:Literal>:
                                                        </div>
                                                        <div class="col-sm-4 col-xs-12">
                                                            <div class="form-group">
                                                                <asp:DropDownList ID="Ddl_ServerGroups" runat="server"></asp:DropDownList>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="row">
                                                        <div class="col-sm-3 col-xs-12 row-label">
                                                            *<asp:Literal ID="Literal53" runat="server" Text="<%$ Resources:Content,GN000170%>" EnableViewState="false"></asp:Literal>:
                                                        </div>
                                                        <div class="col-sm-4 col-xs-12">
                                                            <div class="form-group">
                                                                <div class="form-line">
                                                                    <asp:TextBox ID="TxBx_Name" runat="server"></asp:TextBox>
                                                                    <asp:RequiredFieldValidator ID="Rfv_Name" runat="server" ValidationGroup="Plan" Display="None" ControlToValidate="TxBx_Name"></asp:RequiredFieldValidator>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>

                                                    <div class="row">
                                                        <div class="col-sm-3 col-xs-12 row-label">
                                                            *<asp:Literal ID="Literal54" runat="server" Text="<%$ Resources:Content,Lync360%>" EnableViewState="false"></asp:Literal>:
                                                        </div>
                                                        <div class="col-sm-4 col-xs-12">
                                                            <div class="form-group">
                                                                <div class="form-line">
                                                                    <asp:TextBox ID="TxBx_SimpleName" runat="server" MaxLength="256"></asp:TextBox>
                                                                    <asp:RequiredFieldValidator ID="Rfv_SimpleName" runat="server" Display="None" ValidationGroup="Plan" ControlToValidate="TxBx_SimpleName"></asp:RequiredFieldValidator>
                                                                    <asp:RegularExpressionValidator ID="Rev_SimpleName" runat="server" ValidationGroup="Plan" ControlToValidate="TxBx_SimpleName" ValidationExpression="^[a-zA-Z0-9+-_.]*$" ErrorMessage="Invalid Simple Name." Display="None"></asp:RegularExpressionValidator>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>

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

                                                    <div class="row">
                                                        <div class="col-sm-3 col-xs-12 row-label">
                                                            <asp:Literal ID="Literal56" runat="server" Text="<%$ Resources:Content,Lync363%>" EnableViewState="false"></asp:Literal>:
                                                        </div>
                                                        <div class="col-sm-4 col-xs-12">
                                                            <div class="form-group">
                                                                <div class="form-line">
                                                                    <asp:TextBox ID="TxBx_ConferencingRegion" runat="server"></asp:TextBox>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="col-sm-4 col-xs-12">
                                                            <button type="button" class="btn btn-info btn-block btn-xs waves-effect" style="width: 30px;" data-trigger="focus" data-container="body" data-toggle="popover"
                                                                data-placement="left" title="Conferencing Region" data-content="A dial-in conferencing region associates a dial plan with one or more dial-in access numbers. Each dial-in access number must be assigned a dial-in conferencing region. Specify the dial-in conferencing region so that you can associate dial-in access numbers with this dial plan.">
                                                                <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="Literal57" runat="server" Text="<%$ Resources:Content,Lync364%>" EnableViewState="false"></asp:Literal>:
                                                        </div>
                                                        <div class="col-sm-4 col-xs-12">
                                                            <div class="form-group">
                                                                <div class="form-line">
                                                                    <asp:TextBox ID="TxBx_AccessPrefix" runat="server"></asp:TextBox>
                                                                    <asp:RegularExpressionValidator ID="Rev_AccessPrefix" runat="server" ControlToValidate="TxBx_AccessPrefix" ValidationGroup="Plan" ValidationExpression="[0-9]{1,4}" Display="None" ErrorMessage="Invalid External Access Prefix."></asp:RegularExpressionValidator>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="col-sm-4 col-xs-12">
                                                            <button type="button" class="btn btn-info btn-block btn-xs waves-effect" style="width: 30px;" data-trigger="focus" data-container="body" data-toggle="popover"
                                                                data-placement="left" title="External Access Prefix" data-content="You need to specify an external access prefix only if you need to dial a number to get an outside line in your organization. Type the number that you need to dial for an outside line in this field.">
                                                                <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="Literal58" runat="server" Text="<%$ Resources:Content,Lync365%>" EnableViewState="false"></asp:Literal>:
                                                        </div>
                                                        <div class="col-sm-9 col-xs-12">
                                                            <div class="row">
                                                                <div class="col-xs-12">
                                                                    <asp:Button ID="Btn_NewRule" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,SM400037%>" />
                                                                    <asp:Button ID="Btn_Clone" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,DGN1110198%>" />
                                                                    <asp:Button ID="Btn_Select" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000890%>" />
                                                                    <asp:Button ID="Btn_ShowDetails" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,Lync369%>" />
                                                                    <asp:Button ID="Btn_Remove" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,GN0000278%>" />
                                                                    <asp:Button ID="Btn_RemoveAll" runat="server" class="btn btn-primary waves-effect btnAction" Text="Remove All" />
                                                                    <asp:Button ID="Btn_MoveUp" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,SMI0456%>" />
                                                                    <asp:Button ID="Btn_MoveDown" runat="server" class="btn btn-primary waves-effect btnAction" Text="<%$ Resources:Content,SMI0457%>" />
                                                                </div>
                                                            </div>
                                                            <div class="row">
                                                                <div class="col-xs-12">
                                                                    <asp:GridView ID="GV_NormalizationRules" CssClass="table table-bordered table-striped table-hover table-layout-fixed" AllowSorting="true"
                                                                        runat="server" AutoGenerateColumns="False" EmptyDataText='<%$ Resources:Content, GN00001375 %>'>
                                                                        <Columns>
                                                                            <asp:TemplateField HeaderStyle-CssClass="col-xs-1">
                                                                                <ItemTemplate>
                                                                                    <asp:RadioButton ID="Rb_SelectMe" runat="server" Text="&nbsp;" GroupName="RBRules" />
                                                                                    <asp:HiddenField ID="Hf_Description" runat="server" Value='<%# DataBinder.Eval(Container, "DataItem.Description")%>' />
                                                                                    <asp:HiddenField ID="Hf_StartingDigits" runat="server" Value='<%# DataBinder.Eval(Container, "DataItem.StartingDigits")%>' />
                                                                                    <asp:HiddenField ID="Hf_LengthOption" runat="server" Value='<%# DataBinder.Eval(Container, "DataItem.LengthOption")%>' />
                                                                                    <asp:HiddenField ID="Hf_LengthValue" runat="server" Value='<%# DataBinder.Eval(Container, "DataItem.LengthValue")%>' />
                                                                                    <asp:HiddenField ID="Hf_DigitsToRemove" runat="server" Value='<%# DataBinder.Eval(Container, "DataItem.DigitsToRemove")%>' />
                                                                                    <asp:HiddenField ID="Hf_DigitsToAdd" runat="server" Value='<%# DataBinder.Eval(Container, "DataItem.DigitsToAdd")%>' />
                                                                                    <asp:HiddenField ID="Hf_IsInternalExtension" runat="server" Value='<%# DataBinder.Eval(Container, "DataItem.IsInternalExtension")%>' />
                                                                                    <asp:HiddenField ID="Hf_Priority" runat="server" Value='<%# DataBinder.Eval(Container, "DataItem.Priority")%>' />
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:BoundField HeaderStyle-CssClass="col-xs-4" DataField="Name" HeaderText='<%$ Resources:Content, Lync366 %>' />
                                                                            <asp:BoundField HeaderStyle-CssClass="col-xs-4" DataField="Pattern" HeaderText='<%$ Resources:Content, Lync367 %>' />
                                                                            <asp:BoundField HeaderStyle-CssClass="col-xs-3" DataField="Translation" HeaderText='<%$ Resources:Content, Lync368 %>' />
                                                                        </Columns>
                                                                    </asp:GridView>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>

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

                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                    <EM:TabPanel ID="Tab_Conference" runat="server" HeaderText="<%$ Resources:Content,OCS001%>">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab2" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent2" runat="server" Visible="false">
                                <ajax:UpdatePanel ID="UpdatePanel1" runat="server">
                                    <ContentTemplate>
                                        <asp:Panel ID="Pnl_ConferenceNumbersListing" runat="server">
                                            <%-- Operations --%>
                                            <div class="row Div_OpsRow" id="Div_OpsRow3" runat="server">
                                                <div class="col-xs-12">
                                                    <div class="card">
                                                        <div class="header">
                                                            <h3>
                                                                <%= Resources.Content.GN00001320%>                                                                                                                                 
                                                            </h3>
                                                        </div>
                                                        <div class="body">
                                                            <div class="row">
                                                                <div class="col-xs-12">
                                                                    <asp:Button ID="Btn_AddConferenceNumber" class="btn btn-primary waves-effect btnAction" runat="server"
                                                                        Text="<%$ Resources:Content,OCS004%>" />
                                                                    <asp:Button ID="Btn_SyncDialinAccessNumbers" class="btn btn-primary waves-effect btnAction" runat="server"
                                                                        Text="<%$ Resources:Content,SyncDialinConferenceAccess%>" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

                                            <%-- Search Filter --%>
                                            <asp:Panel ID="PNL_DialinFilter" runat="server" CssClass="row" DefaultButton="Btn_DialinFilter">
                                                <div class="panel-group search-panel" id="AS_ConfNumbers" role="tablist" aria-multiselectable="true">
                                                    <div class="col-xs-12" role="tab" id="SH_ConfNumbers">
                                                        <div class="card">
                                                            <div class="header" role="button" data-toggle="collapse" data-parent="#AS_ConfNumbers" href="#<%= CSB_ConfNumbers.ClientID%>" aria-expanded="true" aria-controls="SH_ConfNumbers">
                                                                <h3>
                                                                    <%= Resources.Content.GN0000395%>
                                                                </h3>
                                                            </div>
                                                            <div id="CSB_ConfNumbers" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_ConfNumbers" aria-expanded="false">
                                                                <div class="row">
                                                                    <div class="col-sm-3 col-xs-12">
                                                                        <div class="form-group form-float">
                                                                            <div class="form-line">
                                                                                <asp:TextBox ID="TxBx_DialinNumberFilter" runat="server"></asp:TextBox>
                                                                                <asp:Label CssClass="form-label" ID="Label1" runat="server" Text='<%$ Resources:Content,GN00012%>' EnableViewState="false" />
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-sm-3 col-xs-12">
                                                                        <div class="form-group form-float">
                                                                            <div class="form-line">
                                                                                <asp:TextBox ID="TxBx_DialinRegionFilter" runat="server"></asp:TextBox>
                                                                                <asp:Label CssClass="form-label" ID="Label2" runat="server" Text='<%$ Resources:Content,Lync362%>' EnableViewState="false" />
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                    <div class="col-sm-4 col-xs-12">
                                                                        <div class="form-group">
                                                                            <asp:DropDownList ID="Ddl_DialinServerFilter" runat="server"></asp:DropDownList>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="row">
                                                                    <div class="col-xs-12">
                                                                        <asp:Button ID="Btn_DialinFilter" CssClass="btn btn-primary waves-effect" runat="server"
                                                                            Text="<%$ Resources:Content,GN0000395 %>" />
                                                                        <asp:Button ID="Btn_DialinClear" Visible="false" CssClass="btn btn-primary waves-effect" runat="server"
                                                                            Text="<%$ Resources:Content,String289 %>" />
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>

                                            </asp:Panel>

                                            <%-- Conference numbers listing --%>
                                            <div class="row">
                                                <div class="col-xs-12">
                                                    <asp:GridView ID="GV_ConferenceDialIn" CssClass="table table-bordered table-striped table-hover table-layout-fixed" AllowSorting="true" AllowPaging="true"
                                                        EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False">
                                                        <Columns>
                                                            <asp:BoundField HeaderStyle-CssClass="col-xs-2" HeaderText='<%$ Resources:Content,Lync166%>' DataField="DisplayNumber" />
                                                            <asp:BoundField HeaderStyle-CssClass="col-xs-2" HeaderText='<%$ Resources:Content,GN00001113%>' DataField="DisplayName" />
                                                            <asp:TemplateField HeaderText='<%$ Resources:Content,Dev1238%>' HeaderStyle-CssClass="col-xs-2">
                                                                <ItemTemplate>
                                                                    <asp:HiddenField ID="HF_NumberId" runat="server" />
                                                                    <asp:Literal runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.CountryCode") + " " + DataBinder.Eval(Container, "DataItem.Number")%>'></asp:Literal>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText='<%$ Resources:Content,Lync362%>' HeaderStyle-CssClass="col-xs-2">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="Lbl_Regions" runat="server"></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText='<%$ Resources:Content,GN00003000%>' HeaderStyle-CssClass="col-xs-2">
                                                                <ItemTemplate>
                                                                    <asp:Label ID="Lbl_Language" runat="server"></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-CssClass="col-xs-2">
                                                                <ItemTemplate>
                                                                    <asp:LinkButton ID="LB_Edit" CssClass="btn btn-primary waves-effect" CommandName="EditNumber"
                                                                        runat="server" Text="<%$ Resources:Content,GN0000276%>" />
                                                                    <asp:LinkButton ID="LB_Remove" CssClass="btn btn-primary waves-effect btnAction" CommandName="Remove"
                                                                        runat="server" Text="<%$ Resources:Content,GN0000278%>" />
                                                                    <EM:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,GN000200%>"
                                                                        TargetControlID="LB_Remove" runat="server">
                                                                    </EM:ConfirmButtonExtender>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                        </Columns>
                                                        <%--PagerTemplate Start--%>
                                                        <PagerTemplate>
                                                            <EM:Pager ID="Pager4" runat="server" />
                                                        </PagerTemplate>
                                                        <%--PagerTemplate End--%>
                                                    </asp:GridView>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                        <asp:Panel ID="Pnl_AddEditConferenceNumbers" runat="server">
                                            <div class="row">
                                                <div class="col-xs-12">
                                                    <div class="card">
                                                        <div class="header">
                                                            <h3>
                                                                <asp:Literal ID="Ltr_DialinHeading" runat="server" EnableViewState="false" Text="<%$ Resources:Content,OCS004%>" />
                                                            </h3>
                                                            <asp:HiddenField ID="Hf_AccessNumberId" runat="server" />
                                                        </div>
                                                        <div class="body">
                                                            <div class="row">
                                                                <div class="col-sm-3 col-xs-12 row-label">
                                                                    <asp:Literal ID="Literal79" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0001112%>" />:
                                                                </div>
                                                                <div class="col-sm-4 col-xs-12">
                                                                    <div class="form-group">
                                                                        <asp:DropDownList ID="Ddl_Servers" AutoPostBack="true" runat="server" data-label="Server"></asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                            </div>

                                                            <div class="row">
                                                                <div class="col-sm-3 col-xs-12 row-label">
                                                                    *
                                            <asp:Literal ID="Literal3" runat="server" EnableViewState="false" Text="<%$ Resources:Content,Lync166%>" />:
                                                                </div>
                                                                <div class="col-sm-4 col-xs-12">
                                                                    <div class="form-group">
                                                                        <div class="form-line">
                                                                            <asp:TextBox ID="TxBx_DisplayNumber" MaxLength="50" runat="server" data-label="Display Number"></asp:TextBox>
                                                                            <asp:RequiredFieldValidator ID="Rfv_DisplayNumber" Display="None" ValidationGroup="Dialin" runat="server" ControlToValidate="TxBx_DisplayNumber"></asp:RequiredFieldValidator>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="row">
                                                                <div class="col-sm-3 col-xs-12 row-label">
                                                                    <asp:Literal ID="Literal73" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001113%>" />:
                                                                </div>
                                                                <div class="col-sm-4 col-xs-12">
                                                                    <div class="form-group">
                                                                        <div class="form-line">
                                                                            <asp:TextBox ID="TxBx_DisplayName" MaxLength="100" runat="server" data-label="Display Name"></asp:TextBox>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="row">
                                                                <div class="col-sm-3 col-xs-12 row-label">
                                                                    *<asp:Literal ID="Literal74" runat="server" EnableViewState="false" Text="<%$ Resources:Content,Dev1238%>" />:
                                                                </div>
                                                                <div class="col-sm-2 col-xs-12">
                                                                    <div class="input-group">
                                                                        <span class="input-group-addon">
                                                                            <asp:Label CssClass="form-label" ID="country_code" runat="server" Text="<%$ Resources:Content,CountryCode%>" />:</span>
                                                                        <div class="form-line">
                                                                            <asp:TextBox ID="TxBx_CountryCode" MaxLength="5" runat="server" data-label="Country Code"></asp:TextBox>
                                                                            <asp:RequiredFieldValidator ID="Rfv_CountryCode" ValidationGroup="Dialin" runat="server" Display="None" ControlToValidate="TxBx_CountryCode"></asp:RequiredFieldValidator>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="col-sm-4 col-xs-12">
                                                                    <div class="input-group">
                                                                        <span class="input-group-addon">
                                                                            <asp:Label CssClass="form-label" ID="Literal80" runat="server" EnableViewState="false" Text="<%$ Resources:Content,String1027%>" />:</span>
                                                                        <div class="form-line">
                                                                            <asp:TextBox ID="TxBx_Number" MaxLength="30" runat="server" data-label="Phone Number"></asp:TextBox>
                                                                            <asp:RequiredFieldValidator ID="Rfv_LineUri" Display="None" ValidationGroup="Dialin" runat="server" ControlToValidate="TxBx_Number"></asp:RequiredFieldValidator>
                                                                        </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="Line URI" data-content="The LineURI must be specified using the following syntax: a plus sign (+) followed by the country/region calling code, area code, and phone number. For example: tel:+18005551234. Note that spaces, hyphens, parentheses and other characters are not allowed.">
                                                                        <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="Literal13" runat="server" Text="<%$ Resources:Content,SIPURI%>" EnableViewState="false" />:
                                                                </div>
                                                                <div class="col-sm-3 col-xs-12">
                                                                    <div class="input-group">
                                                                        <span class="input-group-addon">SIP:</span>
                                                                        <div class="form-line">
                                                                            <asp:TextBox ID="TxBx_SIPUri" MaxLength="100" runat="server" data-label="SIP Uri Prefix"></asp:TextBox>
                                                                            <asp:RequiredFieldValidator ID="Rfv_SIPUri" Display="None" ValidationGroup="Dialin" runat="server" ControlToValidate="TxBx_SIPUri"></asp:RequiredFieldValidator>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="col-sm-3 col-xs-12">
                                                                    <div class="form-group">
                                                                        <div class="form-group at-the-rate">
                                                                            @<asp:DropDownList ID="Ddl_Domains" runat="server" data-label="SIP Uri Domain"></asp:DropDownList>
                                                                            <asp:RequiredFieldValidator ID="Rfv_Domain" Display="None" ValidationGroup="Dialin" runat="server" InitialValue="0" ControlToValidate="Ddl_Domains"></asp:RequiredFieldValidator>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>

                                                            <div class="row">
                                                                <div class="col-sm-3 col-xs-12 row-label">
                                                                    *<asp:Literal ID="Literal76" runat="server" EnableViewState="false" Text="<%$ Resources:Content,PrimaryLanguage%>" />:
                                                                </div>
                                                                <div class="col-sm-4 col-xs-12">
                                                                    <div class="form-group">
                                                                        <asp:DropDownList ID="Ddl_PrimaryLanguage" runat="server" data-label="Primary Language"></asp:DropDownList>
                                                                        <asp:RequiredFieldValidator ID="Rfv_PLanguage" Display="None" ValidationGroup="Dialin" runat="server" ControlToValidate="Ddl_PrimaryLanguage" InitialValue="0"></asp:RequiredFieldValidator>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="row">
                                                                <div class="col-sm-3 col-xs-12 row-label">
                                                                    <asp:Literal ID="Literal77" runat="server" EnableViewState="false" Text="<%$ Resources:Content,SecondaryLanguages%>" />:
                                                                </div>
                                                                <div class="col-sm-4 col-xs-12">
                                                                    <div class="form-group">
                                                                        <asp:ListBox ID="Lb_SecondaryLanguages" SelectionMode="Multiple" runat="server" Height="120px" data-label="Secondary Languages"></asp:ListBox>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="row">
                                                                <div class="col-sm-3 col-xs-12 row-label">
                                                                    *
                                            <asp:Literal ID="Literal78" runat="server" EnableViewState="false" Text="<%$ Resources:Content,AssociatedRegions%>" />:
                                                                </div>
                                                                <div class="col-sm-4 col-xs-12">
                                                                    <div class="form-group">
                                                                        <asp:ListBox ID="Lb_Regions" runat="server" SelectionMode="Multiple" Height="120px" data-label="Regions"></asp:ListBox>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="row">
                                                                <div class="col-xs-12">
                                                                    <asp:Button ID="Btn_Save" CssClass="btn btn-primary waves-effect btnAction" ValidationGroup="Dialin" runat="server" Text='<%$ Resources:Content,GN0000281%>' />
                                                                    <asp:Button ID="Btn_Cancel" CssClass="btn btn-primary waves-effect" runat="server" Text='<%$ Resources:Content,GN0000572%>'
                                                                        CausesValidation="false" />
                                                                    <asp:ValidationSummary ID="Vs_Dialin" runat="server" ShowMessageBox="true"
                                                                        ShowSummary="true" ValidationGroup="Dialin" HeaderText="<%$ Resources:Content,EM000001%>" />
                                                                </div>
                                                            </div>

                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                        <asp:Panel ID="Pnl_SyncConferenceNumbers" runat="server">
                                            <div class="row">
                                                <div class="col-xs-12">
                                                    <div class="card">
                                                        <div class="header">
                                                            <h3>
                                                                <asp:Literal ID="Literal1" runat="server" EnableViewState="false" Text="<%$ Resources:Content,SyncDialinConferenceAccess%>" />
                                                            </h3>
                                                        </div>
                                                        <div class="body">
                                                            <div class="row">
                                                                <div class="col-sm-3 col-xs-12 row-label">
                                                                    <asp:Literal ID="Literal86" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0001112%>" />:
                                                                </div>
                                                                <div class="col-sm-4 col-xs-12">
                                                                    <div class="form-group">
                                                                        <asp:DropDownList ID="Ddl_SyncServers" AutoPostBack="true" runat="server"></asp:DropDownList>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="row">
                                                                <div class="col-xs-12">
                                                                    <asp:GridView ID="GV_DialinAccessNumbers" CssClass="table table-bordered table-striped table-hover table-layout-fixed"
                                                                        EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False">
                                                                        <Columns>
                                                                            <asp:TemplateField HeaderText="Display Number" HeaderStyle-CssClass="col-xs-2">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="Lbl_DisplayNumber" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.DisplayNumber")%>'></asp:Label>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="Display Name" HeaderStyle-CssClass="col-xs-2">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="Lbl_DisplayName" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.DisplayName")%>'></asp:Label>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="<%$ Resources:Content,SIPURI%>" HeaderStyle-CssClass="col-xs-3">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="Lbl_PrimaryUri" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.PrimaryURI")%>'></asp:Label>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="<%$ Resources:Content,CountryCode%>" HeaderStyle-CssClass="col-xs-1">
                                                                                <ItemTemplate>
                                                                                    <asp:TextBox ID="TxBx_CountryCode" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.CountryCode")%>' />
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="<%$ Resources:Content,String1027%>" HeaderStyle-CssClass="col-xs-2">
                                                                                <ItemTemplate>
                                                                                    <asp:TextBox ID="TxBx_Number" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Number")%>' />
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="<%$ Resources:Content,PrimaryLanguage%>" HeaderStyle-CssClass="col-xs-1">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="Lbl_PrimaryLanguage" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.PrimaryLanguage")%>'></asp:Label>
                                                                                    <asp:HiddenField ID="Hf_SecondaryLanguages" runat="server" Value='<%# DataBinder.Eval(Container, "DataItem.SecondaryLanguages")%>'></asp:HiddenField>
                                                                                    <asp:HiddenField ID="Hf_LineUri" runat="server" Value='<%# DataBinder.Eval(Container, "DataItem.CountryCode") + DataBinder.Eval(Container, "DataItem.Number")%>'></asp:HiddenField>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                            <asp:TemplateField HeaderText="Region" HeaderStyle-CssClass="col-xs-1">
                                                                                <ItemTemplate>
                                                                                    <asp:Label ID="Lbl_Region" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Regions")%>'></asp:Label>
                                                                                </ItemTemplate>
                                                                            </asp:TemplateField>
                                                                        </Columns>
                                                                    </asp:GridView>
                                                                </div>
                                                            </div>
                                                            <div class="row">
                                                                <div class="col-xs-12">
                                                                    <asp:Button ID="Btn_SaveSyncNumbers" runat="server" CssClass="btn btn-primary waves-effect btnAction"
                                                                        Text="<%$ Resources:Content,GN0000281%>" />
                                                                    <asp:Button ID="Btn_CancelSyncNumbers" runat="server" CausesValidation="false" CssClass="btn btn-primary waves-effect"
                                                                        Text="<%$ Resources:Content,GN0000572%>" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </ContentTemplate>
                                </ajax:UpdatePanel>
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                    <EM:TabPanel ID="Tab_Destinations" runat="server" HeaderText="<%$ Resources:Content,SMI0786%>">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab3" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent3" runat="server" Visible="false">
                                <asp:Panel ID="Pnl_DestinationsListing" runat="server">
                                    <!-- Operations -->
                                    <div class="row Div_OpsRow" id="Div_OpsRow4" runat="server">
                                        <div class="col-xs-12">
                                            <div class="card">
                                                <div class="header">
                                                    <h3>
                                                        <%= Resources.Content.GN00001320%>                                                                                                                                 
                                                    </h3>
                                                </div>
                                                <div class="body">
                                                    <div class="row">
                                                        <div class="col-xs-12">
                                                            <asp:Button ID="Btn_AddDestinations" CssClass="btn btn-primary waves-effect btnAction" runat="server"
                                                                Text="<%$ Resources:Content,SMI0787%>" />
                                                            <asp:Button ID="Btn_RemoveAllDestinations" runat="server" Custom1="Custom" Style="display: none" Text="<%$ Resources:Content,GN0000278%>"
                                                                CssClass="btn btn-primary waves-effect btnAction" />
                                                            <EM:ConfirmButtonExtender ID="ConfirmButtonExtender1" ConfirmText="<%$ Resources:Content,DGN1119974%>"
                                                                TargetControlID="Btn_RemoveAllDestinations" runat="server">
                                                            </EM:ConfirmButtonExtender>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                    <!-- Filter -->
                                    <asp:Panel ID="Pnl_FilterDestination" runat="server" CssClass="row" DefaultButton="Btn_FilterDestination">
                                        <div class="panel-group search-panel" id="AS_Destinations" role="tablist" aria-multiselectable="true">
                                            <div class="col-xs-12" role="tab" id="SH_Destinations">
                                                <div class="card">
                                                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_Destinations" href="#<%= CSB_Destinations.ClientID%>" aria-expanded="true" aria-controls="SH_Destinations">
                                                        <h3>
                                                            <%= Resources.Content.GN0000395%>
                                                        </h3>
                                                    </div>
                                                    <div id="CSB_Destinations" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_Destinations" aria-expanded="false">
                                                        <div class="row">
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_DestinationName" runat="server" MaxLength="100"></asp:TextBox>
                                                                        <asp:Label CssClass="form-label" ID="Label3" runat="server" Text='<%$ Resources:Content,GN000170%>' EnableViewState="false" />
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="col-sm-3 col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_Prefix" runat="server" MaxLength="20"></asp:TextBox>
                                                                        <asp:Label CssClass="form-label" ID="Label4" runat="server" Text='<%$ Resources:Content,GN0000990%>' EnableViewState="false" />
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-xs-12">
                                                                <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_FilterDestination" runat="server" Text='<%$ Resources:Content, GN0000395 %>' />
                                                                <asp:Button ID="Btn_ClearDestination" Visible="false" CssClass="btn btn-primary waves-effect" runat="server"
                                                                    Text="<%$ Resources:Content,String289 %>" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>

                                    </asp:Panel>

                                    <%-- Destinations Listing --%>
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <asp:GridView ID="GV_Destinations" CssClass="table table-bordered table-striped table-hover table-layout-fixed" AllowSorting="true" AllowPaging="true"
                                                EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False">
                                                <Columns>
                                                    <asp:TemplateField HeaderStyle-CssClass="col-xs-1" ItemStyle-HorizontalAlign="Center" HeaderText='<%$ Resources:Content,GN0000370 %>'>
                                                        <HeaderTemplate>
                                                            <asp:CheckBox class="option-menu" ID="ChkBx_All" runat="server" Text=" " onclick="SetCheckedHeader(this.checked, this,'All');" />
                                                        </HeaderTemplate>
                                                        <ItemTemplate>
                                                            <asp:CheckBox ID="ChkBx_All" runat="server" class="option-menu" Text="&nbsp;" onclick="SetCheckedHeader(this.checked, this,'1');" />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="<%$ Resources:Content, GN000170 %>">
                                                        <ItemTemplate>
                                                            <asp:Literal ID="Ltl_Description" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Description") %>' />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <%--<asp:BoundField DataField="Description" HeaderStyle-CssClass="col-xs-7" HeaderText='<%$ Resources:Content, GN000170 %>' />--%>
                                                    <asp:TemplateField HeaderText="<%$ Resources:Content, GN0000990 %>" HeaderStyle-CssClass="col-xs-2">
                                                        <ItemTemplate>
                                                            <asp:Literal ID="Ltl_Prefix" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Prefix") %>' />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <%--<asp:BoundField DataField="Prefix" HeaderStyle-CssClass="col-xs-2" HeaderText='<%$ Resources:Content, GN0000990 %>' />--%>
                                                    <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-CssClass="col-xs-2">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="LB_Remove" CssClass="btn btn-primary waves-effect btnAction" CommandName="Remove" runat="server"
                                                                Text="<%$ Resources:Content,GN0000278%>" />
                                                            <EM:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,DGN1119974%>"
                                                                TargetControlID="LB_Remove" runat="server">
                                                            </EM:ConfirmButtonExtender>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                                <%--PagerTemplate Start--%>
                                                <PagerTemplate>
                                                    <EM:Pager ID="Pager5" runat="server" />
                                                </PagerTemplate>
                                                <%--PagerTemplate End--%>
                                            </asp:GridView>
                                        </div>
                                    </div>
                                </asp:Panel>
                                <asp:Panel ID="Pnl_AddDestinations" runat="server">
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <div class="card">
                                                <div class="header">
                                                    <h3>
                                                        <%= Resources.Content.SMI0788%>                                                                                                                                 
                                                    </h3>
                                                </div>
                                                <div class="body">
                                                    <asp:Panel ID="Pnl_AddDestStep1" runat="server">
                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12 row-label">
                                                                *<asp:Literal ID="Literal12" runat="server" Text="<%$ Resources:Content,SMI0789%>"></asp:Literal>:
                                                            </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_Destinations" 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_SampleDestination" runat="server"></asp:Literal>
                                                            </div>
                                                        </div>

                                                        <div class="row">
                                                            <div class="col-xs-12">
                                                                <asp:Button ID="Btn_LoadDestinations" runat="server" CssClass="btn btn-primary waves-effect"
                                                                    Text="<%$ Resources:Content,GN00001242%>" />
                                                                <asp:Button ID="Btn_CancelStep1" runat="server" CausesValidation="false" CssClass="btn btn-primary waves-effect"
                                                                    Text="<%$ Resources:Content,GN0000572%>" />
                                                            </div>
                                                        </div>
                                                    </asp:Panel>
                                                    <asp:Panel ID="Pnl_AddDestStep2" runat="server">
                                                        <div class="row">
                                                            <div class="col-xs-12">
                                                                <asp:GridView ID="GV_ImportDestinations" CssClass="table table-bordered table-striped table-hover table-layout-fixed"
                                                                    EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False">
                                                                    <AlternatingRowStyle CssClass="altRow" />
                                                                    <Columns>
                                                                        <asp:BoundField DataField="Description" HeaderText='<%$ Resources:Content, GN0000597 %>' />
                                                                        <asp:BoundField DataField="Prefix" HeaderText='<%$ Resources:Content, GN0000990 %>' />
                                                                    </Columns>

                                                                </asp:GridView>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-xs-12">
                                                                <asp:Button ID="Btn_BulkDestSave" runat="server" CausesValidation="false" CssClass="btn btn-primary waves-effect btnAction"
                                                                    Text="<%$ Resources:Content,GN0000281%>" />
                                                                <asp:Button ID="Btn_BulkDestCancel" runat="server" CausesValidation="false" CssClass="btn btn-primary waves-effect"
                                                                    Text="<%$ Resources:Content,GN0000572%>" />
                                                            </div>
                                                        </div>
                                                    </asp:Panel>
                                                    <asp:Panel ID="Pnl_AddDestStep3" runat="server">
                                                        <div class="row">
                                                            <div class="col-xs-12 row-label">
                                                                <asp:Literal
                                                                    ID="Literal88" runat="server" EnableViewState="false" Text="<%$ Resources:Content,SMI0790%>" />:
                                                            </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_BulkDestinationClose" runat="server" CausesValidation="false" CssClass="btn btn-primary waves-effect"
                                                                    Text="<%$ Resources:Content,GN000150%>" />
                                                            </div>
                                                        </div>
                                                    </asp:Panel>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </asp:Panel>
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                    <EM:TabPanel ID="Tab_SIPGateways" runat="server" HeaderText="<%$ Resources:Content,SMI0791%>">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab4" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent4" runat="server" Visible="false">
                                <asp:Panel ID="Pnl_GatewayGroups" runat="server">
                                    <%-- Operations --%>
                                    <div class="row Div_OpsRow" id="Div_OpsRow5" runat="server">
                                        <div class="col-xs-12">
                                            <div class="card">
                                                <div class="header">
                                                    <h3>
                                                        <%= Resources.Content.GN00001320%>                                                                                                                                 
                                                    </h3>
                                                </div>
                                                <div class="body">
                                                    <div class="row">
                                                        <div class="col-xs-12">
                                                            <asp:Button ID="Btn_AddGatewayGroup" class="btn btn-primary waves-effect btnAction" runat="server"
                                                                Text='<%$ Resources:Content,SMI0795%>' />
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                    <%-- Gateway Groups Listing --%>
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <asp:GridView ID="GV_GatewayGroups" CssClass="table table-bordered table-striped table-hover table-layout-fixed" AllowSorting="true" AllowPaging="true"
                                                EmptyDataText='<%$ Resources:Content, GN00001375 %>' DataKeyNames="GroupId" runat="server" AutoGenerateColumns="False">
                                                <Columns>
                                                    <asp:BoundField DataField="GroupId" HeaderStyle-CssClass="col-xs-1" HeaderText='<%$ Resources:Content, GN0000678 %>' />
                                                    <asp:TemplateField HeaderText='<%$ Resources:Content, GN000165 %>' HeaderStyle-CssClass="col-xs-6">
                                                        <ItemTemplate>
                                                            <asp:HiddenField ID="HF_GroupId" runat="server" />
                                                            <asp:Literal ID="Ltr_GroupName" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.GroupName") %>'></asp:Literal>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="<%$ Resources:Content,SMI0796%>" HeaderStyle-CssClass="col-xs-3">
                                                        <ItemTemplate>
                                                            <asp:Literal ID="Ltl_TotalGateways" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.TotalGateways") %>' />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-CssClass="col-xs-2">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="LB_Edit" CssClass="btn btn-primary waves-effect" CommandName="EditGroup"
                                                                runat="server" Text="<%$ Resources:Content,GN0000276%>" />
                                                            <asp:LinkButton ID="LB_Remove" CssClass="btn btn-primary waves-effect btnAction" CommandName="Remove"
                                                                runat="server" Text="<%$ Resources:Content,GN0000278%>" />
                                                            <EM:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,DGN1119974%>"
                                                                TargetControlID="LB_Remove" runat="server">
                                                            </EM:ConfirmButtonExtender>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                                <%--PagerTemplate Start--%>
                                                <PagerTemplate>
                                                    <EM:Pager ID="Pager6" runat="server" />
                                                </PagerTemplate>
                                                <%--PagerTemplate End--%>
                                            </asp:GridView>
                                        </div>
                                    </div>

                                </asp:Panel>
                                <asp:Panel ID="Pnl_AddGatewayGroup" runat="server">
                                    <%-- Add Gateway Group --%>
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <div class="card">
                                                <div class="header">
                                                    <h3>
                                                        <%= Resources.Content.SMI0797%>                                                                                                                                 
                                                    </h3>
                                                </div>
                                                <div class="body">
                                                    <ajax:UpdatePanel ID="UP_AddGatewayGroup" runat="server">
                                                        <ContentTemplate>

                                                            <div class="row">
                                                                <div class="col-sm-3 col-xs-12 row-label">
                                                                    *<asp:Literal ID="Literal_GroupName" runat="server" EnableViewState="false" Text='<%$ Resources:Content,GN000165%>' />:
                                                                </div>
                                                                <div class="col-sm-4 col-xs-12">
                                                                    <div class="form-group">
                                                                        <div class="form-line">
                                                                            <asp:TextBox ID="Txt_GroupName" runat="server" data-label="Group Name"></asp:TextBox>
                                                                            <asp:RequiredFieldValidator ID="RFV_GroupName" runat="server" ValidationGroup="GatewayGroup"
                                                                                ControlToValidate="Txt_GroupName" Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>

                                                            <div class="row">
                                                                <div class="col-sm-3 col-xs-12 row-label">
                                                                    *<asp:Literal ID="Literal7" runat="server" EnableViewState="false" Text='<%$ Resources:Content,EnterGateway%>' />:
                                                                </div>
                                                                <div class="col-sm-4 col-xs-12">
                                                                    <div class="form-group">
                                                                        <asp:TextBox ID="TxBx_GroupGateways" runat="server" TextMode="MultiLine" Rows="5" Width="100%" data-label="Gateways"></asp:TextBox>
                                                                        <asp:RequiredFieldValidator ValidationGroup="GatewayGroup" Display="None" ID="RequiredFieldValidator13" runat="server" ControlToValidate="TxBx_GroupGateways"></asp:RequiredFieldValidator>
                                                                    </div>
                                                                </div>
                                                                <div class="col-sm-4 col-xs-12">
                                                                    <button type="button" class="btn btn-info btn-block btn-xs waves-effect" style="width: 30px;" data-trigger="focus" data-container="body" data-toggle="popover"
                                                                        data-placement="left" title="Note" data-content="Enter each gateway in a new line. Example: sipproxy.domain1.com, 123.111.121.55, 127.0.0.0">
                                                                        <i class="material-icons">info</i>
                                                                    </button>
                                                                </div>

                                                            </div>

                                                        </ContentTemplate>
                                                    </ajax:UpdatePanel>

                                                    <div class="row">
                                                        <div class="col-xs-12">
                                                            <asp:Button ID="Btn_SaveGatewayGroup" ValidationGroup="GatewayGroup" CssClass="btn btn-primary waves-effect btnAction" runat="server" Text='<%$ Resources:Content,GN0000281%>' />
                                                            <asp:Button ID="Btn_CancelGatewayGroup" CssClass="btn btn-primary waves-effect" runat="server" Text='<%$ Resources:Content,GN0000572%>'
                                                                CausesValidation="false" />
                                                            <asp:ValidationSummary ID="ValidationSum_1" runat="server" HeaderText='<%$ Resources:Content,EM000001 %>'
                                                                ShowMessageBox="True" ShowSummary="False" ValidationGroup="GatewayGroup" />
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </asp:Panel>
                                <asp:Panel ID="Pnl_EditGatewayGroup" runat="server">
                                    <%-- Edit Gateway Group --%>
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <div class="card">
                                                <div class="header">
                                                    <h3>
                                                        <%= Resources.Content.SMI0799%>                                                                                                                                 
                                                    </h3>
                                                </div>
                                                <div class="body">
                                                    <ajax:UpdatePanel ID="UP_EditGatewayGroup" runat="server">
                                                        <ContentTemplate>
                                                            <div class="row">
                                                                <div class="col-sm-3 col-xs-12 row-label">
                                                                    *<asp:Literal ID="Literal5" runat="server" EnableViewState="false" Text='<%$ Resources:Content,GN000165%>' />:
                                                                </div>
                                                                <div class="col-sm-4 col-xs-12">
                                                                    <div class="form-group">
                                                                        <div class="form-line">
                                                                            <asp:TextBox ID="Txt_EditGroupName" runat="server" data-label="Group Name"></asp:TextBox>
                                                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ValidationGroup="EditGatewayGroup"
                                                                                ControlToValidate="Txt_EditGroupName" Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                                            <asp:HiddenField ID="Hf_GatewayGroupId" runat="server" />
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>

                                                            <div class="row">
                                                                <div class="col-sm-3 col-xs-12 row-label">
                                                                    *<asp:Literal ID="Literal6" runat="server" EnableViewState="false" Text='<%$ Resources:Content,EnterGateway%>' />:
                                                                </div>
                                                                <div class="col-sm-4 col-xs-12">
                                                                    <div class="form-group">
                                                                        <asp:TextBox ID="TxBx_EditGroupGateways" runat="server" TextMode="MultiLine" Rows="5" Width="100%" data-label="Gateways"></asp:TextBox>
                                                                    </div>
                                                                </div>
                                                                <div class="col-sm-4 col-xs-12">
                                                                    <button type="button" class="btn btn-info btn-block btn-xs waves-effect" style="width: 30px;" data-trigger="focus" data-container="body" data-toggle="popover"
                                                                        data-placement="left" title="Note" data-content="Enter each gateway in a new line. Example: sipproxy.domain1.com, 123.111.121.55, 127.0.0.0">
                                                                        <i class="material-icons">info</i>
                                                                    </button>
                                                                </div>

                                                            </div>
                                                        </ContentTemplate>
                                                    </ajax:UpdatePanel>

                                                    <div class="row">
                                                        <div class="col-xs-12">
                                                            <asp:Button ID="Btn_UpdateGatewayGroup" ValidationGroup="EditGatewayGroup" CssClass="btn btn-primary waves-effect btnAction" runat="server" Text='<%$ Resources:Content,GN0000281%>' />
                                                            <asp:Button ID="Btn_CancelUpdateGroup" CssClass="btn btn-primary waves-effect" runat="server" Text='<%$ Resources:Content,GN0000572%>'
                                                                CausesValidation="false" />

                                                            <asp:ValidationSummary ID="ValidationSummary2" runat="server" HeaderText='<%$ Resources:Content,EM000001 %>'
                                                                ShowMessageBox="True" ShowSummary="False" ValidationGroup="EditGatewayGroup" />
                                                        </div>
                                                    </div>


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

                                    <div class="row">
                                        <div class="col-xs-12">
                                            <asp:GridView ID="GV_GroupGateways" CssClass="table table-bordered table-striped table-hover table-layout-fixed" AllowSorting="true" AllowPaging="true"
                                                EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" AutoGenerateColumns="False">
                                                <Columns>
                                                    <asp:BoundField DataField="SIPGateway" HeaderStyle-CssClass="col-xs-10" HeaderText='<%$ Resources:Content, GN00001145 %>' />
                                                    <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-CssClass="col-xs-2">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="LB_Remove" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.GatewayId") %>' CommandName="Remove" runat="server"
                                                                Text="<%$ Resources:Content,GN0000278%>" CssClass="btn btn-primary waves-effect btnAction" />
                                                            <EM:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,DGN1119974%>"
                                                                TargetControlID="LB_Remove" runat="server">
                                                            </EM:ConfirmButtonExtender>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                                <PagerTemplate>
                                                    <EM:Pager ID="Pager7" runat="server" />
                                                </PagerTemplate>
                                            </asp:GridView>
                                        </div>
                                    </div>

                                </asp:Panel>
                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                    <EM:TabPanel ID="Tab_CallBundles" runat="server" HeaderText="<%$ Resources:Content,SMI0800%>">
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab5" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent5" runat="server" Visible="false">

                                <asp:Panel ID="Pnl_BundlesListing" runat="server">
                                    <%-- Operations --%>
                                    <div class="row Div_OpsRow" id="Div_OpsRow6" runat="server">
                                        <div class="col-xs-12">
                                            <div class="card">
                                                <div class="header">
                                                    <h3>
                                                        <%= Resources.Content.GN00001320%>                                                                                                                                 
                                                    </h3>
                                                </div>
                                                <div class="body">
                                                    <div class="row">
                                                        <div class="col-xs-12">
                                                            <asp:Button ID="Btn_AddBundle" class="btn btn-primary waves-effect btnAction" runat="server"
                                                                Text="<%$ Resources:Content,SMI0802%>" />
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                    <%-- Search Filter --%>
                                    <asp:Panel ID="Pnl_FilterBundles" runat="server" CssClass="row" DefaultButton="Btn_FilterBundles">
                                        <div class="panel-group search-panel" id="AS_Bundles" role="tablist" aria-multiselectable="true">
                                            <div class="col-xs-12" role="tab" id="SH_Bundles">
                                                <div class="card">
                                                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_Bundles" href="#<%= CSB_Bundles.ClientID%>" aria-expanded="true" aria-controls="SH_Bundles">
                                                        <h3>
                                                            <%= Resources.Content.GN0000395%>
                                                        </h3>
                                                    </div>
                                                    <div id="CSB_Bundles" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_Bundles" aria-expanded="false">
                                                        <div class="row">
                                                            <div class="col-sm-4 col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_BundleName" runat="server" MaxLength="100"></asp:TextBox>
                                                                        <asp:Label CssClass="form-label" ID="Label5" runat="server" Text='<%$ Resources:Content,SMI0803%>' EnableViewState="false" />
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="col-sm-3 col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_BundleDescription" runat="server" MaxLength="20"></asp:TextBox>
                                                                        <asp:Label CssClass="form-label" ID="Label6" runat="server" Text='<%$ Resources:Content,GN0000597%>' EnableViewState="false" />
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-xs-12">
                                                                <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_FilterBundles" runat="server" Text='<%$ Resources:Content, GN0000395 %>' />
                                                                <asp:Button ID="Btn_ClearBundles" Visible="false" CssClass="btn btn-primary waves-effect" runat="server"
                                                                    Text="<%$ Resources:Content,String289 %>" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </asp:Panel>
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <asp:GridView ID="GV_CallBundles" CssClass="table table-bordered table-striped table-hover table-layout-fixed" AllowSorting="true" AllowPaging="true" PageSize="20"
                                                EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" DataKeyNames="GatewayId" AutoGenerateColumns="False">
                                                <Columns>
                                                    <asp:TemplateField HeaderStyle-CssClass="col-xs-1" HeaderText="<%$Resources:Content,String385 %>">
                                                        <ItemTemplate>
                                                            <%----%>
                                                            <asp:Label ID="Lb_Status" runat="server"></asp:Label>
                                                            <asp:LinkButton ID="Lb_ProcessingDetail" CommandName="ViewDetail" SkinID="LinkButtonViewDetail" runat="server" data-toggle="tooltip" data-placement="top" title="" data-original-title="" data-html="true"></asp:LinkButton>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="<%$ Resources:Content,SMI0803%>" HeaderStyle-CssClass="col-xs-3">
                                                        <ItemTemplate>
                                                            <asp:Literal ID="Ltl_BundleName" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.BundleName") %>' />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <%--<asp:BoundField DataField="BundleName" HeaderText="<%$ Resources:Content,SMI0803%>" HeaderStyle-CssClass="col-xs-3" />--%>
                                                    <asp:BoundField DataField="Description" HeaderText="<%$ Resources:Content,GN0000597%>" HeaderStyle-CssClass="col-xs-3" />
                                                    <asp:TemplateField HeaderText="<%$ Resources:Content,SMI0804%>" HeaderStyle-CssClass="col-xs-3">
                                                        <ItemTemplate>
                                                            <asp:Literal ID="Ltl_ChargeType" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.ChargeType") %>' />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-CssClass="col-xs-2">
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="LB_Edit" CssClass="btn btn-primary waves-effect" CommandName="EditRow"
                                                                runat="server" Text="<%$ Resources:Content,GN0000276%>" />
                                                            <asp:LinkButton ID="LB_Remove" CssClass="btn btn-primary waves-effect btnAction" CommandName="Remove" runat="server"
                                                                Text="<%$ Resources:Content,GN0000278%>" />
                                                            <EM:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,DGN1119974%>"
                                                                TargetControlID="LB_Remove" runat="server">
                                                            </EM:ConfirmButtonExtender>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                                <PagerTemplate>
                                                    <EM:Pager ID="Pager8" runat="server" />
                                                </PagerTemplate>
                                            </asp:GridView>
                                        </div>
                                    </div>
                                </asp:Panel>

                                <asp:Panel ID="Pnl_AddEditBundles" runat="server">
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <div class="card">
                                                <div class="header">
                                                    <h3>
                                                        <asp:Literal ID="Ltr_PanelName" runat="server" Text="<%$ Resources:Content,SMI0805%>" />
                                                    </h3>
                                                </div>
                                                <div class="body">
                                                    <div class="row">
                                                        <div class="col-sm-2 col-xs-12 row-label">
                                                            *<asp:Literal ID="Literal22" runat="server" EnableViewState="false" Text="<%$ Resources:Content,SMI0803%>" />:
                                                        </div>
                                                        <div class="col-sm-4 col-xs-12">
                                                            <div class="form-group">
                                                                <div class="form-line">
                                                                    <asp:TextBox ID="Txt_BundleName" runat="server" data-label="Bundle Name"></asp:TextBox>
                                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ValidationGroup="AddBundle"
                                                                        ControlToValidate="Txt_BundleName" Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                                    <asp:HiddenField ID="Hf_BundleId" runat="server" Value="" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="row">
                                                        <div class="col-sm-2 col-xs-12 row-label">
                                                            <asp:Literal ID="Literal23" runat="server" EnableViewState="false" Text='<%$ Resources:Content,GN0000597%>' />:
                                                        </div>
                                                        <div class="col-sm-4 col-xs-12">
                                                            <div class="form-group">
                                                                <asp:TextBox ID="Txt_Description" MaxLength="400" runat="server" TextMode="MultiLine" Width="100%" Rows="3" data-label="Description"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="row">
                                                        <div class="col-sm-2 col-xs-12 row-label">
                                                            <asp:Literal ID="Literal24" runat="server" EnableViewState="false" Text="<%$ Resources:Content,SMI0804%>" />:
                                                        </div>
                                                        <div class="col-sm-4 col-xs-12">
                                                            <div class="form-group">
                                                                <asp:DropDownList ID="Ddl_PulseType" runat="server" data-label="Pulse Type"></asp:DropDownList>
                                                            </div>
                                                        </div>
                                                        <div class="col-sm-5 col-xs-12" id="div_FirstMinutePerSecond" runat="server">
                                                            <div class="form-group">
                                                                <asp:CheckBox ID="Cb_FirstMinutePerSecond" runat="server" Text="<%$ Resources:Content,SixtyBy1Charging%>" data-label="Charge first minute and then per second" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="row hidden-xs hidden-sm">
                                                        <div class="col-md-2"></div>
                                                        <div class="col-md-2">
                                                            <asp:Label CssClass="font-bold" ID="Label9" runat="server" Text="<%$ Resources:Content,Lync329%>"></asp:Label></div>
                                                        <div class="col-md-2">
                                                            <asp:Label CssClass="font-bold" ID="Label10" runat="server" Text="<%$ Resources:Content,Lync330%>"></asp:Label></div>
                                                        <div class="col-md-2">
                                                            <asp:Label CssClass="font-bold" ID="Label12" runat="server" Text="<%$ Resources:Content,Lync331%>"></asp:Label></div>
                                                        <div class="col-md-2">
                                                            <asp:Label CssClass="font-bold" ID="Label13" runat="server" Text="<%$ Resources:Content,Lync332%>"></asp:Label></div>
                                                        <div class="col-md-2" id="Div_Internal" runat="server">
                                                            <asp:Label CssClass="font-bold" ID="Label14" runat="server" Text="<%$ Resources:Content,GN0000642%>"></asp:Label></div>
                                                    </div>
                                                    <div class="row" id="Tbl_DefaultRate" runat="server">
                                                        <div class="col-md-2 col-sm-4 col-xs-12 row-label">
                                                            <asp:Literal ID="Literal110" Text="<%$ Resources:Content,DefaultCallRates%>" runat="server"></asp:Literal>:
                                                        </div>
                                                        <div class="col-md-2 col-sm-4 col-xs-12">
                                                            <asp:Label CssClass="font-bold hidden-lg hidden-md" ID="Literal28" runat="server" Text="<%$ Resources:Content,Lync329%>"></asp:Label>
                                                            <div class="form-group">
                                                                <div class="form-line">
                                                                    <asp:TextBox ID="Txt_DefaultAudioInboundRate" CssClass="text-align-right" runat="server" Text="0" data-label="Default Inbound Call Rate"></asp:TextBox>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="col-md-2 col-sm-4 col-xs-12">
                                                            <asp:Label CssClass="font-bold hidden-lg hidden-md" ID="Literal29" runat="server" Text="<%$ Resources:Content,Lync330%>"></asp:Label>
                                                            <div class="form-group">
                                                                <div class="form-line">
                                                                    <asp:TextBox ID="Txt_DefaultAudioOutboundrate" CssClass="text-align-right" runat="server" Text="0" data-label="Default Outbound Call Rate"></asp:TextBox>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="col-md-2 col-sm-4 col-xs-12">
                                                            <asp:Label CssClass="font-bold hidden-lg hidden-md" ID="Literal25" runat="server" Text="<%$ Resources:Content,Lync331%>"></asp:Label>
                                                            <div class="form-group">
                                                                <div class="form-line">
                                                                    <asp:TextBox ID="Txt_DefaultVideoCallRate" CssClass="text-align-right" runat="server" Text="0" data-label="Default Video Call Rate"></asp:TextBox>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="col-md-2 col-sm-4 col-xs-12">
                                                            <asp:Label CssClass="font-bold hidden-lg hidden-md" ID="Literal26" runat="server" Text="<%$ Resources:Content,Lync332%>"></asp:Label>
                                                            <div class="form-group">
                                                                <div class="form-line">
                                                                    <asp:TextBox ID="Txt_DefaultConferenceCallRate" CssClass="text-align-right" runat="server" Text="0" data-label="Default Conference Call Rate"></asp:TextBox>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="col-md-2 col-sm-4 col-xs-12">
                                                            <asp:Label CssClass="font-bold hidden-lg hidden-md" ID="Literal27" runat="server" Text="<%$ Resources:Content,GN0000642%>"></asp:Label>
                                                            <div class="form-group">
                                                                <div class="form-line">
                                                                    <asp:TextBox ID="Txt_DefaultAudioInternalRate" CssClass="text-align-right" runat="server" Text="0" data-label="Default Internal Call Rate"></asp:TextBox>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="row">
                                                        <div class="col-md-2 col-sm-4 col-xs-12 row-label">
                                                            <asp:Literal ID="Literal40" runat="server" EnableViewState="false" Text="<%$ Resources:Content,Lync320%>" />:
                                                        </div>
                                                        <div class="col-md-2 col-sm-4 col-xs-12">
                                                            <asp:Label class="font-bold hidden-lg hidden-md" ID="Literal41" runat="server" EnableViewState="false" Text="<%$ Resources:Content,Lync329%>" />
                                                            <div class="form-group">
                                                                <div class="form-line">
                                                                    <asp:TextBox ID="Txt_InboundLocalRate" CssClass="text-align-right" runat="server" Text="0" data-label="Local Inbound Call Rate"></asp:TextBox>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="col-md-2 col-sm-4 col-xs-12">
                                                            <asp:Label class="font-bold hidden-lg hidden-md" ID="Literal42" runat="server" EnableViewState="false" Text="<%$ Resources:Content,Lync330%>" />
                                                            <div class="form-group">
                                                                <div class="form-line">
                                                                    <asp:TextBox ID="Txt_OutboundLocalRate" CssClass="text-align-right" runat="server" Text="0" data-label="Local Outbound Call Rate"></asp:TextBox>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="col-md-2 col-sm-4 col-xs-12">
                                                            <asp:Label class="font-bold hidden-lg hidden-md" ID="Literal43" runat="server" EnableViewState="false" Text="<%$ Resources:Content,Lync331%>" />
                                                            <div class="form-group">
                                                                <div class="form-line">
                                                                    <asp:TextBox ID="Txt_VideoLocalRate" CssClass="text-align-right" runat="server" Text="0" data-label="Local Video Call Rate"></asp:TextBox>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="col-md-2 col-sm-4 col-xs-12">
                                                            <asp:Label class="font-bold hidden-lg hidden-md" ID="Literal44" runat="server" EnableViewState="false" Text="<%$ Resources:Content,Lync332%>" />
                                                            <div class="form-group">
                                                                <div class="form-line">
                                                                    <asp:TextBox ID="Txt_ConferenceLocalRate" CssClass="text-align-right" runat="server" Text="0" data-label="Local Conference Call Rate"></asp:TextBox>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="row">
                                                        <div class="col-md-2 col-sm-4 col-xs-12 row-label">
                                                            <asp:Literal ID="Literal11" runat="server" Text="<%$ Resources:Content,SMI0789%>"></asp:Literal>:
                                                        </div>
                                                        <div class="col-sm-4 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_CallRates" 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-4 col-xs-12">
                                                            <asp:Literal ID="Ltr_SampleRates" runat="server"></asp:Literal>
                                                        </div>
                                                    </div>
                                                    <div class="row">
                                                        <div class="col-xs-12">
                                                            <asp:Button ID="Btn_SaveBundle" CssClass="btn btn-primary waves-effect btnAction" runat="server" Text="<%$ Resources:Content,GN0000281%>"
                                                                ValidationGroup="AddBundle" />
                                                            <asp:Button ID="Btn_CancelBundle" CssClass="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,GN0000572%>" CausesValidation="false" />
                                                            <asp:ValidationSummary ID="ValidationSummary3" runat="server" HeaderText="<%$ Resources:Content,EM000001%>"
                                                                ShowMessageBox="True" ShowSummary="False" ValidationGroup="AddBundle" />
                                                        </div>


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

                                    <!-- Filter -->
                                    <asp:Panel CssClass="row" ID="Pnl_FilterRates" runat="server" DefaultButton="Btn_FilterRates">
                                        <div class="panel-group search-panel" id="AS_AddEditBundle" role="tablist" aria-multiselectable="true">
                                            <div class="col-xs-12" role="tab" id="SH_AddEditBundle">
                                                <div class="card">
                                                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_AddEditBundle" href="#<%= CSB_AddEditBundle.ClientID%>" aria-expanded="true" aria-controls="SH_AddEditBundle">
                                                        <h3>
                                                            <%= Resources.Content.GN0000395%>
                                                        </h3>
                                                    </div>
                                                    <div id="CSB_AddEditBundle" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_AddEditBundle" aria-expanded="false">
                                                        <div class="row">
                                                            <div class="col-sm-3 col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_GatewayGroup" runat="server" MaxLength="100"></asp:TextBox>
                                                                        <asp:Label CssClass="form-label" ID="Literal33" runat="server" Text='<%$ Resources:Content,Lync310%>' />
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="col-sm-3 col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_PriceGroup" runat="server" MaxLength="100"></asp:TextBox>
                                                                        <asp:Label CssClass="form-label" ID="Literal34" runat="server" Text='<%$ Resources:Content,GN0000200%>' />
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="col-sm-3 col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_Destination" runat="server" MaxLength="100"></asp:TextBox>
                                                                        <asp:Label CssClass="form-label" ID="Literal36" runat="server" Text='<%$ Resources:Content,Lync311%>' />
                                                                    </div>
                                                                </div>
                                                            </div>

                                                        </div>
                                                        <div class="row">
                                                            <div class="col-xs-12">
                                                                <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_FilterRates" runat="server" Text='<%$ Resources:Content, GN0000395 %>' />
                                                                <asp:Button ID="Btn_ClearRates" Visible="false" CssClass="btn btn-primary waves-effect" runat="server"
                                                                    Text="<%$ Resources:Content,String289 %>" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>

                                    </asp:Panel>

                                    <div id="Tbl_CallRates" runat="server">
                                        <div class="row">
                                            <div class="col-xs-12">
                                                <asp:Button ID="Btn_RemoveAllRates" runat="server" Custom1="Custom" Style="display: none" Text="<%$ Resources:Content,GN0000278%>"
                                                    CssClass="btn btn-primary waves-effect btnAction" />
                                                <EM:ConfirmButtonExtender ID="ConfirmButtonExtender2" ConfirmText="<%$ Resources:Content,DGN1119974%>"
                                                    TargetControlID="Btn_RemoveAllRates" runat="server">
                                                </EM:ConfirmButtonExtender>
                                            </div>
                                        </div>

                                        <div class="row">
                                            <div class="col-xs-12">
                                                <asp:GridView ID="GV_CallRates" CssClass="table table-bordered table-striped table-hover table-layout-fixed" AllowSorting="true" AllowPaging="true"
                                                    EmptyDataText='<%$ Resources:Content, GN00001375 %>' runat="server" DataKeyNames="RateId" AutoGenerateColumns="False">
                                                    <Columns>
                                                        <asp:TemplateField HeaderStyle-CssClass="col-xs-1" ItemStyle-HorizontalAlign="Center" HeaderText='<%$ Resources:Content,GN0000370 %>'>
                                                            <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" Text="&nbsp;" ID="ChkBx_All" runat="server" onclick="SetCheckedHeader(this.checked, this,'1');" />
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-CssClass="col-xs-2" HeaderText='<%$ Resources:Content,Lync310 %>'>
                                                            <ItemTemplate>
                                                                <asp:Literal ID="Ltr_GatewayGroup" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.GatewayGroup")%>'></asp:Literal>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-CssClass="col-xs-1" HeaderText='<%$ Resources:Content,GN0000200 %>'>
                                                            <ItemTemplate>
                                                                <asp:Literal ID="Ltr_PriceGroup" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.PriceGroup")%>'></asp:Literal>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-CssClass="col-xs-1" HeaderText='<%$ Resources:Content,Lync311 %>'>
                                                            <ItemTemplate>
                                                                <asp:Literal ID="Ltr_Destination" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Destination")%>'></asp:Literal>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-CssClass="col-xs-1" HeaderText='<%$ Resources:Content,Lync312 %>'>
                                                            <ItemTemplate>
                                                                <asp:Literal ID="Ltr_VideoCallRate" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.VideoCallRate") %>'></asp:Literal>
                                                            </ItemTemplate>
                                                            <EditItemTemplate>
                                                                <div class="form-group">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="Txt_VideoCallRate" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.VideoCallRate") %>'>
                                                                        </asp:TextBox>
                                                                    </div>
                                                                </div>
                                                            </EditItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-CssClass="col-xs-1" HeaderText='<%$ Resources:Content,Lync313 %>'>
                                                            <ItemTemplate>
                                                                <asp:Literal ID="Ltr_ConferenceCallRate" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.ConferenceCallRate")%>'></asp:Literal>
                                                            </ItemTemplate>
                                                            <EditItemTemplate>
                                                                <div class="form-group">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="Txt_ConferenceCallRate" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.ConferenceCallRate")%>'>
                                                                        </asp:TextBox>
                                                                    </div>
                                                                </div>
                                                            </EditItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-CssClass="col-xs-1" HeaderText='<%$ Resources:Content,Lync314 %>'>
                                                            <ItemTemplate>
                                                                <asp:Literal ID="Ltr_AudioInternalRate" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.AudioInternalRate")%>'></asp:Literal>
                                                            </ItemTemplate>
                                                            <EditItemTemplate>
                                                                <div class="form-group">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="Txt_AudioInternalRate" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.AudioInternalRate")%>'>
                                                                        </asp:TextBox>
                                                                    </div>
                                                                </div>
                                                            </EditItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-CssClass="col-xs-1" HeaderText='<%$ Resources:Content,Lync315 %>'>
                                                            <ItemTemplate>
                                                                <asp:Literal ID="Ltr_AudioInboundRate" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.AudioInboundRate")%>'></asp:Literal>
                                                            </ItemTemplate>
                                                            <EditItemTemplate>
                                                                <div class="form-group">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="Txt_AudioInboundRate" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.AudioInboundRate")%>'>
                                                                        </asp:TextBox>
                                                                    </div>
                                                                </div>
                                                            </EditItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-CssClass="col-xs-1" HeaderText='<%$ Resources:Content,Lync316 %>'>
                                                            <ItemTemplate>
                                                                <asp:Literal ID="Ltr_AudioOutBoundRate" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.AudioOutBoundRate")%>'></asp:Literal>
                                                            </ItemTemplate>
                                                            <EditItemTemplate>
                                                                <div class="form-group">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="Txt_AudioOutBoundRate" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.AudioOutBoundRate")%>'>
                                                                        </asp:TextBox>
                                                                    </div>
                                                                </div>
                                                            </EditItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000276 %>' HeaderStyle-CssClass="col-xs-1">
                                                            <ItemTemplate>
                                                                <asp:LinkButton ID="LB_Edit" CssClass="btn btn-primary waves-effect" runat="server" CommandName="Edit" Text="<%$ Resources:Content,GN0000276%>"></asp:LinkButton>
                                                            </ItemTemplate>
                                                            <EditItemTemplate>
                                                                <asp:LinkButton CssClass="btn btn-primary waves-effect btnAction" ID="Lb_Update" CausesValidation="true" ValidationGroup="Rates" runat="server" CommandName="Update" Text="<%$ Resources:Content,GN0000654%>"></asp:LinkButton>
                                                                <asp:LinkButton CssClass="btn btn-primary waves-effect" ID="Lb_Cancel" runat="server" CommandName="Cancel" Text="<%$ Resources:Content,GN0000572%>"></asp:LinkButton>
                                                            </EditItemTemplate>

                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000278 %>' HeaderStyle-CssClass="col-xs-1">
                                                            <ItemTemplate>
                                                                <asp:LinkButton ID="LB_Remove" CssClass="btn btn-primary waves-effect btnAction" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.RateId")%>' CommandName="Remove" runat="server"
                                                                    Text="<%$ Resources:Content,GN0000278%>" />
                                                                <EM:ConfirmButtonExtender ID="CBE_Remove" ConfirmText="<%$ Resources:Content,DGN1119974%>"
                                                                    TargetControlID="LB_Remove" runat="server">
                                                                </EM:ConfirmButtonExtender>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                    <PagerTemplate>
                                                        <EM:Pager ID="Pager9" runat="server" />
                                                    </PagerTemplate>
                                                </asp:GridView>
                                            </div>
                                        </div>
                                    </div>
                                </asp:Panel>

                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>

                </EM:TabContainer>
            </div>
        </div>
    </div>

    <asp:Panel ID="Panel8" runat="server" CssClass="width-modal-popup-auto" Style="width: 450px !important; display: none">
        <div class="col-xs-12">
            <div class="card">
                <div class="header container-fluid">
                    <h3 class="pull-left">
                        <asp:Literal ID="Ltr_RuleHeading" runat="server" EnableViewState="false" Text="<%$ Resources:Content,Lync370%>" /></h3>
                    <span>
                        <button type="button" class="close" onclick="$find('<%=MP1.ClientID%>').hide();">&times;</button>
                    </span>
                </div>
                <div class="body">
                    <div class="row">
                        <div class="col-sm-4 col-xs-12 row-label">
                            *<asp:Literal ID="Literal61" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN000170%>" />:
                        </div>
                        <div class="col-sm-8 col-xs-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_RuleName" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="Rfv_RuleName" runat="server" ValidationGroup="Rule" Display="None" ControlToValidate="TxBx_RuleName"></asp:RequiredFieldValidator>
                                    <asp:HiddenField ID="Hf_Priority" runat="server" />
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-4 col-xs-12 row-label">
                            <asp:Literal ID="Literal62" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000597%>" />:
                        </div>
                        <div class="col-sm-8 col-xs-12">

                            <div class="form-group">
                                <div class="form-line">
                                    <asp:TextBox ID="TxBx_Description" runat="server"></asp:TextBox>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-xs-12">
                            <div class="Card table-bordered">
                                <div class="header">
                                    <h3>
                                        <asp:Literal ID="Literal60" runat="server" EnableViewState="false" Text="<%$ Resources:Content,Lync371%>" /></h3>
                                </div>
                                <div class="body">
                                    <div class="row" id="Tr_SD1" runat="server">
                                        <div class="col-xs-12">
                                            <div class="input-group">
                                                <span class="input-group-addon">
                                                    <asp:Literal ID="Literal63" runat="server" EnableViewState="false" Text="<%$ Resources:Content,Lync372%>" />:</span>
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_StartingDigits" runat="server"></asp:TextBox>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>

                                    </div>

                                    <div class="row" id="Tr_L1" runat="server">
                                        <div class="col-xs-8">
                                            <div class="input-group">
                                                <span class="input-group-addon">
                                                    <asp:Literal ID="Literal64" runat="server" EnableViewState="false" Text="<%$ Resources:Content,Lync373%>" />:</span>
                                                <div class="form-group">
                                                    <asp:DropDownList ID="Ddl_Length" runat="server">
                                                        <asp:ListItem Text="At Least" Value="0"></asp:ListItem>
                                                        <asp:ListItem Text="Exactly" Value="1"></asp:ListItem>
                                                        <asp:ListItem Text="Any" Value="2"></asp:ListItem>
                                                    </asp:DropDownList>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="col-xs-4">
                                            <div class="form-group">
                                                <div class="form-line">
                                                    <asp:TextBox ID="TxBx_Length" runat="server"></asp:TextBox>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="row" id="Tr_DR1" runat="server">
                                        <div class="col-xs-12">
                                            <div class="input-group">
                                                <span class="input-group-addon">
                                                    <asp:Literal ID="Literal65" runat="server" EnableViewState="false" Text="<%$ Resources:Content,Lync374%>" />:</span>
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_DigitsToRemove" runat="server"></asp:TextBox>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="row" id="Tr_DA1" runat="server">
                                        <div class="col-xs-12">
                                            <div class="input-group">
                                                <span class="input-group-addon">
                                                    <asp:Literal ID="Literal66" runat="server" EnableViewState="false" Text="<%$ Resources:Content,Lync375%>" />:</span>
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_DigitsToAdd" runat="server"></asp:TextBox>
                                                        <asp:RegularExpressionValidator ID="Rev_DigitsToAdd" runat="server" Display="None" ControlToValidate="TxBx_DigitsToAdd" ValidationGroup="Rule" ValidationExpression="^([\w\+]*)$" ErrorMessage="The 'Digits to add' field must contain a valid value"></asp:RegularExpressionValidator>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="row">
                                        <div class="col-xs-12">
                                            <div class="input-group">
                                                <span class="input-group-addon">*<asp:Literal ID="Literal67" runat="server" EnableViewState="false" Text="<%$ Resources:Content,Lync367%>" />:</span>
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_Expression" runat="server"></asp:TextBox>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="row">
                                        <div class="col-xs-12">
                                            <div class="input-group">
                                                <span class="input-group-addon">*<asp:Literal ID="Literal68" runat="server" EnableViewState="false" Text="<%$ Resources:Content,Lync368%>" />:</span>
                                                <div class="form-group">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_TranslationRule" runat="server"></asp:TextBox>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-xs-12">
                            <div class="form-group">
                                <asp:CheckBox ID="Cb_InternalExtension" runat="server" Text="<%$ Resources:Content,Lync376%>" />
                            </div>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-xs-12">
                            <asp:Button ID="Btn_EnableEdit" CausesValidation="false" Visible="false" runat="server" Text="<%$ Resources:Content,Lync379%>" CssClass="btn btn-primary waves-effect" />
                            <asp:Button ID="Btn_SavePopup" ValidationGroup="Rule" runat="server" Text="<%$ Resources:Content,GN0000858%>" CssClass="btn btn-primary waves-effect btnAccount" />
                            <asp:Button ID="Btn_CancelPopup" runat="server" CausesValidation="false" Text="<%$ Resources:Content,GN0000572%>" CssClass="btn btn-primary waves-effect" />
                            <asp:ValidationSummary ID="Vs_rule" runat="server" ShowMessageBox="true"
                                ShowSummary="false" ValidationGroup="Rule" HeaderText="<%$ Resources:Content,EM000001%>" />
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </asp:Panel>
    <asp:Button ID="Btn_Dummy" runat="server" Style="display: none" Text='<%$ Resources:Content,GN0000575%>' />
    <EM:ModalPopupExtender runat="server" ID="MP1" TargetControlID="Btn_Dummy" BackgroundCssClass="modalBackground"
        DropShadow="false" PopupControlID="Panel8" OkControlID="Btn_SavePopup" OnOkScript="onOk()" CancelControlID="Btn_CancelPopup">
    </EM:ModalPopupExtender>
    <script type="text/javascript">
        function onOk() {

            if (document.getElementById('<%= TxBx_RuleName.ClientID %>').value != '') {
                //alert('ok');
                __doPostBack('<%= Btn_SavePopup.UniqueID %>', '');
            }
            else {
                //alert('error');
                //alert("Please enter rule name.");
                $find('<%= MP1.ClientID %>').show();
            }
        }
        function onOkSelect() {

            __doPostBack('<%= Btn_SelectRule.UniqueID %>', '');
        }
    </script>

    <asp:Panel ID="Pnl_SelectRules" runat="server" CssClass="width-modal-popup-auto">
        <div class="col-xs-12">
            <div class="card">
                <div class="header container-fluid">
                    <h3 class="pull-left">
                        <asp:Literal ID="Literal8" runat="server" EnableViewState="false" Text="<%$ Resources:Content,Lync366%>" /></h3>
                    <span>
                        <button type="button" class="close" onclick="$find('<%=MPE2.ClientID%>').hide();">&times;</button>
                    </span>
                </div>
                <div class="body">

                    <div class="row">
                        <div class="col-xs-12">
                            <asp:GridView ID="GV_SelectRules" CssClass="table table-bordered table-striped table-hover table-layout-fixed" AllowSorting="true"
                                runat="server" AutoGenerateColumns="False" EmptyDataText='<%$ Resources:Content, GN00001375 %>'>
                                <Columns>
                                    <asp:TemplateField HeaderStyle-CssClass="col-xs-1">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="Cb_SelectMe" Text="&nbsp;" runat="server" />
                                            <asp:HiddenField ID="Hf_Description" runat="server" Value='<%# DataBinder.Eval(Container, "DataItem.Description")%>' />
                                            <asp:HiddenField ID="Hf_StartingDigits" runat="server" Value='<%# DataBinder.Eval(Container, "DataItem.StartingDigits")%>' />
                                            <asp:HiddenField ID="Hf_LengthOption" runat="server" Value='<%# DataBinder.Eval(Container, "DataItem.LengthOption")%>' />
                                            <asp:HiddenField ID="Hf_LengthValue" runat="server" Value='<%# DataBinder.Eval(Container, "DataItem.LengthValue")%>' />
                                            <asp:HiddenField ID="Hf_DigitsToRemove" runat="server" Value='<%# DataBinder.Eval(Container, "DataItem.DigitsToRemove")%>' />
                                            <asp:HiddenField ID="Hf_DigitsToAdd" runat="server" Value='<%# DataBinder.Eval(Container, "DataItem.DigitsToAdd")%>' />
                                            <asp:HiddenField ID="Hf_IsInternalExtension" runat="server" Value='<%# DataBinder.Eval(Container, "DataItem.IsInternalExtension")%>' />
                                            <asp:HiddenField ID="Hf_Priority" runat="server" Value='<%# DataBinder.Eval(Container, "DataItem.Priority")%>' />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField HeaderStyle-CssClass="col-xs-3" DataField="Name" HeaderText='<%$ Resources:Content, GN000170 %>' />
                                    <asp:BoundField HeaderStyle-CssClass="col-xs-2" DataField="DialPlan" HeaderText='<%$ Resources:Content, DEV1220 %>' />
                                    <asp:BoundField HeaderStyle-CssClass="col-xs-3" DataField="Pattern" HeaderText='<%$ Resources:Content, Lync367 %>' />
                                    <asp:BoundField HeaderStyle-CssClass="col-xs-3" DataField="Translation" HeaderText='<%$ Resources:Content, Lync368 %>' />
                                </Columns>
                            </asp:GridView>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-xs-12">
                            <asp:Button ID="Btn_SelectRule" runat="server" Text="<%$ Resources:Content,GN0000858%>" CssClass="btn btn-primary waves-effect" />&nbsp;
                                    <asp:Button ID="Btn_CancelRule" runat="server" Text="<%$ Resources:Content,GN0000572%>" CssClass="btn btn-primary waves-effect" />
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </asp:Panel>
    <asp:Button ID="Btn_Dummy2" runat="server" Style="display: none" Text='<%$ Resources:Content,GN0000575%>' />
    <EM:ModalPopupExtender runat="server" ID="MPE2" TargetControlID="Btn_Dummy2" BackgroundCssClass="modalBackground"
        DropShadow="false" PopupControlID="Pnl_SelectRules" OnOkScript="onOkSelect()" OkControlID="Btn_SelectRule" CancelControlID="Btn_CancelRule">
    </EM:ModalPopupExtender>
</asp:Content>
