|
<%@ 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" %>
|
Puerto Rico Rental Links
Homes for rent in Hato Rey Sur Puerto Rico and Hato Rey Sur Puerto Rico rental homes
Rental houses, home rentals in Vieques Puerto Rico, and vacation homes Vieques Puerto Rico
House rentals Sus·a Baja Puerto Rico, Sus·a Baja homes for rent, rent house in Sus·a Baja Puerto Rico, and holiday rentals in Sus·a Baja Puerto Rico
Vacation rentals Tomßs de Castro Puerto Rico and Tomßs de Castro condos for rent
Bayam=n Puerto Rico house rentals, Bayam=n rent houses, and Bayam=n holiday rentals
Bairoa short term rentals, Bairoa Puerto Rico rental houses, bed and breakfast rentals in Bairoa Puerto Rico, and houses for rent in Bairoa Puerto Rico
Zarzal Puerto Rico vacation homes and Zarzal Puerto Rico rent houses
Rental homes in Fajardo, Fajardo Puerto Rico vacation rentals, and rental properties in Fajardo
Short term rentals Espinosa Puerto Rico, Espinosa Puerto Rico homes for rent by owner, bed and breakfast rentals in Espinosa, and houses for rent in Espinosa Puerto Rico
House rentals Turabo and Turabo Puerto Rico houses for rent
Vacation rental, rental apartment Fajardo, and vacation rentals in Fajardo Puerto Rico
Canas condos for rent, houses for rent in Canas Puerto Rico, homes for rent by owner Canas Puerto Rico, and vacation rentals in Canas
For rent by owner homes and bed and breakfast rentals
Playa Puerto Rico short term rentals, apartments for rent in Playa Puerto Rico, and home rentals in Playa
Rental apartment Sabana Llana Sur, Sabana Llana Sur houses for rent, house rentals, and Sabana Llana Sur vacation rentals
Rental houses and vacation rentals Bravos de Boston
Apartment rentals, Puerto Real holiday rentals, and holiday rentals in Puerto Real
Ceiba Puerto Rico rent houses, vacation homes, vacation rental Ceiba Puerto Rico, and rental homes
Rental apartment in San Ant=n Puerto Rico and rental properties San Ant=n Puerto Rico
Rental houses in Monte Santo Hills Puerto Rico, Monte Santo Hills bed and breakfast rentals, and Monte Santo Hills holiday rentals
Miradero Puerto Rico vacation rental, rental home Miradero, rental properties, and house rentals
Homes for rent by owner Guayama Puerto Rico and Guayama rental properties
Condos for rent in Caimito, vacation rentals Caimito Puerto Rico, and for rent by owner homes in Caimito Puerto Rico
Houses for rent Santurce Puerto Rico, rental home Santurce, rental properties in Santurce, and homes for rent Santurce
Oriente Puerto Rico vacation homes for rent by owner and homes for rent in Oriente
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
#N/A
|
|