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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>
<%@ Register Src="~/Template/CC/Selectable_Selected_LBX.ascx" TagName="AddSelectableSelected" TagPrefix="EM" %>

<asp:Content ID="Content5" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <div class="displayInlineBlock">
                    <h3>
                        <asp:Literal ID="Literal1" runat="server" EnableViewState="false" Text='<%$ Resources:Content,DEV1119%>' /></h3>
                </div>
                <asp:LinkButton ID="lb_AddGoBack" runat="server" Text="<%$ Resources:Content,DGN1110542%>" CausesValidation="false"
                    CssClass="btn btn-primary waves-effect pull-right m-t--4px" />
            </div>
            <div class="body">
                <EM:TabContainer ID="TC_OCSSetup" runat="server" OnClientActiveTabChanged="loadTabPanel">
                    <EM:TabPanel ID="Tab_EditGroup" runat="server" HeaderText='<%$ Resources:Content,Lync120%>'>
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab0" runat="server" Style="display: none;" />
                            <asp:Panel ID="Pnl_TabContent0" runat="server">
                                <div class="row" id="Tr_Owner" runat="server">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        <asp:Literal ID="Literal13" runat="server" Text="<%$ Resources:Content,SPT002811%>"
                                            EnableViewState="false" />:
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <asp:DropDownList ID="DDL_Owner" runat="server" AutoPostBack="true" data-label="Owner">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-sm-3 col-xs-12 row-label">
                                        *<asp:Literal ID="Literal_Customer" runat="server" EnableViewState="false" Text='<%$ Resources:Content,GN0000889%>' />:
                                    </div>
                                    <div class="col-sm-4 col-xs-12">
                                        <div class="form-group">
                                            <asp:DropDownList ID="DDL_Customer" runat="server" Width="208" data-label="Customer">
                                            </asp:DropDownList>
                                            <asp:RequiredFieldValidator ID="Rfv_Customer" runat="server" ControlToValidate="DDL_Customer"
                                                Display="None" SetFocusOnError="True" InitialValue="-1"></asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </div>

                                <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="TxBx_GroupName" runat="server" MaxLength="100" data-label="Group Name"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator_GroupName" runat="server"
                                                    ControlToValidate="TxBx_GroupName" Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                <asp:LinkButton ID="Lb_PhoneNumbers" runat="server" Visible="false" Text="<%$ Resources:Content,SMI0251%>" />
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <div id="Tr_InputLineURI" runat="server">
                                    <div class="row">
                                        <div class="col-sm-3 col-xs-12 row-label">
                                            <asp:Literal ID="Literal_ImportNumbers" runat="server" EnableViewState="false" Text='<%$ Resources:Content,DEV1120%>' />:
                                        </div>
                                        <div class="col-sm-9 col-xs-12">
                                            <div class="row">
                                                <div class="col-sm-1 col-xs-12 row-label">
                                                    Filter:
                                                </div>
                                                <div class="col-sm-3 col-xs-12">
                                                    <div class="form-group">
                                                        <asp:DropDownList ID="Ddl_FilterCountries" runat="server" AutoPostBack="true" data-label="Country"></asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="col-sm-3 col-xs-12">
                                                    <div class="form-group">
                                                        <asp:DropDownList ID="Ddl_FilterRegions" runat="server" AutoPostBack="true" data-label="Region"></asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="col-sm-3 col-xs-12">
                                                    <div class="form-group">
                                                        <asp:DropDownList ID="Ddl_FilterTypes" runat="server" AutoPostBack="true" data-label="Type"></asp:DropDownList>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <EM:AddSelectableSelected ID="UCPhoneNumbers" runat="server" IsSelectedRequired="false" ClientSideOptimized="true" data-label="Phone Numbers" />
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12">
                                        <asp:Button ID="Btn_Save" CssClass="btn btn-primary waves-effect btnAction" runat="server" Text='<%$ Resources:Content,GN0000281%>' />
                                        <asp:Button ID="Btn_Cancel" CssClass="btn btn-primary waves-effect" runat="server" Text='<%$ Resources:Content,GN0000572%>'
                                            CausesValidation="false" />
                                    </div>
                                </div>


                            </asp:Panel>
                        </ContentTemplate>
                    </EM:TabPanel>
                    <EM:TabPanel ID="Tab_PhoneNumbers" runat="server" HeaderText='<%$ Resources:Content,DEV1089%>'>
                        <ContentTemplate>
                            <asp:Button ID="Btn_Tab1" runat="server" Style="display: none;" />

                            <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_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>

                            <%--Start Search box--%>
                            <asp:Panel ID="Pnl_Search" runat="server" CssClass="row" DefaultButton="Btn_Filter">
                                <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-sm-3 col-xs-12"> <div class="form-group">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_PhoneNumber" runat="server"></asp:TextBox>
                                                                <asp:Label CssClass="form-label" ID="Literal9" runat="server" Text='<%$ Resources:Content,SPT002215%>' EnableViewState="false" />
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-sm-3 col-xs-12">
                                                        <div class="form-group">
                                                            <asp:DropDownList ID="Ddl_PhoneCountries" runat="server"></asp:DropDownList>
                                                        </div>
                                                    </div>
                                                    <div class="col-sm-2 col-xs-12">
                                                        <div class="form-group">
                                                            <asp:DropDownList ID="Ddl_PhoneRegions" runat="server"></asp:DropDownList>
                                                        </div>
                                                    </div>
                                                    <div class="col-sm-2 col-xs-12">
                                                        <div class="form-group">
                                                            <asp:DropDownList ID="Ddl_PhoneTypes" runat="server"></asp:DropDownList>
                                                        </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 %>' />&nbsp;&nbsp;
                                <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--%>

                            <asp:Panel ID="Pnl_TabContent1" runat="server" Visible="false">
                                <div class="row">
                                    <div class="col-xs-12">
                                        <div class="double-scroll-wrapper1">
                                            <div>
                                            </div>
                                        </div>
                                        <div class="double-scroll-wrapper2">
                                            <asp:GridView ID="GV_PhoneNumbers" Width="1350px" 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-Width="100px" HeaderText='<%$ Resources:Content,GN0000370 %>' ItemStyle-HorizontalAlign="Center">
                                                        <HeaderTemplate>
                                                            <asp:CheckBox class="option-menu" ID="ChkBx_All" runat="server" Text=" " onclick="SetCheckedHeader(this.checked, this,'All');" />
                                                        </HeaderTemplate>
                                                        <ItemTemplate>
                                                            <asp:CheckBox class="option-menu" Text="&nbsp;" ID="ChkBx_All" runat="server" onclick="SetCheckedHeader(this.checked, this,'1');" />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderStyle-Width="100px" 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-Width="170px">
                                                        <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:BoundField HeaderStyle-Width="200px" DataField="CountryName" HeaderText='<%$ Resources:Content, GN0000882 %>' />
                                                    <asp:BoundField HeaderStyle-Width="100px" DataField="Area" HeaderText='<%$ Resources:Content, Lync362 %>' />
                                                    <asp:BoundField HeaderStyle-Width="100px" DataField="Type" HeaderText='<%$ Resources:Content, GN0000673 %>' />
                                                    <asp:TemplateField HeaderText='<%$ Resources:Content, DEV1133 %>' HeaderStyle-Width="300px">
                                                        <ItemTemplate>
                                                            <asp:Literal ID="Ltl_AssignedTo" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.AssignedTo") %>' />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="<%$ Resources:Content, HideFromUser %>" HeaderStyle-Width="150px">
                                                        <ItemTemplate>
                                                            <asp:Label ID="Lbl_HideFromUser" runat="server"></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000360 %>' HeaderStyle-Width="110px">
                                                        <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,DEV1195%>"
                                                                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>
                                </div>

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

</asp:Content>
