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

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

<asp:Content ID="Content4" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h3>
                    <%= Resources.Content.M0111%>
                </h3>
            </div>
            <div class="body">
                <asp:Panel ID="Panel1" runat="server" DefaultButton="Btn_SrchAccount">
                    <div class="row">
                        <div class="panel-group search-panel" id="AS_SharePointAccounts" role="tablist" aria-multiselectable="true">
                            <div class="col-xs-12" role="tab" id="SH_SharePointAccounts">
                                <div class="card">
                                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_ClientList" href="#<%= CSB_SharePointAccounts.ClientID %>" aria-expanded="true" aria-controls="SH_ClientList">
                                        <h3>
                                            <%= Resources.Content.GN0000395%>
                                        </h3>
                                    </div>
                                    <div id="CSB_SharePointAccounts" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_ClientList" 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-3 col-sm-6 col-xs-12">
                                                <div class="form-group form-float">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_Id" 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-6 col-xs-12" id="TD_ClientId" runat="server">
                                                <div class="form-group form-float">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_ClientId" runat="server"></asp:TextBox>
                                                        <asp:Label ID="Label7" 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" id="TD_ClientName" runat="server">
                                                <div class="form-group form-float">
                                                    <div class="form-line">
                                                        <asp:TextBox ID="TxBx_ClientName" runat="server"></asp:TextBox>
                                                        <asp:Label ID="Label8" 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_Portal" runat="server" MaxLength="50"></asp:TextBox>
                                                        <asp:Label ID="Label2" runat="server" Text='<%$ Resources:Content,String394%>' 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_Title" runat="server" MaxLength="200"></asp:TextBox>
                                                        <asp:Label ID="Label3" runat="server" Text="<%$ Resources:Content,L0076%>" 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" MaxLength="200"></asp:TextBox>
                                                        <asp:Label ID="Label5" runat="server" 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-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="Label4" 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" class="btn btn-primary waves-effect" runat="server" 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>
                </asp:Panel>

                <div class="row">
                    <div class="col-xs-12">
                        <asp:GridView CssClass="table table-bordered table-striped table-hover" AllowSorting="true" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                            ID="GV_AccountList" AllowPaging="True" runat="server" AutoGenerateColumns="false">

                            <Columns>
                                <asp:TemplateField HeaderText="<%$ Resources:Content,String385%>" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                    <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="SPID" HeaderText="<%$ Resources:Content,DGN1119987%>"
                                    HeaderStyle-CssClass="col-xs-3 hidden-xs" ItemStyle-CssClass="col-xs-3 hidden-xs" HeaderStyle-HorizontalAlign="center">
                                    <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-1 hidden-xs" ItemStyle-CssClass="col-xs-1 hidden-xs" />--%>
                                <%--<asp:TemplateField SortExpression="PortalName"  HeaderText="Portal Name"
                        HeaderStyle-Width="15%">
                        <ItemTemplate>
                            <asp:LinkButton ID="LB_PortalName" runat="server"></asp:LinkButton></ItemTemplate>
                    </asp:TemplateField>--%>

                                <asp:TemplateField SortExpression="CustomerID" HeaderText="<%$ Resources:Content,GN0000850%>"
                                    HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2" HeaderStyle-HorizontalAlign="center">
                                    <ItemTemplate>
                                        <asp:HyperLink ID="LB_ClientID" runat="server"></asp:HyperLink>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField SortExpression="Title" HeaderText="<%$ Resources:Content,L0076%>"
                                    HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                    <ItemTemplate>
                                        <asp:Label ID="LB_Title" runat="server" data-toggle="tooltip" data-placement="top" title="" data-original-title="Tooltip on top"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000981%>"
                                    HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                    <ItemTemplate>
                                        <asp:Label ID="Lbl_URL" runat="server"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="<%$ Resources:Content,USM0025%>" HeaderStyle-CssClass="col-xs-1 hidden-xs" ItemStyle-CssClass="col-xs-1 hidden-xs">
                                    <ItemTemplate>
                                        <asp:HyperLink ID="Lbl_Users" runat="server" data-toggle="tooltip" data-placement="top" title="" data-original-title="" data-html="true"></asp:HyperLink>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <%--<asp:TemplateField SortExpression="Name" HeaderText="<%$ Resources:Content,GN0000268%>"
                                    HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                    <ItemTemplate>
                                        <asp:HyperLink ID="LB_Client" runat="server"></asp:HyperLink>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField HeaderText="<%$ Resources:Content, GN00001077 %>" DataField="CustCompanyName"
                                    SortExpression="CustCompanyName" HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1" />--%>
                                <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%>"
                                            data-toggle="tooltip" data-placement="top" title="" data-original-title="" data-html="true"></asp:HyperLink>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <%--PagerTemplate Start--%>
                            <PagerTemplate>
                                <EM:Pager ID="Pager1" runat="server" />

                            </PagerTemplate>

                            <%--PagerTemplate End--%>
                        </asp:GridView>

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

