%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
java.util.Vector
<%=description%>
<%=description%>
<%=description%>
<%=description%>
<%=description%>
");
}
out.print ("
");
*/
//mozilla/4.0 browsers and anyother IE
int map_height = 498;
int map_width = 484;
int cat_height = 138;
String td_height = "440px";
if (request.getHeader("user-agent").indexOf ("Mozilla/5.0") != -1)
{
map_height = 480;
map_width = 470;
cat_height = 126;
td_height = "458px";
}
String reference = new String ();
String description = new String ();
String str_price = new String ();
String pic_name = new String ();
xstforbiz.Components.Listing listing = null;
%>
<%
dbconn.retrive_listing_by_4digit_reference (references.elementAt(indexes.elementAt(5)));
listing = dbconn.getListing ();
reference = listing.getReference();
description = listing.getSummery();
if (description.length() > 500)
description = description.substring (0, 500);
description += ".......";
str_price = listing.getAsking_price();
str_price = str_price.substring(0, str_price.indexOf("."));
while (str_price.startsWith("£"))
str_price = str_price.replaceFirst("£", "");
arr_price = str_price.toCharArray();
str_price = new String ();
x = 0;
for (int j = (arr_price.length - 1); j >= 0 ;j--)
{
if (x%3 == 0 && x != 0)
{
str_price = "," + str_price;
}
str_price = arr_price[j] + str_price;
x++;
}
str_price = "£" + str_price;
pic_name = new String ();
folder = new java.io.File ("/home/virtual/1stforbiz.com/home/xstforbiz/mainwebsite_html/pictures/" + references.elementAt(indexes.elementAt(5)));
if (folder.exists())
{
java.io.File[] files = folder.listFiles();
if (files.length > 0)
{
pic_name= new String (files[0].getName());
}
else
pic_name = null;
}
else
{
pic_name = null;
}
if (pic_name != null)
pic_name = "http://www.1stforbiz.com/pictures/" + references.elementAt(indexes.elementAt(5)) +"/"+pic_name;
%>
<%if (pic_name != null)
{%>
<%}%>
Ref: <%=listing.getReference()%>
<%
dbconn.retrive_listing_by_4digit_reference (references.elementAt(indexes.elementAt(0)));
listing = dbconn.getListing ();
reference = listing.getReference();
description = listing.getSummery();
if (description.length() > 500)
description = description.substring (0, 500);
description += ".......";
str_price = listing.getAsking_price();
str_price = str_price.substring(0, str_price.indexOf("."));
while (str_price.startsWith("£"))
str_price = str_price.replaceFirst("£", "");
arr_price = str_price.toCharArray();
str_price = new String ();
x = 0;
for (int j = (arr_price.length - 1); j >= 0 ;j--)
{
if (x%3 == 0 && x != 0)
{
str_price = "," + str_price;
}
str_price = arr_price[j] + str_price;
x++;
}
str_price = "£" + str_price;
pic_name = new String ();
folder = new java.io.File ("/home/virtual/1stforbiz.com/home/xstforbiz/mainwebsite_html/pictures/" + references.elementAt(indexes.elementAt(0)));
if (folder.exists())
{
java.io.File[] files = folder.listFiles();
if (files.length > 0)
{
pic_name= new String (files[0].getName());
}
else
pic_name = null;
}
else
{
pic_name = null;
}
if (pic_name != null)
pic_name = "http://www.1stforbiz.com/pictures/" + references.elementAt(indexes.elementAt(0)) +"/"+pic_name;
%>
<%if (pic_name != null)
{%>
<%}%>
Ref: <%=listing.getReference()%>
<%
dbconn.retrive_listing_by_4digit_reference (references.elementAt(indexes.elementAt(1)));
listing = dbconn.getListing ();
reference = listing.getReference();
description = listing.getSummery();
if (description.length() > 500)
description = description.substring (0, 500);
description += ".......";
str_price = listing.getAsking_price();
str_price = str_price.substring(0, str_price.indexOf("."));
while (str_price.startsWith("£"))
str_price = str_price.replaceFirst("£", "");
arr_price = str_price.toCharArray();
str_price = new String ();
x = 0;
for (int j = (arr_price.length - 1); j >= 0 ;j--)
{
if (x%3 == 0 && x != 0)
{
str_price = "," + str_price;
}
str_price = arr_price[j] + str_price;
x++;
}
str_price = "£" + str_price;
pic_name = new String ();
folder = new java.io.File ("/home/virtual/1stforbiz.com/home/xstforbiz/mainwebsite_html/pictures/" + references.elementAt(indexes.elementAt(1)));
if (folder.exists())
{
java.io.File[] files = folder.listFiles();
if (files.length > 0)
{
pic_name= new String (files[0].getName());
}
else
pic_name = null;
}
else
{
pic_name = null;
}
if (pic_name != null)
pic_name = "http://www.1stforbiz.com/pictures/" + references.elementAt(indexes.elementAt(1)) +"/"+pic_name;
%>
<%if (pic_name != null)
{
%>
<%}%>
Ref: <%=listing.getReference()%>
<%
dbconn.retrive_listing_by_4digit_reference (references.elementAt(indexes.elementAt(2)));
listing = dbconn.getListing ();
reference = listing.getReference();
description = listing.getSummery();
if (description.length() > 500)
description = description.substring (0, 500);
description += ".......";
str_price = listing.getAsking_price();
str_price = str_price.substring(0, str_price.indexOf("."));
while (str_price.startsWith("£"))
str_price = str_price.replaceFirst("£", "");
arr_price = str_price.toCharArray();
str_price = new String ();
x = 0;
for (int j = (arr_price.length - 1); j >= 0 ;j--)
{
if (x%3 == 0 && x != 0)
{
str_price = "," + str_price;
}
str_price = arr_price[j] + str_price;
x++;
}
str_price = "£" + str_price;
pic_name = new String ();
folder = new java.io.File ("/home/virtual/1stforbiz.com/home/xstforbiz/mainwebsite_html/pictures/" + references.elementAt(indexes.elementAt(2)));
if (folder.exists())
{
java.io.File[] files = folder.listFiles();
if (files.length > 0)
{
pic_name= new String (files[0].getName());
}
else
pic_name = null;
}
else
{
pic_name = null;
}
if (pic_name != null)
pic_name = "http://www.1stforbiz.com/pictures/" + references.elementAt(indexes.elementAt(2)) +"/"+pic_name;
%>
<%if (pic_name != null)
{
%>
<%}%>
Ref: <%=listing.getReference()%>
![]()
Find a Listing:
![]()
Search Listings by Category:
![]()
![]()
<%
for (int i = 3; i < 5; i++)
{
dbconn.retrive_listing_by_4digit_reference (references.elementAt(indexes.elementAt(i)));
listing = dbconn.getListing ();
reference = listing.getReference();
description = listing.getSummery();
if (description.length() > 350)
description = description.substring (0, 350);
description += ".......";
str_price = listing.getAsking_price();
str_price = str_price.substring(0, str_price.indexOf("."));
while (str_price.startsWith("£"))
str_price = str_price.replaceFirst("£", "");
arr_price = str_price.toCharArray();
str_price = new String ();
x = 0;
for (int j = (arr_price.length - 1); j >= 0 ;j--)
{
if (x%3 == 0 && x != 0)
{
str_price = "," + str_price;
}
str_price = arr_price[j] + str_price;
x++;
}
str_price = "£" + str_price;
pic_name = null;
folder = new java.io.File ("/home/virtual/1stforbiz.com/home/xstforbiz/mainwebsite_html/pictures/" + references.elementAt(indexes.elementAt(i)));
if (folder.exists())
{
java.io.File[] files = folder.listFiles();
if (files.length > 0)
{
pic_name= new String (files[0].getName());
}
else
{
pic_name = null;
}
}
else
{
pic_name = null;
}
if (pic_name != null)
pic_name = "http://www.1stforbiz.com/pictures/" + references.elementAt(indexes.elementAt(i)) +"/"+pic_name;
%>
<%
}
%>
<%if (pic_name != null)
{
%>
<%}%>
Ref: <%=listing.getReference()%>