<%@LANGUAGE="VBSCRIPT"%> <%option explicit%> <% '******code for catalog results start************** dim strLocation,strRange,strOwnership,strType,strMessage,strQuery,rsSearch,intInitial,strSQL,strImage strLocation=Request.QueryString("l") strRange=Request.QueryString("r") strOwnership=Request.QueryString("o") strType=Request.QueryString("t") strQuery=Request.Form("rdoQuery")' if Form submitted then get value form objects If strQuery="" then strQuery=Request.QueryString("qt")' if Pagination link is used then get value from QueryString End If If strQuery="" then strQuery="OR"'To set Default query type as ORed query End If strMessage="" set rsSearch = Server.CreateObject("adodb.recordset") rsSearch.cursortype=3 rsSearch.cursorlocation=3 intInitial=0 strMessage="" strSQL="select * from tblProperties " if strLocation <> "" then if intInitial=1 then strMessage= strMessage&" "&strQuery& " Location: "&strLocation strSQL=strSQL & " "&strQuery&" prop_location = '" & replace(trim(strLocation),"'","`")& "'" else intInitial=1 strMessage= strMessage& "Location: "&strLocation strSQL=strSQL & "where prop_location = '" & replace(trim(strLocation),"'","`")& "'" end if end if if strOwnership <> "" then if intInitial=1 then strMessage= strMessage &" "&strQuery& " Ownership: "&strOwnership strSQL=strSQL & " "&strQuery&" prop_ownership='" & trim(strOwnership)& "'" else intInitial=1 strMessage= strMessage&"Ownership: "&strOwnership strSQL=strSQL & "where prop_ownership='" & trim(strOwnership)& "'" end if end if if strType <> "" then if intInitial=1 then strMessage= strMessage&" "&strQuery& " Type: "&strType strSQL=strSQL & " "&strQuery&" prop_type='" & trim(strType)& "'" else intInitial=1 strMessage= strMessage&"Type: "&strType strSQL=strSQL & "where prop_type='" & trim(strType)& "'" end if end if if strRange <>"" then dim loc,strurange,strlrange loc = instrRev(strRange,"-") strurange = mid(strRange, loc+1, len(strRange) - loc) strlrange=mid(strRange,1,loc-1) if intInitial=1 then strMessage= strMessage&" "&strQuery& " Price Range: "&strRange strSQL=strSQL&" "&strQuery&" prop_price between "&clng(strlrange)&" and "&clng(strurange) else intInitial=1 strMessage= strMessage& "Price Range: "&strRange strSQL=strSQL&"where prop_price between "&clng(strlrange)&" and "&clng(strurange) end if end if 'if intInitial=1 then ' strSQL=strSQL & " and prop_status='Active'" ' else ' intInitial=1 ' strSQL=strSQL & "where prop_status='Active'" 'end if rsSearch.open strSQL,objConn,3,3 '*******code for catalog results end*************** '*****************Code for Paging******************* if not rsSearch.eof then dim intcp,intRowCount dim currpage currpage=request.QueryString("currpage") intcp=cint(currpage) if currpage = "" then intcp=1 end if 'if Session("numres")<>"" then 'rsSearch.pagesize=cint(Session("numres")) 'else rsSearch.pagesize=2 'end if rsSearch.absolutepage=intcp intRowCount=0 end if '***************End Code for Paging***************** %> FEROZE'S Real Estate Advisory :: Property Catalog
   
  HOME SWEET HOME   CORPORATE OFFICES SPACE   LOVE @ FIRST SITE  
 
Search Feature Property  
Welcome to our Property catalog. Simply select the one or all criteria below to view available properties. Or simply scroll further down and simply browse through the entire catalog. Click on a thumbnail to view details.
 
Location :   ALL
LOCATION   OWNERSHIP REQUIRED
   
  TYPE   PRICE RANGE (per SFt)
   
  <%=strMessage%>  
Query:
OR
>
AND
>
Go
CATALOG
<% if not rsSearch.eof then%> <%do intRowCount=intRowCount+1%> <%'For the featured image If rsSearch("prop_image")<>"" Then strImage=split(rsSearch("prop_image"),",") End If %>
" class="normaltext"> <%If session("picture") <> "no" and rsSearch("prop_image")<>"" Then %> Click here to View Details <% else%> Details <%End If%>
Price
:
<%=rsSearch("prop_price")%>
Location
:
  <%=rsSearch("prop_location")%>
Ownership
:
  <%=rsSearch("prop_ownership")%>
 
 
<% rsSearch.movenext intRowCount=intRowCount+1 if not rsSearch.eof and intRowCount<=rsSearch.pagesize then %> <%'For the featured image If rsSearch("prop_image")<>"" Then strImage=split(rsSearch("prop_image"),",") End If %>
Price
:
<%=rsSearch("prop_price")%>
Location
:
  <%=rsSearch("prop_location")%>
Ownership
:
  <%=rsSearch("prop_ownership")%>
 
 
" class="normaltext"> <%If session("picture") <> "no" and rsSearch("prop_image")<>"" Then %> Click here to View Details <% else%> Details <%End If%>
<%else exit do end if%> <%rsSearch.movenext loop while not rsSearch.eof and intRowCount <%else%> Sorry, No Results found for specified criteria <%end if%>
 
 
<% Dim i for i=1 to rsSearch.pagecount if i<>intcp then %> <%=i%> | <%else Response.Write(i)%> | <%end if%> <%next%>