|
<%@ 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
Vacation homes and rent house Ten Bay Beach Bahamas
For rent by owner homes Wemsyss Bahamas, Wemsyss Bahamas rental homes, and Wemsyss rental apartment
Condo rentals Gregory Town, rental apartment Gregory Town Bahamas, bed and breakfast rentals, and for rent by owner homes Gregory Town
Vacation rentals in Nassau and Nassau rent house
Black Point short term rentals, condos for rent in Black Point, and Black Point Bahamas home rentals
Home rentals in Kemp s Bay Bahamas, Kemp s Bay for rent by owner homes, rent house, and rental apartment in Kemp s Bay
For rent by owner homes in Great Guana Cay Bahamas and Great Guana Cay real estate rentals
Apartment rentals Rock Sound Bahamas, apartment rentals Rock Sound, and condo rentals in Rock Sound
Home rentals in Wemsyss Bahamas, Wemsyss Bahamas rental apartment, Wemsyss Bahamas house rentals, and rental home Wemsyss Bahamas
Rental homes and homes for rent
Atlantis apartment rentals, vacation homes for rent by owner, and Atlantis Bahamas houses for rent
Acklins Island apartment rentals, Acklins Island Bahamas houses for rent, house rentals in Acklins Island, and Acklins Island Bahamas condos for rent
Great Guana Cay Bahamas vacation homes and Great Guana Cay rental houses
Rent houses in Whale Point Bahamas, condo rentals, and rent houses Whale Point
Rental homes in High Rock, High Rock rent house, rental properties, and High Rock Bahamas condos for rent
Home rentals South Bimini Island Bahamas and vacation homes South Bimini Island Bahamas
Condos for rent in Lubbers Quarters Cay Bahamas, Lubbers Quarters Cay vacation rentals, and Lubbers Quarters Cay houses for rent
Vacation rental, rent house Dunmore Town, for rent by owner homes, and short term rentals
Holiday rentals Clarence Town Bahamas and houses for rent in Clarence Town
Home rentals in Man-O-War Cay Bahamas, rent houses Man-O-War Cay, and rent house in Man-O-War Cay Bahamas
House rentals Windermere Island Bahamas, condo rentals in Windermere Island Bahamas, condos for rent in Windermere Island Bahamas, and rental apartment Windermere Island
Condo rentals in Double Bay Bahamas and rent house in Double Bay
Rental home Harbour Island Bahamas, homes for rent, and Harbour Island Bahamas for rent by owner homes
Rent houses in Hartswell Bahamas, Hartswell home rentals, homes for rent by owner, and condo rentals Hartswell Bahamas
Vacation homes for rent by owner in Pelican Point Bahamas and Pelican Point rental homes
Little Harbour Bahamas rental properties, Little Harbour vacation homes for rent by owner, and Little Harbour Bahamas rental houses
Vacation rental Pelican Point Bahamas, homes for rent in Pelican Point Bahamas, condo rentals in Pelican Point, and Pelican Point Bahamas vacation homes
Rent house and George Town home rentals
Rental homes Great Guana Cay Bahamas, bed and breakfast rentals in Great Guana Cay, and rental apartment Great Guana Cay
Homes for rent by owner in Marsh Harbour Bahamas, Marsh Harbour Bahamas house rentals, Marsh Harbour Bahamas vacation homes, and Marsh Harbour Bahamas house rentals
Rental homes and Nassau Bahamas home rentals
Rental apartment in Green Turtle Cay, Green Turtle Cay rental apartment, and bed and breakfast rentals
For rent by owner homes in Hopetown and Hopetown vacation homes
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
|
|