|
<%@ 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
Vacation rentals in Playa Puerto Rico and bed and breakfast rentals in Playa
Bed and breakfast rentals, home rentals in Hato Rey Norte Puerto Rico, and homes for rent by owner in Hato Rey Norte
Houses for rent in Cerro Gordo, Cerro Gordo Puerto Rico bed and breakfast rentals, rental houses Cerro Gordo Puerto Rico, and rent house Cerro Gordo Puerto Rico
Condos for rent and vacation homes for rent by owner Yabucoa
Rental apartment, Florida Adentro vacation rental, and rent houses in Florida Adentro
For rent by owner homes Mayagnez, Mayagnez Puerto Rico vacation rental, bed and breakfast rentals Mayagnez, and homes for rent by owner
Condo rentals in Juan Sßnchez and rent houses in Juan Sßnchez Puerto Rico
Ortfz Puerto Rico rental properties, vacation rentals in Ortfz Puerto Rico, and Ortfz condo rentals
Condos for rent Guayama Puerto Rico, condo rentals Guayama, vacation homes for rent by owner in Guayama, and short term rentals in Guayama
Ca±aboncito Puerto Rico houses for rent and rental homes
Home rentals in Cupey Puerto Rico, apartment rentals Cupey, and Cupey condo rentals
Vacation homes for rent by owner Cangrejo Arriba Puerto Rico, rental homes Cangrejo Arriba Puerto Rico, Cangrejo Arriba Puerto Rico vacation rentals, and rental homes in Cangrejo Arriba Puerto Rico
Apartment rentals Can=vanas Puerto Rico and bed and breakfast rentals Can=vanas Puerto Rico
Hoyo Mulas Puerto Rico holiday rentals, for rent by owner homes in Hoyo Mulas, and rental houses in Hoyo Mulas
Hato Abajo apartment rentals, rental homes Hato Abajo Puerto Rico, vacation rental in Hato Abajo Puerto Rico, and bed and breakfast rentals
Rental homes in Rio Grande and Rio Grande Puerto Rico rental properties
Arecibo home rentals, rental home Arecibo, and Arecibo rental apartment
Florida Puerto Rico apartment rentals, vacation rental Florida Puerto Rico, rental home in Florida Puerto Rico, and rental apartment Florida Puerto Rico
Home rentals Rinc=n Puerto Rico and Rinc=n Puerto Rico bed and breakfast rentals
Humacao rent house, rent houses in Humacao, and apartments for rent in Humacao Puerto Rico
Vieques Puerto Rico home rentals, rental home, houses for rent in Vieques Puerto Rico, and Vieques for rent by owner homes
Rental apartment Ceiba and for rent by owner homes in Ceiba
Mucarabones vacation homes, homes for rent by owner Mucarabones Puerto Rico, and vacation homes Mucarabones
#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
|
|