|
<%@ 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
For rent by owner homes in Green Turtle Cay Bahamas and condo rentals Green Turtle Cay
Hopetown Bahamas rent houses, rent house in Hopetown, and Hopetown Bahamas rental homes
Leisure Lee Bahamas rental properties, real estate rentals Leisure Lee, bed and breakfast rentals, and Leisure Lee Bahamas rental homes
Pelican Point home rentals and rent house in Pelican Point
Marsh Harbour Bahamas rental properties, Marsh Harbour Bahamas homes for rent by owner, and Marsh Harbour Bahamas rental homes
Acklins Island Bahamas rental houses, homes for rent in Acklins Island, Acklins Island Bahamas homes for rent by owner, and Acklins Island rental apartment
Rainbow Bay Bahamas apartment rentals and Rainbow Bay Bahamas real estate rentals
Rental apartment in Great Harbour Cay, apartment rentals Great Harbour Cay, and rental home
Vacation rentals in Staniel Cay Bahamas, short term rentals in Staniel Cay, rental home in Staniel Cay Bahamas, and homes for rent by owner in Staniel Cay
Houses for rent Spanish Wells and Spanish Wells apartments for rent
Spanish Wells Bahamas vacation rental, real estate rentals Spanish Wells Bahamas, and Spanish Wells for rent by owner homes
Apartment rentals Man-O-War Cay Bahamas, homes for rent by owner in Man-O-War Cay Bahamas, homes for rent by owner Man-O-War Cay, and Man-O-War Cay Bahamas rental home
Rental properties Green Turtle Cay and Green Turtle Cay houses for rent
Houses for rent, rental apartment, and apartments for rent Hermitage
Apartment rentals in Whale Point Bahamas, apartment rentals in Whale Point Bahamas, Whale Point Bahamas vacation homes, and Whale Point Bahamas rental apartment
Holiday rentals in Hartswell and apartments for rent
Vacation homes in Gregory Town Bahamas, rental homes in Gregory Town, and rental houses in Gregory Town
Rent house Sumner Point, vacation homes for rent by owner in Sumner Point Bahamas, holiday rentals, and rental apartment Sumner Point
Condo rentals in Turnbull and Turnbull bed and breakfast rentals
Green Turtle Cay holiday rentals, Green Turtle Cay Bahamas rental home, and Green Turtle Cay Bahamas homes for rent by owner
Vacation homes Columbus Landings Bahamas, rental houses, vacation rental Columbus Landings Bahamas, and for rent by owner homes in Columbus Landings Bahamas
Whale Point Bahamas for rent by owner homes and apartment rentals in Whale Point
Rock Sound house rentals, Rock Sound for rent by owner homes, and house rentals in Rock Sound
Little Grand Cay Bahamas vacation rentals, Little Grand Cay Bahamas for rent by owner homes, house rentals in Little Grand Cay Bahamas, and vacation rental
Clarence Town Bahamas rent houses and home rentals Clarence Town Bahamas
#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
|
|