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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" 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.DEV10041%>                                                                                                                                 
                </h3>
            </div>
            <div class="body">
                <ajax:UpdatePanel ID="UP_Search" runat="server">
                    <ContentTemplate>
                        <%--Search Option--%>
                        <asp:Panel ID="Pnl_Filter" runat="server" DefaultButton="Btn_SrchAccount">

                            <div class="row">
                                <div class="panel-group search-panel" id="AS_CRMAccounts" role="tablist" aria-multiselectable="true">
                                    <div class="col-xs-12" role="tab" id="SH_CRMAccounts">
                                        <div class="card">
                                            <div class="header" role="button" data-toggle="collapse" data-parent="#AS_CRMAccounts" href="#<%= CSB_CRMAccounts.ClientID%>" aria-expanded="true" aria-controls="SH_CRMAccounts">
                                                <h3>
                                                    <%= Resources.Content.GN0000395%>
                                                </h3>
                                            </div>
                                            <div id="CSB_CRMAccounts" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_CRMAccounts" aria-expanded="false">
                                                <div class="row">
                                                    <div class="col-md-3 col-sm-6 col-xs-12" id="td_DDL_Owner" runat="server">
                                                        <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">
                                                            <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_Id" runat="server" MaxLength="10"></asp:TextBox>
                                                                <asp:Label ID="Label1" runat="server" Text="<%$ Resources:Content,SPT002807%>" EnableViewState="false" 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="Label5" runat="server" Text="<%$ Resources:Content,GN0000715%>" EnableViewState="false" 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="Label6" runat="server" Text="<%$ Resources:Content,GN0000268%>" EnableViewState="false" 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_UniqueName" runat="server" MaxLength="50"></asp:TextBox>
                                                                <asp:Label ID="Label7" runat="server" Text="<%$ Resources:Content,String381%>" EnableViewState="false" 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_DispName" runat="server" MaxLength="200"></asp:TextBox>
                                                                <asp:Label ID="Label3" runat="server" Text="<%$ Resources:Content,L0035%>" EnableViewState="false" 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_DomainAlias" runat="server" MaxLength="200"></asp:TextBox>
                                                                <asp:Label ID="Label4" runat="server" Text="<%$ Resources:Content,GN000125%>" EnableViewState="false" 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_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="Label9" 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" SkinID="searchButton" runat="server"
                                                            Text="<%$ Resources:Content,GN0000391%>" CssClass="btn btn-primary" />
                                                        <asp:Button ID="Btn_Clear" Visible="false" SkinID="searchButton" runat="server"
                                                            Text="<%$ Resources:Content,String289 %>" CssClass="btn btn-primary" />
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>

                        </asp:Panel>

                    </ContentTemplate>
                </ajax:UpdatePanel>

                <ajax:UpdatePanel ID="UP_Listing" runat="server" UpdateMode="Conditional">
                    <ContentTemplate>
                        <div class="row">
                            <div class="col-xs-12" role="tab" id="Div1">
                                <asp:GridView CssClass="table table-hover table-bordered table-striped table-responsive" AllowSorting="true" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                                    ID="GV_AccountList" AllowPaging="True" runat="server" AutoGenerateColumns="false">
                                    <Columns>
                                        <asp:TemplateField SortExpression="CRMID" HeaderStyle-CssClass="col-xs-1 hidden-xs" HeaderText="<%$ Resources:Content,SPT002807%>">
                                            <ItemTemplate>
                                                <asp:HyperLink ID="LB_ID" runat="server"></asp:HyperLink>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField SortExpression="CustomerId" HeaderText='<%$ Resources:Content,GN0000850%>' HeaderStyle-CssClass="col-xs-3">
                                            <ItemTemplate>
                                                <asp:HyperLink ID="LB_ClientID" runat="server"></asp:HyperLink>

                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField SortExpression="OrgDispName" HeaderStyle-CssClass="col-xs-4" HeaderText="<%$ Resources:Content,DGN1110357%>">
                                            <ItemTemplate>


                                                <table class="table small">
                                                    <tbody>
                                                        <tr>
                                                            <td class="col-xs-5 row-label">
                                                                <asp:Label ID="Label4" runat="server" Text="<%$ Resources:Content,strName%>" EnableViewState="false"></asp:Label>:
                                                            </td>
                                                            <td class="col-xs-8">
                                                                <asp:Label ID="LB_Title" runat="server"></asp:Label>
                                                            </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>
                                                            <td class="col-xs-5 row-label">
                                                                <asp:Label ID="Label8" runat="server" Text="<%$ Resources:Content,SMI1900%>" EnableViewState="false"></asp:Label>:
                                                            </td >
                                                            <td class="col-xs-8">
                                                                <asp:Label ID="Lbl_URL" runat="server"></asp:Label>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <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"></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.OrgDispName")%>'></asp:Label>
                                                            </td>
                                                        </tr>

                                                    </tbody>
                                                </table>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000636%>" HeaderStyle-CssClass="col-xs-1 hidden-xs">
                                            <ItemTemplate>
                                                <asp:HyperLink ID="Lbl_Users" runat="server"></asp:HyperLink>
                                            </ItemTemplate>
                                        </asp:TemplateField>

                                        <asp:TemplateField SortExpression="Owner" HeaderStyle-CssClass="col-xs-2" HeaderText="<%$ Resources:Content,Exh505%>">
                                            <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">
                                            <ItemTemplate>
                                                <asp:HyperLink ID="LB_Manage" SkinID="linkButtonmanage" runat="server" Text="<%$ Resources:Content,L0086%>" CssClass="btn btn-primary btn-sm"></asp:HyperLink>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <%--PagerTemplate Start--%>
                                    <PagerTemplate>
                                        <EM:Pager ID="Pager1" runat="server" />
                                    </PagerTemplate>
                                    <%--PagerTemplate End--%>
                                </asp:GridView>
                            </div>
                        </div>
                    </ContentTemplate>
                </ajax:UpdatePanel>
            </div>
        </div>
    </div>
</asp:Content>
