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

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

<asp:Content ID="Content1" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h3>
                    <%= Resources.Content.Subscribers%>
                </h3>
            </div>
            <div class="body">
                <asp:Panel ID="Pnl_TabContent0" runat="server">
                    <%-- #Subscribers --%>
                    <asp:Panel ID="Pnl_Filter" runat="server" DefaultButton="Btn_SrchSubscribers">

                        <div class="row">
                            <div class="panel-group search-panel" id="AS_Subscribers" role="tablist" aria-multiselectable="true">
                                <div class="col-xs-12" role="tab" id="SH_Subscribers">
                                    <div class="card">
                                        <div class="header" role="button" data-toggle="collapse" data-parent="#AS_Subscribers" href="#<%= CSB_Subscribers.ClientID%>" aria-expanded="true" aria-controls="SH_Subscribers">
                                            <h3>
                                                <%= Resources.Content.GN0000395%>
                                            </h3>
                                        </div>
                                        <div id="CSB_Subscribers" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_Subscribers" aria-expanded="false">
                                            <div class="row">
                                                <div class="col-md-3 col-sm-6 col-xs-12" runat="server" id="Div_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-3 col-sm-6 col-xs-12" runat="server" id="Div_CustomerId">
                                                    <div class="form-group form-float">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_SrchCustomerId" runat="server"></asp:TextBox>
                                                            <asp:Label ID="Label4" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000715%>" class="form-label"></asp:Label>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-md-3 col-sm-6 col-xs-12" runat="server" id="Div_CustomerName">
                                                    <div class="form-group form-float">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_SrchCustomerName" runat="server"></asp:TextBox>
                                                            <asp:Label ID="Label10" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000268%>" class="form-label"></asp:Label>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-md-3 col-sm-6 col-xs-12" runat="server" id="Div_CompanyName">
                                                    <div class="form-group form-float">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_SrchCompanyName" runat="server" MaxLength="200"></asp:TextBox>
                                                            <asp:Label ID="Label8" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001077%>" 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_SrchUser" runat="server" />
                                                            <asp:Label ID="Label3" runat="server" class="form-label" EnableViewState="false"
                                                                Text="<%$ Resources:Content,GN0001288%>"></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_SrchPhoneNumber" runat="server"></asp:TextBox>
                                                            <asp:Label ID="Label2" runat="server" class="form-label" EnableViewState="false" Text="<%$ Resources:Content,PhoneNumber%>"></asp:Label>
                                                        </div>

                                                    </div>
                                                </div>

                                                <div class="col-md-3 col-sm-6 col-xs-12" runat="server" id="Div_SubscriptionId">
                                                    <div class="form-group form-float">
                                                        <div class="form-line">
                                                            <asp:TextBox ID="TxBx_SrchSubscriptionId" runat="server"></asp:TextBox>
                                                            <asp:Label ID="Label1" runat="server" EnableViewState="false"
                                                                Text="<%$ Resources:Content,String61%>" 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">
                                                        <asp:DropDownList ID="Ddl_SrchStatus" runat="server">
                                                            <asp:ListItem Text="<%$ Resources:Content,SelectStatus %>" Value="-1"></asp:ListItem>
                                                            <asp:ListItem Text="Active" Value="1"></asp:ListItem>
                                                            <asp:ListItem Text="Disabled" Value="0"></asp:ListItem>
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>

                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                    <div class="form-group form-float">
                                                        <asp:DropDownList ID="DDL_Alert" runat="server">
                                                            <asp:ListItem Text="<%$ Resources:Content,strCreditLimitUsedAny %>" Value="-1"></asp:ListItem>
                                                            <asp:ListItem Text="<%$ Resources:Content,strMonthlylimitusedless70 %>" Value="1"></asp:ListItem>
                                                            <asp:ListItem Text="<%$ Resources:Content,strMonthlylimitused70 %>" Value="2"></asp:ListItem>
                                                            <asp:ListItem Text="<%$ Resources:Content,strMonthlylimitused80 %>" Value="3"></asp:ListItem>
                                                            <asp:ListItem Text="<%$ Resources:Content,strMonthlylimitused90 %>" Value="4"></asp:ListItem>
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>

                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                    <div class="form-group form-float">
                                                        <asp:DropDownList ID="DDL_Registered" runat="server">
                                                            <asp:ListItem Text="<%$ Resources:Content,strSelectRegistrationStatus %>" Value="-1"></asp:ListItem>
                                                            <asp:ListItem Text="<%$ Resources:Content,strRegistered %>" Value="1"></asp:ListItem>
                                                            <asp:ListItem Text="<%$ Resources:Content,strUnRegistered %>" Value="0"></asp:ListItem>
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>

                                                <div class="col-md-3 col-sm-6 col-xs-12">
                                                    <div class="form-group form-float">
                                                        <asp:DropDownList ID="DDl_CloudPBXStatus" runat="server">
                                                            <asp:ListItem Text="<%$ Resources:Content,strSelectCloudPBXStatus %>" Value="-1"></asp:ListItem>
                                                            <asp:ListItem Text="<%$ Resources:Content,strEnable %>" Value="1"></asp:ListItem>
                                                            <asp:ListItem Text="<%$ Resources:Content,strDisable %>" Value="0"></asp:ListItem>
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>

                                                <div class="col-xs-12">
                                                    <div class="form-group form-float">
                                                        <asp:Button ID="Btn_SrchSubscribers" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,GN0000391%>" />
                                                        <asp:Button ID="Btn_Clear" Visible="false" class="btn btn-primary waves-effect" runat="server"
                                                            Text="<%$ Resources:Content,String289 %>" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </asp:Panel>

                    <div class="row notofication-icons" id="DivResult" runat="server" visible="false">
                        <div class="col-xs-12">
                            <div style="width: 241px;" class="pull-left">
                                <div id="Div_Red" runat="server" class="glyphicon glyphicon-remove-sign pull-left color-remove p-t-2" />
                                <%--style="height: 12px; width: 12px; background-color: red; margin-top: 4px;"--%>
                                <div class="pull-left  p-t-5">
                                    &nbsp;
                            <asp:Literal ID="lbl_red" runat="server" Text="<%$ Resources:Content, strMonthlylimitused90 %>" />&nbsp;&nbsp;
                                </div>
                            </div>
                            <div style="width: 241px;" class="pull-left">
                                <div id="Div1" runat="server" class="glyphicon glyphicon-exclamation-sign pull-left color-exclamation p-t-2" />
                                <%--style="height: 12px; width: 12px; background-color: orange; margin-top: 4px;" class="pull-left" --%>
                                <div class="pull-left  p-t-5">
                                    &nbsp;
                            <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:Content, strMonthlylimitused80 %>" />&nbsp;&nbsp;
                                </div>
                            </div>
                            <div style="width: 241px;" class="pull-left">
                                <div id="Div2" runat="server" class="glyphicon glyphicon-info-sign pull-left color-info p-t-2" />
                                <%--style="height: 12px; width: 12px; background-color: yellow; margin-top: 4px;" class="pull-left" --%>
                                <div class="pull-left  p-t-5">
                                    &nbsp;
                            <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content, strMonthlylimitused70 %>" />&nbsp;&nbsp;
                                </div>
                            </div>
                            <div style="width: 235px;" class="pull-left">
                                <div id="Div3" runat="server" class="glyphicon glyphicon-ok-sign pull-left color-success p-t-2" />
                                <%--style="height: 12px; width: 12px; background-color: green; margin-top: 4px;" class="pull-left" --%>
                                <div class="pull-left  p-t-5">
                                    &nbsp;
                            <asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Content, strMonthlylimitusedless70 %>" />
                                </div>
                            </div>
                        </div>
                        <div class="col-xs-12">
                            <div class="clearfix">
                                <div class="double-scroll-wrapper1">
                                    <div>
                                    </div>
                                </div>
                                <div class="double-scroll-wrapper2">
                                    <asp:GridView Style="width: 1500px" CssClass="table table-bordered table-striped table-hover table-layout-fixed" AllowSorting="true" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                                        ID="GV_SubscribersListing" AllowPaging="True" runat="server"
                                        AutoGenerateColumns="false">
                                        <Columns>
                                            <asp:TemplateField SortExpression="Name" HeaderStyle-Width="250px" HeaderText='<%$ Resources:Content, strSubscriber %>'>
                                                <ItemTemplate>
                                                    <table class="table small">
                                                        <tbody>
                                                            <tr>
                                                                <%-- <td class="col-xs-8 row-label">
                                                            <asp:Label ID="LB_NameH" runat="server"
                                                                EnableViewState="false" Text='<%$ Resources:Content,GN000170%>'></asp:Label>:
                                                        </td>--%>
                                                                <td class="col-xs-12">
                                                                    <asp:Label ID="LB_Name" runat="server" />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <%--<td class="col-xs-8 row-label">
                                                            <asp:Label ID="LB_UserNameH" runat="server"
                                                                EnableViewState="false" Text='<%$ Resources:Content,USM0061%>'></asp:Label>:
                                                        </td>--%>
                                                                <td class="col-xs-12">
                                                                    <asp:HyperLink ID="LB_UserName" runat="server" />
                                                                </td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="<%$ Resources:Content,strCreditLimit%>" HeaderStyle-Width="250px">
                                                <ItemTemplate>

                                                    <table class="table small">
                                                        <tbody>
                                                            <tr>
                                                                <td class="col-xs-5 row-label">
                                                                    <asp:Label ID="LB_MonthlylimitH" runat="server"
                                                                        EnableViewState="false" Text='<%$ Resources:Content,strMonthlyLimit%>'></asp:Label>:
                                                                </td>
                                                                <td class="col-xs-7">
                                                                    <asp:Label ID="LB_Monthlylimit" runat="server"></asp:Label>
                                                                </td>
                                                            </tr>

                                                            <tr>
                                                                <td class="col-xs-5 row-label">
                                                                    <asp:Label ID="LB_MonthlylimitusedH" runat="server"
                                                                        EnableViewState="false" Text='<%$ Resources:Content,strMonthlyLimitUsed%>'></asp:Label>:
                                                                </td>
                                                                <td class="col-xs-7">
                                                                    <asp:Label ID="LB_Monthlylimitused" runat="server"></asp:Label>
                                                                </td>
                                                            </tr>

                                                            <tr>
                                                                <td class="col-xs-5 row-label">
                                                                    <asp:Label ID="LB_DailylimitH" runat="server"
                                                                        EnableViewState="false" Text='<%$ Resources:Content,strDailyLimit%>'></asp:Label>:
                                                                </td>
                                                                <td class="col-xs-7">
                                                                    <asp:Label ID="LB_Dailylimit" runat="server"></asp:Label>
                                                                </td>
                                                            </tr>

                                                            <tr>
                                                                <td class="col-xs-5 row-label">
                                                                    <asp:Label ID="LB_DailylimitusedH" runat="server"
                                                                        EnableViewState="false" Text='<%$ Resources:Content,strDailyLimitUsed%>'></asp:Label>:
                                                                </td>
                                                                <td class="col-xs-7">

                                                                    <div id="Div_Service" runat="server">
                                                                    </div>
                                                                    <asp:Label ID="LB_Dailylimitused" runat="server"></asp:Label>
                                                                </td>
                                                            </tr>

                                                            <tr>
                                                                <td class="col-xs-5 row-label">
                                                                    <asp:Label ID="LB_BundleNameH" runat="server"
                                                                        EnableViewState="false" Text='<%$ Resources:Content,strBundle%>'></asp:Label>:
                                                                </td>
                                                                <td class="col-xs-7">
                                                                    <asp:Label ID="LB_BundleName" runat="server"></asp:Label>
                                                                </td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText='<%$ Resources:Content, strMonthlyLimitAlert %>' ItemStyle-CssClass="align-center"  HeaderStyle-Width="100px">
                                                <ItemTemplate >
                                                    <div id="Div_Alert" runat="server"  />
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText="<%$ Resources:Content,PhoneNumbersCount%>"  HeaderStyle-Width="100px">
                                                <ItemTemplate>
                                                    <asp:Label ID="LB_PhoneNumbersCount" runat="server" />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="<%$ Resources:Content,strCloudPBXEnabled%>"  HeaderStyle-Width="100px">
                                                <ItemTemplate>
                                                    <asp:Label ID="LB_CloudPBX" runat="server" />
                                                    <%-- <div id="Div_CloudPBX" runat="server" style="height: 30px;" />--%>
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField HeaderText='<%$ Resources:Content, strSubscriberStatus %>'  HeaderStyle-Width="100px">
                                                <ItemTemplate>
                                                    <asp:Label ID="LB_Status" runat="server" />
                                                    <%--<div id="Div_Status" runat="server" style="height: 30px;" />--%>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText='<%$ Resources:Content, strSipRegistration %>' ItemStyle-CssClass="align-center"  HeaderStyle-Width="100px">
                                                <ItemTemplate>
                                                    <%--<asp:Label ID="LB_Status" runat="server" />--%>
                                                    <div id="Div_SipRegistration" runat="server" style="height: 30px;" />
                                                </ItemTemplate>
                                            </asp:TemplateField>

                                            <asp:TemplateField SortExpression="CustomerName" HeaderText="<%$ Resources:Content,Customer%>"  HeaderStyle-Width="200px">

                                                <ItemTemplate>
                                                    <asp:HyperLink ID="HL_Customer" runat="server"></asp:HyperLink>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                        <PagerTemplate>
                                            <UC:Pager ID="Pager1" runat="server" />
                                        </PagerTemplate>
                                    </asp:GridView>
                                </div>
                            </div>
                        </div>
                    </div>

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

