|
<%@ 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
Treasure Cay homes for rent and short term rentals in Treasure Cay
Little Grand Cay Bahamas vacation rentals, rental houses Little Grand Cay, and Little Grand Cay Bahamas for rent by owner homes
House rentals in Clarence Town Bahamas, rental home Clarence Town, Clarence Town Bahamas home rentals, and Clarence Town Bahamas houses for rent
Rental homes Lucaya Bahamas and Lucaya Bahamas rental home
House rentals in Nassau Bahamas, rental homes, and Nassau Bahamas rent houses
Apartment rentals Nicholl s Town Bahamas, Nicholl s Town Bahamas for rent by owner homes, bed and breakfast rentals Nicholl s Town Bahamas, and Nicholl s Town Bahamas holiday rentals
Man-O-War Cay Bahamas apartments for rent and rental houses in Man-O-War Cay
Condos for rent Green Turtle Cay Bahamas, rental properties Green Turtle Cay, and rent houses in Green Turtle Cay Bahamas
Rental homes in Great Harbour Cay Bahamas, Great Harbour Cay Bahamas houses for rent, short term rentals in Great Harbour Cay Bahamas, and Great Harbour Cay for rent by owner homes
Rental properties Gregory Town and Gregory Town Bahamas short term rentals
Rent house in Little Grand Cay Bahamas, rental apartment in Little Grand Cay Bahamas, and rental houses
Vacation rental, for rent by owner homes Lubbers Quarters Cay, real estate rentals in Lubbers Quarters Cay Bahamas, and apartments for rent
Rental apartment and Cherokee Sound Bahamas rental apartment
Vacation rental, High Rock rent houses, and short term rentals High Rock Bahamas
Gregory Town apartments for rent, homes for rent Gregory Town Bahamas, houses for rent Gregory Town, and home rentals Gregory Town
Rental homes in Leisure Lee Bahamas and rental home
Rental homes in Black Point, Black Point houses for rent, and Black Point Bahamas rental houses
Bed and breakfast rentals, homes for rent by owner in Rock Sound Bahamas, Rock Sound Bahamas rental homes, and Rock Sound house rentals
Clarence Town rental houses and Clarence Town Bahamas bed and breakfast rentals
Vacation homes for rent by owner Leisure Lee, Leisure Lee home rentals, and vacation homes for rent by owner in Leisure Lee Bahamas
Rental home, rent house in Leisure Lee, condos for rent in Leisure Lee, and apartments for rent Leisure Lee Bahamas
Leisure Lee Bahamas vacation homes for rent by owner and real estate rentals
Ten Bay Beach Bahamas vacation rental, apartments for rent Ten Bay Beach Bahamas, and bed and breakfast rentals Ten Bay Beach Bahamas
Spanish Wells Bahamas condos for rent, Spanish Wells rental properties, Spanish Wells Bahamas real estate rentals, and Spanish Wells Bahamas holiday rentals
Vacation rentals in South Bimini Island Bahamas and rental home South Bimini Island Bahamas
Sumner Point Bahamas vacation rental, Sumner Point condo rentals, and Sumner Point rental apartment
Condos for rent in High Rock, High Rock Bahamas bed and breakfast rentals, rental home High Rock, and bed and breakfast rentals in High Rock
North Palmetto Point Bahamas for rent by owner homes and for rent by owner homes North Palmetto Point Bahamas
Staniel Cay Bahamas holiday rentals, for rent by owner homes in Staniel Cay, and house rentals in Staniel Cay
Rent houses Columbus Landings, Columbus Landings home rentals, Columbus Landings rental houses, and Columbus Landings Bahamas rental houses
Little Grand Cay Bahamas holiday rentals and vacation homes Little Grand Cay Bahamas
Apartment rentals in Ten Bay Beach, Ten Bay Beach Bahamas homes for rent, and Ten Bay Beach Bahamas vacation homes
Green Turtle Cay Bahamas houses for rent and rent houses Green Turtle Cay
Bed and breakfast rentals, Harbour Island real estate rentals, and Harbour Island rental apartment
#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
|
|