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

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

<asp:Content ID="Content5" ContentPlaceHolderID="CPH_Content" runat="Server">
    <ajax:UpdatePanel ID="UP_PhoneGroupDetail" runat="server">
        <ContentTemplate>
            <div class="col-xs-12">
                <div class="card">
                    <div class="header">
                        <div class="displayInlineBlock">
                            <h3>
                                <asp:Literal ID="Literal10" runat="server" EnableViewState="false" Text='<%$ Resources:Content,SM024%>' /></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">

                        <%-- Group Detail --%>
                        <div class="row">
                            <div class="col-xs-12">
                                <div class="card">
                                    <div class="header">
                                        <h3>
                                            <%= Resources.Content.DEV1115%>                                                                                                                                 
                                        </h3>
                                    </div>
                                    <div class="body">
                                        <div class="row">
                                            <div class="col-md-3 col-sm-6 col-xs-12 row-label">
                                                <asp:Literal ID="Ltrl_GroupName" runat="server" EnableViewState="false" Text='<%$ Resources:Content,GN000165%>' />:
                                            </div>
                                            <div class="col-md-4 col-sm-6 col-xs-12">
                                                <asp:Label ID="Lbl_GroupName" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-md-3 col-sm-6 col-xs-12 row-label">
                                                <asp:Literal ID="Ltrl_Customer" runat="server" EnableViewState="false" Text='<%$ Resources:Content,GN0000850%>' />:
                                            </div>
                                            <div class="col-md-4 col-sm-6 col-xs-12">
                                                <asp:Label ID="Lbl_Customer" runat="server"></asp:Label>
                                            </div>
                                        </div>

                                        <div class="row">
                                            <div class="col-md-3 col-sm-6 col-xs-12 row-label">
                                                <asp:Literal ID="Literal3" runat="server" EnableViewState="false" Text='<%$ Resources:Content,DEV1128%>' />:
                                            </div>
                                            <div class="col-md-4 col-sm-6 col-xs-12">
                                                <asp:Label ID="Lbl_TotalNumbers" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-md-3 col-sm-6 col-xs-12 row-label">
                                                <asp:Literal ID="Literal2" runat="server" EnableViewState="false" Text='<%$ Resources:Content,Lync333%>' />:
                                            </div>
                                            <div class="col-md-4 col-sm-6 col-xs-12">
                                                <asp:Label ID="Lbl_MaximumQuota" runat="server"></asp:Label>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <%-- Operations --%>
                        <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_EditPhoneGroup" CssClass="btn btn-primary waves-effect" runat="server"
                                                    Text='<%$ Resources:Content,DEV1119%>' />
                                                <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>

                        <%-- Search Filter --%>
                        <asp:Panel ID="Pnl_Filter" 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 form-float">
                                                        <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>

                        <%-- Phone Numbers Listing --%>
                        <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>
                    </div>
                </div>
            </div>

        </ContentTemplate>
    </ajax:UpdatePanel>
</asp:Content>
