<%@ page language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="Workfolders_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">
            <div class="body">
                <asp:Panel ID="Pnl_TabContent0" runat="server">
                    <%-- #WF Accounts --%>
                    <asp:Panel ID="Pnl_Filter" runat="server" DefaultButton="Btn_SrchAccount">

                        <div class="row">
                            <div class="panel-group search-panel" id="AS_WFAccount" role="tablist" aria-multiselectable="true">
                                <div class="col-xs-12" role="tab" id="SH_WFAccount">
                                    <div class="card">
                                        <div class="header" role="button" data-toggle="collapse" data-parent="#AS_WFAccount" href="#<%= CSB_WFAccount.ClientID%>" aria-expanded="true" aria-controls="SH_WFAccount">
                                            <h3>
                                                <%= Resources.Content.GN0000395%>
                                            </h3>
                                        </div>
                                        <div id="CSB_WFAccount" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_WFAccount" 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">
                                                    <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,HostingId%>" 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_DomainName" runat="server"></asp:TextBox>
                                                            <asp:Label ID="Label5" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN000125%>" 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-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>

                    <asp:GridView CssClass="table table-bordered table-striped table-hover" AllowSorting="true" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                        ID="GV_WFAccounts" AllowPaging="True" runat="server"
                        AutoGenerateColumns="false">
                        <Columns>
                            <asp:TemplateField HeaderStyle-CssClass="col-xs-1" HeaderText="<%$ Resources:Content,String385%>">
                                <ItemTemplate>
                                    <asp:Label ID="LB_Status" CommandName="Status" runat="server"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField SortExpression="ServiceHostingId" HeaderText="<%$ Resources:Content,SPT002807%>" HeaderStyle-CssClass="col-xs-1">
                                <ItemTemplate>
                                    <asp:HyperLink ID="LB_SubId" runat="server"></asp:HyperLink>
                                </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="DomainName" HeaderText="<%$ Resources:Content,GN000125%>" HeaderStyle-CssClass="col-xs-2">
                                <ItemTemplate>
                                    <asp:HyperLink ID="LB_DomainName" runat="server"></asp:HyperLink>
                                </ItemTemplate>
                            </asp:TemplateField>
                             <asp:TemplateField HeaderText="<%$ Resources:Content,Workfolders%>" HeaderStyle-CssClass="col-xs-1">
                                <ItemTemplate>
                                    <asp:HyperLink ID="LB_WorkfolderCount" runat="server"></asp:HyperLink>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField SortExpression="Owner" HeaderText="<%$ Resources:Content,Exh505%>" HeaderStyle-CssClass="col-xs-2">
                                <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>
                                    <asp:HyperLink ID="LB_Manage" CssClass="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,L0086%>"></asp:HyperLink>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <PagerTemplate>
                            <UC:Pager ID="Pager1" runat="server" />
                        </PagerTemplate>
                    </asp:GridView>
                </asp:Panel>
            </div>
        </div>
    </div>

</asp:Content>
