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

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

<asp:Content ID="Content4" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div class="col-xs-12">
        <div class="card" id="Pnl_Listing" runat="server">
            <div class="body">
                <%-- #SIP Accounts --%>
                <div class="row Div_OpsRow" id="Div_Operations" runat="server">
                    <div class="col-xs-12">
                        <div class="card">
                            <div class="header">
                                <h3>
                                    <%= Resources.Content.GN00001320%>
                                </h3>
                            </div>
                            <div class="body">
                                <div class="clearfix">
                                    <asp:Button ID="Btn_AddNewCustomer" class="btn btn-primary waves-effect btnAction" runat="server"
                                        Text='<%$ Resources:Content,SPT002333 %>' />
                                    <asp:Button ID="Btn_CreateBulkSubscriptions" runat="server" Text="<%$ Resources:Content,CreateBulkSubscriptions%>"
                                        class="btn btn-primary waves-effect btnAction" Visible="false" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <asp:Panel ID="Pnl_Filter" runat="server" DefaultButton="Btn_SrchAccount">

                    <div class="row">
                        <div class="panel-group search-panel" id="AS_SIPAccount" role="tablist" aria-multiselectable="true">
                            <div class="col-xs-12" role="tab" id="SH_SIPAccount">
                                <div class="card">
                                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_SIPAccount" href="#<%= CSB_SIPAccount.ClientID%>" aria-expanded="true" aria-controls="SH_SIPAccount">
                                        <h3>
                                            <%= Resources.Content.GN0000395%>
                                        </h3>
                                    </div>
                                    <div id="CSB_SIPAccount" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_SIPAccount" 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_CustomerId" runat="server"></asp:TextBox>
                                                        <asp:Label ID="Label1" 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_CustomerName" 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_CustomerEmail">
                                                <div class="form-group form-float">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_CustomerEmail" runat="server"></asp:TextBox>
                                                        <asp:Label ID="Label5" runat="server" EnableViewState="false" Text="<%$ Resources:Content,strCustomerEmail%>" 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_CompanyName" 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_HostingId" runat="server"></asp:TextBox>
                                                        <asp:Label ID="Label7" runat="server" EnableViewState="false" Text="<%$ Resources:Content,SPT002807%>" 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_PackageName" runat="server"></asp:TextBox>
                                                        <asp:Label ID="Label4" runat="server" EnableViewState="false" Text="<%$ Resources:Content,PackageName%>" 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_Address1" runat="server"></asp:TextBox>
                                                        <asp:Label ID="Label3" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001493%>" 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_City" runat="server"></asp:TextBox>
                                                        <asp:Label ID="Label9" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000880%>" 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_Zip" runat="server"></asp:TextBox>
                                                        <asp:Label ID="Label6" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00001522%>" 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_Phone" runat="server"></asp:TextBox>
                                                        <asp:Label ID="Label2" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00012%>" 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_AccountStatus" runat="server"></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_TrialStatus" runat="server">
                                                        <asp:ListItem Text="<%$ Resources:Content,SMI53106 %>" Value ="-1"></asp:ListItem>
                                                        <asp:ListItem Text="<%$ Resources:Content,GN0000267 %>" Value ="0"></asp:ListItem>
                                                        <asp:ListItem Text="<%$ Resources:Content,GN00001544 %>" Value ="1"></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_TeamRouting" runat="server"></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">
                                                    <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-xs-12">
                                                <div class="form-group form-float">
                                                    <asp:Button ID="Btn_SrchAccount" 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="clearfix"></div>
                <div>
                    <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="clearfix"></div>
                <div>
                    <asp:GridView CssClass="table table-bordered table-striped table-hover" AllowSorting="true" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                        ID="GV_SIPAccounts" AllowPaging="True" runat="server"
                        AutoGenerateColumns="false">
                        <Columns>
                            <asp:TemplateField HeaderText="<%$ Resources:Content,DGN1119987%>" HeaderStyle-CssClass="col-xs-4" SortExpression="ServiceHostingId">
                                <ItemTemplate>
                                    <table class="table small">
                                        <tbody>

                                            <tr>
                                                <td class="col-xs-6 row-label">
                                                    <asp:Label ID="Label15" runat="server"
                                                        EnableViewState="false" Text='<%$ Resources:Content,String385%>'></asp:Label>:
                                                </td>
                                                <td class="col-xs-6">
                                                    <asp:Label ID="LB_Status" CommandName="Status" runat="server"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="col-xs-6 row-label">
                                                    <asp:Label ID="Label16" runat="server"
                                                        EnableViewState="false" Text='<%$ Resources:Content,SPT002807%>'></asp:Label>:
                                                </td>
                                                <td class="col-xs-6">
                                                    <asp:HyperLink ID="LB_SubId" runat="server"></asp:HyperLink>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="col-xs-6 row-label">
                                                    <asp:Label ID="Label17" runat="server"
                                                        EnableViewState="false" Text='<%$ Resources:Content,StrisTrial%>'></asp:Label>:
                                                </td>
                                                <td class="col-xs-6">
                                                    <asp:Label ID="Lbl_IsTrial" runat="server"></asp:Label>
                                                </td>
                                            </tr>

                                            <tr>
                                                <td class="col-xs-6 row-label">
                                                    <asp:Label ID="lbl_LabelColon" runat="server" Text="<%$ Resources:Content,StrLabelColon%>" EnableViewState="false"></asp:Label>
                                                </td>
                                                <td class="col-xs-6">
                                                    <asp:Label ID="Lbl_Label" runat="server"></asp:Label>
                                                </td>
                                            </tr>

                                            <tr>
                                                <td class="col-xs-6 row-label">
                                                    <asp:Label ID="LB_SubscribersCount" runat="server"
                                                        EnableViewState="false" Text='<%$ Resources:Content,Subscribers%>'></asp:Label>:
                                                </td>
                                                <td class="col-xs-6">
                                                    <asp:HyperLink ID="LB_SIPSubscribersCount" runat="server"></asp:HyperLink>
                                                </td>
                                            </tr>

                                            <tr>
                                                <td class="col-xs-6 row-label">
                                                    <asp:Label ID="LB_DirectRoutingTeams" runat="server"
                                                        EnableViewState="false" Text='<%$ Resources:Content,strDirectRoutingTeams%>'></asp:Label>:
                                                </td>
                                                <td class="col-xs-6">
                                                    <asp:Label ID="LB_DirectRouting" runat="server"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="col-xs-6 row-label">
                                                    <asp:Label ID="LB_MonthlylimitH" runat="server"
                                                        EnableViewState="false" Text='<%$ Resources:Content,strMonthlyLimit%>'></asp:Label>:
                                                </td>
                                                <td class="col-xs-6">
                                                    <asp:Label ID="LB_Monthlylimit" runat="server"></asp:Label>
                                                </td>
                                            </tr>

                                            <tr>
                                                <td class="col-xs-6 row-label">
                                                    <asp:Label ID="LB_MonthlylimitusedH" runat="server"
                                                        EnableViewState="false" Text='<%$ Resources:Content,strMonthlyLimitUsed%>'></asp:Label>:
                                                </td>
                                                <td class="col-xs-6">
                                                    <asp:Label ID="LB_Monthlylimitused" runat="server"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="col-xs-6 row-label">
                                                    <asp:Label ID="LB_MonthlyLimitAlert" runat="server"
                                                        EnableViewState="false" Text='<%$ Resources:Content,strMonthlyLimitAlert%>'></asp:Label>:
                                                </td>
                                                <td class="col-xs-6">
                                                    <div id="Div_Alert" runat="server" />
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField SortExpression="DomainName" HeaderText="<%$ Resources:Content,CompanyName%>" HeaderStyle-CssClass="col-xs-2">
                                <ItemTemplate>
                                    <asp:Label ID="LB_CompanyName" runat="server"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField SortExpression="PackageName" HeaderText="<%$ Resources:Content,GN000141%>" HeaderStyle-CssClass="col-xs-2">
                                <ItemTemplate>
                                    <asp:Label ID="LB_PackageName" runat="server"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField SortExpression="CustomerName" HeaderText="<%$ Resources:Content,Customer%>" HeaderStyle-CssClass="col-xs-2">
                                <ItemTemplate>
                                    <asp:HyperLink ID="HL_Customer" runat="server"></asp:HyperLink>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField SortExpression="Owner" HeaderText="<%$ Resources:Content,Exh505%>" HeaderStyle-CssClass="col-xs-1">
                                <ItemTemplate>
                                    <asp:HyperLink ID="HL_Owner" runat="server"></asp:HyperLink>
                                </ItemTemplate>
                            </asp:TemplateField>

                            <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000360%>" HeaderStyle-CssClass="col-xs-1">
                                <ItemTemplate>
                                    <ul class="option-menu">
                                        <li class="dropdown">
                                            <a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
                                                <i class="material-icons">menu</i>
                                            </a>
                                            <ul class="dropdown-menu pull-right" id="UL_OptionMenu" runat="server">
                                                <li>
                                                    <asp:HyperLink ID="LB_Manage" runat="server" Text="<%$ Resources:Content,L0086%>"></asp:HyperLink></li>
                                                <li>
                                                    <asp:LinkButton ID="Lbtn_LoginToCP" CssClass="btnAction" runat="server" Text="<%$Resources:Content,GN0001248 %>"
                                                        CommandArgument='<%# Eval("CustomerId")%>' CommandName="logintocp"></asp:LinkButton></li>
                                                <%--<li>
                                                    <asp:HyperLink ID="LB_CallsOverview" runat="server" Text="<%$Resources:Content,CallsOverview %>" CommandName="CallsOverview"></asp:LinkButton></li>--%>
                                                <li id="li_phonenumbers" runat="server">
                                                    <asp:HyperLink ID="Lb_PhoneNumbers" CssClass="btnAction" Text="<%$ Resources:Content,DEV1089%>" runat="server" /></li>
                                                <li id="li_numberporting" runat="server">
                                                    <asp:HyperLink ID="LB_NumberPortings" CssClass="btnAction" Text="<%$ Resources:Content,NumbersPorting%>" CommandName="NumberPortings" runat="server" /></li>
                                                <li id="li_CallRecords" runat="server">
                                                    <asp:HyperLink ID="LB_CallRecords" Text="<%$ Resources:Content,strCallRecords%>" CommandName="CallRecords" runat="server" /></li>
                                                <li>
                                                    <asp:HyperLink ID="LB_Invoices" CssClass="btnAction" Text="<%$ Resources:Content,GN00001490%>" CommandName="Invoices" runat="server" />
                                                </li>
                                            </ul>
                                        </li>
                                    </ul>

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

        <div class="card" id="Pnl_Import" runat="server" visible="false">
            <div class="header">
                <h3><%= Resources.Content.CreateBulkSubscriptions%></h3>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Label ID="Label11" runat="server" EnableViewState="false" Text="<%$ Resources:Content,L00108%>" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:DropDownList ID="DDL_OwnerImport" runat="server" />
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Ltl_BrowseFile" runat="server" Text="<%$ Resources:Content,selectExcelFileToImport %>"></asp:Literal>:</label>
                    </div>
                    <div class="col-sm-5 col-xs-12">
                        <div class="form-group">
                            <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_BrowseFile" 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>
                    <div class="col-sm-4 col-xs-12">
                        <asp:LinkButton ID="LB_DownloadSample" runat="server" Text="<%$ Resources:Content,DownloadSampleFile %>" class="btn btn-primary waves-effect"></asp:LinkButton>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Label ID="Label12" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GenerateRandomTransId%>" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:CheckBox ID="CB_TransactionIdRandomly" runat="server" Text="&nbsp;" Checked="true" />
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Label ID="Label13" runat="server" EnableViewState="false" Text="<%$ Resources:Content,SendServiceSignupEmail%>" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:CheckBox ID="CB_SendServiceSignupEmail" runat="server" Text="&nbsp;" />
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-3 col-xs-12 row-label">
                        <label>
                            <asp:Label ID="Label14" runat="server" EnableViewState="false" Text="<%$ Resources:Content,SendInvoiceEmail%>" />:</label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:CheckBox ID="ChBx_SendInvoice" runat="server" Text="&nbsp;" />
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12">
                        <asp:Button ID="Btn_ImportFromFile" runat="server" Text="<%$ Resources:Content,StrImportSubscriptions%>" class="btn btn-primary waves-effect btnAction" />
                        <asp:Button ID="Btn_CancelImport" runat="server" Text="<%$ Resources:Content,GN0000572%>" class="btn btn-primary waves-effect" />
                    </div>
                </div>
            </div>
        </div>
    </div>

</asp:Content>
