%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%>
<%
var Search__MMColParam = "1";
if (String(Session("Keywords")) != "undefined" &&
String(Session("Keywords")) != "") {
Search__MMColParam = String(Session("Keywords"));
}
%>
<%
// build a loop to search against all terms
var keywords = Search__MMColParam.split(' ');
var query = "("
for (var x=0; x
<%
var Search = Server.CreateObject("ADODB.Recordset");
Search.ActiveConnection = MM_MediaEdge_STRING;
Search.Source = "SELECT ID, Title, Link, Image, Image_Height, Image_Width, Vertical_Space, Horizontal_Space, Keywords, Description FROM Content WHERE " + query + " ORDER BY ID ASC";
Search.CursorType = 0;
Search.CursorLocation = 2;
Search.LockType = 1;
Search.Open();
var Search_numRows = 0;
%>
<% Response.CacheControl = "no-cache" %>
<% Response.AddHeader ("Pragma", "no-cache") %>
<% Response.Expires = -1 %>
<%
var Repeat1__numRows = -1;
var Repeat1__index = 0;
Search_numRows += Repeat1__numRows;
%>
Building Block Technology
<% if(Search.EOF){
Response.Write("We found 0 Results
" +
"- Check your spelling.
" +
"- Try different or fewer keywords.
" +
"- Remove quotation marks.
" +
"- Exclude words like AND, OR, and NOT
");
}
%>
<% while ((Repeat1__numRows-- != 0) && (!Search.EOF)) { %>
" border="0" cellspacing="0" cellpadding="0">
" alt="" width="<%=(Search.Fields.Item("Image_Width").Value)%>" height="<%=(Search.Fields.Item("Image_Height").Value)%>" hspace="<%=(Search.Fields.Item("Horizontal_Space").Value)%>" vspace="<%=(Search.Fields.Item("Vertical_Space").Value)%>" align="top"> |
" target="navigation"><%=(Search.Fields.Item("Title").Value)%> <%=(Search.Fields.Item("Description").Value)%> |
<%
Repeat1__index++;
Search.MoveNext();
}
%>
<%
Search.Close();
%>