<%@ taglib uri="http://www.entplace.com/taglibs/ep" prefix="ep" %> <%@ page import="java.util.Collections" %> <%@ page import="com.synaptic.web.framework.NodeRequest" %> <%@ page import="com.entplace.data.feeds.search.FindWhat" %> <%@ page import="com.entplace.data.feeds.search.Search123" %> <%@ page import="com.entplace.data.feeds.search.SearchLink" %> <%@ page import="com.entplace.data.feeds.search.LocalSearchLink" %> <% String query = request.getParameter("q"); String ip = request.getRemoteAddr(); // These attributes are set in the node... String [][] directory = (String [][])request.getAttribute("searchfeed.directory"); String uid = (String) request.getAttribute("searchfeed.search123.cookie"); boolean fromPath = false; if (query == null) { fromPath = true; query = nodeRequest.pathString(0); } query = query.replace('_', ' '); %> <%--
BizInfoPlace™
 
results">
KEYWORD SEARCH: SUBMIT
 
TOP "<%= query.toUpperCase() %>" SITES
 
--%> <%-- --%>
<% for (int i = 0; i < directory.length; i++) { %> <%= directory[i][0] %>
<% for (int j = 1; j < directory[i].length; j++) { String q = directory[i][j]; q = q.replace(' ', '_'); %> results/<%= q %>" class="linkc"><%= directory[i][j] %>
<% } } %>
<%-- <% java.util.List l; l = (new FindWhat()).query(query, ip, 0, 25); l.addAll((new Search123()).query(query, ip, uid, 0, 20)); Collections.sort(l); // sorts in ascending order, but... Collections.reverse(l); // we want it in descending java.util.Iterator i = l.iterator(); int j = 0; if (!i.hasNext()) { %> No results found. <% } while (i.hasNext()) { j++; SearchLink ll = (SearchLink) i.next(); %>
<%= ll.getTitle() %> <% if (ll instanceof LocalSearchLink) { LocalSearchLink lll = (LocalSearchLink)ll; %> Free Call <%= lll.getPhone() %> <% } %>

<%= ll.getDescription() %>

<% } %> --%>