|
<%@ 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" %>
|
Portugal Rental Links
Home rentals and Figueira Da Foz Portugal houses for rent
For rent by owner homes Alentejo, short term rentals Alentejo Portugal, and rental homes in Alentejo
Home rentals in Colares Portugal, Colares condos for rent, rental houses Colares Portugal, and Colares Portugal vacation rental
Alentejo Portugal homes for rent by owner and homes for rent by owner
Condo rentals in Guia Portugal, Guia Portugal vacation homes for rent by owner, and condo rentals
Rental home in Guia Portugal, rental homes, Guia rental apartment, and Guia house rentals
Vacation homes Loule Portugal and vacation rentals Loule Portugal
Homes for rent by owner, Azoia Portugal homes for rent by owner, and Azoia Portugal vacation homes for rent by owner
Condo rentals in Nazare Portugal, condo rentals, Nazare home rentals, and vacation homes Nazare Portugal
Condo rentals and real estate rentals in Loule Portugal
Apartments for rent Praia da Luz, condo rentals in Praia da Luz Portugal, and house rentals in Praia da Luz
Rental home in Loule, Loule Portugal rent house, Loule holiday rentals, and rental properties
House rentals Albufeira Portugal and Albufeira Portugal house rentals
Sao Miguel vacation rentals, Sao Miguel Portugal homes for rent by owner, and Sao Miguel rental homes
Ferret out and come upon Ponta Delgada Portugal vacation homes and rent houses in Ponta Delgada Portugal.
Join up, conscribe, recruit, and levy on Monday to enter upon, inaugurate, take up, and originate on this migration.
Co-workers and pioneers who are wishing to design, contrive, and originate or simply notice information can use For Rent By Owner.
Not seldom, work with and push your locals and jet-setters to a hep, whopper, sought, and roomy city.
Originate, look up, and disclose vacation rental Madalena Portugal, Madalena apartment rentals, and bed and breakfast rentals in Madalena Portugal.
Loule agents serving the condo market, landlords, land owners, and third party agents list bed and breakfast rentals in Loule Portugal, vacation homes Loule, short term rentals in Loule, and vacation rentals Loule Portugal.
Ascertain and originate home rentals in Madalena Portugal and apartments for rent Madalena Portugal.
|
|