<%@ control language="VB" autoeventwireup="false" inherits="RCC_Clients_CC_AllContacts, MachSol.MachPanel.Web" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Assembly="AjaxControls" Namespace="AjaxControls" TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>
<asp:Panel ID="Pnl_ContactListing" runat="server">
    <asp:Panel CssClass="row" ID="Pnl_Search" runat="server" DefaultButton="Btn_Search">
        <div class="panel-group search-panel" id="AS_ClientList" role="tablist" aria-multiselectable="true">
            <div class="col-xs-12" role="tab" id="SH_ClientList">
                <div class="card">
                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_ClientList" href="#<%= CSB_ClientList.ClientID %>" aria-expanded="true" aria-controls="SH_ClientList">
                        <h3>
                            <%= Resources.Content.GN0000395%>
                        </h3>
                    </div>
                    <div id="CSB_ClientList" 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_CustomerName" runat="server" MaxLength="200"></asp:TextBox>
                                        <asp:Label ID="Label2" 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_CustomerId" runat="server"></asp:TextBox>
                                        <asp:Label ID="Label1" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000678%>" 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_ContactName" runat="server" MaxLength="128"></asp:TextBox>
                                        <asp:Label ID="Label11" runat="server" EnableViewState="false" Text="<%$ Resources:Content,String1002%>" 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_Email" runat="server" MaxLength="128"></asp:TextBox>
                                        <asp:Label ID="Label7" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN0000652%>" 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="Label4" runat="server" EnableViewState="false" Text="<%$ Resources:Content,GN00012%>" class="form-label"></asp:Label>
                                    </div>
                                </div>
                            </div>
                            <div class="col-xs-12">
                                <div class="form-group">
                                    <asp:Button ID="Btn_Search" 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>
    </asp:Panel>
    <div class="row">
        <div class="col-xs-12">
            <asp:GridView ID="GV_Contacts" runat="server" AllowPaging="true" AllowSorting ="true"
                CssClass="table table-bordered table-striped table-hover" AutoGenerateColumns="false" EmptyDataText="<%$ Resources:Content, GN00001375 %>">

                <Columns>
                    <asp:TemplateField HeaderText='<%$ Resources:Content, Contact %>' 
                        HeaderStyle-CssClass="col-xs-4" ItemStyle-CssClass="col-xs-40"
                        SortExpression="ContactName">
                        <%--Contact Name--%>
                        <ItemTemplate>
                            <asp:label ID="Lbl_ContactName" runat="server"></asp:label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText='<%$ Resources:Content, customer %>' 
                        HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3"
                        SortExpression="CustomerName">
                        <%--Email Address--%>
                        <ItemTemplate>
                            <asp:HyperLink ID="HL_Customer" runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText='<%$ Resources:Content, Exh505 %>' 
                        HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3"
                        SortExpression="CustomerCompanyName">
                        <%--Email Address--%>
                        <ItemTemplate>
                            <asp:Label ID="Lbl_Owner" runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText='<%$ Resources:Content, String1003 %>' 
                        HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2"
                        SortExpression="PhoneNumber">
                        <%--Phone No--%>
                        <ItemTemplate>
                            <asp:Label ID="Lbl_ContactPhone" runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <%--PagerTemplate Start--%>
                <PagerTemplate>
                    <em:pager id="Pager1" runat="server" />
                </PagerTemplate>
                <%--PagerTemplate End--%>
            </asp:GridView>
        </div>
    </div>
</asp:Panel>
