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

<%@ 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" id="Pnl_Main" runat="server">
            <div class="header">
                <h3><%= Resources.Content.strLeads%>  </h3>
            </div>
            <div class="body">
                <div class="row Div_OpsRow" id="DivOperations" runat="server">
                    <div class="col-xs-12">
                        <div class="card">
                            <div class="header">
                                <h3><%= Resources.Content.GN00001320%>  </h3>
                            </div>
                            <div class="body">
                                <asp:Button CssClass="btn btn-primary waves-effect btnAction" ID="Btn_AddLead" runat="server" Text="<%$ Resources:Content,Newlead%>" SkinID="defaultButton" />
                                <asp:Button CssClass="btn btn-primary waves-effect btnAction" ID="Btn_RemoveSelected" runat="server" Custom1="Custom" Style="display: none"
                                    Text="<%$ Resources:Content,L00149%>"
                                    SkinID="defaultButton" />
                                <asp:Button ID="Btn_AddBulkLeads" runat="server" Text="<%$ Resources:Content,strAddBulkLeads%>"
                                    class="btn btn-primary waves-effect btnAction" />

                                <div class="row" id="DivUpdateOwner" runat="server"  custom1="Custom" style="display: none">
                                    <div class="col-sm-2 col-xs-12 row-label">
                                        <asp:Label ID="Ltl" runat="server" Text="Assign to:"></asp:Label>
                                    </div>
                                    <div class="col-sm-5 col-xs-12">
                                        <asp:DropDownList ID="DDL_Owner" runat="server"></asp:DropDownList>
                                    </div>
                                    <div class="col-sm-5 col-xs-12">
                                        <asp:Button CssClass="btn btn-primary waves-effect btnAction" ID="Btn_AssignLead" runat="server" Text="<%$ Resources:Content,GN0000654%>" SkinID="defaultButton" />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <ajax:UpdatePanel ID="UP_Summary" runat="server" UpdateMode="Conditional" RenderMode="Inline">
                    <ContentTemplate>


                        <asp:Panel ID="Pnl_Filter" runat="server" DefaultButton="Btn_Search">
                            <div class="row">
                                <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 in" 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_LeadView" runat="server" onchange="setLeadViewCookie(this)" AutoPostBack="true">
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                                        <label class="row-label display-date-label">
                                                            <asp:Literal ID="Literal14" runat="server" Text="<%$ Resources:Content,GN0000687%>" EnableViewState="false" />:
                                                        </label>
                                                        <div class="form-group display-date-input">
                                                            <div class="form-line">
                                                                <asp:TextBox CssClass="txBxDate" ID="TxBx_DRangeAfter" Enabled="false" runat="server"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <i runat="server" id="A_DRangeAfter" class="material-icons icon-calendar col-calendar"></i>
                                                        <EM:CalendarExtender ID="CE_DRangeAfter" runat="server" TargetControlID="TxBx_DRangeAfter"
                                                            Format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>"
                                                            PopupButtonID="A_DRangeAfter" CssClass="date__calendar">
                                                        </EM:CalendarExtender>
                                                        <%--<asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content,GN0000687%>" EnableViewState="false" />--%>
                                                    </div>
                                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                                        <label class="row-label display-date-label">
                                                            <asp:Literal ID="Literal18" runat="server" Text="<%$ Resources:Content,GN0000688%>" EnableViewState="false" />:
                                                        </label>
                                                        <div class="form-group display-date-input">
                                                            <div class="form-line">
                                                                <asp:TextBox CssClass="txBxDate" ID="TxBx_DRangeBefore" Enabled="false" runat="server"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <i runat="server" id="A_DRangeBefore" class="material-icons icon-calendar col-calendar"></i>
                                                        <EM:CalendarExtender ID="CE_DRangeBefore" runat="server" TargetControlID="TxBx_DRangeBefore"
                                                            Format="<%# System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern %>"
                                                            PopupButtonID="A_DRangeBefore" CssClass="date__calendar">
                                                        </EM:CalendarExtender>
                                                        <%--<asp:Literal ID="Literal3" runat="server" Text="<%$ Resources:Content,GN0000688%>" EnableViewState="false" />--%>
                                                    </div>
                                                    <div class="clearfix"></div>
                                                    <div id="DivSearchString" runat="server" visible="false">
                                                        <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_SearchString" runat="server"></asp:TextBox>
                                                                    <asp:Label ID="Label1" runat="server" CssClass="form-label" EnableViewState="false" Text="<%$ Resources:Content,strStringToSearch%>"></asp:Label>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div id="DivSearchCustom" runat="server">
                                                        <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_SrchSubject" runat="server"></asp:TextBox>
                                                                    <asp:Label ID="Label2" runat="server" CssClass="form-label" EnableViewState="false" Text="<%$ Resources:Content,GN0000371%>"></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_SrchEmail" runat="server"></asp:TextBox>
                                                                    <asp:Label ID="Label3" runat="server" CssClass="form-label" EnableViewState="false" Text="<%$ Resources:Content,GN0000652%>"></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_Company" runat="server"></asp:TextBox>
                                                                    <asp:Label ID="Label4" runat="server" CssClass="form-label" EnableViewState="false" Text="<%$ Resources:Content,GN00001077%>"></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_Name" runat="server"></asp:TextBox>
                                                                    <asp:Label ID="Label5" runat="server" CssClass="form-label" EnableViewState="false" Text="<%$ Resources:Content,strName%>"></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="Label6" runat="server" CssClass="form-label" EnableViewState="false" Text="<%$ Resources:Content,GN0000880%>"></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_SrchCountry" 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_CurrentStatus" 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_Rating" 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_Status" 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_Region" 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_Source" 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_Employee" runat="server">
                                                                </asp:DropDownList>
                                                            </div>
                                                        </div>

                                                    </div>
                                                    <div class="col-md-3 col-sm-6 col-xs-12">
                                                        <div class="form-group form-float">
                                                            <asp:DropDownList ID="Ddl_EmailMarketing" runat="server">
                                                                <asp:ListItem Text="<%$ Resources:Content,SelectEmailMarketing%>" Value="-1"></asp:ListItem>
                                                                <asp:ListItem Text="<%$ Resources:Content,Subscribed%>" Value="1"></asp:ListItem>
                                                                <asp:ListItem Text="<%$ Resources:Content,Unsubscribed%>" Value="0"></asp:ListItem>
                                                            </asp:DropDownList>
                                                        </div>
                                                    </div>
                                                    <div class="col-xs-12">
                                                        <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Search" SkinID="searchButton" runat="server" Text="<%$ Resources:Content,GN0000391%>" />

                                                        <asp:Button CssClass="btn btn-primary waves-effect" ID="Btn_Clear" Visible="false" SkinID="searchButton" runat="server" Text="<%$ Resources:Content,String289 %>" />

                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </asp:Panel>

                        <asp:Panel ID="Pnl_Grid" runat="server">
                            <asp:GridView CssClass="table table-bordered table-hover table-responsive table-striped" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                                ID="GV_List" AllowPaging="true" AllowSorting="true" runat="server" AutoGenerateColumns="False">
                                <Columns>
                                    <asp:TemplateField HeaderStyle-CssClass="col-xs-1" HeaderText='<%$ Resources:Content,GN0000370 %>'>
                                        <HeaderTemplate>
                                            <asp:CheckBox CssClass="option-menu" Text=" " runat="server" ID="ChkBx_All" onclick="SetCheckedHeader(this.checked, this, 'All');" />
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:CheckBox Text=" " ID="ChkBx_All" CssClass="option-menu" runat="server" onclick="SetCheckedHeader(this.checked, this,'1');" />
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000371%>" SortExpression="LeadSubject"
                                        HeaderStyle-CssClass="col-xs-2">
                                        <ItemTemplate>
                                            <asp:HyperLink ID="LB_Subject" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.LeadSubject")%>'></asp:HyperLink>

                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="<%$ Resources:Content,Contact%>" SortExpression="LeadFirstName + ' ' + LeadLastName"
                                        HeaderStyle-CssClass="col-xs-4">
                                        <ItemTemplate>
                                            <table class="table small">
                                                <tbody>

                                                    <tr>
                                                        <asp:Label ID="Lbl_Name" runat="server"></asp:Label>
                                                    </tr>
                                                    <tr>
                                                        <asp:Label ID="LBL_Company" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.LeadCompanyName")%>'></asp:Label>
                                                    </tr>
                                                    <tr>
                                                        <asp:Label ID="LBL_Phone" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.LeadBusinessPhone")%>'></asp:Label>
                                                    </tr>
                                                    <tr>
                                                        <asp:Label ID="LBL_Email" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.LeadEmail")%>'></asp:Label>
                                                    </tr>
                                                    <tr>
                                                        <asp:Label ID="LBL_Paid" runat="server" Text=''></asp:Label>
                                                    </tr>
                                                </tbody>
                                            </table>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="<%$ Resources:Content,String385%>"
                                        HeaderStyle-CssClass="col-xs-1">
                                        <ItemTemplate>
                                            <asp:Label ID="LBL_LeadStatus" runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000673%>"
                                        HeaderStyle-CssClass="col-xs-2">
                                        <ItemTemplate>
                                            <asp:Label ID="LBL_LeadType" runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField SortExpression="LeadDateCreated"
                                        HeaderText="<%$ Resources:Content,GN0000668%>" HeaderStyle-CssClass="col-xs-2">
                                        <ItemTemplate>
                                            <asp:Label ID="LBL_DateCreated" runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="<%$ Resources:Content, GN0000360 %>" HeaderStyle-CssClass="col-xs-1">
                                        <ItemTemplate>

                                            <asp:LinkButton CssClass="btn btn-primary waves-effect btnAction" ID="LBtn_Remove" runat="server" Text="<%$Resources:Content,GN0000278 %>"
                                                CommandArgument='<%# Eval("LeadId")%>' CommandName="RemoveLead"></asp:LinkButton>

                                            <EM:ConfirmButtonExtender ID="CBE_Remove" runat="server" TargetControlID="LBtn_Remove"></EM:ConfirmButtonExtender>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <PagerTemplate>
                                    <EM:Pager ID="Pager1" runat="server" />
                                </PagerTemplate>
                            </asp:GridView>
                        </asp:Panel>

                    </ContentTemplate>
                </ajax:UpdatePanel>

            </div>
        </div>

        <div class="card" id="Pnl_Import" runat="server" visible="false">
            <div class="header">
                <h3><%= Resources.Content.strAddBulkLeads%></h3>
            </div>
            <div class="body">

                <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-xs-12">
                        <asp:Button ID="Btn_ImportFromFile" runat="server" Text="<%$ Resources:Content,StrImportLeads%>" class="btn btn-primary waves-effect" />
                        <asp:Button ID="Btn_CancelImport" runat="server" Text="<%$ Resources:Content,GN0000572%>" class="btn btn-primary waves-effect" />
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>




