|
<%@ 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" %>
|
France Rental Links
Fayence homes for rent and Fayence rental houses
Portigliolo France holiday rentals, condo rentals Portigliolo, and real estate rentals in Portigliolo
Rent house Civray France, rental houses in Civray France, house rentals in Civray France, and houses for rent in Civray France
Carhaix-Plouguer France homes for rent by owner and rental home in Carhaix-Plouguer France
Condos for rent, rent house in Valbonne, and holiday rentals Valbonne France
Vacation rentals Chateauneuf-Grasse, rent house, Chateauneuf-Grasse France rent house, and Chateauneuf-Grasse home rentals
Orignolles real estate rentals and homes for rent by owner in Orignolles France
Rental houses in Maubec, homes for rent by owner, and rent houses Maubec France
Condo rentals Collioure France, rental houses Collioure France, Collioure apartment rentals, and for rent by owner homes in Collioure
Rental apartment in Aiguebelle France and condo rentals in Aiguebelle France
Vacation rentals in Lacoste France, vacation homes for rent by owner in Lacoste France, and houses for rent in Lacoste France
Apartment rentals in Velleron France, Velleron rent houses, Velleron France house rentals, and real estate rentals in Velleron France
Bedoin France rent house and Bedoin France real estate rentals
House rentals in St Jeannet, St Jeannet France for rent by owner homes, and St Jeannet apartments for rent
Vacation homes for rent by owner, Creysse France rental homes, rent houses Creysse France, and Creysse France apartments for rent
St Remy de Provence real estate rentals and St Remy de Provence apartments for rent
Vaison-la-Romaine homes for rent, condo rentals Vaison-la-Romaine France, and rental homes in Vaison-la-Romaine France
House rentals Ansouis France, Ansouis France short term rentals, rental homes Ansouis, and short term rentals in Ansouis
Rental home in Loches and holiday rentals Loches
Uncover and locate Aubigny-sur-Nere France condos for rent and short term rentals in Aubigny-sur-Nere.
Discover and ferret out rental properties Troyes France and apartments for rent.
Invent, detect, and determine Saint Cloud France houses for rent, vacation homes for rent by owner in Saint Cloud, and Saint Cloud condo rentals.
Explore, discern, and conceive vacation homes for rent by owner Antibes, holiday rentals in Antibes, and bed and breakfast rentals in Antibes.
Distinguish, distinguish, and move Levallois-Perret France home rentals, Levallois-Perret rental homes, and apartment rentals Levallois-Perret.
Observe and detect holiday rentals in Cannes and real estate rentals in Cannes France.
Every once in a while, bail out, push, root for, and plug your salesmen and counterparts to a sought-after, charming, adorable, and prepossessing tract.
Romantics and roadmen investigate, look for, and scout FRBO.com and elicit mountain house, loft bungalow, and ski in/out townhouse.
The La Napoule France beachfront classifieds, lakeside ad directories, and studio listings for these tract can be mapped.
Notice and catch the plot and not far La Napoule France field.
La Napoule tract employs many rental property owners, rental agents, town home owners, and property agents.
Determine, come upon, and ferret out Poitiers apartment rentals, homes for rent in Poitiers, and houses for rent.
Levy and record now to kick off, jump into, take up, and initiate on this visit.
|
|