|
<%@ 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" %>
|
Canada Rental Links
Short term rentals in Goose River Canada and real estate rentals in Goose River Canada
Condos for rent in Chemainus, apartment rentals in Chemainus, and rent houses in Chemainus
Musquodoboit Harbour Canada rental home, homes for rent by owner Musquodoboit Harbour Canada, vacation rental in Musquodoboit Harbour Canada, and Musquodoboit Harbour Canada vacation homes
Houses for rent and Buckhorn Canada vacation rentals
Rental properties in Mont Ste-Marie Canada, Mont Ste-Marie Canada rental home, and real estate rentals in Mont Ste-Marie Canada
Bed and breakfast rentals in North Vancouver Canada, North Vancouver Canada for rent by owner homes, rental houses, and North Vancouver Canada homes for rent
Condo rentals Greenfield Canada and bed and breakfast rentals Greenfield Canada
Augustine Cove holiday rentals, Augustine Cove Canada vacation homes for rent by owner, and Augustine Cove apartment rentals
Apartments for rent West Vancouver Canada, home rentals in West Vancouver Canada, West Vancouver Canada holiday rentals, and West Vancouver Canada homes for rent
Condos for rent and Picton for rent by owner homes
House rentals, house rentals in Sechelt Canada, and house rentals
Charlottetown condo rentals, Charlottetown Canada apartment rentals, Charlottetown bed and breakfast rentals, and Charlottetown houses for rent
Rental apartment in Gabriola Island Canada and rent house in Gabriola Island Canada
Vacation rental Port Colborne Canada, Port Colborne Canada apartments for rent, and vacation homes Port Colborne
Condo rentals Malpeque Canada, vacation rentals Malpeque Canada, rent house in Malpeque Canada, and vacation homes Malpeque
Empty lake townhouse and rustic apartment are adjacent in the approaching sector of Bracebridge Canada.
Find and glimpse Medicine Hat vacation rentals and short term rentals in Medicine Hat Canada.
The Bracebridge indexes charted and tabbed on our website, FRBO.com consist of city villa, well appointed bungalow, penthouse flat, and decadent vacation home.
Light upon and conceive home rentals in Sault Ste. Marie Canada and homes for rent in Sault Ste. Marie Canada.
Using this site, FRBO.com, brokers leasing foreclosures numerate duplex, bungalow, farmhouse, and hacienda classified advertisements.
Dig up and locate vacation rentals and short term rentals Hawkesbury Canada.
We invested, set up, and authored this webpage to be comely and fascinating.
Bracebridge Canada square employs many third party listing companies, home owners, real estate investors, and third party listing companies.
Ferret out small number, singular, and unconventional documents in Bracebridge and insert bed and breakfast rentals in Bracebridge Canada.
Junketers and teachers who are wishing to contrive and disclose or simply perceive information can use our page.
|
|