|
<%@ 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
Condo rentals in Margaretsville Canada and holiday rentals in Margaretsville Canada
Holiday rentals in Saint Catharines, vacation homes Saint Catharines Canada, and vacation homes in Saint Catharines
Vacation homes for rent by owner in Round Lake Canada, Round Lake Canada rental apartment, short term rentals Round Lake, and holiday rentals Round Lake
Vacation homes in Scotch Creek Canada and rental homes Scotch Creek Canada
Homes for rent by owner in Roblin, apartment rentals in Roblin, and homes for rent by owner Roblin
Bed and breakfast rentals Margaretsville Canada, Margaretsville Canada vacation homes for rent by owner, home rentals in Margaretsville Canada, and houses for rent Margaretsville Canada
Rent houses and Wreck Cove Canada homes for rent
Rental houses, Severn Bridge Canada rental apartment, and Severn Bridge Canada homes for rent by owner
Apartment rentals, vacation rental in Port Carling, homes for rent by owner, and vacation homes for rent by owner
Sechelt Canada rent houses and rent house in Sechelt Canada
Houses for rent in Big Tancook Island Canada, vacation homes, and holiday rentals
Rental houses, homes for rent in Peterborough, vacation homes in Peterborough Canada, and rental properties Peterborough Canada
Apartments for rent in Victoria Canada and rental home Victoria Canada
Home rentals in Gracefield Canada, apartment rentals in Gracefield, and rental apartment Gracefield
Home rentals, house rentals Penticton Canada, rental homes Penticton Canada, and apartments for rent
Explore, hear, and find bed and breakfast rentals in Antigonish Canada, Antigonish condos for rent, and houses for rent.
You can ransack the lakeside ads and suburban classified advertisements under homes for rent by owner Vancouver and homes for rent.
Detect and observe rental home and vacation homes in Kitchener.
Elicit and catch Beaverlodge Canada homes for rent and Beaverlodge Canada vacation homes.
Conceive and distinguish apartment rentals in Prescott Canada and rent house Prescott Canada.
Citizens and tenants who are wishing to determine and explore or simply originate information can use For Rent By Owner.
Traveling sales representatives, sisters-in-law, and honeymooners who are ransacking bed and breakfast rentals and are trying to come upon home rentals in Vancouver and rental properties Vancouver can cast about our webpage and our private classified advertisements, beach directories, private classified ads, and hidden directories.
Contrive, conceive, and glimpse Elliot lake vacation rentals, Elliot lake Canada condos for rent, and rental homes Elliot lake.
The Vancouver Canada listed properties filed and entered on our for rent by owner site, FRBO.com seat beach lodge, suburban farmhouse, well appointed bungalow, and ski in/out apartment.
The Vancouver Canada city classifieds, well appointed indexes, exotic listed properties, and studio directories for these parcel can be mapped.
|
|