|
<%@ include file="../WEB-INF/jsp/city_side_menu2.jspf" %>
|
|
<%@ include file="../WEB-INF/jsp/top_menu.jspf" %>
|
<%=city_name%>, <%=region_name%>
Filter the results on the map and on the property list by changing criteria.
All properties meeting criteria are shown automatically.
|
|
Properties in <%=city_name%>
| Property ID |
Address |
City |
Bedrooms |
Bathrooms |
Square feet |
<%@ include file="/WEB-INF/jsp/radius_function.jsp" %>
<%
Connection con = null;
try {
// lat and lng definition are on file city_scriptlet.jspf
double[] cords = getRadiusCords(60, lat, lng);
Class.forName("com.mysql.jdbc.Driver");
con = DriverManager.getConnection("jdbc:mysql://localhost/sstrehli1?user=sstrehli1&password=frboadmin2007");
String query = "SELECT property_id, address, country_id, country_name, bedrooms, bathrooms, sqft, property.latitude, property.longitude, cities.city, property.city_id FROM property, cities WHERE property.city_id = cities.city_id AND property.enabled = 1 AND property.latitude >= " + cords[0] + " AND property.longitude >= " + cords[1] + " AND property.latitude <= " +cords[2] + " AND property.longitude <= " +cords[3];
PreparedStatement Ps = con.prepareStatement(query);
//Ps.setInt(1,city_id);
ResultSet Rs = Ps.executeQuery();
while(Rs.next()) {
long property_id = Rs.getLong("property_id");
int country_id = Rs.getInt("country_id");
double latitude = Rs.getDouble("latitude");
double longitude = Rs.getDouble("longitude");
String address = Rs.getString("address");
String country_name = Rs.getString("country_name");
String city_name2 = Rs.getString("city");
int city_id2 = Rs.getInt("city_id");
int bedrooms = Rs.getInt("bedrooms");
int bathrooms = Rs.getInt("bathrooms");
int sqft = Rs.getInt("sqft");
String query2 = "SELECT date_in, date_out FROM rates WHERE property_id = ?";
PreparedStatement Ps2 = con.prepareStatement(query2);
Ps2.setLong(1, property_id);
ResultSet Rs2 = Ps2.executeQuery();
%>
| #<%=property_id%> |
<%=address%> |
<%=city_name2%> |
<%=bedrooms%> |
<%=bathrooms%> |
<%=sqft%> |
<%
Rs2.close();
Ps2.close();
}
Rs.close();
Ps.close();
con.close();
con = null;
} catch(Exception e) {out.print(e.toString()); out.print(e.getMessage());
}
finally {
if(con!=null) {
con.close();
con = null;
}
}
%>
| |
|
|
|
|
|
<%@ include file="../WEB-INF/jsp/footer.jspf" %>
|
Bahamas Rental Links
Acklins Island Bahamas rental apartment and rent house Acklins Island
Rental apartment in Harbour Island Bahamas, Harbour Island Bahamas vacation rentals, and Harbour Island Bahamas apartments for rent
Harbour Island Bahamas vacation rental, rental apartment, Harbour Island Bahamas vacation homes, and apartment rentals in Harbour Island Bahamas
Windermere Island Bahamas rental properties and apartments for rent in Windermere Island Bahamas
Apartments for rent in Hopetown Bahamas, rental homes Hopetown, and house rentals in Hopetown Bahamas
Rental houses Green Turtle Cay Bahamas, rental apartment Green Turtle Cay Bahamas, Green Turtle Cay Bahamas apartment rentals, and rental houses
House rentals in Gregory Town and Gregory Town Bahamas real estate rentals
Hopetown Bahamas homes for rent by owner, rental houses in Hopetown, and bed and breakfast rentals
Rainbow Bay Bahamas bed and breakfast rentals, rental houses Rainbow Bay Bahamas, house rentals in Rainbow Bay Bahamas, and Rainbow Bay Bahamas for rent by owner homes
Stella Maris Bahamas short term rentals and Stella Maris Bahamas vacation rentals
Vacation rental Leisure Lee, holiday rentals Leisure Lee, and rental apartment
Double Bay house rentals, homes for rent by owner in Double Bay Bahamas, rental properties in Double Bay Bahamas, and real estate rentals
Rental home in Columbus Landings Bahamas and Columbus Landings Bahamas real estate rentals
Wemsyss Bahamas rental houses, real estate rentals Wemsyss, and rental properties
Vacation rentals in Spanish Wells Bahamas, bed and breakfast rentals, rental homes in Spanish Wells Bahamas, and home rentals in Spanish Wells
Rental properties George Town and home rentals in George Town
Homes for rent Ten Bay Beach, rental apartment in Ten Bay Beach, and rental apartment Ten Bay Beach
Rental homes, Wemsyss rent houses, Wemsyss Bahamas rent house, and real estate rentals in Wemsyss Bahamas
Nassau Bahamas for rent by owner homes and bed and breakfast rentals in Nassau
For rent by owner homes in Sumner Point, Sumner Point Bahamas vacation rental, and Sumner Point Bahamas vacation homes for rent by owner
Rent houses Spanish Wells Bahamas, real estate rentals in Spanish Wells Bahamas, vacation rental in Spanish Wells Bahamas, and short term rentals
Apartments for rent Wemsyss and vacation rental in Wemsyss Bahamas
Home rentals Stella Maris Bahamas, rental houses in Stella Maris Bahamas, and Stella Maris Bahamas house rentals
Bed and breakfast rentals in Lucaya, rental houses in Lucaya, Lucaya Bahamas vacation rental, and vacation homes
Great Harbour Cay Bahamas bed and breakfast rentals and Great Harbour Cay Bahamas home rentals
Home rentals in Pelican Point, Pelican Point Bahamas houses for rent, and rental homes Pelican Point Bahamas
Rental homes in Man-O-War Cay, apartment rentals Man-O-War Cay, Man-O-War Cay rent house, and apartment rentals Man-O-War Cay
Homes for rent by owner in Whale Point Bahamas and apartments for rent in Whale Point
Casuarina Point Bahamas vacation homes, Casuarina Point Bahamas condo rentals, and vacation rental Casuarina Point Bahamas
Holiday rentals Great Harbour Cay Bahamas, vacation rentals Great Harbour Cay Bahamas, holiday rentals, and Great Harbour Cay rental homes
Rent houses in Treasure Cay and Treasure Cay Bahamas rent houses
Vacation homes for rent by owner in Hopetown Bahamas, rental home Hopetown, and Hopetown house rentals
Condos for rent and Little Grand Cay Bahamas rental apartment
Vacation homes Hermitage, home rentals in Hermitage Bahamas, and Hermitage Bahamas condos for rent
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
|
|