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

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

<asp:Content ID="Content5" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h3>
                    <%= Resources.Content.Skype4BAccounts%>
                </h3>
            </div>
            <div class="body">
                <%-- Search Panel  --%>
                <ajax:UpdatePanel ID="UP_Search" runat="server">
                    <ContentTemplate>
                        <asp:Panel ID="Panel1" DefaultButton="Btn_SrchAccount" runat="server">
                            <div class="row">
                                <div class="panel-group search-panel" id="AS_Skype4BAccounts" role="tablist" aria-multiselectable="true">
                                    <div class="col-xs-12" role="tab" id="SH_Skype4BAccounts">
                                        <div class="card">
                                            <div class="header" role="button" data-toggle="collapse" data-parent="#AS_Skype4BAccounts" href="#<%= CSB_Skype4BAccounts.ClientID%>" aria-expanded="true" aria-controls="SH_Skype4BAccounts">
                                                <h3>
                                                    <%= Resources.Content.GN0000395%>
                                                </h3>
                                            </div>
                                            <div id="CSB_Skype4BAccounts" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_Skype4BAccounts" aria-expanded="false">
                                                <div class="row">
                                                    <div class="col-md-3 col-sm-6 col-xs-12" runat="server" id="Td_Owner">
                                                        <div class="form-group form-float">
                                                            <asp:DropDownList ID="DDL_Owner" runat="server" onchange="setOwnerCookie(this)"></asp:DropDownList>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-1 col-sm-3 col-xs-12">
                                                        <div class="form-group form-float">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_SrchId" runat="server"></asp:TextBox>
                                                                <asp:Label ID="Label6" runat="server" EnableViewState="false" Text="<%$ Resources:Content,SPT002807%>" class="form-label"></asp:Label>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-3 col-sm-3 col-xs-12">
                                                        <div class="form-group form-float">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_SrchDomainName" runat="server" MaxLength="200"></asp:TextBox>
                                                                <asp:Label ID="Label5" runat="server" Text="<%$ Resources:Content,OCS011%>" class="form-label"></asp:Label>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-3 col-sm-3 col-xs-12" id="Td_CustomerName" runat="server">
                                                        <div class="form-group form-float">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_CustomerName" runat="server"></asp:TextBox>
                                                                <asp:Label ID="Label7" runat="server" Text="<%$ Resources:Content,GN0000268%>" class="form-label"></asp:Label>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-2 col-sm-3 col-xs-12">
                                                        <div class="form-group form-float">
                                                            <asp:DropDownList ID="DDL_AccountStatus" runat="server"></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_LabelSrch" runat="server"></asp:TextBox>
                                                                <asp:Label ID="Label19" runat="server" EnableViewState="false" Text="<%$ Resources:Content,strLabel%>" class="form-label"></asp:Label>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                                        <div class="form-group form-float">
                                                            <div class="form-line">
                                                                <asp:TextBox ID="TxBx_OrgName" runat="server"></asp:TextBox>
                                                                <asp:Label ID="Label3" runat="server" EnableViewState="false" Text="<%$ Resources:Content,DGN1110608%>" class="form-label"></asp:Label>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-12">
                                                        <asp:Button ID="Btn_SrchAccount" CssClass="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,GN0000391%>" />
                                                        <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>
                            </div>
                        </asp:Panel>
                    </ContentTemplate>
                </ajax:UpdatePanel>

                <%-- Listing --%>
                <div class="row">
                    <div class="col-xs-12">
                        <ajax:UpdatePanel ID="UP_Listing" runat="server" UpdateMode="Conditional">
                            <ContentTemplate>
                                <asp:GridView CssClass="table table-bordered table-striped table-hover" AllowSorting="true" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                                    ID="GV_ExAccountList" AllowPaging="False" runat="server" AutoGenerateColumns="false">
                                    <Columns>
                                        <asp:TemplateField HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1" HeaderText="<%$ Resources:Content,String385%>">
                                            <ItemTemplate>
                                                <%-- <asp:Image ID="Img_ServiceType" runat="server" />&nbsp;--%>

                                                <asp:Label ID="LB_Status" CommandName="Status" runat="server"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField SortExpression="OCSHostingID" HeaderText="<%$ Resources:Content,DGN1119987%>"
                                            HeaderStyle-CssClass="col-xs-3 hidden-xs" ItemStyle-CssClass="col-xs-3 hidden-xs">
                                            <ItemTemplate>
                                                    <table class="table small">
                                            <tbody>
                                                <tr>
                                                    <td class="col-xs-5 row-label">
                                                        <asp:Label ID="Label1" runat="server" Text="<%$ Resources:Content,SPT002807%>" EnableViewState="false"></asp:Label>:                                                            
                                                    </td>
                                                    <td class="col-xs-8">
                                                        <asp:HyperLink ID="LB_ID" runat="server"></asp:HyperLink>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="col-xs-5 row-label">
                                                        <asp:Label ID="Label2" runat="server" Text="<%$ Resources:Content,GN000141%>" EnableViewState="false"></asp:Label>:                                                          
                                                    </td>
                                                    <td class="col-xs-8">
                                                        <asp:Label ID="LB_PackageName" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.PackageName")%>'></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr id="trLabel" runat="server">
                                                    <td class="col-xs-5 row-label">
                                                        <asp:Label ID="lbl_LabelColon" runat="server" Text="<%$ Resources:Content,StrLabelColon%>" EnableViewState="false"></asp:Label>
                                                    </td>
                                                    <td class="col-xs-8">
                                                        <asp:Label ID="Lbl_Label" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.Label")%>'></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="col-xs-5 row-label">
                                                        <asp:Label ID="Label6" runat="server" Text="<%$ Resources:Content,strOrg%>" EnableViewState="false"></asp:Label>:
                                                    </td>
                                                    <td class="col-xs-8">
                                                        <asp:Label ID="Label12" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.OrganizationName")%>'></asp:Label>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <%--                                        <asp:BoundField HeaderText="<%$ Resources:Content, GN000141 %>" DataField="PackageName" SortExpression="PackageName" HeaderStyle-CssClass="col-xs-2 hidden-xs" ItemStyle-CssClass="col-xs-2 hidden-xs" />--%>

                                        <asp:TemplateField SortExpression="CustomerID" HeaderText="<%$ Resources:Content,GN0000715%>"
                                            HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                            <ItemTemplate>
                                                <asp:HyperLink ID="LB_ClientID" runat="server"></asp:HyperLink>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField SortExpression="SipDomain" HeaderText="<%$ Resources:Content,DEV1086%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                            <ItemTemplate>
                                                <asp:Label ID="LB_SipDomain" runat="server" data-toggle="tooltip" data-placement="top" title="" data-original-title="Tooltip on top"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField SortExpression="OrganizationName" HeaderText="<%$ Resources:Content,DGN1110608%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                            <ItemTemplate>
                                                <asp:Label ID="Lbl_OrgName" runat="server"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000636%>" HeaderStyle-CssClass="col-xs-1 hidden-xs" ItemStyle-CssClass="col-xs-1 hidden-xs" HeaderStyle-HorizontalAlign="Center">
                                            <ItemTemplate>
                                                <asp:HyperLink ID="Lbl_Users" runat="server"></asp:HyperLink>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <%--<asp:TemplateField SortExpression="FirstName" HeaderStyle-ForeColor="white" HeaderText="<%$ Resources:Content,GN0000268%>"
                                        HeaderStyle-Width="13%">
                                        <ItemTemplate>
                                            <asp:HyperLink ID="LB_Client" runat="server"></asp:HyperLink>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField HeaderText="<%$ Resources:Content, GN00001077 %>" DataField="CustCompanyName" SortExpression="CustCompanyName" HeaderStyle-Width="15%" HeaderStyle-ForeColor="white" />--%>
                                        <%--<asp:TemplateField HeaderText="<%$ Resources:Content,DGN1110608%>" HeaderStyle-Width="18%">
                        <ItemTemplate>
                            <asp:Label ID="Lbl_OrgName" runat="server"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>--%>
                                        <asp:TemplateField SortExpression="Owner" HeaderText="<%$ Resources:Content,Exh505%>"
                                            HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                            <ItemTemplate>
                                                <asp:HyperLink ID="LB_Owner" runat="server" Text='<%# Eval("Owner")%>'></asp:HyperLink>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000360%>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                            <ItemTemplate>
                                                <asp:HyperLink ID="LB_Manage" CssClass="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,L0086%>"></asp:HyperLink>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <%--PagerTemplate Start--%>
                                    <PagerTemplate>
                                        <EM:Pager ID="Pager1" runat="server" />
                                    </PagerTemplate>
                                    <%--PagerTemplate End--%>
                                </asp:GridView>
                            </ContentTemplate>
                        </ajax:UpdatePanel>
                    </div>
                </div>
            </div>
        </div>
    </div>

</asp:Content>
