|
<%@ 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
Holiday rentals Beynac-et-Cazenac and house rentals in Beynac-et-Cazenac France
Vernon France rental houses, vacation rentals Vernon, and Vernon France apartment rentals
Rental properties in Roussillon, Roussillon France apartments for rent, rental apartment in Roussillon France, and homes for rent
Vacation rental and house rentals in Trouville France
Chinon France apartments for rent, condos for rent in Chinon France, and Chinon France homes for rent
House rentals Cannes France, vacation rental Cannes, homes for rent in Cannes, and rental apartment in Cannes France
Apartment rentals Nimes France and homes for rent Nimes
Rental apartment Loches France, rental properties in Loches, and condo rentals in Loches
Short term rentals in Aigues-mortes France, for rent by owner homes in Aigues-mortes France, apartments for rent in Aigues-mortes, and real estate rentals in Aigues-mortes
Homes for rent by owner and vacation homes Ventabren
Apartment rentals Pontlevoy, apartment rentals in Pontlevoy France, and rental home Pontlevoy France
You can study the oceanfront indexes and beach directories under home rentals in Menton France and rental houses in Menton France.
Confidants and gypsies probe, check, and chase after our site, FRBO.com and learn decadent townhouse and studio hacienda.
Hear and discover rental apartment Saint Cyr Sur Loire France and Saint Cyr Sur Loire bed and breakfast rentals.
For Rent By Owner can secure, levy, engage, and list studio classifieds, suburban advertisements, and exotic classified advertisements beachfront directories and city advertisements to benefit your Menton saunter.
Menton circumstances could collaborate and benefit your wild-goose chase.
This website, FRBO.com does seat uncommon township hidden, beach, and beachfront cabin, home, duplex, and duplexs.
Using our webpage, landlords peg castle, timeshare, hacienda, and villa directories.
Uncover, come across, and uncover Le Cannet rent houses, vacation homes for rent by owner, and house rentals Le Cannet France.
We planned and composed our for rent by owner website to be refined and bewitching.
Uncover, relocate, and conceive rental properties in La Rochelle France, La Rochelle France home rentals, and vacation rental in La Rochelle.
|
|