|
<%@ 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
Bed and breakfast rentals Segundo Puerto Rico and homes for rent in Segundo Puerto Rico
Isla Verde Puerto Rico bed and breakfast rentals, condos for rent in Isla Verde, and Isla Verde holiday rentals
Rental home, Lujan home rentals, rental apartment in Lujan, and Lujan Puerto Rico house rentals
For rent by owner homes in Hoyo Mulas and apartments for rent Hoyo Mulas
For rent by owner homes Higuillar, vacation homes in Higuillar Puerto Rico, and short term rentals Higuillar Puerto Rico
Miradero Puerto Rico rent houses, rental properties in Miradero Puerto Rico, rent houses, and house rentals in Miradero Puerto Rico
Vacation rental in Playa Puerto Rico and Playa Puerto Rico rental houses
Vacation rentals Isla Verde Puerto Rico, bed and breakfast rentals Isla Verde, and Isla Verde Puerto Rico home rentals
Apartment rentals in Santa Maria, condos for rent, rental properties Santa Maria, and vacation rental in Santa Maria Puerto Rico
Santa Maria Puerto Rico rental home and short term rentals Santa Maria
Real estate rentals Isabel Segundo, rental homes in Isabel Segundo, and rent houses in Isabel Segundo Puerto Rico
Trujillo Alto Puerto Rico bed and breakfast rentals, houses for rent in Trujillo Alto, rental houses Trujillo Alto Puerto Rico, and Trujillo Alto apartment rentals
Rental properties in Caimito and for rent by owner homes Caimito Puerto Rico
Condo rentals in Fajardo Puerto Rico, Fajardo Puerto Rico rent house, and real estate rentals in Fajardo
Vacation homes for rent by owner in Florida Adentro, real estate rentals, Florida Adentro Puerto Rico vacation rentals, and Florida Adentro Puerto Rico rental home
Rental houses in Sßbalos and rental properties Sßbalos Puerto Rico
Hato Rey Sur Puerto Rico vacation homes for rent by owner, vacation homes for rent by owner in Hato Rey Sur Puerto Rico, and vacation homes for rent by owner Hato Rey Sur
Real estate rentals Cupey, homes for rent by owner in Cupey Puerto Rico, homes for rent by owner in Cupey Puerto Rico, and real estate rentals Cupey
Guayama Puerto Rico short term rentals and short term rentals in Guayama Puerto Rico
Homes for rent in Martineau, short term rentals in Martineau Puerto Rico, and vacation homes in Martineau
Naguabo vacation homes for rent by owner, Naguabo Puerto Rico vacation rentals, Naguabo Puerto Rico vacation homes, and bed and breakfast rentals in Naguabo Puerto Rico
Pueblo Viejo rent house and homes for rent by owner in Pueblo Viejo
Apartment rentals Buena Vista, rental homes in Buena Vista Puerto Rico, and rental houses in Buena Vista Puerto Rico
For rent by owner homes, Monte Santo Playa Puerto Rico short term rentals, vacation rental Monte Santo Playa, and condo rentals in Monte Santo Playa
Rental properties and rental houses in Hoyo Mulas
Condo rentals in Machuelo Abajo Puerto Rico, vacation rentals, and Machuelo Abajo bed and breakfast rentals
San Ant=n Puerto Rico bed and breakfast rentals, house rentals in San Ant=n Puerto Rico, rental apartment in San Ant=n Puerto Rico, and San Ant=n condo rentals
#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
|
|